From bfa73f6145e49e428df10a010e126006e23a573f Mon Sep 17 00:00:00 2001 From: Zhonglei Ma Date: Wed, 15 Oct 2025 17:28:14 +0800 Subject: [PATCH 1/5] Generate SDK code from Swagger --- .../CHANGELOG.md | 2 + ...rceManager.NewRelicObservability.net8.0.cs | 89 ++- ...er.NewRelicObservability.netstandard2.0.cs | 89 ++- .../ArmNewRelicObservabilityModelFactory.cs | 83 +++ .../ArmNewRelicObservabilityModelFactory.cs | 564 ++++++++++----- .../MockableNewRelicObservabilityArmClient.cs | 24 +- ...RelicObservabilityResourceGroupResource.cs | 8 +- ...wRelicObservabilitySubscriptionResource.cs | 113 ++- .../NewRelicObservabilityExtensions.cs | 128 +++- ...ivateSaaSParameterContent.Serialization.cs | 134 ++++ .../Models/ActivateSaaSParameterContent.cs | 104 +++ ...urceManagerNewRelicObservabilityContext.cs | 5 + ...tnerResourcesListResponse.Serialization.cs | 39 +- .../ConnectedPartnerResourcesListResponse.cs | 46 +- ...inkedResourceListResponse.Serialization.cs | 39 +- .../Models/LinkedResourceListResponse.cs | 46 +- .../MarketplaceSaaSInfo.Serialization.cs | 70 ++ .../Generated/Models/MarketplaceSaaSInfo.cs | 79 ++- .../MonitoredSubscriptionConfigurationName.cs | 10 +- .../MonitoredSubscriptionPatchOperation.cs | 30 +- ...ubscriptionPropertiesList.Serialization.cs | 39 +- .../MonitoredSubscriptionPropertiesList.cs | 46 +- .../Models/NewRelicAccountProperties.cs | 50 +- .../Models/NewRelicAccountResourceData.cs | 45 +- .../Models/NewRelicAccountsListResult.cs | 30 +- .../Models/NewRelicAppServicesGetContent.cs | 30 +- .../Models/NewRelicAppServicesListResult.cs | 30 +- .../Models/NewRelicBillingInfoResult.cs | 25 +- .../NewRelicConnectedPartnerResourceInfo.cs | 15 +- ...RelicConnectedPartnerResourceProperties.cs | 45 +- .../Models/NewRelicHostsGetContent.cs | 30 +- ...licLatestLinkedSaaSResult.Serialization.cs | 197 ++++++ .../Models/NewRelicLatestLinkedSaaSResult.cs | 87 +++ .../Models/NewRelicLiftrResourceCategory.cs | 15 +- .../Models/NewRelicMetricsContent.cs | 20 +- .../Models/NewRelicMetricsStatusContent.cs | 30 +- .../Models/NewRelicMetricsStatusResult.cs | 15 +- .../NewRelicMonitorResourceListResult.cs | 30 +- ...RelicMonitorResourcePatch.Serialization.cs | 20 +- .../Models/NewRelicMonitorResourcePatch.cs | 104 ++- .../NewRelicMonitoredResourceListResult.cs | 30 +- .../NewRelicMonitoredSubscriptionInfo.cs | 45 +- ...NewRelicMonitoredSubscriptionProperties.cs | 35 +- .../Models/NewRelicMonitoringStatus.cs | 25 +- .../Models/NewRelicMonitoringTagRules.cs | 35 +- ...RelicObservabilityAccountCreationSource.cs | 15 +- .../NewRelicObservabilityAccountInfo.cs | 35 +- .../NewRelicObservabilityAppServiceInfo.cs | 35 +- .../NewRelicObservabilityBillingSource.cs | 15 +- .../NewRelicObservabilityFilteringTag.cs | 35 +- .../Models/NewRelicObservabilityLogRules.cs | 37 +- ...ervabilityMarketplaceSubscriptionStatus.cs | 15 +- .../NewRelicObservabilityMetricRules.cs | 35 +- .../NewRelicObservabilityMonitoringStatus.cs | 15 +- .../NewRelicObservabilityOrgCreationSource.cs | 15 +- .../NewRelicObservabilityOrganizationInfo.cs | 15 +- .../NewRelicObservabilitySendAadLogsStatus.cs | 15 +- ...elicObservabilitySendActivityLogsStatus.cs | 15 +- .../NewRelicObservabilitySendMetricsStatus.cs | 15 +- ...ObservabilitySendSubscriptionLogsStatus.cs | 15 +- .../NewRelicObservabilitySendingLogsStatus.cs | 15 +- ...wRelicObservabilitySendingMetricsStatus.cs | 15 +- .../Models/NewRelicObservabilityTagAction.cs | 15 +- .../NewRelicObservabilityTagRuleListResult.cs | 30 +- .../NewRelicObservabilityTagRulePatch.cs | 25 +- .../Models/NewRelicObservabilityUsageType.cs | 15 +- .../Models/NewRelicObservabilityUserInfo.cs | 55 +- ...NewRelicObservabilityVmExtensionPayload.cs | 15 +- ...ewRelicObservabilityVmHostsListResponse.cs | 30 +- .../Models/NewRelicObservabilityVmInfo.cs | 35 +- .../NewRelicOrganizationResourceData.cs | 35 +- .../Models/NewRelicOrganizationsListResult.cs | 30 +- .../src/Generated/Models/NewRelicPlanData.cs | 35 +- .../Models/NewRelicPlanDataListResult.cs | 30 +- .../Generated/Models/NewRelicPlanDetails.cs | 45 +- .../Models/NewRelicProvisioningState.cs | 50 +- .../Models/NewRelicResourceMonitorResult.cs | 55 +- ...elicResubscribeProperties.Serialization.cs | 203 ++++++ .../Models/NewRelicResubscribeProperties.cs | 141 ++++ .../NewRelicSaaSDataDetails.Serialization.cs | 166 +++++ .../Models/NewRelicSaaSDataDetails.cs | 76 +++ ...SaaSResourceDetailsResult.Serialization.cs | 244 +++++++ .../NewRelicSaaSResourceDetailsResult.cs | 81 +++ .../Models/NewRelicSingleSignOnProperties.cs | 45 +- .../Models/NewRelicSingleSignOnState.cs | 25 +- .../Models/NewRelicSwitchBillingContent.cs | 50 +- .../Generated/Models/PartnerBillingEntity.cs | 25 +- .../src/Generated/NewRelicMonitorResource.cs | 642 +++++++++++++----- .../NewRelicMonitorResourceCollection.cs | 32 +- ...wRelicMonitorResourceData.Serialization.cs | 40 +- .../Generated/NewRelicMonitorResourceData.cs | 169 ++++- ...NewRelicMonitoredSubscriptionCollection.cs | 32 +- .../NewRelicMonitoredSubscriptionData.cs | 11 +- .../NewRelicMonitoredSubscriptionResource.cs | 24 +- .../NewRelicObservabilityTagRuleCollection.cs | 32 +- .../NewRelicObservabilityTagRuleData.cs | 31 +- .../NewRelicObservabilityTagRuleResource.cs | 24 +- .../RestOperations/AccountsRestOperations.cs | 10 +- .../BillingInfoRestOperations.cs | 6 +- ...ConnectedPartnerResourcesRestOperations.cs | 10 +- .../MonitoredSubscriptionsRestOperations.cs | 26 +- .../RestOperations/MonitorsRestOperations.cs | 599 ++++++++++++---- .../OrganizationsRestOperations.cs | 10 +- .../RestOperations/PlansRestOperations.cs | 10 +- .../RestOperations/SaaSRestOperations.cs | 125 ++++ .../RestOperations/TagRulesRestOperations.cs | 114 ++-- .../src/autorest.md | 48 +- ...Manager.NewRelicObservability.Tests.csproj | 3 + .../Samples/Sample_NewRelicMonitorResource.cs | 306 ++++++--- ...ample_NewRelicMonitorResourceCollection.cs | 11 +- ...NewRelicMonitoredSubscriptionCollection.cs | 10 +- ...e_NewRelicMonitoredSubscriptionResource.cs | 6 +- ..._NewRelicObservabilityTagRuleCollection.cs | 20 +- ...le_NewRelicObservabilityTagRuleResource.cs | 12 +- .../Sample_SubscriptionResourceExtensions.cs | 39 +- 115 files changed, 5780 insertions(+), 1310 deletions(-) create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/ArmNewRelicObservabilityModelFactory.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.Serialization.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md index f1020cc3c073..1e3aba2b841c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +- Update api version to 2025-05-01-preview. + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs index 0379c385042f..59d2c8fc3484 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs @@ -88,8 +88,16 @@ protected NewRelicMonitorResource() { } public virtual Azure.Response GetNewRelicObservabilityTagRule(string ruleSetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNewRelicObservabilityTagRuleAsync(string ruleSetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleCollection GetNewRelicObservabilityTagRules() { throw null; } + public virtual Azure.Response LatestLinkedSaaS(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> LatestLinkedSaaSAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation LinkSaaS(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails details, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> LinkSaaSAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails details, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RefreshIngestionKey(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RefreshIngestionKeyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SwitchBilling(Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -138,6 +146,7 @@ public NewRelicMonitorResourceData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? ProvisioningState { get { throw null; } } public string SaaSAzureSubscriptionStatus { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public string SubscriptionState { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -149,6 +158,8 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write } public static partial class NewRelicObservabilityExtensions { + public static Azure.Response ActivateResourceSaaS(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> ActivateResourceSaaSAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetNewRelicAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetNewRelicAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionResource GetNewRelicMonitoredSubscriptionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -233,6 +244,8 @@ protected MockableNewRelicObservabilityResourceGroupResource() { } public partial class MockableNewRelicObservabilitySubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableNewRelicObservabilitySubscriptionResource() { } + public virtual Azure.Response ActivateResourceSaaS(Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ActivateResourceSaaSAsync(Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetNewRelicAccounts(string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetNewRelicAccountsAsync(string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetNewRelicMonitorResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -245,23 +258,40 @@ protected MockableNewRelicObservabilitySubscriptionResource() { } } namespace Azure.ResourceManager.NewRelicObservability.Models { + public partial class ActivateSaaSParameterContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ActivateSaaSParameterContent(System.Guid saasGuid, string publisherId) { } + public string PublisherId { get { throw null; } } + public System.Guid SaasGuid { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent 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.NewRelicObservability.Models.ActivateSaaSParameterContent 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 static partial class ArmNewRelicObservabilityModelFactory { - public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountResourceData NewRelicAccountResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string accountId = null, string accountName = null, Azure.Core.AzureLocation? region = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicAppServicesGetContent NewRelicAppServicesGetContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicBillingInfoResult NewRelicBillingInfoResult(Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo marketplaceSaasInfo = null, Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity partnerBillingEntity = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicHostsGetContent NewRelicHostsGetContent(System.Collections.Generic.IEnumerable vmIds = null, string userEmail = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusContent NewRelicMetricsStatusContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusResult NewRelicMetricsStatusResult(System.Collections.Generic.IEnumerable azureResourceIds = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscriptionProperties(Azure.ResourceManager.NewRelicObservability.Models.MonitoredSubscriptionPatchOperation? patchOperation = default(Azure.ResourceManager.NewRelicObservability.Models.MonitoredSubscriptionPatchOperation?), System.Collections.Generic.IEnumerable monitoredSubscriptionList = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoringTagRules NewRelicMonitoringTagRules(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.Core.ResourceIdentifier saaSResourceId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(Azure.Core.ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { throw null; } @@ -269,6 +299,7 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData NewRelicOrganizationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string organizationName = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource? billingSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanData NewRelicPlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus? sendingMetrics = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus?), string reasonForMetricsStatus = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus? sendingLogs = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus?), string reasonForLogsStatus = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent NewRelicSwitchBillingContent(Azure.Core.ResourceIdentifier azureResourceId = null, string organizationId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) { throw null; } } @@ -280,6 +311,8 @@ internal MarketplaceSaaSInfo() { } public string MarketplaceStatus { get { throw null; } } public string MarketplaceSubscriptionId { get { throw null; } } public string MarketplaceSubscriptionName { get { throw null; } } + public string OfferId { get { throw null; } } + public string PublisherId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo 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) { } @@ -414,6 +447,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 NewRelicLatestLinkedSaaSResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal NewRelicLatestLinkedSaaSResult() { } + public bool? IsHiddenSaaS { get { throw null; } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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 NewRelicLiftrResourceCategory : System.IEquatable { @@ -534,6 +579,7 @@ public NewRelicMonitorResourcePatch() { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties NewRelicAccountProperties { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? OrgCreationSource { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -994,6 +1040,45 @@ 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 NewRelicResubscribeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicResubscribeProperties() { } + public string OfferId { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string PlanId { get { throw null; } set { } } + public string PublisherId { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + public string TermId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties 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.NewRelicObservability.Models.NewRelicResubscribeProperties 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 NewRelicSaaSDataDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicSaaSDataDetails() { } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails 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.NewRelicObservability.Models.NewRelicSaaSDataDetails 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 NewRelicSaaSResourceDetailsResult : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicSaaSResourceDetailsResult() { } + public string SaasId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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 NewRelicSingleSignOnProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicSingleSignOnProperties() { } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs index 0379c385042f..59d2c8fc3484 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs @@ -88,8 +88,16 @@ protected NewRelicMonitorResource() { } public virtual Azure.Response GetNewRelicObservabilityTagRule(string ruleSetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetNewRelicObservabilityTagRuleAsync(string ruleSetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleCollection GetNewRelicObservabilityTagRules() { throw null; } + public virtual Azure.Response LatestLinkedSaaS(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> LatestLinkedSaaSAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation LinkSaaS(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails details, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> LinkSaaSAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails details, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RefreshIngestionKey(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RefreshIngestionKeyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SwitchBilling(Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -138,6 +146,7 @@ public NewRelicMonitorResourceData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? ProvisioningState { get { throw null; } } public string SaaSAzureSubscriptionStatus { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public string SubscriptionState { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -149,6 +158,8 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write } public static partial class NewRelicObservabilityExtensions { + public static Azure.Response ActivateResourceSaaS(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> ActivateResourceSaaSAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Pageable GetNewRelicAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetNewRelicAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionResource GetNewRelicMonitoredSubscriptionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -233,6 +244,8 @@ protected MockableNewRelicObservabilityResourceGroupResource() { } public partial class MockableNewRelicObservabilitySubscriptionResource : Azure.ResourceManager.ArmResource { protected MockableNewRelicObservabilitySubscriptionResource() { } + public virtual Azure.Response ActivateResourceSaaS(Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ActivateResourceSaaSAsync(Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetNewRelicAccounts(string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetNewRelicAccountsAsync(string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetNewRelicMonitorResources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -245,23 +258,40 @@ protected MockableNewRelicObservabilitySubscriptionResource() { } } namespace Azure.ResourceManager.NewRelicObservability.Models { + public partial class ActivateSaaSParameterContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ActivateSaaSParameterContent(System.Guid saasGuid, string publisherId) { } + public string PublisherId { get { throw null; } } + public System.Guid SaasGuid { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent 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.NewRelicObservability.Models.ActivateSaaSParameterContent 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 static partial class ArmNewRelicObservabilityModelFactory { - public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountResourceData NewRelicAccountResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string accountId = null, string accountName = null, Azure.Core.AzureLocation? region = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicAppServicesGetContent NewRelicAppServicesGetContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicBillingInfoResult NewRelicBillingInfoResult(Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo marketplaceSaasInfo = null, Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity partnerBillingEntity = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicHostsGetContent NewRelicHostsGetContent(System.Collections.Generic.IEnumerable vmIds = null, string userEmail = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusContent NewRelicMetricsStatusContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusResult NewRelicMetricsStatusResult(System.Collections.Generic.IEnumerable azureResourceIds = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscriptionProperties(Azure.ResourceManager.NewRelicObservability.Models.MonitoredSubscriptionPatchOperation? patchOperation = default(Azure.ResourceManager.NewRelicObservability.Models.MonitoredSubscriptionPatchOperation?), System.Collections.Generic.IEnumerable monitoredSubscriptionList = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoringTagRules NewRelicMonitoringTagRules(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.Core.ResourceIdentifier saaSResourceId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(Azure.Core.ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { throw null; } @@ -269,6 +299,7 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData NewRelicOrganizationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string organizationName = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource? billingSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanData NewRelicPlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus? sendingMetrics = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus?), string reasonForMetricsStatus = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus? sendingLogs = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus?), string reasonForLogsStatus = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent NewRelicSwitchBillingContent(Azure.Core.ResourceIdentifier azureResourceId = null, string organizationId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) { throw null; } } @@ -280,6 +311,8 @@ internal MarketplaceSaaSInfo() { } public string MarketplaceStatus { get { throw null; } } public string MarketplaceSubscriptionId { get { throw null; } } public string MarketplaceSubscriptionName { get { throw null; } } + public string OfferId { get { throw null; } } + public string PublisherId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.MarketplaceSaaSInfo 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) { } @@ -414,6 +447,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 NewRelicLatestLinkedSaaSResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal NewRelicLatestLinkedSaaSResult() { } + public bool? IsHiddenSaaS { get { throw null; } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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 NewRelicLiftrResourceCategory : System.IEquatable { @@ -534,6 +579,7 @@ public NewRelicMonitorResourcePatch() { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties NewRelicAccountProperties { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? OrgCreationSource { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -994,6 +1040,45 @@ 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 NewRelicResubscribeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicResubscribeProperties() { } + public string OfferId { get { throw null; } set { } } + public string OrganizationId { get { throw null; } set { } } + public string PlanId { get { throw null; } set { } } + public string PublisherId { get { throw null; } set { } } + public string ResourceGroup { get { throw null; } set { } } + public string SubscriptionId { get { throw null; } set { } } + public string TermId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties 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.NewRelicObservability.Models.NewRelicResubscribeProperties 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 NewRelicSaaSDataDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicSaaSDataDetails() { } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails 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.NewRelicObservability.Models.NewRelicSaaSDataDetails 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 NewRelicSaaSResourceDetailsResult : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public NewRelicSaaSResourceDetailsResult() { } + public string SaasId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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 NewRelicSingleSignOnProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicSingleSignOnProperties() { } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/ArmNewRelicObservabilityModelFactory.cs new file mode 100644 index 000000000000..7d1ed86c20e2 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/ArmNewRelicObservabilityModelFactory.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System.Collections.Generic; +using System.ComponentModel; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.NewRelicObservability.Models +{ + /// Model factory for models. + public static partial class ArmNewRelicObservabilityModelFactory + { + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The managed service identities assigned to this resource. + /// Provisioning State of the resource. + /// MonitoringStatus of the resource. + /// NewRelic Organization properties of the resource. + /// Marketplace Subscription Id. + /// MarketplaceSubscriptionStatus of the resource. + /// User Info. + /// Plan details. + /// Liftr resource category. + /// Liftr resource preference. The priority of the resource. + /// Source of org creation. + /// Source of account creation. + /// State of the Azure Subscription containing the monitor resource. + /// Status of Azure Subscription where Marketplace SaaS is located. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) + { + return NewRelicMonitorResourceData(id, name, resourceType, systemData, tags, location, identity, provisioningState, monitoringStatus, marketplaceSubscriptionStatus, marketplaceSubscriptionId, newRelicAccountProperties, userInfo, planData, saaSResourceId: default, liftrResourceCategory, liftrResourcePreference, orgCreationSource, accountCreationSource); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The managed service identities assigned to this resource. + /// Provisioning State of the resource. + /// MonitoringStatus of the resource. + /// NewRelic Organization properties of the resource. + /// Marketplace Subscription Id. + /// MarketplaceSubscriptionStatus of the resource. + /// User Info. + /// Plan details. + /// Liftr resource category. + /// Liftr resource preference. The priority of the resource. + /// Source of org creation. + /// Source of account creation. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource) + { + return NewRelicMonitorResourceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, monitoringStatus: monitoringStatus, marketplaceSubscriptionStatus: marketplaceSubscriptionStatus, marketplaceSubscriptionId: marketplaceSubscriptionId, newRelicAccountProperties: newRelicAccountProperties, userInfo: userInfo, planData: planData, liftrResourceCategory: liftrResourceCategory, liftrResourcePreference: liftrResourcePreference, orgCreationSource: orgCreationSource, accountCreationSource: accountCreationSource, subscriptionState: default, saaSAzureSubscriptionStatus: default); + } + + /// Initializes a new instance of . + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Marketplace Subscription Details: SAAS Name. + /// Marketplace Subscription Details: Resource URI. + /// Marketplace Subscription Details: SaaS Subscription Status. + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId) + { + return MarketplaceSaaSInfo(marketplaceSubscriptionId, marketplaceSubscriptionName, marketplaceResourceId, marketplaceStatus, billedAzureSubscriptionId, publisherId: default, offerId: default); + } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs index 2657f15edea4..6348558c8fb0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs @@ -22,10 +22,22 @@ public static partial class ArmNewRelicObservabilityModelFactory /// The name. /// The resourceType. /// The systemData. - /// organization id. - /// account id. - /// account name. - /// Region where New Relic account is present. + /// + /// organization id + /// Serialized Name: AccountResource.properties.organizationId + /// + /// + /// account id + /// Serialized Name: AccountResource.properties.accountId + /// + /// + /// account name + /// Serialized Name: AccountResource.properties.accountName + /// + /// + /// Region where New Relic account is present + /// Serialized Name: AccountResource.properties.region + /// /// A new instance for mocking. public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string organizationId = null, string accountId = null, string accountName = null, AzureLocation? region = null) { @@ -41,6 +53,27 @@ public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceId serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Id of the Marketplace SaaS Resource + /// Serialized Name: SaaSResourceDetailsResponse.saasId + /// + /// A new instance for mocking. + public static NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string saasId = null) + { + return new NewRelicSaaSResourceDetailsResult( + id, + name, + resourceType, + systemData, + saasId, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -48,22 +81,68 @@ public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceId /// The systemData. /// The tags. /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// State of the Azure Subscription containing the monitor resource. - /// Status of Azure Subscription where Marketplace SaaS is located. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResource.identity + /// + /// + /// Provisioning State of the resource + /// Serialized Name: NewRelicMonitorResource.properties.provisioningState + /// + /// + /// MonitoringStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus + /// + /// + /// NewRelic Organization properties of the resource + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus + /// + /// + /// Marketplace Subscription Id + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResource.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResource.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// + /// + /// Liftr resource preference. The priority of the resource. + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource + /// + /// + /// State of the Azure Subscription containing the monitor resource + /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState + /// + /// + /// Status of Azure Subscription where Marketplace SaaS is located. + /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus + /// /// A new instance for mocking. - public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) + public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, ResourceIdentifier saaSResourceId = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { tags ??= new Dictionary(); @@ -82,6 +161,7 @@ public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceId newRelicAccountProperties, userInfo, planData, + saaSResourceId != null ? new NewRelicSaaSDataDetails(saaSResourceId, serializedAdditionalRawData: null) : null, liftrResourceCategory, liftrResourcePreference, orgCreationSource, @@ -96,9 +176,18 @@ public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceId /// The name. /// The resourceType. /// The systemData. - /// organization id. - /// organization name. - /// Billing source. + /// + /// organization id + /// Serialized Name: OrganizationResource.properties.organizationId + /// + /// + /// organization name + /// Serialized Name: OrganizationResource.properties.organizationName + /// + /// + /// Billing source + /// Serialized Name: OrganizationResource.properties.billingSource + /// /// A new instance for mocking. public static NewRelicOrganizationResourceData NewRelicOrganizationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string organizationId = null, string organizationName = null, NewRelicObservabilityBillingSource? billingSource = null) { @@ -118,9 +207,18 @@ public static NewRelicOrganizationResourceData NewRelicOrganizationResourceData( /// The name. /// The resourceType. /// The systemData. - /// Plan details. - /// Source of org creation. - /// Source of account creation. + /// + /// Plan details + /// Serialized Name: PlanDataResource.properties.planData + /// + /// + /// Source of org creation + /// Serialized Name: PlanDataResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: PlanDataResource.properties.accountCreationSource + /// /// A new instance for mocking. public static NewRelicPlanData NewRelicPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicPlanDetails planData = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null) { @@ -135,9 +233,88 @@ public static NewRelicPlanData NewRelicPlanData(ResourceIdentifier id = null, st serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// + /// Marketplace Subscription details + /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo + /// + /// + /// Partner Billing Entity details: Organization Info + /// Serialized Name: BillingInfoResponse.partnerBillingEntity + /// + /// A new instance for mocking. + public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo = null, PartnerBillingEntity partnerBillingEntity = null) + { + return new NewRelicBillingInfoResult(marketplaceSaasInfo, partnerBillingEntity, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId + /// + /// + /// Marketplace Subscription Details: SAAS Name + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName + /// + /// + /// Marketplace Subscription Details: Resource URI + /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId + /// + /// + /// Marketplace Subscription Details: SaaS Subscription Status + /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus + /// + /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId + /// + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// + /// A new instance for mocking. + public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) + { + return new MarketplaceSaaSInfo( + marketplaceSubscriptionId, + marketplaceSubscriptionName, + marketplaceResourceId, + marketplaceStatus, + billedAzureSubscriptionId, + publisherId, + offerId, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// The New Relic Organization Id. + /// Serialized Name: PartnerBillingEntity.organizationId + /// + /// + /// The New Relic Organization Name. + /// Serialized Name: PartnerBillingEntity.organizationName + /// + /// A new instance for mocking. + public static PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) + { + return new PartnerBillingEntity(organizationId, organizationName, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . - /// Azure resource IDs. - /// User Email. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusRequest.azureResourceIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsStatusRequest.userEmail + /// /// A new instance for mocking. public static NewRelicMetricsStatusContent NewRelicMetricsStatusContent(IEnumerable azureResourceIds = null, string userEmail = null) { @@ -147,7 +324,10 @@ public static NewRelicMetricsStatusContent NewRelicMetricsStatusContent(IEnumera } /// Initializes a new instance of . - /// Azure resource IDs. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusResponse.azureResourceIds + /// /// A new instance for mocking. public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerable azureResourceIds = null) { @@ -156,9 +336,30 @@ public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerabl return new NewRelicMetricsStatusResult(azureResourceIds?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// + /// SaaS resource id + /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId + /// + /// + /// Flag indicating if the SaaS resource is hidden + /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS + /// + /// A new instance for mocking. + public static NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = null) + { + return new NewRelicLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . - /// Azure resource IDs. - /// User Email. + /// + /// Azure resource IDs + /// Serialized Name: AppServicesGetRequest.azureResourceIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: AppServicesGetRequest.userEmail + /// /// A new instance for mocking. public static NewRelicAppServicesGetContent NewRelicAppServicesGetContent(IEnumerable azureResourceIds = null, string userEmail = null) { @@ -168,29 +369,67 @@ public static NewRelicAppServicesGetContent NewRelicAppServicesGetContent(IEnume } /// Initializes a new instance of . - /// Azure App service resource ID. - /// Version of the NewRelic agent installed on the App service. - /// Status of the NewRelic agent installed on the App service. + /// + /// Azure App service resource ID + /// Serialized Name: AppServiceInfo.azureResourceId + /// + /// + /// Version of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentVersion + /// + /// + /// Status of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentStatus + /// /// A new instance for mocking. public static NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { return new NewRelicObservabilityAppServiceInfo(azureResourceId, agentVersion, agentStatus, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Azure resource Id. - /// Organization id. - /// Plan details. - /// User Email. - /// A new instance for mocking. - public static NewRelicSwitchBillingContent NewRelicSwitchBillingContent(ResourceIdentifier azureResourceId = null, string organizationId = null, NewRelicPlanDetails planData = null, string userEmail = null) + /// Initializes a new instance of . + /// + /// Connected Partner Resource Properties + /// Serialized Name: ConnectedPartnerResourcesListFormat.properties + /// + /// A new instance for mocking. + public static NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourceProperties properties = null) { - return new NewRelicSwitchBillingContent(azureResourceId, organizationId, planData, userEmail, serializedAdditionalRawData: null); + return new NewRelicConnectedPartnerResourceInfo(properties, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// NewRelic account name + /// Serialized Name: ConnectedPartnerResourceProperties.accountName + /// + /// + /// NewRelic Account Id + /// Serialized Name: ConnectedPartnerResourceProperties.accountId + /// + /// + /// The azure resource Id of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId + /// + /// + /// The location of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.location + /// + /// A new instance for mocking. + public static NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, AzureLocation? location = null) + { + return new NewRelicConnectedPartnerResourceProperties(accountName, accountId, azureResourceId, location, serializedAdditionalRawData: null); } /// Initializes a new instance of . - /// VM resource IDs. - /// User Email. + /// + /// VM resource IDs + /// Serialized Name: HostsGetRequest.vmIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: HostsGetRequest.userEmail + /// /// A new instance for mocking. public static NewRelicHostsGetContent NewRelicHostsGetContent(IEnumerable vmIds = null, string userEmail = null) { @@ -200,9 +439,18 @@ public static NewRelicHostsGetContent NewRelicHostsGetContent(IEnumerable Initializes a new instance of . - /// Azure VM resource ID. - /// Version of the NewRelic agent installed on the VM. - /// Status of the NewRelic agent installed on the VM. + /// + /// Azure VM resource ID + /// Serialized Name: VMInfo.vmId + /// + /// + /// Version of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentVersion + /// + /// + /// Status of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentStatus + /// /// A new instance for mocking. public static NewRelicObservabilityVmInfo NewRelicObservabilityVmInfo(ResourceIdentifier vmId = null, string agentVersion = null, string agentStatus = null) { @@ -210,11 +458,26 @@ public static NewRelicObservabilityVmInfo NewRelicObservabilityVmInfo(ResourceId } /// Initializes a new instance of . - /// The ARM id of the resource. - /// Flag indicating if resource is sending metrics to NewRelic. - /// Reason for why the resource is sending metrics (or why it is not sending). - /// Flag indicating if resource is sending logs to NewRelic. - /// Reason for why the resource is sending logs (or why it is not sending). + /// + /// The ARM id of the resource. + /// Serialized Name: MonitoredResource.id + /// + /// + /// Flag indicating if resource is sending metrics to NewRelic. + /// Serialized Name: MonitoredResource.sendingMetrics + /// + /// + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForMetricsStatus + /// + /// + /// Flag indicating if resource is sending logs to NewRelic. + /// Serialized Name: MonitoredResource.sendingLogs + /// + /// + /// Reason for why the resource is sending logs (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForLogsStatus + /// /// A new instance for mocking. public static NewRelicResourceMonitorResult NewRelicResourceMonitorResult(ResourceIdentifier id = null, NewRelicObservabilitySendingMetricsStatus? sendingMetrics = null, string reasonForMetricsStatus = null, NewRelicObservabilitySendingLogsStatus? sendingLogs = null, string reasonForLogsStatus = null) { @@ -227,59 +490,88 @@ public static NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Resour serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Marketplace Subscription details. - /// Partner Billing Entity details: Organization Info. - /// A new instance for mocking. - public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo = null, PartnerBillingEntity partnerBillingEntity = null) - { - return new NewRelicBillingInfoResult(marketplaceSaasInfo, partnerBillingEntity, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Marketplace Subscription Details: SAAS Name. - /// Marketplace Subscription Details: Resource URI. - /// Marketplace Subscription Details: SaaS Subscription Status. - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// A new instance for mocking. - public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: MonitoredSubscriptionProperties.properties + /// + /// A new instance for mocking. + public static NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicMonitoredSubscriptionProperties properties = null) { - return new MarketplaceSaaSInfo( - marketplaceSubscriptionId, - marketplaceSubscriptionName, - marketplaceResourceId, - marketplaceStatus, - billedAzureSubscriptionId, + return new NewRelicMonitoredSubscriptionData( + id, + name, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The New Relic Organization Id. - /// The New Relic Organization Name. - /// A new instance for mocking. - public static PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) + /// Initializes a new instance of . + /// + /// The operation for the patch on the resource. + /// Serialized Name: SubscriptionList.patchOperation + /// + /// + /// List of subscriptions and the state of the monitoring. + /// Serialized Name: SubscriptionList.monitoredSubscriptionList + /// + /// + /// Provisioning State of the resource + /// Serialized Name: SubscriptionList.provisioningState + /// + /// A new instance for mocking. + public static NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOperation? patchOperation = null, IEnumerable monitoredSubscriptionList = null, NewRelicProvisioningState? provisioningState = null) { - return new PartnerBillingEntity(organizationId, organizationName, serializedAdditionalRawData: null); + monitoredSubscriptionList ??= new List(); + + return new NewRelicMonitoredSubscriptionProperties(patchOperation, monitoredSubscriptionList?.ToList(), provisioningState, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Connected Partner Resource Properties. - /// A new instance for mocking. - public static NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourceProperties properties = null) + /// Initializes a new instance of . + /// + /// Provisioning State of the resource + /// Serialized Name: MonitoringTagRulesProperties.provisioningState + /// + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.logRules + /// + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.metricRules + /// + /// A new instance for mocking. + public static NewRelicMonitoringTagRules NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityLogRules logRules = null, NewRelicObservabilityMetricRules metricRules = null) { - return new NewRelicConnectedPartnerResourceInfo(properties, serializedAdditionalRawData: null); + return new NewRelicMonitoringTagRules(provisioningState, logRules, metricRules, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// NewRelic account name. - /// NewRelic Account Id. - /// The azure resource Id of the deployment. - /// The location of the deployment. - /// A new instance for mocking. - public static NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, AzureLocation? location = null) + /// Initializes a new instance of . + /// + /// Azure resource Id + /// Serialized Name: SwitchBillingRequest.azureResourceId + /// + /// + /// Organization id + /// Serialized Name: SwitchBillingRequest.organizationId + /// + /// + /// Plan details + /// Serialized Name: SwitchBillingRequest.planData + /// + /// + /// Reusable representation of an email address + /// Serialized Name: SwitchBillingRequest.userEmail + /// + /// A new instance for mocking. + public static NewRelicSwitchBillingContent NewRelicSwitchBillingContent(ResourceIdentifier azureResourceId = null, string organizationId = null, NewRelicPlanDetails planData = null, string userEmail = null) { - return new NewRelicConnectedPartnerResourceProperties(accountName, accountId, azureResourceId, location, serializedAdditionalRawData: null); + return new NewRelicSwitchBillingContent(azureResourceId, organizationId, planData, userEmail, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -287,9 +579,18 @@ public static NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartne /// The name. /// The resourceType. /// The systemData. - /// Provisioning State of the resource. - /// Set of rules for sending logs for the Monitor resource. - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Provisioning State of the resource + /// Serialized Name: TagRule.properties.provisioningState + /// + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: TagRule.properties.logRules + /// + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: TagRule.properties.metricRules + /// /// A new instance for mocking. public static NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityLogRules logRules = null, NewRelicObservabilityMetricRules metricRules = null) { @@ -304,78 +605,15 @@ public static NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData( serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Provisioning State of the resource. - /// Set of rules for sending logs for the Monitor resource. - /// Set of rules for sending metrics for the Monitor resource. - /// A new instance for mocking. - public static NewRelicMonitoringTagRules NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityLogRules logRules = null, NewRelicObservabilityMetricRules metricRules = null) - { - return new NewRelicMonitoringTagRules(provisioningState, logRules, metricRules, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// A new instance for mocking. - public static NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicMonitoredSubscriptionProperties properties = null) - { - return new NewRelicMonitoredSubscriptionData( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The operation for the patch on the resource. - /// List of subscriptions and the state of the monitoring. - /// Provisioning State of the resource. - /// A new instance for mocking. - public static NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOperation? patchOperation = null, IEnumerable monitoredSubscriptionList = null, NewRelicProvisioningState? provisioningState = null) - { - monitoredSubscriptionList ??= new List(); - - return new NewRelicMonitoredSubscriptionProperties(patchOperation, monitoredSubscriptionList?.ToList(), provisioningState, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . - /// Ingestion key of the account. + /// + /// Ingestion key of the account + /// Serialized Name: VMExtensionPayload.ingestionKey + /// /// A new instance for mocking. public static NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { return new NewRelicObservabilityVmExtensionPayload(ingestionKey, serializedAdditionalRawData: null); } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource) - { - return NewRelicMonitorResourceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, monitoringStatus: monitoringStatus, marketplaceSubscriptionStatus: marketplaceSubscriptionStatus, marketplaceSubscriptionId: marketplaceSubscriptionId, newRelicAccountProperties: newRelicAccountProperties, userInfo: userInfo, planData: planData, liftrResourceCategory: liftrResourceCategory, liftrResourcePreference: liftrResourcePreference, orgCreationSource: orgCreationSource, accountCreationSource: accountCreationSource, subscriptionState: default, saaSAzureSubscriptionStatus: default); - } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityArmClient.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityArmClient.cs index 3c1301315391..9da1c3fc1602 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityArmClient.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityArmClient.cs @@ -46,18 +46,6 @@ public virtual NewRelicMonitorResource GetNewRelicMonitorResource(ResourceIdenti return new NewRelicMonitorResource(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 NewRelicObservabilityTagRuleResource GetNewRelicObservabilityTagRuleResource(ResourceIdentifier id) - { - NewRelicObservabilityTagRuleResource.ValidateResourceId(id); - return new NewRelicObservabilityTagRuleResource(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. @@ -69,5 +57,17 @@ public virtual NewRelicMonitoredSubscriptionResource GetNewRelicMonitoredSubscri NewRelicMonitoredSubscriptionResource.ValidateResourceId(id); return new NewRelicMonitoredSubscriptionResource(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 NewRelicObservabilityTagRuleResource GetNewRelicObservabilityTagRuleResource(ResourceIdentifier id) + { + NewRelicObservabilityTagRuleResource.ValidateResourceId(id); + return new NewRelicObservabilityTagRuleResource(Client, id); + } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityResourceGroupResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityResourceGroupResource.cs index bff2e5c1e4e7..772e4dcdb874 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityResourceGroupResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilityResourceGroupResource.cs @@ -41,7 +41,7 @@ public virtual NewRelicMonitorResourceCollection GetNewRelicMonitorResources() } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -53,7 +53,7 @@ public virtual NewRelicMonitorResourceCollection GetNewRelicMonitorResources() /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -72,7 +72,7 @@ public virtual async Task> GetNewRelicMonitorR } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -84,7 +84,7 @@ public virtual async Task> GetNewRelicMonitorR /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs index 57f5087b7a1a..d025ed047fb9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs @@ -7,6 +7,7 @@ using System; using System.Threading; +using System.Threading.Tasks; using Autorest.CSharp.Core; using Azure.Core; using Azure.Core.Pipeline; @@ -19,6 +20,8 @@ public partial class MockableNewRelicObservabilitySubscriptionResource : ArmReso { private ClientDiagnostics _accountsClientDiagnostics; private AccountsRestOperations _accountsRestClient; + private ClientDiagnostics _saaSClientDiagnostics; + private SaaSRestOperations _saaSRestClient; private ClientDiagnostics _newRelicMonitorResourceMonitorsClientDiagnostics; private MonitorsRestOperations _newRelicMonitorResourceMonitorsRestClient; private ClientDiagnostics _organizationsClientDiagnostics; @@ -40,6 +43,8 @@ internal MockableNewRelicObservabilitySubscriptionResource(ArmClient client, Res private ClientDiagnostics AccountsClientDiagnostics => _accountsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", ProviderConstants.DefaultProviderNamespace, Diagnostics); private AccountsRestOperations AccountsRestClient => _accountsRestClient ??= new AccountsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + private ClientDiagnostics SaaSClientDiagnostics => _saaSClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private SaaSRestOperations SaaSRestClient => _saaSRestClient ??= new SaaSRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics NewRelicMonitorResourceMonitorsClientDiagnostics => _newRelicMonitorResourceMonitorsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", NewRelicMonitorResource.ResourceType.Namespace, Diagnostics); private MonitorsRestOperations NewRelicMonitorResourceMonitorsRestClient => _newRelicMonitorResourceMonitorsRestClient ??= new MonitorsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(NewRelicMonitorResource.ResourceType)); private ClientDiagnostics OrganizationsClientDiagnostics => _organizationsClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -54,7 +59,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) } /// - /// List all the existing accounts + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created /// /// /// Request Path @@ -66,7 +71,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -85,7 +90,7 @@ public virtual AsyncPageable GetNewRelicAccountsAsy } /// - /// List all the existing accounts + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created /// /// /// Request Path @@ -97,7 +102,7 @@ public virtual AsyncPageable GetNewRelicAccountsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -116,7 +121,83 @@ public virtual Pageable GetNewRelicAccounts(string } /// - /// List NewRelicMonitorResource resources by subscription ID + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> ActivateResourceSaaSAsync(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); + scope.Start(); + try + { + var response = await SaaSRestClient.ActivateResourceAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual Response ActivateResourceSaaS(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); + scope.Start(); + try + { + var response = SaaSRestClient.ActivateResource(Id.SubscriptionId, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Lists all New Relic monitor resources either within a specific subscription /// /// /// Request Path @@ -128,7 +209,7 @@ public virtual Pageable GetNewRelicAccounts(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -146,7 +227,7 @@ public virtual AsyncPageable GetNewRelicMonitorResource } /// - /// List NewRelicMonitorResource resources by subscription ID + /// Lists all New Relic monitor resources either within a specific subscription /// /// /// Request Path @@ -158,7 +239,7 @@ public virtual AsyncPageable GetNewRelicMonitorResource /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -176,7 +257,7 @@ public virtual Pageable GetNewRelicMonitorResources(Can } /// - /// List all the existing organizations + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created /// /// /// Request Path @@ -188,7 +269,7 @@ public virtual Pageable GetNewRelicMonitorResources(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -207,7 +288,7 @@ public virtual AsyncPageable GetNewRelicOrgani } /// - /// List all the existing organizations + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created /// /// /// Request Path @@ -219,7 +300,7 @@ public virtual AsyncPageable GetNewRelicOrgani /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -238,7 +319,7 @@ public virtual Pageable GetNewRelicOrganizatio } /// - /// List plans data + /// Lists the plans data linked to your organization, providing an overview of the available plans /// /// /// Request Path @@ -250,7 +331,7 @@ public virtual Pageable GetNewRelicOrganizatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -266,7 +347,7 @@ public virtual AsyncPageable GetNewRelicPlansAsync(string acco } /// - /// List plans data + /// Lists the plans data linked to your organization, providing an overview of the available plans /// /// /// Request Path @@ -278,7 +359,7 @@ public virtual AsyncPageable GetNewRelicPlansAsync(string acco /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs index 9e0307b6d16b..e396b87df224 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs @@ -53,41 +53,41 @@ public static NewRelicMonitorResource GetNewRelicMonitorResource(this ArmClient } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NewRelicObservabilityTagRuleResource GetNewRelicObservabilityTagRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NewRelicMonitoredSubscriptionResource GetNewRelicMonitoredSubscriptionResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNewRelicObservabilityArmClient(client).GetNewRelicObservabilityTagRuleResource(id); + return GetMockableNewRelicObservabilityArmClient(client).GetNewRelicMonitoredSubscriptionResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NewRelicMonitoredSubscriptionResource GetNewRelicMonitoredSubscriptionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NewRelicObservabilityTagRuleResource GetNewRelicObservabilityTagRuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNewRelicObservabilityArmClient(client).GetNewRelicMonitoredSubscriptionResource(id); + return GetMockableNewRelicObservabilityArmClient(client).GetNewRelicObservabilityTagRuleResource(id); } /// @@ -108,7 +108,7 @@ public static NewRelicMonitorResourceCollection GetNewRelicMonitorResources(this } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -120,7 +120,7 @@ public static NewRelicMonitorResourceCollection GetNewRelicMonitorResources(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -146,7 +146,7 @@ public static async Task> GetNewRelicMonitorRe } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -158,7 +158,7 @@ public static async Task> GetNewRelicMonitorRe /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -184,7 +184,7 @@ public static Response GetNewRelicMonitorResource(this } /// - /// List all the existing accounts + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created /// /// /// Request Path @@ -196,7 +196,7 @@ public static Response GetNewRelicMonitorResource(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -218,7 +218,7 @@ public static AsyncPageable GetNewRelicAccountsAsyn } /// - /// List all the existing accounts + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created /// /// /// Request Path @@ -230,7 +230,7 @@ public static AsyncPageable GetNewRelicAccountsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -252,7 +252,71 @@ public static Pageable GetNewRelicAccounts(this Sub } /// - /// List NewRelicMonitorResource resources by subscription ID + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The request body. + /// The cancellation token to use. + /// or is null. + public static async Task> ActivateResourceSaaSAsync(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return await GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaSAsync(content, cancellationToken).ConfigureAwait(false); + } + + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The request body. + /// The cancellation token to use. + /// or is null. + public static Response ActivateResourceSaaS(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaS(content, cancellationToken); + } + + /// + /// Lists all New Relic monitor resources either within a specific subscription /// /// /// Request Path @@ -264,7 +328,7 @@ public static Pageable GetNewRelicAccounts(this Sub /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -288,7 +352,7 @@ public static AsyncPageable GetNewRelicMonitorResources } /// - /// List NewRelicMonitorResource resources by subscription ID + /// Lists all New Relic monitor resources either within a specific subscription /// /// /// Request Path @@ -300,7 +364,7 @@ public static AsyncPageable GetNewRelicMonitorResources /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -324,7 +388,7 @@ public static Pageable GetNewRelicMonitorResources(this } /// - /// List all the existing organizations + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created /// /// /// Request Path @@ -336,7 +400,7 @@ public static Pageable GetNewRelicMonitorResources(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -358,7 +422,7 @@ public static AsyncPageable GetNewRelicOrganiz } /// - /// List all the existing organizations + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created /// /// /// Request Path @@ -370,7 +434,7 @@ public static AsyncPageable GetNewRelicOrganiz /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -392,7 +456,7 @@ public static Pageable GetNewRelicOrganization } /// - /// List plans data + /// Lists the plans data linked to your organization, providing an overview of the available plans /// /// /// Request Path @@ -404,7 +468,7 @@ public static Pageable GetNewRelicOrganization /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -426,7 +490,7 @@ public static AsyncPageable GetNewRelicPlansAsync(this Subscri } /// - /// List plans data + /// Lists the plans data linked to your organization, providing an overview of the available plans /// /// /// Request Path @@ -438,7 +502,7 @@ public static AsyncPageable GetNewRelicPlansAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs new file mode 100644 index 000000000000..b80d80ed9e09 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs @@ -0,0 +1,134 @@ +// 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.NewRelicObservability.Models +{ + public partial class ActivateSaaSParameterContent : 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(ActivateSaaSParameterContent)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("saasGuid"u8); + writer.WriteStringValue(SaasGuid); + writer.WritePropertyName("publisherId"u8); + writer.WriteStringValue(PublisherId); + 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 + } + } + } + + ActivateSaaSParameterContent 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(ActivateSaaSParameterContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeActivateSaaSParameterContent(document.RootElement, options); + } + + internal static ActivateSaaSParameterContent DeserializeActivateSaaSParameterContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Guid saasGuid = default; + string publisherId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("saasGuid"u8)) + { + saasGuid = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("publisherId"u8)) + { + publisherId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ActivateSaaSParameterContent(saasGuid, publisherId, 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, AzureResourceManagerNewRelicObservabilityContext.Default); + default: + throw new FormatException($"The model {nameof(ActivateSaaSParameterContent)} does not support writing '{options.Format}' format."); + } + } + + ActivateSaaSParameterContent 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 DeserializeActivateSaaSParameterContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ActivateSaaSParameterContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs new file mode 100644 index 000000000000..bc12bee5d13d --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NewRelicObservability.Models +{ + /// + /// SaaS guid & PublishedId for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest + /// + public partial class ActivateSaaSParameterContent + { + /// + /// 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 . + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// + /// is null. + public ActivateSaaSParameterContent(Guid saasGuid, string publisherId) + { + Argument.AssertNotNull(publisherId, nameof(publisherId)); + + SaasGuid = saasGuid; + PublisherId = publisherId; + } + + /// Initializes a new instance of . + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// + /// Keeps track of any properties unknown to the library. + internal ActivateSaaSParameterContent(Guid saasGuid, string publisherId, IDictionary serializedAdditionalRawData) + { + SaasGuid = saasGuid; + PublisherId = publisherId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ActivateSaaSParameterContent() + { + } + + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// + [WirePath("saasGuid")] + public Guid SaasGuid { get; } + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// + [WirePath("publisherId")] + public string PublisherId { get; } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs index ef471e297623..910a8035e1a6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NewRelicObservability /// Context class which will be filled in by the System.ClientModel.SourceGeneration. /// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md' /// + [ModelReaderWriterBuildable(typeof(ActivateSaaSParameterContent))] [ModelReaderWriterBuildable(typeof(ConnectedPartnerResourcesListResponse))] [ModelReaderWriterBuildable(typeof(LinkedResourceListResponse))] [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] @@ -30,6 +31,7 @@ namespace Azure.ResourceManager.NewRelicObservability [ModelReaderWriterBuildable(typeof(NewRelicConnectedPartnerResourceInfo))] [ModelReaderWriterBuildable(typeof(NewRelicConnectedPartnerResourceProperties))] [ModelReaderWriterBuildable(typeof(NewRelicHostsGetContent))] + [ModelReaderWriterBuildable(typeof(NewRelicLatestLinkedSaaSResult))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsContent))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsStatusContent))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsStatusResult))] @@ -63,6 +65,9 @@ namespace Azure.ResourceManager.NewRelicObservability [ModelReaderWriterBuildable(typeof(NewRelicPlanDataListResult))] [ModelReaderWriterBuildable(typeof(NewRelicPlanDetails))] [ModelReaderWriterBuildable(typeof(NewRelicResourceMonitorResult))] + [ModelReaderWriterBuildable(typeof(NewRelicResubscribeProperties))] + [ModelReaderWriterBuildable(typeof(NewRelicSaaSDataDetails))] + [ModelReaderWriterBuildable(typeof(NewRelicSaaSResourceDetailsResult))] [ModelReaderWriterBuildable(typeof(NewRelicSingleSignOnProperties))] [ModelReaderWriterBuildable(typeof(NewRelicSwitchBillingContent))] [ModelReaderWriterBuildable(typeof(PartnerBillingEntity))] diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.Serialization.cs index 26aded4b773e..367f7e765756 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.Serialization.cs @@ -36,20 +36,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ConnectedPartnerResourcesListResponse)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -89,17 +86,13 @@ internal static ConnectedPartnerResourcesListResponse DeserializeConnectedPartne return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -110,7 +103,11 @@ internal static ConnectedPartnerResourcesListResponse DeserializeConnectedPartne } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -119,7 +116,7 @@ internal static ConnectedPartnerResourcesListResponse DeserializeConnectedPartne } } serializedAdditionalRawData = rawDataDictionary; - return new ConnectedPartnerResourcesListResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new ConnectedPartnerResourcesListResponse(value, nextLink, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -167,15 +164,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) if (Optional.IsDefined(NextLink)) { builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } + builder.AppendLine($"'{NextLink.AbsoluteUri}'"); } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs index 0283591027dc..4be419c4c02d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// List of all active newrelic deployments. + /// + /// List of all active newrelic deployments. + /// Serialized Name: ConnectedPartnerResourcesListResponse + /// internal partial class ConnectedPartnerResourcesListResponse { /// @@ -46,25 +50,49 @@ internal partial class ConnectedPartnerResourcesListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal ConnectedPartnerResourcesListResponse() + /// + /// The ConnectedPartnerResourcesListFormat items on this page + /// Serialized Name: ConnectedPartnerResourcesListResponse.value + /// + /// is null. + internal ConnectedPartnerResourcesListResponse(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// Results of a list operation. - /// Link to the next set of results, if any. + /// + /// The ConnectedPartnerResourcesListFormat items on this page + /// Serialized Name: ConnectedPartnerResourcesListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: ConnectedPartnerResourcesListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. - internal ConnectedPartnerResourcesListResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal ConnectedPartnerResourcesListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Results of a list operation. + /// Initializes a new instance of for deserialization. + internal ConnectedPartnerResourcesListResponse() + { + } + + /// + /// The ConnectedPartnerResourcesListFormat items on this page + /// Serialized Name: ConnectedPartnerResourcesListResponse.value + /// public IReadOnlyList Value { get; } - /// Link to the next set of results, if any. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: ConnectedPartnerResourcesListResponse.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.Serialization.cs index 744ccbb59e1a..bcd1c83ffd13 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.Serialization.cs @@ -37,20 +37,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LinkedResourceListResponse)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - ((IJsonModel)item).Write(writer, options); - } - writer.WriteEndArray(); + ((IJsonModel)item).Write(writer, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -90,17 +87,13 @@ internal static LinkedResourceListResponse DeserializeLinkedResourceListResponse return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -111,7 +104,11 @@ internal static LinkedResourceListResponse DeserializeLinkedResourceListResponse } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -120,7 +117,7 @@ internal static LinkedResourceListResponse DeserializeLinkedResourceListResponse } } serializedAdditionalRawData = rawDataDictionary; - return new LinkedResourceListResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new LinkedResourceListResponse(value, nextLink, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -168,15 +165,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) if (Optional.IsDefined(NextLink)) { builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } + builder.AppendLine($"'{NextLink.AbsoluteUri}'"); } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs index 0c73823cbae3..055a5f23da4a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs @@ -7,11 +7,15 @@ using System; using System.Collections.Generic; +using System.Linq; using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of a list operation. + /// + /// Response of a list operation. + /// Serialized Name: LinkedResourceListResponse + /// internal partial class LinkedResourceListResponse { /// @@ -47,25 +51,49 @@ internal partial class LinkedResourceListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal LinkedResourceListResponse() + /// + /// The LinkedResource items on this page + /// Serialized Name: LinkedResourceListResponse.value + /// + /// is null. + internal LinkedResourceListResponse(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// Results of a list operation. - /// Link to the next set of results, if any. + /// + /// The LinkedResource items on this page + /// Serialized Name: LinkedResourceListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: LinkedResourceListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. - internal LinkedResourceListResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal LinkedResourceListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Results of a list operation. + /// Initializes a new instance of for deserialization. + internal LinkedResourceListResponse() + { + } + + /// + /// The LinkedResource items on this page + /// Serialized Name: LinkedResourceListResponse.value + /// public IReadOnlyList Value { get; } - /// Link to the next set of results, if any. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: LinkedResourceListResponse.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.Serialization.cs index 1d86d25844ee..acecf169bca0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.Serialization.cs @@ -60,6 +60,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("billedAzureSubscriptionId"u8); writer.WriteStringValue(BilledAzureSubscriptionId); } + if (Optional.IsDefined(PublisherId)) + { + writer.WritePropertyName("publisherId"u8); + writer.WriteStringValue(PublisherId); + } + if (Optional.IsDefined(OfferId)) + { + writer.WritePropertyName("offerId"u8); + writer.WriteStringValue(OfferId); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -102,6 +112,8 @@ internal static MarketplaceSaaSInfo DeserializeMarketplaceSaaSInfo(JsonElement e string marketplaceResourceId = default; string marketplaceStatus = default; string billedAzureSubscriptionId = default; + string publisherId = default; + string offerId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -131,6 +143,16 @@ internal static MarketplaceSaaSInfo DeserializeMarketplaceSaaSInfo(JsonElement e billedAzureSubscriptionId = property.Value.GetString(); continue; } + if (property.NameEquals("publisherId"u8)) + { + publisherId = property.Value.GetString(); + continue; + } + if (property.NameEquals("offerId"u8)) + { + offerId = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -143,6 +165,8 @@ internal static MarketplaceSaaSInfo DeserializeMarketplaceSaaSInfo(JsonElement e marketplaceResourceId, marketplaceStatus, billedAzureSubscriptionId, + publisherId, + offerId, serializedAdditionalRawData); } @@ -272,6 +296,52 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PublisherId), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" publisherId: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(PublisherId)) + { + builder.Append(" publisherId: "); + if (PublisherId.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{PublisherId}'''"); + } + else + { + builder.AppendLine($"'{PublisherId}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(OfferId), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" offerId: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(OfferId)) + { + builder.Append(" offerId: "); + if (OfferId.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{OfferId}'''"); + } + else + { + builder.AppendLine($"'{OfferId}'"); + } + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs index 11fd3ca1b125..2ebdbb978741 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Marketplace SAAS Info of the resource. + /// + /// Marketplace SAAS Info of the resource. + /// Serialized Name: MarketplaceSaaSInfo + /// public partial class MarketplaceSaaSInfo { /// @@ -51,36 +54,88 @@ internal MarketplaceSaaSInfo() } /// Initializes a new instance of . - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Marketplace Subscription Details: SAAS Name. - /// Marketplace Subscription Details: Resource URI. - /// Marketplace Subscription Details: SaaS Subscription Status. - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId + /// + /// + /// Marketplace Subscription Details: SAAS Name + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName + /// + /// + /// Marketplace Subscription Details: Resource URI + /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId + /// + /// + /// Marketplace Subscription Details: SaaS Subscription Status + /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus + /// + /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId + /// + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// /// Keeps track of any properties unknown to the library. - internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId, IDictionary serializedAdditionalRawData) + internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) { MarketplaceSubscriptionId = marketplaceSubscriptionId; MarketplaceSubscriptionName = marketplaceSubscriptionName; MarketplaceResourceId = marketplaceResourceId; MarketplaceStatus = marketplaceStatus; BilledAzureSubscriptionId = billedAzureSubscriptionId; + PublisherId = publisherId; + OfferId = offerId; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Marketplace Subscription Id. This is a GUID-formatted string. + /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId + /// [WirePath("marketplaceSubscriptionId")] public string MarketplaceSubscriptionId { get; } - /// Marketplace Subscription Details: SAAS Name. + /// + /// Marketplace Subscription Details: SAAS Name + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName + /// [WirePath("marketplaceSubscriptionName")] public string MarketplaceSubscriptionName { get; } - /// Marketplace Subscription Details: Resource URI. + /// + /// Marketplace Subscription Details: Resource URI + /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId + /// [WirePath("marketplaceResourceId")] public string MarketplaceResourceId { get; } - /// Marketplace Subscription Details: SaaS Subscription Status. + /// + /// Marketplace Subscription Details: SaaS Subscription Status + /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus + /// [WirePath("marketplaceStatus")] public string MarketplaceStatus { get; } - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId + /// [WirePath("billedAzureSubscriptionId")] public string BilledAzureSubscriptionId { get; } + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// + [WirePath("publisherId")] + public string PublisherId { get; } + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// + [WirePath("offerId")] + public string OfferId { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs index 48306016a179..5df34293de54 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The MonitoredSubscriptionConfigurationName. + /// + /// The MonitoredSubscriptionConfigurationName. + /// Serialized Name: ConfigurationName + /// public readonly partial struct MonitoredSubscriptionConfigurationName : IEquatable { private readonly string _value; @@ -24,7 +27,10 @@ public MonitoredSubscriptionConfigurationName(string value) private const string DefaultValue = "default"; - /// default. + /// + /// default + /// Serialized Name: ConfigurationName.default + /// public static MonitoredSubscriptionConfigurationName Default { get; } = new MonitoredSubscriptionConfigurationName(DefaultValue); /// Determines if two values are the same. public static bool operator ==(MonitoredSubscriptionConfigurationName left, MonitoredSubscriptionConfigurationName right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs index 346bea733cd2..73ac2c7f0d5d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The operation for the patch on the resource. + /// + /// The operation for the patch on the resource. + /// Serialized Name: PatchOperation + /// public readonly partial struct MonitoredSubscriptionPatchOperation : IEquatable { private readonly string _value; @@ -28,15 +31,30 @@ public MonitoredSubscriptionPatchOperation(string value) private const string DeleteCompleteValue = "DeleteComplete"; private const string ActiveValue = "Active"; - /// AddBegin. + /// + /// AddBegin + /// Serialized Name: PatchOperation.AddBegin + /// public static MonitoredSubscriptionPatchOperation AddBegin { get; } = new MonitoredSubscriptionPatchOperation(AddBeginValue); - /// AddComplete. + /// + /// AddComplete + /// Serialized Name: PatchOperation.AddComplete + /// public static MonitoredSubscriptionPatchOperation AddComplete { get; } = new MonitoredSubscriptionPatchOperation(AddCompleteValue); - /// DeleteBegin. + /// + /// DeleteBegin + /// Serialized Name: PatchOperation.DeleteBegin + /// public static MonitoredSubscriptionPatchOperation DeleteBegin { get; } = new MonitoredSubscriptionPatchOperation(DeleteBeginValue); - /// DeleteComplete. + /// + /// DeleteComplete + /// Serialized Name: PatchOperation.DeleteComplete + /// public static MonitoredSubscriptionPatchOperation DeleteComplete { get; } = new MonitoredSubscriptionPatchOperation(DeleteCompleteValue); - /// Active. + /// + /// Active + /// Serialized Name: PatchOperation.Active + /// public static MonitoredSubscriptionPatchOperation Active { get; } = new MonitoredSubscriptionPatchOperation(ActiveValue); /// Determines if two values are the same. public static bool operator ==(MonitoredSubscriptionPatchOperation left, MonitoredSubscriptionPatchOperation right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.Serialization.cs index d96d63cf094d..cc8be3873304 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.Serialization.cs @@ -36,20 +36,17 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(MonitoredSubscriptionPropertiesList)} does not support writing '{format}' format."); } - if (Optional.IsCollectionDefined(Value)) + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); + writer.WriteObjectValue(item, options); } + writer.WriteEndArray(); if (Optional.IsDefined(NextLink)) { writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); + writer.WriteStringValue(NextLink.AbsoluteUri); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -89,17 +86,13 @@ internal static MonitoredSubscriptionPropertiesList DeserializeMonitoredSubscrip return null; } IReadOnlyList value = default; - string nextLink = default; + Uri nextLink = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } List array = new List(); foreach (var item in property.Value.EnumerateArray()) { @@ -110,7 +103,11 @@ internal static MonitoredSubscriptionPropertiesList DeserializeMonitoredSubscrip } if (property.NameEquals("nextLink"u8)) { - nextLink = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = new Uri(property.Value.GetString()); continue; } if (options.Format != "W") @@ -119,7 +116,7 @@ internal static MonitoredSubscriptionPropertiesList DeserializeMonitoredSubscrip } } serializedAdditionalRawData = rawDataDictionary; - return new MonitoredSubscriptionPropertiesList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new MonitoredSubscriptionPropertiesList(value, nextLink, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -167,15 +164,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) if (Optional.IsDefined(NextLink)) { builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } + builder.AppendLine($"'{NextLink.AbsoluteUri}'"); } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs index 83d555882f25..b05489520bd7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The MonitoredSubscriptionPropertiesList. + /// + /// Paged collection of MonitoredSubscriptionProperties items + /// Serialized Name: MonitoredSubscriptionPropertiesList + /// internal partial class MonitoredSubscriptionPropertiesList { /// @@ -46,25 +50,49 @@ internal partial class MonitoredSubscriptionPropertiesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - internal MonitoredSubscriptionPropertiesList() + /// + /// The MonitoredSubscriptionProperties items on this page + /// Serialized Name: MonitoredSubscriptionPropertiesList.value + /// + /// is null. + internal MonitoredSubscriptionPropertiesList(IEnumerable value) { - Value = new ChangeTrackingList(); + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); } /// Initializes a new instance of . - /// - /// The link to the next page of items. + /// + /// The MonitoredSubscriptionProperties items on this page + /// Serialized Name: MonitoredSubscriptionPropertiesList.value + /// + /// + /// The link to the next page of items + /// Serialized Name: MonitoredSubscriptionPropertiesList.nextLink + /// /// Keeps track of any properties unknown to the library. - internal MonitoredSubscriptionPropertiesList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal MonitoredSubscriptionPropertiesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Gets the value. + /// Initializes a new instance of for deserialization. + internal MonitoredSubscriptionPropertiesList() + { + } + + /// + /// The MonitoredSubscriptionProperties items on this page + /// Serialized Name: MonitoredSubscriptionPropertiesList.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. - public string NextLink { get; } + /// + /// The link to the next page of items + /// Serialized Name: MonitoredSubscriptionPropertiesList.nextLink + /// + public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs index ae69a383546e..89d3b9936778 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Properties of the NewRelic account. + /// + /// Properties of the NewRelic account + /// Serialized Name: NewRelicAccountProperties + /// public partial class NewRelicAccountProperties { /// @@ -51,10 +54,22 @@ public NewRelicAccountProperties() } /// Initializes a new instance of . - /// User id. - /// NewRelic Account Information. - /// NewRelic Organization Information. - /// date when plan was applied. + /// + /// User id + /// Serialized Name: NewRelicAccountProperties.userId + /// + /// + /// NewRelic Account Information + /// Serialized Name: NewRelicAccountProperties.accountInfo + /// + /// + /// NewRelic Organization Information + /// Serialized Name: NewRelicAccountProperties.organizationInfo + /// + /// + /// date when plan was applied + /// Serialized Name: NewRelicAccountProperties.singleSignOnProperties + /// /// Keeps track of any properties unknown to the library. internal NewRelicAccountProperties(string userId, NewRelicObservabilityAccountInfo accountInfo, NewRelicObservabilityOrganizationInfo organizationInfo, NewRelicSingleSignOnProperties singleSignOnProperties, IDictionary serializedAdditionalRawData) { @@ -65,15 +80,27 @@ internal NewRelicAccountProperties(string userId, NewRelicObservabilityAccountIn _serializedAdditionalRawData = serializedAdditionalRawData; } - /// User id. + /// + /// User id + /// Serialized Name: NewRelicAccountProperties.userId + /// [WirePath("userId")] public string UserId { get; set; } - /// NewRelic Account Information. + /// + /// NewRelic Account Information + /// Serialized Name: NewRelicAccountProperties.accountInfo + /// [WirePath("accountInfo")] public NewRelicObservabilityAccountInfo AccountInfo { get; set; } - /// NewRelic Organization Information. + /// + /// NewRelic Organization Information + /// Serialized Name: NewRelicAccountProperties.organizationInfo + /// internal NewRelicObservabilityOrganizationInfo OrganizationInfo { get; set; } - /// Organization id. + /// + /// Organization id + /// Serialized Name: OrganizationInfo.organizationId + /// [WirePath("organizationInfo.organizationId")] public string OrganizationId { @@ -86,7 +113,10 @@ public string OrganizationId } } - /// date when plan was applied. + /// + /// date when plan was applied + /// Serialized Name: NewRelicAccountProperties.singleSignOnProperties + /// [WirePath("singleSignOnProperties")] public NewRelicSingleSignOnProperties SingleSignOnProperties { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs index 7f2af3d44fb6..d3dc5e12aea0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The details of a account resource. + /// + /// The details of a account resource. + /// Serialized Name: AccountResource + /// public partial class NewRelicAccountResourceData : ResourceData { /// @@ -57,10 +60,22 @@ public NewRelicAccountResourceData() /// The name. /// The resourceType. /// The systemData. - /// organization id. - /// account id. - /// account name. - /// Region where New Relic account is present. + /// + /// organization id + /// Serialized Name: AccountResource.properties.organizationId + /// + /// + /// account id + /// Serialized Name: AccountResource.properties.accountId + /// + /// + /// account name + /// Serialized Name: AccountResource.properties.accountName + /// + /// + /// Region where New Relic account is present + /// Serialized Name: AccountResource.properties.region + /// /// Keeps track of any properties unknown to the library. internal NewRelicAccountResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string organizationId, string accountId, string accountName, AzureLocation? region, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -71,16 +86,28 @@ internal NewRelicAccountResourceData(ResourceIdentifier id, string name, Resourc _serializedAdditionalRawData = serializedAdditionalRawData; } - /// organization id. + /// + /// organization id + /// Serialized Name: AccountResource.properties.organizationId + /// [WirePath("properties.organizationId")] public string OrganizationId { get; set; } - /// account id. + /// + /// account id + /// Serialized Name: AccountResource.properties.accountId + /// [WirePath("properties.accountId")] public string AccountId { get; set; } - /// account name. + /// + /// account name + /// Serialized Name: AccountResource.properties.accountName + /// [WirePath("properties.accountName")] public string AccountName { get; set; } - /// Region where New Relic account is present. + /// + /// Region where New Relic account is present + /// Serialized Name: AccountResource.properties.region + /// [WirePath("properties.region")] public AzureLocation? Region { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs index 5ee5c6d20e86..a47beb2f92ab 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of get all accounts Operation. + /// + /// Response of get all accounts Operation. + /// Serialized Name: AccountsListResponse + /// internal partial class NewRelicAccountsListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicAccountsListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The AccountResource items on this page. + /// + /// The AccountResource items on this page + /// Serialized Name: AccountsListResponse.value + /// /// is null. internal NewRelicAccountsListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicAccountsListResult(IEnumerable val } /// Initializes a new instance of . - /// The AccountResource items on this page. - /// The link to the next page of items. + /// + /// The AccountResource items on this page + /// Serialized Name: AccountsListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: AccountsListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicAccountsListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicAccountsListResult() { } - /// The AccountResource items on this page. + /// + /// The AccountResource items on this page + /// Serialized Name: AccountsListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: AccountsListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs index 0154670c0347..f1a1969b6a55 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Request of a app services get Operation. + /// + /// Request of a app services get Operation. + /// Serialized Name: AppServicesGetRequest + /// public partial class NewRelicAppServicesGetContent { /// @@ -47,7 +50,10 @@ public partial class NewRelicAppServicesGetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: AppServicesGetRequest.userEmail + /// /// is null. public NewRelicAppServicesGetContent(string userEmail) { @@ -58,8 +64,14 @@ public NewRelicAppServicesGetContent(string userEmail) } /// Initializes a new instance of . - /// Azure resource IDs. - /// User Email. + /// + /// Azure resource IDs + /// Serialized Name: AppServicesGetRequest.azureResourceIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: AppServicesGetRequest.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicAppServicesGetContent(IList azureResourceIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -73,10 +85,16 @@ internal NewRelicAppServicesGetContent() { } - /// Azure resource IDs. + /// + /// Azure resource IDs + /// Serialized Name: AppServicesGetRequest.azureResourceIds + /// [WirePath("azureResourceIds")] public IList AzureResourceIds { get; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: AppServicesGetRequest.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs index 68949c8c3cee..18bfa08fd90a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of a list app services Operation. + /// + /// Response of a list app services Operation. + /// Serialized Name: AppServicesListResponse + /// internal partial class NewRelicAppServicesListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicAppServicesListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The AppServiceInfo items on this page. + /// + /// The AppServiceInfo items on this page + /// Serialized Name: AppServicesListResponse.value + /// /// is null. internal NewRelicAppServicesListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicAppServicesListResult(IEnumerable Initializes a new instance of . - /// The AppServiceInfo items on this page. - /// The link to the next page of items. + /// + /// The AppServiceInfo items on this page + /// Serialized Name: AppServicesListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: AppServicesListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicAppServicesListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicAppServicesListResult() { } - /// The AppServiceInfo items on this page. + /// + /// The AppServiceInfo items on this page + /// Serialized Name: AppServicesListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: AppServicesListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs index 29052bfb9d9c..2dad91765dd1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Marketplace Subscription and Organization details to which resource gets billed into. + /// + /// Marketplace Subscription and Organization details to which resource gets billed into. + /// Serialized Name: BillingInfoResponse + /// public partial class NewRelicBillingInfoResult { /// @@ -51,8 +54,14 @@ internal NewRelicBillingInfoResult() } /// Initializes a new instance of . - /// Marketplace Subscription details. - /// Partner Billing Entity details: Organization Info. + /// + /// Marketplace Subscription details + /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo + /// + /// + /// Partner Billing Entity details: Organization Info + /// Serialized Name: BillingInfoResponse.partnerBillingEntity + /// /// Keeps track of any properties unknown to the library. internal NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo, PartnerBillingEntity partnerBillingEntity, IDictionary serializedAdditionalRawData) { @@ -61,10 +70,16 @@ internal NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo, Part _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Marketplace Subscription details. + /// + /// Marketplace Subscription details + /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo + /// [WirePath("marketplaceSaasInfo")] public MarketplaceSaaSInfo MarketplaceSaasInfo { get; } - /// Partner Billing Entity details: Organization Info. + /// + /// Partner Billing Entity details: Organization Info + /// Serialized Name: BillingInfoResponse.partnerBillingEntity + /// [WirePath("partnerBillingEntity")] public PartnerBillingEntity PartnerBillingEntity { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs index 032c798cd92c..fb5b94a40dcd 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Connected Partner Resources List Format. + /// + /// Connected Partner Resources List Format + /// Serialized Name: ConnectedPartnerResourcesListFormat + /// public partial class NewRelicConnectedPartnerResourceInfo { /// @@ -51,7 +54,10 @@ internal NewRelicConnectedPartnerResourceInfo() } /// Initializes a new instance of . - /// Connected Partner Resource Properties. + /// + /// Connected Partner Resource Properties + /// Serialized Name: ConnectedPartnerResourcesListFormat.properties + /// /// Keeps track of any properties unknown to the library. internal NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourceProperties properties, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourcePr _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Connected Partner Resource Properties. + /// + /// Connected Partner Resource Properties + /// Serialized Name: ConnectedPartnerResourcesListFormat.properties + /// [WirePath("properties")] public NewRelicConnectedPartnerResourceProperties Properties { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs index db157cc54d22..8c18368c3377 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Connected Partner Resource Properties. + /// + /// Connected Partner Resource Properties + /// Serialized Name: ConnectedPartnerResourceProperties + /// public partial class NewRelicConnectedPartnerResourceProperties { /// @@ -52,10 +55,22 @@ internal NewRelicConnectedPartnerResourceProperties() } /// Initializes a new instance of . - /// NewRelic account name. - /// NewRelic Account Id. - /// The azure resource Id of the deployment. - /// The location of the deployment. + /// + /// NewRelic account name + /// Serialized Name: ConnectedPartnerResourceProperties.accountName + /// + /// + /// NewRelic Account Id + /// Serialized Name: ConnectedPartnerResourceProperties.accountId + /// + /// + /// The azure resource Id of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId + /// + /// + /// The location of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.location + /// /// Keeps track of any properties unknown to the library. internal NewRelicConnectedPartnerResourceProperties(string accountName, string accountId, string azureResourceId, AzureLocation? location, IDictionary serializedAdditionalRawData) { @@ -66,16 +81,28 @@ internal NewRelicConnectedPartnerResourceProperties(string accountName, string a _serializedAdditionalRawData = serializedAdditionalRawData; } - /// NewRelic account name. + /// + /// NewRelic account name + /// Serialized Name: ConnectedPartnerResourceProperties.accountName + /// [WirePath("accountName")] public string AccountName { get; } - /// NewRelic Account Id. + /// + /// NewRelic Account Id + /// Serialized Name: ConnectedPartnerResourceProperties.accountId + /// [WirePath("accountId")] public string AccountId { get; } - /// The azure resource Id of the deployment. + /// + /// The azure resource Id of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId + /// [WirePath("azureResourceId")] public string AzureResourceId { get; } - /// The location of the deployment. + /// + /// The location of the deployment. + /// Serialized Name: ConnectedPartnerResourceProperties.location + /// [WirePath("location")] public AzureLocation? Location { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs index 299b39f08b8d..c8e0c7ba8eba 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Request of a Hosts get Operation. + /// + /// Request of a Hosts get Operation. + /// Serialized Name: HostsGetRequest + /// public partial class NewRelicHostsGetContent { /// @@ -47,7 +50,10 @@ public partial class NewRelicHostsGetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: HostsGetRequest.userEmail + /// /// is null. public NewRelicHostsGetContent(string userEmail) { @@ -58,8 +64,14 @@ public NewRelicHostsGetContent(string userEmail) } /// Initializes a new instance of . - /// VM resource IDs. - /// User Email. + /// + /// VM resource IDs + /// Serialized Name: HostsGetRequest.vmIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: HostsGetRequest.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicHostsGetContent(IList vmIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -73,10 +85,16 @@ internal NewRelicHostsGetContent() { } - /// VM resource IDs. + /// + /// VM resource IDs + /// Serialized Name: HostsGetRequest.vmIds + /// [WirePath("vmIds")] public IList VmIds { get; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: HostsGetRequest.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs new file mode 100644 index 000000000000..3c248e11908e --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs @@ -0,0 +1,197 @@ +// 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.NewRelicObservability.Models +{ + public partial class NewRelicLatestLinkedSaaSResult : 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(NewRelicLatestLinkedSaaSResult)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(SaaSResourceId)) + { + writer.WritePropertyName("saaSResourceId"u8); + writer.WriteStringValue(SaaSResourceId); + } + if (Optional.IsDefined(IsHiddenSaaS)) + { + writer.WritePropertyName("isHiddenSaaS"u8); + writer.WriteBooleanValue(IsHiddenSaaS.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 + } + } + } + + NewRelicLatestLinkedSaaSResult 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(NewRelicLatestLinkedSaaSResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement, options); + } + + internal static NewRelicLatestLinkedSaaSResult DeserializeNewRelicLatestLinkedSaaSResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier saaSResourceId = default; + bool? isHiddenSaaS = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("saaSResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("isHiddenSaaS"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isHiddenSaaS = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NewRelicLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, 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(SaaSResourceId), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" saaSResourceId: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(SaaSResourceId)) + { + builder.Append(" saaSResourceId: "); + builder.AppendLine($"'{SaaSResourceId.ToString()}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsHiddenSaaS), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" isHiddenSaaS: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(IsHiddenSaaS)) + { + builder.Append(" isHiddenSaaS: "); + var boolValue = IsHiddenSaaS.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + + 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, AzureResourceManagerNewRelicObservabilityContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(NewRelicLatestLinkedSaaSResult)} does not support writing '{options.Format}' format."); + } + } + + NewRelicLatestLinkedSaaSResult 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 DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NewRelicLatestLinkedSaaSResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs new file mode 100644 index 000000000000..af366bffab43 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs @@ -0,0 +1,87 @@ +// 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.NewRelicObservability.Models +{ + /// + /// Response of get latest linked SaaS resource operation + /// Serialized Name: LatestLinkedSaaSResponse + /// + public partial class NewRelicLatestLinkedSaaSResult + { + /// + /// 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 NewRelicLatestLinkedSaaSResult() + { + } + + /// Initializes a new instance of . + /// + /// SaaS resource id + /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId + /// + /// + /// Flag indicating if the SaaS resource is hidden + /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS + /// + /// Keeps track of any properties unknown to the library. + internal NewRelicLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId, bool? isHiddenSaaS, IDictionary serializedAdditionalRawData) + { + SaaSResourceId = saaSResourceId; + IsHiddenSaaS = isHiddenSaaS; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// + /// SaaS resource id + /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId + /// + [WirePath("saaSResourceId")] + public ResourceIdentifier SaaSResourceId { get; } + /// + /// Flag indicating if the SaaS resource is hidden + /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS + /// + [WirePath("isHiddenSaaS")] + public bool? IsHiddenSaaS { get; } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs index 981e5dad2b60..1d04baa4761f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Liftr Resource category. + /// + /// Liftr Resource category. + /// Serialized Name: LiftrResourceCategories + /// public readonly partial struct NewRelicLiftrResourceCategory : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicLiftrResourceCategory(string value) private const string UnknownValue = "Unknown"; private const string MonitorLogsValue = "MonitorLogs"; - /// Unknown. + /// + /// Unknown + /// Serialized Name: LiftrResourceCategories.Unknown + /// public static NewRelicLiftrResourceCategory Unknown { get; } = new NewRelicLiftrResourceCategory(UnknownValue); - /// MonitorLogs. + /// + /// MonitorLogs + /// Serialized Name: LiftrResourceCategories.MonitorLogs + /// public static NewRelicLiftrResourceCategory MonitorLogs { get; } = new NewRelicLiftrResourceCategory(MonitorLogsValue); /// Determines if two values are the same. public static bool operator ==(NewRelicLiftrResourceCategory left, NewRelicLiftrResourceCategory right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs index 8614eddb2737..e35920027989 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Request of get metrics Operation. + /// + /// Request of get metrics Operation. + /// Serialized Name: MetricsRequest + /// public partial class NewRelicMetricsContent { /// @@ -46,7 +49,10 @@ public partial class NewRelicMetricsContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsRequest.userEmail + /// /// is null. public NewRelicMetricsContent(string userEmail) { @@ -56,7 +62,10 @@ public NewRelicMetricsContent(string userEmail) } /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsRequest.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicMetricsContent(string userEmail, IDictionary serializedAdditionalRawData) { @@ -69,7 +78,10 @@ internal NewRelicMetricsContent() { } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsRequest.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs index 0b0ae3fe3a5c..ad57e7bec99a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Request of get metrics status Operation. + /// + /// Request of get metrics status Operation. + /// Serialized Name: MetricsStatusRequest + /// public partial class NewRelicMetricsStatusContent { /// @@ -46,7 +49,10 @@ public partial class NewRelicMetricsStatusContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsStatusRequest.userEmail + /// /// is null. public NewRelicMetricsStatusContent(string userEmail) { @@ -57,8 +63,14 @@ public NewRelicMetricsStatusContent(string userEmail) } /// Initializes a new instance of . - /// Azure resource IDs. - /// User Email. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusRequest.azureResourceIds + /// + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsStatusRequest.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicMetricsStatusContent(IList azureResourceIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -72,10 +84,16 @@ internal NewRelicMetricsStatusContent() { } - /// Azure resource IDs. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusRequest.azureResourceIds + /// [WirePath("azureResourceIds")] public IList AzureResourceIds { get; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricsStatusRequest.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs index eec83f0e1a59..4ed4a64b7f3e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of get metrics status Operation. + /// + /// Response of get metrics status Operation. + /// Serialized Name: MetricsStatusResponse + /// public partial class NewRelicMetricsStatusResult { /// @@ -52,7 +55,10 @@ internal NewRelicMetricsStatusResult() } /// Initializes a new instance of . - /// Azure resource IDs. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusResponse.azureResourceIds + /// /// Keeps track of any properties unknown to the library. internal NewRelicMetricsStatusResult(IReadOnlyList azureResourceIds, IDictionary serializedAdditionalRawData) { @@ -60,7 +66,10 @@ internal NewRelicMetricsStatusResult(IReadOnlyList azureResourceIds, IDi _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Azure resource IDs. + /// + /// Azure resource IDs + /// Serialized Name: MetricsStatusResponse.azureResourceIds + /// [WirePath("azureResourceIds")] public IReadOnlyList AzureResourceIds { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs index 177c19221e14..1b9769e597ab 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The response of a NewRelicMonitorResource list operation. + /// + /// The response of a NewRelicMonitorResource list operation. + /// Serialized Name: NewRelicMonitorResourceListResult + /// internal partial class NewRelicMonitorResourceListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicMonitorResourceListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The NewRelicMonitorResource items on this page. + /// + /// The NewRelicMonitorResource items on this page + /// Serialized Name: NewRelicMonitorResourceListResult.value + /// /// is null. internal NewRelicMonitorResourceListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicMonitorResourceListResult(IEnumerable Initializes a new instance of . - /// The NewRelicMonitorResource items on this page. - /// The link to the next page of items. + /// + /// The NewRelicMonitorResource items on this page + /// Serialized Name: NewRelicMonitorResourceListResult.value + /// + /// + /// The link to the next page of items + /// Serialized Name: NewRelicMonitorResourceListResult.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicMonitorResourceListResult() { } - /// The NewRelicMonitorResource items on this page. + /// + /// The NewRelicMonitorResource items on this page + /// Serialized Name: NewRelicMonitorResourceListResult.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: NewRelicMonitorResourceListResult.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.Serialization.cs index a3ee1a346a25..6952d1f22255 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.Serialization.cs @@ -39,7 +39,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); } if (Optional.IsCollectionDefined(Tags)) { @@ -69,6 +69,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("planData"u8); writer.WriteObjectValue(PlanData, options); } + if (Optional.IsDefined(SaaSData)) + { + writer.WritePropertyName("saaSData"u8); + writer.WriteObjectValue(SaaSData, options); + } if (Optional.IsDefined(OrgCreationSource)) { writer.WritePropertyName("orgCreationSource"u8); @@ -122,6 +127,7 @@ internal static NewRelicMonitorResourcePatch DeserializeNewRelicMonitorResourceP NewRelicAccountProperties newRelicAccountProperties = default; NewRelicObservabilityUserInfo userInfo = default; NewRelicPlanDetails planData = default; + NewRelicSaaSDataDetails saaSData = default; NewRelicObservabilityOrgCreationSource? orgCreationSource = default; NewRelicObservabilityAccountCreationSource? accountCreationSource = default; IDictionary serializedAdditionalRawData = default; @@ -134,7 +140,7 @@ internal static NewRelicMonitorResourcePatch DeserializeNewRelicMonitorResourceP { continue; } - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerNewRelicObservabilityContext.Default); + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerNewRelicObservabilityContext.Default); continue; } if (property.NameEquals("tags"u8)) @@ -187,6 +193,15 @@ internal static NewRelicMonitorResourcePatch DeserializeNewRelicMonitorResourceP planData = NewRelicPlanDetails.DeserializeNewRelicPlanDetails(property0.Value, options); continue; } + if (property0.NameEquals("saaSData"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSData = NewRelicSaaSDataDetails.DeserializeNewRelicSaaSDataDetails(property0.Value, options); + continue; + } if (property0.NameEquals("orgCreationSource"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -220,6 +235,7 @@ internal static NewRelicMonitorResourcePatch DeserializeNewRelicMonitorResourceP newRelicAccountProperties, userInfo, planData, + saaSData, orgCreationSource, accountCreationSource, serializedAdditionalRawData); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs index 6ee55d258c76..a779e0ea785b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs @@ -7,11 +7,15 @@ using System; using System.Collections.Generic; +using Azure.Core; using Azure.ResourceManager.Models; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The type used for update operations of the NewRelicMonitorResource. + /// + /// The type used for update operations of the NewRelicMonitorResource. + /// Serialized Name: NewRelicMonitorResourceUpdate + /// public partial class NewRelicMonitorResourcePatch { /// @@ -53,45 +57,113 @@ public NewRelicMonitorResourcePatch() } /// Initializes a new instance of . - /// The managed service identities assigned to this resource. - /// Resource tags. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Source of org creation. - /// Source of account creation. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResourceUpdate.identity + /// + /// + /// Resource tags. + /// Serialized Name: NewRelicMonitorResourceUpdate.tags + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.accountCreationSource + /// /// Keeps track of any properties unknown to the library. - internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictionary tags, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) + internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictionary tags, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicSaaSDataDetails saaSData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) { Identity = identity; Tags = tags; NewRelicAccountProperties = newRelicAccountProperties; UserInfo = userInfo; PlanData = planData; + SaaSData = saaSData; OrgCreationSource = orgCreationSource; AccountCreationSource = accountCreationSource; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The managed service identities assigned to this resource. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResourceUpdate.identity + /// [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } - /// Resource tags. + /// + /// Resource tags. + /// Serialized Name: NewRelicMonitorResourceUpdate.tags + /// [WirePath("tags")] public IDictionary Tags { get; } - /// MarketplaceSubscriptionStatus of the resource. + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.newRelicAccountProperties + /// [WirePath("properties.newRelicAccountProperties")] public NewRelicAccountProperties NewRelicAccountProperties { get; set; } - /// User Info. + /// + /// User Info + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.userInfo + /// [WirePath("properties.userInfo")] public NewRelicObservabilityUserInfo UserInfo { get; set; } - /// Plan details. + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.planData + /// [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// Source of org creation. + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData + /// + internal NewRelicSaaSDataDetails SaaSData { get; set; } + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// + [WirePath("properties.saaSData.saaSResourceId")] + public ResourceIdentifier SaaSResourceId + { + get => SaaSData is null ? default : SaaSData.SaaSResourceId; + set + { + if (SaaSData is null) + SaaSData = new NewRelicSaaSDataDetails(); + SaaSData.SaaSResourceId = value; + } + } + + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource + /// [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// Source of account creation. + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.accountCreationSource + /// [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs index 10d013436cbc..ed46888b792f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// List of all the resources being monitored by NewRelic monitor resource. + /// + /// List of all the resources being monitored by NewRelic monitor resource + /// Serialized Name: MonitoredResourceListResponse + /// internal partial class NewRelicMonitoredResourceListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicMonitoredResourceListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The MonitoredResource items on this page. + /// + /// The MonitoredResource items on this page + /// Serialized Name: MonitoredResourceListResponse.value + /// /// is null. internal NewRelicMonitoredResourceListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicMonitoredResourceListResult(IEnumerable Initializes a new instance of . - /// The MonitoredResource items on this page. - /// The link to the next page of items. + /// + /// The MonitoredResource items on this page + /// Serialized Name: MonitoredResourceListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: MonitoredResourceListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicMonitoredResourceListResult() { } - /// The MonitoredResource items on this page. + /// + /// The MonitoredResource items on this page + /// Serialized Name: MonitoredResourceListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: MonitoredResourceListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs index 8c9c2a70ee41..fc549eb6861b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The list of subscriptions and it's monitoring status by current NewRelic monitor. + /// + /// The list of subscriptions and it's monitoring status by current NewRelic monitor. + /// Serialized Name: MonitoredSubscription + /// public partial class NewRelicMonitoredSubscriptionInfo { /// @@ -51,10 +54,22 @@ public NewRelicMonitoredSubscriptionInfo() } /// Initializes a new instance of . - /// The subscriptionId to be monitored. - /// The state of monitoring. - /// The reason of not monitoring the subscription. - /// The resource-specific properties for this resource. + /// + /// The subscriptionId to be monitored. + /// Serialized Name: MonitoredSubscription.subscriptionId + /// + /// + /// The state of monitoring. + /// Serialized Name: MonitoredSubscription.status + /// + /// + /// The reason of not monitoring the subscription. + /// Serialized Name: MonitoredSubscription.error + /// + /// + /// The resource-specific properties for this resource. + /// Serialized Name: MonitoredSubscription.tagRules + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionInfo(string subscriptionId, NewRelicMonitoringStatus? status, string error, NewRelicMonitoringTagRules tagRules, IDictionary serializedAdditionalRawData) { @@ -65,16 +80,28 @@ internal NewRelicMonitoredSubscriptionInfo(string subscriptionId, NewRelicMonito _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The subscriptionId to be monitored. + /// + /// The subscriptionId to be monitored. + /// Serialized Name: MonitoredSubscription.subscriptionId + /// [WirePath("subscriptionId")] public string SubscriptionId { get; set; } - /// The state of monitoring. + /// + /// The state of monitoring. + /// Serialized Name: MonitoredSubscription.status + /// [WirePath("status")] public NewRelicMonitoringStatus? Status { get; set; } - /// The reason of not monitoring the subscription. + /// + /// The reason of not monitoring the subscription. + /// Serialized Name: MonitoredSubscription.error + /// [WirePath("error")] public string Error { get; set; } - /// The resource-specific properties for this resource. + /// + /// The resource-specific properties for this resource. + /// Serialized Name: MonitoredSubscription.tagRules + /// [WirePath("tagRules")] public NewRelicMonitoringTagRules TagRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs index 9db29e15f365..836cd0982398 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: SubscriptionList + /// public partial class NewRelicMonitoredSubscriptionProperties { /// @@ -52,9 +55,18 @@ public NewRelicMonitoredSubscriptionProperties() } /// Initializes a new instance of . - /// The operation for the patch on the resource. - /// List of subscriptions and the state of the monitoring. - /// Provisioning State of the resource. + /// + /// The operation for the patch on the resource. + /// Serialized Name: SubscriptionList.patchOperation + /// + /// + /// List of subscriptions and the state of the monitoring. + /// Serialized Name: SubscriptionList.monitoredSubscriptionList + /// + /// + /// Provisioning State of the resource + /// Serialized Name: SubscriptionList.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOperation? patchOperation, IList monitoredSubscriptionList, NewRelicProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { @@ -64,13 +76,22 @@ internal NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOpera _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The operation for the patch on the resource. + /// + /// The operation for the patch on the resource. + /// Serialized Name: SubscriptionList.patchOperation + /// [WirePath("patchOperation")] public MonitoredSubscriptionPatchOperation? PatchOperation { get; set; } - /// List of subscriptions and the state of the monitoring. + /// + /// List of subscriptions and the state of the monitoring. + /// Serialized Name: SubscriptionList.monitoredSubscriptionList + /// [WirePath("monitoredSubscriptionList")] public IList MonitoredSubscriptionList { get; } - /// Provisioning State of the resource. + /// + /// Provisioning State of the resource + /// Serialized Name: SubscriptionList.provisioningState + /// [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs index c8a6136e657b..cba5f8ac238a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The state of monitoring. + /// + /// The state of monitoring. + /// Serialized Name: Status + /// public readonly partial struct NewRelicMonitoringStatus : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NewRelicMonitoringStatus(string value) private const string FailedValue = "Failed"; private const string DeletingValue = "Deleting"; - /// InProgress. + /// + /// InProgress + /// Serialized Name: Status.InProgress + /// public static NewRelicMonitoringStatus InProgress { get; } = new NewRelicMonitoringStatus(InProgressValue); - /// Active. + /// + /// Active + /// Serialized Name: Status.Active + /// public static NewRelicMonitoringStatus Active { get; } = new NewRelicMonitoringStatus(ActiveValue); - /// Failed. + /// + /// Failed + /// Serialized Name: Status.Failed + /// public static NewRelicMonitoringStatus Failed { get; } = new NewRelicMonitoringStatus(FailedValue); - /// Deleting. + /// + /// Deleting + /// Serialized Name: Status.Deleting + /// public static NewRelicMonitoringStatus Deleting { get; } = new NewRelicMonitoringStatus(DeletingValue); /// Determines if two values are the same. public static bool operator ==(NewRelicMonitoringStatus left, NewRelicMonitoringStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs index e27f2c656013..ae93cb561b94 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The resource-specific properties for this resource. + /// + /// The resource-specific properties for this resource. + /// Serialized Name: MonitoringTagRulesProperties + /// public partial class NewRelicMonitoringTagRules { /// @@ -51,9 +54,18 @@ public NewRelicMonitoringTagRules() } /// Initializes a new instance of . - /// Provisioning State of the resource. - /// Set of rules for sending logs for the Monitor resource. - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Provisioning State of the resource + /// Serialized Name: MonitoringTagRulesProperties.provisioningState + /// + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.logRules + /// + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.metricRules + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState, NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) { @@ -63,13 +75,22 @@ internal NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Provisioning State of the resource. + /// + /// Provisioning State of the resource + /// Serialized Name: MonitoringTagRulesProperties.provisioningState + /// [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// Set of rules for sending logs for the Monitor resource. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.logRules + /// [WirePath("logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: MonitoringTagRulesProperties.metricRules + /// [WirePath("metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs index b454b4819119..15a498f19db9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Source of Account creation. + /// + /// Source of Account creation + /// Serialized Name: AccountCreationSource + /// public readonly partial struct NewRelicObservabilityAccountCreationSource : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityAccountCreationSource(string value) private const string LiftrValue = "LIFTR"; private const string NewrelicValue = "NEWRELIC"; - /// Account is created from LIFTR. + /// + /// Account is created from LIFTR + /// Serialized Name: AccountCreationSource.LIFTR + /// public static NewRelicObservabilityAccountCreationSource Liftr { get; } = new NewRelicObservabilityAccountCreationSource(LiftrValue); - /// Account is created from NEWRELIC. + /// + /// Account is created from NEWRELIC + /// Serialized Name: AccountCreationSource.NEWRELIC + /// public static NewRelicObservabilityAccountCreationSource Newrelic { get; } = new NewRelicObservabilityAccountCreationSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityAccountCreationSource left, NewRelicObservabilityAccountCreationSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs index 254c3ec8b044..746df9a8daf8 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Account Info of the NewRelic account. + /// + /// Account Info of the NewRelic account + /// Serialized Name: AccountInfo + /// public partial class NewRelicObservabilityAccountInfo { /// @@ -52,9 +55,18 @@ public NewRelicObservabilityAccountInfo() } /// Initializes a new instance of . - /// Account id. - /// ingestion key of account. - /// Region where New Relic account is present. + /// + /// Account id + /// Serialized Name: AccountInfo.accountId + /// + /// + /// Credential string. + /// Serialized Name: AccountInfo.ingestionKey + /// + /// + /// Region where New Relic account is present + /// Serialized Name: AccountInfo.region + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityAccountInfo(string accountId, string ingestionKey, AzureLocation? region, IDictionary serializedAdditionalRawData) { @@ -64,13 +76,22 @@ internal NewRelicObservabilityAccountInfo(string accountId, string ingestionKey, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Account id. + /// + /// Account id + /// Serialized Name: AccountInfo.accountId + /// [WirePath("accountId")] public string AccountId { get; set; } - /// ingestion key of account. + /// + /// Credential string. + /// Serialized Name: AccountInfo.ingestionKey + /// [WirePath("ingestionKey")] public string IngestionKey { get; set; } - /// Region where New Relic account is present. + /// + /// Region where New Relic account is present + /// Serialized Name: AccountInfo.region + /// [WirePath("region")] public AzureLocation? Region { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs index dea3393063e7..b8ba218b8485 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Details of VM Resource having NewRelic OneAgent installed. + /// + /// Details of VM Resource having NewRelic OneAgent installed + /// Serialized Name: AppServiceInfo + /// public partial class NewRelicObservabilityAppServiceInfo { /// @@ -52,9 +55,18 @@ internal NewRelicObservabilityAppServiceInfo() } /// Initializes a new instance of . - /// Azure App service resource ID. - /// Version of the NewRelic agent installed on the App service. - /// Status of the NewRelic agent installed on the App service. + /// + /// Azure App service resource ID + /// Serialized Name: AppServiceInfo.azureResourceId + /// + /// + /// Version of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentVersion + /// + /// + /// Status of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentStatus + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId, string agentVersion, string agentStatus, IDictionary serializedAdditionalRawData) { @@ -64,13 +76,22 @@ internal NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Azure App service resource ID. + /// + /// Azure App service resource ID + /// Serialized Name: AppServiceInfo.azureResourceId + /// [WirePath("azureResourceId")] public ResourceIdentifier AzureResourceId { get; } - /// Version of the NewRelic agent installed on the App service. + /// + /// Version of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentVersion + /// [WirePath("agentVersion")] public string AgentVersion { get; } - /// Status of the NewRelic agent installed on the App service. + /// + /// Status of the NewRelic agent installed on the App service. + /// Serialized Name: AppServiceInfo.agentStatus + /// [WirePath("agentStatus")] public string AgentStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs index 0fc4ad4cd9f4..fd6bafdd5e20 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Billing source. + /// + /// Billing source + /// Serialized Name: BillingSource + /// public readonly partial struct NewRelicObservabilityBillingSource : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityBillingSource(string value) private const string AzureValue = "AZURE"; private const string NewrelicValue = "NEWRELIC"; - /// Billing source is Azure. + /// + /// Billing source is Azure + /// Serialized Name: BillingSource.AZURE + /// public static NewRelicObservabilityBillingSource Azure { get; } = new NewRelicObservabilityBillingSource(AzureValue); - /// NEWRELIC. + /// + /// NEWRELIC + /// Serialized Name: BillingSource.NEWRELIC + /// public static NewRelicObservabilityBillingSource Newrelic { get; } = new NewRelicObservabilityBillingSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityBillingSource left, NewRelicObservabilityBillingSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs index 04432e54ae61..f7216efd51fa 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. + /// + /// The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. + /// Serialized Name: FilteringTag + /// public partial class NewRelicObservabilityFilteringTag { /// @@ -51,9 +54,18 @@ public NewRelicObservabilityFilteringTag() } /// Initializes a new instance of . - /// The name (also known as the key) of the tag. - /// The value of the tag. - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// + /// The name (also known as the key) of the tag. + /// Serialized Name: FilteringTag.name + /// + /// + /// The value of the tag. + /// Serialized Name: FilteringTag.value + /// + /// + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// Serialized Name: FilteringTag.action + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityFilteringTag(string name, string value, NewRelicObservabilityTagAction? action, IDictionary serializedAdditionalRawData) { @@ -63,13 +75,22 @@ internal NewRelicObservabilityFilteringTag(string name, string value, NewRelicOb _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The name (also known as the key) of the tag. + /// + /// The name (also known as the key) of the tag. + /// Serialized Name: FilteringTag.name + /// [WirePath("name")] public string Name { get; set; } - /// The value of the tag. + /// + /// The value of the tag. + /// Serialized Name: FilteringTag.value + /// [WirePath("value")] public string Value { get; set; } - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// Serialized Name: FilteringTag.action + /// [WirePath("action")] public NewRelicObservabilityTagAction? Action { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs index ca72c3329d22..66462be3ff18 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Set of rules for sending logs for the Monitor resource. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: LogRules + /// public partial class NewRelicObservabilityLogRules { /// @@ -52,12 +55,22 @@ public NewRelicObservabilityLogRules() } /// Initializes a new instance of . - /// Flag specifying if AAD logs should be sent for the Monitor resource. - /// Flag specifying if subscription logs should be sent for the Monitor resource. - /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. + /// + /// Flag specifying if AAD logs should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendAadLogs + /// + /// + /// Flag specifying if subscription logs should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendSubscriptionLogs + /// + /// + /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendActivityLogs + /// /// /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + /// Serialized Name: LogRules.filteringTags /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityLogRules(NewRelicObservabilitySendAadLogsStatus? sendAadLogs, NewRelicObservabilitySendSubscriptionLogsStatus? sendSubscriptionLogs, NewRelicObservabilitySendActivityLogsStatus? sendActivityLogs, IList filteringTags, IDictionary serializedAdditionalRawData) @@ -69,18 +82,28 @@ internal NewRelicObservabilityLogRules(NewRelicObservabilitySendAadLogsStatus? s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Flag specifying if AAD logs should be sent for the Monitor resource. + /// + /// Flag specifying if AAD logs should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendAadLogs + /// [WirePath("sendAadLogs")] public NewRelicObservabilitySendAadLogsStatus? SendAadLogs { get; set; } - /// Flag specifying if subscription logs should be sent for the Monitor resource. + /// + /// Flag specifying if subscription logs should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendSubscriptionLogs + /// [WirePath("sendSubscriptionLogs")] public NewRelicObservabilitySendSubscriptionLogsStatus? SendSubscriptionLogs { get; set; } - /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. + /// + /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. + /// Serialized Name: LogRules.sendActivityLogs + /// [WirePath("sendActivityLogs")] public NewRelicObservabilitySendActivityLogsStatus? SendActivityLogs { get; set; } /// /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. + /// Serialized Name: LogRules.filteringTags /// [WirePath("filteringTags")] public IList FilteringTags { get; } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs index 7fa83b80af90..0ff56f2e5e79 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + /// + /// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + /// Serialized Name: MarketplaceSubscriptionStatus + /// public readonly partial struct NewRelicObservabilityMarketplaceSubscriptionStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityMarketplaceSubscriptionStatus(string value) private const string ActiveValue = "Active"; private const string SuspendedValue = "Suspended"; - /// monitoring is enabled. + /// + /// monitoring is enabled + /// Serialized Name: MarketplaceSubscriptionStatus.Active + /// public static NewRelicObservabilityMarketplaceSubscriptionStatus Active { get; } = new NewRelicObservabilityMarketplaceSubscriptionStatus(ActiveValue); - /// monitoring is disabled. + /// + /// monitoring is disabled + /// Serialized Name: MarketplaceSubscriptionStatus.Suspended + /// public static NewRelicObservabilityMarketplaceSubscriptionStatus Suspended { get; } = new NewRelicObservabilityMarketplaceSubscriptionStatus(SuspendedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityMarketplaceSubscriptionStatus left, NewRelicObservabilityMarketplaceSubscriptionStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs index 6c26bff93462..2f7a78d2832e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: MetricRules + /// public partial class NewRelicObservabilityMetricRules { /// @@ -52,9 +55,18 @@ public NewRelicObservabilityMetricRules() } /// Initializes a new instance of . - /// Flag specifying if metrics should be sent for the Monitor resource. - /// List of filtering tags to be used for capturing metrics. - /// User Email. + /// + /// Flag specifying if metrics should be sent for the Monitor resource. + /// Serialized Name: MetricRules.sendMetrics + /// + /// + /// List of filtering tags to be used for capturing metrics. + /// Serialized Name: MetricRules.filteringTags + /// + /// + /// Reusable representation of an email address + /// Serialized Name: MetricRules.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityMetricRules(NewRelicObservabilitySendMetricsStatus? sendMetrics, IList filteringTags, string userEmail, IDictionary serializedAdditionalRawData) { @@ -64,13 +76,22 @@ internal NewRelicObservabilityMetricRules(NewRelicObservabilitySendMetricsStatus _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Flag specifying if metrics should be sent for the Monitor resource. + /// + /// Flag specifying if metrics should be sent for the Monitor resource. + /// Serialized Name: MetricRules.sendMetrics + /// [WirePath("sendMetrics")] public NewRelicObservabilitySendMetricsStatus? SendMetrics { get; set; } - /// List of filtering tags to be used for capturing metrics. + /// + /// List of filtering tags to be used for capturing metrics. + /// Serialized Name: MetricRules.filteringTags + /// [WirePath("filteringTags")] public IList FilteringTags { get; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: MetricRules.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs index 8ef52abc5f53..58e9b1e56b37 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Flag specifying if the resource monitoring is enabled or disabled. + /// + /// Flag specifying if the resource monitoring is enabled or disabled. + /// Serialized Name: MonitoringStatus + /// public readonly partial struct NewRelicObservabilityMonitoringStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityMonitoringStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// monitoring is enabled. + /// + /// monitoring is enabled + /// Serialized Name: MonitoringStatus.Enabled + /// public static NewRelicObservabilityMonitoringStatus IsEnabled { get; } = new NewRelicObservabilityMonitoringStatus(IsEnabledValue); - /// monitoring is disabled. + /// + /// monitoring is disabled + /// Serialized Name: MonitoringStatus.Disabled + /// public static NewRelicObservabilityMonitoringStatus IsDisabled { get; } = new NewRelicObservabilityMonitoringStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityMonitoringStatus left, NewRelicObservabilityMonitoringStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs index 38aeea82d784..ef7451f260f7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Source of Org creation. + /// + /// Source of Org creation + /// Serialized Name: OrgCreationSource + /// public readonly partial struct NewRelicObservabilityOrgCreationSource : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityOrgCreationSource(string value) private const string LiftrValue = "LIFTR"; private const string NewrelicValue = "NEWRELIC"; - /// Org is created from LIFTR. + /// + /// Org is created from LIFTR + /// Serialized Name: OrgCreationSource.LIFTR + /// public static NewRelicObservabilityOrgCreationSource Liftr { get; } = new NewRelicObservabilityOrgCreationSource(LiftrValue); - /// Org is created from NEWRELIC. + /// + /// Org is created from NEWRELIC + /// Serialized Name: OrgCreationSource.NEWRELIC + /// public static NewRelicObservabilityOrgCreationSource Newrelic { get; } = new NewRelicObservabilityOrgCreationSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityOrgCreationSource left, NewRelicObservabilityOrgCreationSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs index 754b43f8be20..66c883b7eddb 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Organization Info of the NewRelic account. + /// + /// Organization Info of the NewRelic account + /// Serialized Name: OrganizationInfo + /// internal partial class NewRelicObservabilityOrganizationInfo { /// @@ -51,7 +54,10 @@ public NewRelicObservabilityOrganizationInfo() } /// Initializes a new instance of . - /// Organization id. + /// + /// Organization id + /// Serialized Name: OrganizationInfo.organizationId + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityOrganizationInfo(string organizationId, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NewRelicObservabilityOrganizationInfo(string organizationId, IDictionar _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Organization id. + /// + /// Organization id + /// Serialized Name: OrganizationInfo.organizationId + /// [WirePath("organizationId")] public string OrganizationId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs index 7f54876acee4..44edbc0e29cd 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether AAD logs are being sent. + /// + /// Indicates whether AAD logs are being sent. + /// Serialized Name: SendAadLogsStatus + /// public readonly partial struct NewRelicObservabilitySendAadLogsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendAadLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendAadLogsStatus.Enabled + /// public static NewRelicObservabilitySendAadLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendAadLogsStatus(IsEnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendAadLogsStatus.Disabled + /// public static NewRelicObservabilitySendAadLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendAadLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendAadLogsStatus left, NewRelicObservabilitySendAadLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs index e320bf7d93b5..566ae8277765 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether activity logs are being sent. + /// + /// Indicates whether activity logs are being sent. + /// Serialized Name: SendActivityLogsStatus + /// public readonly partial struct NewRelicObservabilitySendActivityLogsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendActivityLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendActivityLogsStatus.Enabled + /// public static NewRelicObservabilitySendActivityLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendActivityLogsStatus(IsEnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendActivityLogsStatus.Disabled + /// public static NewRelicObservabilitySendActivityLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendActivityLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendActivityLogsStatus left, NewRelicObservabilitySendActivityLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs index 7a159af913b3..a589756857c9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether metrics are being sent. + /// + /// Indicates whether metrics are being sent. + /// Serialized Name: SendMetricsStatus + /// public readonly partial struct NewRelicObservabilitySendMetricsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendMetricsStatus(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendMetricsStatus.Enabled + /// public static NewRelicObservabilitySendMetricsStatus Enabled { get; } = new NewRelicObservabilitySendMetricsStatus(EnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendMetricsStatus.Disabled + /// public static NewRelicObservabilitySendMetricsStatus Disabled { get; } = new NewRelicObservabilitySendMetricsStatus(DisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendMetricsStatus left, NewRelicObservabilitySendMetricsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs index 7f485051bd27..a7800832aef2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether subscription logs are being sent. + /// + /// Indicates whether subscription logs are being sent. + /// Serialized Name: SendSubscriptionLogsStatus + /// public readonly partial struct NewRelicObservabilitySendSubscriptionLogsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendSubscriptionLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendSubscriptionLogsStatus.Enabled + /// public static NewRelicObservabilitySendSubscriptionLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendSubscriptionLogsStatus(IsEnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendSubscriptionLogsStatus.Disabled + /// public static NewRelicObservabilitySendSubscriptionLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendSubscriptionLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendSubscriptionLogsStatus left, NewRelicObservabilitySendSubscriptionLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs index 4bec88a9d283..4446f4b3b262 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether logs are being sent. + /// + /// Indicates whether logs are being sent. + /// Serialized Name: SendingLogsStatus + /// public readonly partial struct NewRelicObservabilitySendingLogsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendingLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendingLogsStatus.Enabled + /// public static NewRelicObservabilitySendingLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendingLogsStatus(IsEnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendingLogsStatus.Disabled + /// public static NewRelicObservabilitySendingLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendingLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendingLogsStatus left, NewRelicObservabilitySendingLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs index d22260135e09..d6c4d9f7df46 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Indicates whether metrics are being sent. + /// + /// Indicates whether metrics are being sent. + /// Serialized Name: SendingMetricsStatus + /// public readonly partial struct NewRelicObservabilitySendingMetricsStatus : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilitySendingMetricsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// Enabled. + /// + /// Enabled + /// Serialized Name: SendingMetricsStatus.Enabled + /// public static NewRelicObservabilitySendingMetricsStatus IsEnabled { get; } = new NewRelicObservabilitySendingMetricsStatus(IsEnabledValue); - /// Disabled. + /// + /// Disabled + /// Serialized Name: SendingMetricsStatus.Disabled + /// public static NewRelicObservabilitySendingMetricsStatus IsDisabled { get; } = new NewRelicObservabilitySendingMetricsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendingMetricsStatus left, NewRelicObservabilitySendingMetricsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs index a204117e69f9..62df40581f54 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. + /// Serialized Name: TagAction + /// public readonly partial struct NewRelicObservabilityTagAction : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityTagAction(string value) private const string IncludeValue = "Include"; private const string ExcludeValue = "Exclude"; - /// Include. + /// + /// Include + /// Serialized Name: TagAction.Include + /// public static NewRelicObservabilityTagAction Include { get; } = new NewRelicObservabilityTagAction(IncludeValue); - /// Exclude. + /// + /// Exclude + /// Serialized Name: TagAction.Exclude + /// public static NewRelicObservabilityTagAction Exclude { get; } = new NewRelicObservabilityTagAction(ExcludeValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityTagAction left, NewRelicObservabilityTagAction right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs index ad72a78eaede..c250997ef3e0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The response of a TagRule list operation. + /// + /// The response of a TagRule list operation. + /// Serialized Name: TagRuleListResult + /// internal partial class NewRelicObservabilityTagRuleListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicObservabilityTagRuleListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The TagRule items on this page. + /// + /// The TagRule items on this page + /// Serialized Name: TagRuleListResult.value + /// /// is null. internal NewRelicObservabilityTagRuleListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicObservabilityTagRuleListResult(IEnumerable Initializes a new instance of . - /// The TagRule items on this page. - /// The link to the next page of items. + /// + /// The TagRule items on this page + /// Serialized Name: TagRuleListResult.value + /// + /// + /// The link to the next page of items + /// Serialized Name: TagRuleListResult.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRuleListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicObservabilityTagRuleListResult() { } - /// The TagRule items on this page. + /// + /// The TagRule items on this page + /// Serialized Name: TagRuleListResult.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: TagRuleListResult.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs index 168b72d91d0c..89423c4f27c0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The type used for update operations of the TagRule. + /// + /// The type used for update operations of the TagRule. + /// Serialized Name: TagRuleUpdate + /// public partial class NewRelicObservabilityTagRulePatch { /// @@ -51,8 +54,14 @@ public NewRelicObservabilityTagRulePatch() } /// Initializes a new instance of . - /// Set of rules for sending logs for the Monitor resource. - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: TagRuleUpdate.properties.logRules + /// + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: TagRuleUpdate.properties.metricRules + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRulePatch(NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) { @@ -61,10 +70,16 @@ internal NewRelicObservabilityTagRulePatch(NewRelicObservabilityLogRules logRule _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Set of rules for sending logs for the Monitor resource. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: TagRuleUpdate.properties.logRules + /// [WirePath("properties.logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: TagRuleUpdate.properties.metricRules + /// [WirePath("properties.metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs index 6c60c19ad066..752e62406465 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Different usage type like PAYG/COMMITTED. + /// + /// Different usage type like PAYG/COMMITTED + /// Serialized Name: UsageType + /// public readonly partial struct NewRelicObservabilityUsageType : IEquatable { private readonly string _value; @@ -25,9 +28,15 @@ public NewRelicObservabilityUsageType(string value) private const string PaygValue = "PAYG"; private const string CommittedValue = "COMMITTED"; - /// Usage type is PAYG. + /// + /// Usage type is PAYG + /// Serialized Name: UsageType.PAYG + /// public static NewRelicObservabilityUsageType Payg { get; } = new NewRelicObservabilityUsageType(PaygValue); - /// Usage type is COMMITTED. + /// + /// Usage type is COMMITTED + /// Serialized Name: UsageType.COMMITTED + /// public static NewRelicObservabilityUsageType Committed { get; } = new NewRelicObservabilityUsageType(CommittedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityUsageType left, NewRelicObservabilityUsageType right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs index c2d3aceef037..65b063ae8d24 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// User Info of NewRelic Monitor resource. + /// + /// User Info of NewRelic Monitor resource + /// Serialized Name: UserInfo + /// public partial class NewRelicObservabilityUserInfo { /// @@ -51,11 +54,26 @@ public NewRelicObservabilityUserInfo() } /// Initializes a new instance of . - /// First name. - /// Last name. - /// User Email. - /// Contact phone number. - /// country if user. + /// + /// First name + /// Serialized Name: UserInfo.firstName + /// + /// + /// Last name + /// Serialized Name: UserInfo.lastName + /// + /// + /// Reusable representation of an email address + /// Serialized Name: UserInfo.emailAddress + /// + /// + /// Contact phone number + /// Serialized Name: UserInfo.phoneNumber + /// + /// + /// country if user + /// Serialized Name: UserInfo.country + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityUserInfo(string firstName, string lastName, string emailAddress, string phoneNumber, string country, IDictionary serializedAdditionalRawData) { @@ -67,19 +85,34 @@ internal NewRelicObservabilityUserInfo(string firstName, string lastName, string _serializedAdditionalRawData = serializedAdditionalRawData; } - /// First name. + /// + /// First name + /// Serialized Name: UserInfo.firstName + /// [WirePath("firstName")] public string FirstName { get; set; } - /// Last name. + /// + /// Last name + /// Serialized Name: UserInfo.lastName + /// [WirePath("lastName")] public string LastName { get; set; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: UserInfo.emailAddress + /// [WirePath("emailAddress")] public string EmailAddress { get; set; } - /// Contact phone number. + /// + /// Contact phone number + /// Serialized Name: UserInfo.phoneNumber + /// [WirePath("phoneNumber")] public string PhoneNumber { get; set; } - /// country if user. + /// + /// country if user + /// Serialized Name: UserInfo.country + /// [WirePath("country")] public string Country { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs index 2e45e937f383..bf6cd74cbaa5 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of payload to be passed while installing VM agent. + /// + /// Response of payload to be passed while installing VM agent. + /// Serialized Name: VMExtensionPayload + /// public partial class NewRelicObservabilityVmExtensionPayload { /// @@ -51,7 +54,10 @@ internal NewRelicObservabilityVmExtensionPayload() } /// Initializes a new instance of . - /// Ingestion key of the account. + /// + /// Ingestion key of the account + /// Serialized Name: VMExtensionPayload.ingestionKey + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmExtensionPayload(string ingestionKey, IDictionary serializedAdditionalRawData) { @@ -59,7 +65,10 @@ internal NewRelicObservabilityVmExtensionPayload(string ingestionKey, IDictionar _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Ingestion key of the account. + /// + /// Ingestion key of the account + /// Serialized Name: VMExtensionPayload.ingestionKey + /// [WirePath("ingestionKey")] public string IngestionKey { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs index 66b005a8f99d..20e06ef55b99 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of a list VM Host Operation. + /// + /// Response of a list VM Host Operation. + /// Serialized Name: VMHostsListResponse + /// internal partial class NewRelicObservabilityVmHostsListResponse { /// @@ -47,7 +50,10 @@ internal partial class NewRelicObservabilityVmHostsListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The VMInfo items on this page. + /// + /// The VMInfo items on this page + /// Serialized Name: VMHostsListResponse.value + /// /// is null. internal NewRelicObservabilityVmHostsListResponse(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicObservabilityVmHostsListResponse(IEnumerable Initializes a new instance of . - /// The VMInfo items on this page. - /// The link to the next page of items. + /// + /// The VMInfo items on this page + /// Serialized Name: VMHostsListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: VMHostsListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmHostsListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicObservabilityVmHostsListResponse() { } - /// The VMInfo items on this page. + /// + /// The VMInfo items on this page + /// Serialized Name: VMHostsListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: VMHostsListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs index 3cf04b601279..a75e95ff30ed 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Details of VM Resource having NewRelic OneAgent installed. + /// + /// Details of VM Resource having NewRelic OneAgent installed + /// Serialized Name: VMInfo + /// public partial class NewRelicObservabilityVmInfo { /// @@ -52,9 +55,18 @@ internal NewRelicObservabilityVmInfo() } /// Initializes a new instance of . - /// Azure VM resource ID. - /// Version of the NewRelic agent installed on the VM. - /// Status of the NewRelic agent installed on the VM. + /// + /// Azure VM resource ID + /// Serialized Name: VMInfo.vmId + /// + /// + /// Version of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentVersion + /// + /// + /// Status of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentStatus + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmInfo(ResourceIdentifier vmId, string agentVersion, string agentStatus, IDictionary serializedAdditionalRawData) { @@ -64,13 +76,22 @@ internal NewRelicObservabilityVmInfo(ResourceIdentifier vmId, string agentVersio _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Azure VM resource ID. + /// + /// Azure VM resource ID + /// Serialized Name: VMInfo.vmId + /// [WirePath("vmId")] public ResourceIdentifier VmId { get; } - /// Version of the NewRelic agent installed on the VM. + /// + /// Version of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentVersion + /// [WirePath("agentVersion")] public string AgentVersion { get; } - /// Status of the NewRelic agent installed on the VM. + /// + /// Status of the NewRelic agent installed on the VM. + /// Serialized Name: VMInfo.agentStatus + /// [WirePath("agentStatus")] public string AgentStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs index 76835bc35a0f..98287ac2edf6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The details of a Organization resource. + /// + /// The details of a Organization resource. + /// Serialized Name: OrganizationResource + /// public partial class NewRelicOrganizationResourceData : ResourceData { /// @@ -57,9 +60,18 @@ public NewRelicOrganizationResourceData() /// The name. /// The resourceType. /// The systemData. - /// organization id. - /// organization name. - /// Billing source. + /// + /// organization id + /// Serialized Name: OrganizationResource.properties.organizationId + /// + /// + /// organization name + /// Serialized Name: OrganizationResource.properties.organizationName + /// + /// + /// Billing source + /// Serialized Name: OrganizationResource.properties.billingSource + /// /// Keeps track of any properties unknown to the library. internal NewRelicOrganizationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string organizationId, string organizationName, NewRelicObservabilityBillingSource? billingSource, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -69,13 +81,22 @@ internal NewRelicOrganizationResourceData(ResourceIdentifier id, string name, Re _serializedAdditionalRawData = serializedAdditionalRawData; } - /// organization id. + /// + /// organization id + /// Serialized Name: OrganizationResource.properties.organizationId + /// [WirePath("properties.organizationId")] public string OrganizationId { get; set; } - /// organization name. + /// + /// organization name + /// Serialized Name: OrganizationResource.properties.organizationName + /// [WirePath("properties.organizationName")] public string OrganizationName { get; set; } - /// Billing source. + /// + /// Billing source + /// Serialized Name: OrganizationResource.properties.billingSource + /// [WirePath("properties.billingSource")] public NewRelicObservabilityBillingSource? BillingSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs index 8ee23e63ab06..650129af5030 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of get all organizations Operation. + /// + /// Response of get all organizations Operation. + /// Serialized Name: OrganizationsListResponse + /// internal partial class NewRelicOrganizationsListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicOrganizationsListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The OrganizationResource items on this page. + /// + /// The OrganizationResource items on this page + /// Serialized Name: OrganizationsListResponse.value + /// /// is null. internal NewRelicOrganizationsListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicOrganizationsListResult(IEnumerable Initializes a new instance of . - /// The OrganizationResource items on this page. - /// The link to the next page of items. + /// + /// The OrganizationResource items on this page + /// Serialized Name: OrganizationsListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: OrganizationsListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicOrganizationsListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicOrganizationsListResult() { } - /// The OrganizationResource items on this page. + /// + /// The OrganizationResource items on this page + /// Serialized Name: OrganizationsListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: OrganizationsListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs index 42852478a533..02ae02527805 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// The details of a PlanData resource. + /// + /// The details of a PlanData resource. + /// Serialized Name: PlanDataResource + /// public partial class NewRelicPlanData : ResourceData { /// @@ -57,9 +60,18 @@ public NewRelicPlanData() /// The name. /// The resourceType. /// The systemData. - /// Plan details. - /// Source of org creation. - /// Source of account creation. + /// + /// Plan details + /// Serialized Name: PlanDataResource.properties.planData + /// + /// + /// Source of org creation + /// Serialized Name: PlanDataResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: PlanDataResource.properties.accountCreationSource + /// /// Keeps track of any properties unknown to the library. internal NewRelicPlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicPlanDetails planData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -69,13 +81,22 @@ internal NewRelicPlanData(ResourceIdentifier id, string name, ResourceType resou _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Plan details. + /// + /// Plan details + /// Serialized Name: PlanDataResource.properties.planData + /// [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// Source of org creation. + /// + /// Source of org creation + /// Serialized Name: PlanDataResource.properties.orgCreationSource + /// [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// Source of account creation. + /// + /// Source of account creation + /// Serialized Name: PlanDataResource.properties.accountCreationSource + /// [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs index 584c068fde5d..d4d19d5eeaaa 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of get all plan data Operation. + /// + /// Response of get all plan data Operation. + /// Serialized Name: PlanDataListResponse + /// internal partial class NewRelicPlanDataListResult { /// @@ -47,7 +50,10 @@ internal partial class NewRelicPlanDataListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The PlanDataResource items on this page. + /// + /// The PlanDataResource items on this page + /// Serialized Name: PlanDataListResponse.value + /// /// is null. internal NewRelicPlanDataListResult(IEnumerable value) { @@ -57,8 +63,14 @@ internal NewRelicPlanDataListResult(IEnumerable value) } /// Initializes a new instance of . - /// The PlanDataResource items on this page. - /// The link to the next page of items. + /// + /// The PlanDataResource items on this page + /// Serialized Name: PlanDataListResponse.value + /// + /// + /// The link to the next page of items + /// Serialized Name: PlanDataListResponse.nextLink + /// /// Keeps track of any properties unknown to the library. internal NewRelicPlanDataListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -72,9 +84,15 @@ internal NewRelicPlanDataListResult() { } - /// The PlanDataResource items on this page. + /// + /// The PlanDataResource items on this page + /// Serialized Name: PlanDataListResponse.value + /// public IReadOnlyList Value { get; } - /// The link to the next page of items. + /// + /// The link to the next page of items + /// Serialized Name: PlanDataListResponse.nextLink + /// public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs index e542be5caaa1..654d822731b6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Plan data of NewRelic Monitor resource. + /// + /// Plan data of NewRelic Monitor resource + /// Serialized Name: PlanData + /// public partial class NewRelicPlanDetails { /// @@ -51,10 +54,22 @@ public NewRelicPlanDetails() } /// Initializes a new instance of . - /// Different usage type like PAYG/COMMITTED. this could be enum. - /// Different billing cycles like Monthly/Weekly. - /// plan id as published by NewRelic. - /// date when plan was applied. + /// + /// Different usage type like PAYG/COMMITTED. this could be enum + /// Serialized Name: PlanData.usageType + /// + /// + /// Different billing cycles like Monthly/Weekly. + /// Serialized Name: PlanData.billingCycle + /// + /// + /// plan id as published by NewRelic + /// Serialized Name: PlanData.planDetails + /// + /// + /// date when plan was applied + /// Serialized Name: PlanData.effectiveDate + /// /// Keeps track of any properties unknown to the library. internal NewRelicPlanDetails(NewRelicObservabilityUsageType? usageType, string newRelicPlanBillingCycle, string planDetails, DateTimeOffset? effectiveOn, IDictionary serializedAdditionalRawData) { @@ -65,16 +80,28 @@ internal NewRelicPlanDetails(NewRelicObservabilityUsageType? usageType, string n _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Different usage type like PAYG/COMMITTED. this could be enum. + /// + /// Different usage type like PAYG/COMMITTED. this could be enum + /// Serialized Name: PlanData.usageType + /// [WirePath("usageType")] public NewRelicObservabilityUsageType? UsageType { get; set; } - /// Different billing cycles like Monthly/Weekly. + /// + /// Different billing cycles like Monthly/Weekly. + /// Serialized Name: PlanData.billingCycle + /// [WirePath("billingCycle")] public string NewRelicPlanBillingCycle { get; set; } - /// plan id as published by NewRelic. + /// + /// plan id as published by NewRelic + /// Serialized Name: PlanData.planDetails + /// [WirePath("planDetails")] public string PlanDetails { get; set; } - /// date when plan was applied. + /// + /// date when plan was applied + /// Serialized Name: PlanData.effectiveDate + /// [WirePath("effectiveDate")] public DateTimeOffset? EffectiveOn { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs index f6a95a1b60a4..9854929676ab 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Provisioning State of the Monitor resource. + /// + /// Provisioning State of the Monitor resource + /// Serialized Name: ProvisioningState + /// public readonly partial struct NewRelicProvisioningState : IEquatable { private readonly string _value; @@ -32,23 +35,50 @@ public NewRelicProvisioningState(string value) private const string DeletedValue = "Deleted"; private const string NotSpecifiedValue = "NotSpecified"; - /// Monitor resource creation request accepted. + /// + /// Monitor resource creation request accepted + /// Serialized Name: ProvisioningState.Accepted + /// public static NewRelicProvisioningState Accepted { get; } = new NewRelicProvisioningState(AcceptedValue); - /// Monitor resource creation started. + /// + /// Monitor resource creation started + /// Serialized Name: ProvisioningState.Creating + /// public static NewRelicProvisioningState Creating { get; } = new NewRelicProvisioningState(CreatingValue); - /// Monitor resource is being updated. + /// + /// Monitor resource is being updated + /// Serialized Name: ProvisioningState.Updating + /// public static NewRelicProvisioningState Updating { get; } = new NewRelicProvisioningState(UpdatingValue); - /// Monitor resource deletion started. + /// + /// Monitor resource deletion started + /// Serialized Name: ProvisioningState.Deleting + /// public static NewRelicProvisioningState Deleting { get; } = new NewRelicProvisioningState(DeletingValue); - /// Monitor resource creation successful. + /// + /// Monitor resource creation successful + /// Serialized Name: ProvisioningState.Succeeded + /// public static NewRelicProvisioningState Succeeded { get; } = new NewRelicProvisioningState(SucceededValue); - /// Monitor resource creation failed. + /// + /// Monitor resource creation failed + /// Serialized Name: ProvisioningState.Failed + /// public static NewRelicProvisioningState Failed { get; } = new NewRelicProvisioningState(FailedValue); - /// Monitor resource creation canceled. + /// + /// Monitor resource creation canceled + /// Serialized Name: ProvisioningState.Canceled + /// public static NewRelicProvisioningState Canceled { get; } = new NewRelicProvisioningState(CanceledValue); - /// Monitor resource is deleted. + /// + /// Monitor resource is deleted + /// Serialized Name: ProvisioningState.Deleted + /// public static NewRelicProvisioningState Deleted { get; } = new NewRelicProvisioningState(DeletedValue); - /// Monitor resource state is unknown. + /// + /// Monitor resource state is unknown + /// Serialized Name: ProvisioningState.NotSpecified + /// public static NewRelicProvisioningState NotSpecified { get; } = new NewRelicProvisioningState(NotSpecifiedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicProvisioningState left, NewRelicProvisioningState right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs index 8070764e7dd4..f386d64fb2e3 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Details of resource being monitored by NewRelic monitor resource. + /// + /// Details of resource being monitored by NewRelic monitor resource + /// Serialized Name: MonitoredResource + /// public partial class NewRelicResourceMonitorResult { /// @@ -52,11 +55,26 @@ internal NewRelicResourceMonitorResult() } /// Initializes a new instance of . - /// The ARM id of the resource. - /// Flag indicating if resource is sending metrics to NewRelic. - /// Reason for why the resource is sending metrics (or why it is not sending). - /// Flag indicating if resource is sending logs to NewRelic. - /// Reason for why the resource is sending logs (or why it is not sending). + /// + /// The ARM id of the resource. + /// Serialized Name: MonitoredResource.id + /// + /// + /// Flag indicating if resource is sending metrics to NewRelic. + /// Serialized Name: MonitoredResource.sendingMetrics + /// + /// + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForMetricsStatus + /// + /// + /// Flag indicating if resource is sending logs to NewRelic. + /// Serialized Name: MonitoredResource.sendingLogs + /// + /// + /// Reason for why the resource is sending logs (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForLogsStatus + /// /// Keeps track of any properties unknown to the library. internal NewRelicResourceMonitorResult(ResourceIdentifier id, NewRelicObservabilitySendingMetricsStatus? sendingMetrics, string reasonForMetricsStatus, NewRelicObservabilitySendingLogsStatus? sendingLogs, string reasonForLogsStatus, IDictionary serializedAdditionalRawData) { @@ -68,19 +86,34 @@ internal NewRelicResourceMonitorResult(ResourceIdentifier id, NewRelicObservabil _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The ARM id of the resource. + /// + /// The ARM id of the resource. + /// Serialized Name: MonitoredResource.id + /// [WirePath("id")] public ResourceIdentifier Id { get; } - /// Flag indicating if resource is sending metrics to NewRelic. + /// + /// Flag indicating if resource is sending metrics to NewRelic. + /// Serialized Name: MonitoredResource.sendingMetrics + /// [WirePath("sendingMetrics")] public NewRelicObservabilitySendingMetricsStatus? SendingMetrics { get; } - /// Reason for why the resource is sending metrics (or why it is not sending). + /// + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForMetricsStatus + /// [WirePath("reasonForMetricsStatus")] public string ReasonForMetricsStatus { get; } - /// Flag indicating if resource is sending logs to NewRelic. + /// + /// Flag indicating if resource is sending logs to NewRelic. + /// Serialized Name: MonitoredResource.sendingLogs + /// [WirePath("sendingLogs")] public NewRelicObservabilitySendingLogsStatus? SendingLogs { get; } - /// Reason for why the resource is sending logs (or why it is not sending). + /// + /// Reason for why the resource is sending logs (or why it is not sending). + /// Serialized Name: MonitoredResource.reasonForLogsStatus + /// [WirePath("reasonForLogsStatus")] public string ReasonForLogsStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.Serialization.cs new file mode 100644 index 000000000000..fb00d4502b9a --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.Serialization.cs @@ -0,0 +1,203 @@ +// 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.NewRelicObservability.Models +{ + public partial class NewRelicResubscribeProperties : 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(NewRelicResubscribeProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(PlanId)) + { + writer.WritePropertyName("planId"u8); + writer.WriteStringValue(PlanId); + } + if (Optional.IsDefined(TermId)) + { + writer.WritePropertyName("termId"u8); + writer.WriteStringValue(TermId); + } + if (Optional.IsDefined(SubscriptionId)) + { + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); + } + if (Optional.IsDefined(ResourceGroup)) + { + writer.WritePropertyName("resourceGroup"u8); + writer.WriteStringValue(ResourceGroup); + } + if (Optional.IsDefined(OrganizationId)) + { + writer.WritePropertyName("organizationId"u8); + writer.WriteStringValue(OrganizationId); + } + if (Optional.IsDefined(PublisherId)) + { + writer.WritePropertyName("publisherId"u8); + writer.WriteStringValue(PublisherId); + } + if (Optional.IsDefined(OfferId)) + { + writer.WritePropertyName("offerId"u8); + writer.WriteStringValue(OfferId); + } + 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 + } + } + } + + NewRelicResubscribeProperties 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(NewRelicResubscribeProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNewRelicResubscribeProperties(document.RootElement, options); + } + + internal static NewRelicResubscribeProperties DeserializeNewRelicResubscribeProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string planId = default; + string termId = default; + string subscriptionId = default; + string resourceGroup = default; + string organizationId = default; + string publisherId = default; + string offerId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("planId"u8)) + { + planId = property.Value.GetString(); + continue; + } + if (property.NameEquals("termId"u8)) + { + termId = property.Value.GetString(); + continue; + } + if (property.NameEquals("subscriptionId"u8)) + { + subscriptionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceGroup"u8)) + { + resourceGroup = property.Value.GetString(); + continue; + } + if (property.NameEquals("organizationId"u8)) + { + organizationId = property.Value.GetString(); + continue; + } + if (property.NameEquals("publisherId"u8)) + { + publisherId = property.Value.GetString(); + continue; + } + if (property.NameEquals("offerId"u8)) + { + offerId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NewRelicResubscribeProperties( + planId, + termId, + subscriptionId, + resourceGroup, + organizationId, + publisherId, + offerId, + 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, AzureResourceManagerNewRelicObservabilityContext.Default); + default: + throw new FormatException($"The model {nameof(NewRelicResubscribeProperties)} does not support writing '{options.Format}' format."); + } + } + + NewRelicResubscribeProperties 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 DeserializeNewRelicResubscribeProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NewRelicResubscribeProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs new file mode 100644 index 000000000000..e869918762ae --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.NewRelicObservability.Models +{ + /// + /// Resubscribe Properties + /// Serialized Name: ResubscribeProperties + /// + public partial class NewRelicResubscribeProperties + { + /// + /// 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 NewRelicResubscribeProperties() + { + } + + /// Initializes a new instance of . + /// + /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe + /// Serialized Name: ResubscribeProperties.planId + /// + /// + /// Newly selected term Id to create the new Marketplace subscription for Resubscribe + /// Serialized Name: ResubscribeProperties.termId + /// + /// + /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe + /// Serialized Name: ResubscribeProperties.subscriptionId + /// + /// + /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe + /// Serialized Name: ResubscribeProperties.resourceGroup + /// + /// + /// Organization Id of the NewRelic Organization that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.organizationId + /// + /// + /// Publisher Id of the NewRelic offer that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.publisherId + /// + /// + /// Offer Id of the NewRelic offer that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.offerId + /// + /// Keeps track of any properties unknown to the library. + internal NewRelicResubscribeProperties(string planId, string termId, string subscriptionId, string resourceGroup, string organizationId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) + { + PlanId = planId; + TermId = termId; + SubscriptionId = subscriptionId; + ResourceGroup = resourceGroup; + OrganizationId = organizationId; + PublisherId = publisherId; + OfferId = offerId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// + /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe + /// Serialized Name: ResubscribeProperties.planId + /// + [WirePath("planId")] + public string PlanId { get; set; } + /// + /// Newly selected term Id to create the new Marketplace subscription for Resubscribe + /// Serialized Name: ResubscribeProperties.termId + /// + [WirePath("termId")] + public string TermId { get; set; } + /// + /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe + /// Serialized Name: ResubscribeProperties.subscriptionId + /// + [WirePath("subscriptionId")] + public string SubscriptionId { get; set; } + /// + /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe + /// Serialized Name: ResubscribeProperties.resourceGroup + /// + [WirePath("resourceGroup")] + public string ResourceGroup { get; set; } + /// + /// Organization Id of the NewRelic Organization that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.organizationId + /// + [WirePath("organizationId")] + public string OrganizationId { get; set; } + /// + /// Publisher Id of the NewRelic offer that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.publisherId + /// + [WirePath("publisherId")] + public string PublisherId { get; set; } + /// + /// Offer Id of the NewRelic offer that needs to be resubscribed + /// Serialized Name: ResubscribeProperties.offerId + /// + [WirePath("offerId")] + public string OfferId { get; set; } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs new file mode 100644 index 000000000000..a64409500e93 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs @@ -0,0 +1,166 @@ +// 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.NewRelicObservability.Models +{ + public partial class NewRelicSaaSDataDetails : 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(NewRelicSaaSDataDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(SaaSResourceId)) + { + writer.WritePropertyName("saaSResourceId"u8); + writer.WriteStringValue(SaaSResourceId); + } + 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 + } + } + } + + NewRelicSaaSDataDetails 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(NewRelicSaaSDataDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNewRelicSaaSDataDetails(document.RootElement, options); + } + + internal static NewRelicSaaSDataDetails DeserializeNewRelicSaaSDataDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier saaSResourceId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("saaSResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NewRelicSaaSDataDetails(saaSResourceId, 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(SaaSResourceId), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" saaSResourceId: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(SaaSResourceId)) + { + builder.Append(" saaSResourceId: "); + builder.AppendLine($"'{SaaSResourceId.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, AzureResourceManagerNewRelicObservabilityContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(NewRelicSaaSDataDetails)} does not support writing '{options.Format}' format."); + } + } + + NewRelicSaaSDataDetails 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 DeserializeNewRelicSaaSDataDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NewRelicSaaSDataDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs new file mode 100644 index 000000000000..6b61a2e4e79a --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs @@ -0,0 +1,76 @@ +// 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.NewRelicObservability.Models +{ + /// + /// SaaS details + /// Serialized Name: SaaSData + /// + public partial class NewRelicSaaSDataDetails + { + /// + /// 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 NewRelicSaaSDataDetails() + { + } + + /// Initializes a new instance of . + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// + /// Keeps track of any properties unknown to the library. + internal NewRelicSaaSDataDetails(ResourceIdentifier saaSResourceId, IDictionary serializedAdditionalRawData) + { + SaaSResourceId = saaSResourceId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// + [WirePath("saaSResourceId")] + public ResourceIdentifier SaaSResourceId { get; set; } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs new file mode 100644 index 000000000000..d87318ac3c95 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs @@ -0,0 +1,244 @@ +// 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.NewRelicObservability.Models +{ + public partial class NewRelicSaaSResourceDetailsResult : 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(NewRelicSaaSResourceDetailsResult)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(SaasId)) + { + writer.WritePropertyName("saasId"u8); + writer.WriteStringValue(SaasId); + } + } + + NewRelicSaaSResourceDetailsResult 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(NewRelicSaaSResourceDetailsResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement, options); + } + + internal static NewRelicSaaSResourceDetailsResult DeserializeNewRelicSaaSResourceDetailsResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string saasId = 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("saasId"u8)) + { + saasId = 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, AzureResourceManagerNewRelicObservabilityContext.Default); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NewRelicSaaSResourceDetailsResult( + id, + name, + type, + systemData, + saasId, + 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(SaasId), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" saasId: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(SaasId)) + { + builder.Append(" saasId: "); + if (SaasId.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{SaasId}'''"); + } + else + { + builder.AppendLine($"'{SaasId}'"); + } + } + } + + 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, AzureResourceManagerNewRelicObservabilityContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(NewRelicSaaSResourceDetailsResult)} does not support writing '{options.Format}' format."); + } + } + + NewRelicSaaSResourceDetailsResult 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 DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NewRelicSaaSResourceDetailsResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs new file mode 100644 index 000000000000..70065b0752d3 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs @@ -0,0 +1,81 @@ +// 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.NewRelicObservability.Models +{ + /// + /// Marketplace SaaS resource details. + /// Serialized Name: SaaSResourceDetailsResponse + /// + public partial class NewRelicSaaSResourceDetailsResult : 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 NewRelicSaaSResourceDetailsResult() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Id of the Marketplace SaaS Resource + /// Serialized Name: SaaSResourceDetailsResponse.saasId + /// + /// Keeps track of any properties unknown to the library. + internal NewRelicSaaSResourceDetailsResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string saasId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + SaasId = saasId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// + /// Id of the Marketplace SaaS Resource + /// Serialized Name: SaaSResourceDetailsResponse.saasId + /// + [WirePath("saasId")] + public string SaasId { get; set; } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs index b7a3f513b620..2452691718e5 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Single sign on Info of the NewRelic account. + /// + /// Single sign on Info of the NewRelic account + /// Serialized Name: NewRelicSingleSignOnProperties + /// public partial class NewRelicSingleSignOnProperties { /// @@ -51,10 +54,22 @@ public NewRelicSingleSignOnProperties() } /// Initializes a new instance of . - /// Single sign-on state. - /// The Id of the Enterprise App used for Single sign-on. - /// The login URL specific to this NewRelic Organization. - /// Provisioning state. + /// + /// Single sign-on state + /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnState + /// + /// + /// The Id of the Enterprise App used for Single sign-on. + /// Serialized Name: NewRelicSingleSignOnProperties.enterpriseAppId + /// + /// + /// The login URL specific to this NewRelic Organization + /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnUrl + /// + /// + /// Provisioning state + /// Serialized Name: NewRelicSingleSignOnProperties.provisioningState + /// /// Keeps track of any properties unknown to the library. internal NewRelicSingleSignOnProperties(NewRelicSingleSignOnState? singleSignOnState, string enterpriseAppId, Uri singleSignOnUri, NewRelicProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { @@ -65,16 +80,28 @@ internal NewRelicSingleSignOnProperties(NewRelicSingleSignOnState? singleSignOnS _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Single sign-on state. + /// + /// Single sign-on state + /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnState + /// [WirePath("singleSignOnState")] public NewRelicSingleSignOnState? SingleSignOnState { get; set; } - /// The Id of the Enterprise App used for Single sign-on. + /// + /// The Id of the Enterprise App used for Single sign-on. + /// Serialized Name: NewRelicSingleSignOnProperties.enterpriseAppId + /// [WirePath("enterpriseAppId")] public string EnterpriseAppId { get; set; } - /// The login URL specific to this NewRelic Organization. + /// + /// The login URL specific to this NewRelic Organization + /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnUrl + /// [WirePath("singleSignOnUrl")] public Uri SingleSignOnUri { get; set; } - /// Provisioning state. + /// + /// Provisioning state + /// Serialized Name: NewRelicSingleSignOnProperties.provisioningState + /// [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs index 2d3102b809ea..d2b9d7cacc79 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Various states of the SSO resource. + /// + /// Various states of the SSO resource + /// Serialized Name: SingleSignOnStates + /// public readonly partial struct NewRelicSingleSignOnState : IEquatable { private readonly string _value; @@ -27,13 +30,25 @@ public NewRelicSingleSignOnState(string value) private const string DisableValue = "Disable"; private const string ExistingValue = "Existing"; - /// Initial. + /// + /// Initial + /// Serialized Name: SingleSignOnStates.Initial + /// public static NewRelicSingleSignOnState Initial { get; } = new NewRelicSingleSignOnState(InitialValue); - /// Enable. + /// + /// Enable + /// Serialized Name: SingleSignOnStates.Enable + /// public static NewRelicSingleSignOnState Enable { get; } = new NewRelicSingleSignOnState(EnableValue); - /// Disable. + /// + /// Disable + /// Serialized Name: SingleSignOnStates.Disable + /// public static NewRelicSingleSignOnState Disable { get; } = new NewRelicSingleSignOnState(DisableValue); - /// Existing. + /// + /// Existing + /// Serialized Name: SingleSignOnStates.Existing + /// public static NewRelicSingleSignOnState Existing { get; } = new NewRelicSingleSignOnState(ExistingValue); /// Determines if two values are the same. public static bool operator ==(NewRelicSingleSignOnState left, NewRelicSingleSignOnState right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs index bc7fe8ccfffd..d6d4f3b5e908 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs @@ -11,7 +11,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Request of a switch billing Operation. + /// + /// Request of a switch billing Operation. + /// Serialized Name: SwitchBillingRequest + /// public partial class NewRelicSwitchBillingContent { /// @@ -47,7 +50,10 @@ public partial class NewRelicSwitchBillingContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: SwitchBillingRequest.userEmail + /// /// is null. public NewRelicSwitchBillingContent(string userEmail) { @@ -57,10 +63,22 @@ public NewRelicSwitchBillingContent(string userEmail) } /// Initializes a new instance of . - /// Azure resource Id. - /// Organization id. - /// Plan details. - /// User Email. + /// + /// Azure resource Id + /// Serialized Name: SwitchBillingRequest.azureResourceId + /// + /// + /// Organization id + /// Serialized Name: SwitchBillingRequest.organizationId + /// + /// + /// Plan details + /// Serialized Name: SwitchBillingRequest.planData + /// + /// + /// Reusable representation of an email address + /// Serialized Name: SwitchBillingRequest.userEmail + /// /// Keeps track of any properties unknown to the library. internal NewRelicSwitchBillingContent(ResourceIdentifier azureResourceId, string organizationId, NewRelicPlanDetails planData, string userEmail, IDictionary serializedAdditionalRawData) { @@ -76,16 +94,28 @@ internal NewRelicSwitchBillingContent() { } - /// Azure resource Id. + /// + /// Azure resource Id + /// Serialized Name: SwitchBillingRequest.azureResourceId + /// [WirePath("azureResourceId")] public ResourceIdentifier AzureResourceId { get; set; } - /// Organization id. + /// + /// Organization id + /// Serialized Name: SwitchBillingRequest.organizationId + /// [WirePath("organizationId")] public string OrganizationId { get; set; } - /// Plan details. + /// + /// Plan details + /// Serialized Name: SwitchBillingRequest.planData + /// [WirePath("planData")] public NewRelicPlanDetails PlanData { get; set; } - /// User Email. + /// + /// Reusable representation of an email address + /// Serialized Name: SwitchBillingRequest.userEmail + /// [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs index 51c56a64c241..778e27ca2d0b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Partner Billing details associated with the resource. + /// + /// Partner Billing details associated with the resource. + /// Serialized Name: PartnerBillingEntity + /// public partial class PartnerBillingEntity { /// @@ -51,8 +54,14 @@ internal PartnerBillingEntity() } /// Initializes a new instance of . - /// The New Relic Organization Id. - /// The New Relic Organization Name. + /// + /// The New Relic Organization Id. + /// Serialized Name: PartnerBillingEntity.organizationId + /// + /// + /// The New Relic Organization Name. + /// Serialized Name: PartnerBillingEntity.organizationName + /// /// Keeps track of any properties unknown to the library. internal PartnerBillingEntity(string organizationId, string organizationName, IDictionary serializedAdditionalRawData) { @@ -61,10 +70,16 @@ internal PartnerBillingEntity(string organizationId, string organizationName, ID _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The New Relic Organization Id. + /// + /// The New Relic Organization Id. + /// Serialized Name: PartnerBillingEntity.organizationId + /// [WirePath("organizationId")] public string OrganizationId { get; } - /// The New Relic Organization Name. + /// + /// The New Relic Organization Name. + /// Serialized Name: PartnerBillingEntity.organizationName + /// [WirePath("organizationName")] public string OrganizationName { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs index ec2b99e317b2..90bd94d1c7d0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs @@ -102,142 +102,142 @@ 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 NewRelicObservabilityTagRuleResources in the NewRelicMonitorResource. - /// An object representing collection of NewRelicObservabilityTagRuleResources and their operations over a NewRelicObservabilityTagRuleResource. - public virtual NewRelicObservabilityTagRuleCollection GetNewRelicObservabilityTagRules() + /// Gets a collection of NewRelicMonitoredSubscriptionResources in the NewRelicMonitorResource. + /// An object representing collection of NewRelicMonitoredSubscriptionResources and their operations over a NewRelicMonitoredSubscriptionResource. + public virtual NewRelicMonitoredSubscriptionCollection GetNewRelicMonitoredSubscriptions() { - return GetCachedClient(client => new NewRelicObservabilityTagRuleCollection(client, Id)); + return GetCachedClient(client => new NewRelicMonitoredSubscriptionCollection(client, Id)); } /// - /// Get a TagRule + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName} /// /// /// Operation Id - /// TagRules_Get + /// MonitoredSubscriptions_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource - /// + /// /// /// /// - /// Name of the TagRule. + /// The configuration name. Only 'default' value is supported. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNewRelicObservabilityTagRuleAsync(string ruleSetName, CancellationToken cancellationToken = default) + public virtual async Task> GetNewRelicMonitoredSubscriptionAsync(MonitoredSubscriptionConfigurationName configurationName, CancellationToken cancellationToken = default) { - return await GetNewRelicObservabilityTagRules().GetAsync(ruleSetName, cancellationToken).ConfigureAwait(false); + return await GetNewRelicMonitoredSubscriptions().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); } /// - /// Get a TagRule + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName} /// /// /// Operation Id - /// TagRules_Get + /// MonitoredSubscriptions_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource - /// + /// /// /// /// - /// Name of the TagRule. + /// The configuration name. Only 'default' value is supported. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNewRelicObservabilityTagRule(string ruleSetName, CancellationToken cancellationToken = default) + public virtual Response GetNewRelicMonitoredSubscription(MonitoredSubscriptionConfigurationName configurationName, CancellationToken cancellationToken = default) { - return GetNewRelicObservabilityTagRules().Get(ruleSetName, cancellationToken); + return GetNewRelicMonitoredSubscriptions().Get(configurationName, cancellationToken); } - /// Gets a collection of NewRelicMonitoredSubscriptionResources in the NewRelicMonitorResource. - /// An object representing collection of NewRelicMonitoredSubscriptionResources and their operations over a NewRelicMonitoredSubscriptionResource. - public virtual NewRelicMonitoredSubscriptionCollection GetNewRelicMonitoredSubscriptions() + /// Gets a collection of NewRelicObservabilityTagRuleResources in the NewRelicMonitorResource. + /// An object representing collection of NewRelicObservabilityTagRuleResources and their operations over a NewRelicObservabilityTagRuleResource. + public virtual NewRelicObservabilityTagRuleCollection GetNewRelicObservabilityTagRules() { - return GetCachedClient(client => new NewRelicMonitoredSubscriptionCollection(client, Id)); + return GetCachedClient(client => new NewRelicObservabilityTagRuleCollection(client, Id)); } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName} /// /// /// Operation Id - /// MonitoredSubscriptions_Get + /// TagRules_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. Only 'default' value is supported. + /// Name of the TagRule. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNewRelicMonitoredSubscriptionAsync(MonitoredSubscriptionConfigurationName configurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetNewRelicObservabilityTagRuleAsync(string ruleSetName, CancellationToken cancellationToken = default) { - return await GetNewRelicMonitoredSubscriptions().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + return await GetNewRelicObservabilityTagRules().GetAsync(ruleSetName, cancellationToken).ConfigureAwait(false); } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/monitoredSubscriptions/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/tagRules/{ruleSetName} /// /// /// Operation Id - /// MonitoredSubscriptions_Get + /// TagRules_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource - /// + /// /// /// /// - /// The configuration name. Only 'default' value is supported. + /// Name of the TagRule. /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNewRelicMonitoredSubscription(MonitoredSubscriptionConfigurationName configurationName, CancellationToken cancellationToken = default) + public virtual Response GetNewRelicObservabilityTagRule(string ruleSetName, CancellationToken cancellationToken = default) { - return GetNewRelicMonitoredSubscriptions().Get(configurationName, cancellationToken); + return GetNewRelicObservabilityTagRules().Get(ruleSetName, cancellationToken); } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -249,7 +249,7 @@ public virtual Response GetNewRelicMonito /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -277,7 +277,7 @@ public virtual async Task> GetAsync(Cancellati } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -289,7 +289,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Response Get(CancellationToken cancellat } /// - /// Delete a NewRelicMonitorResource + /// Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic /// /// /// Request Path @@ -329,7 +329,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string } /// - /// Delete a NewRelicMonitorResource + /// Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic /// /// /// Request Path @@ -375,7 +375,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -409,7 +409,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string userEmail, Cancel } /// - /// Update a NewRelicMonitorResource + /// Updates an existing New Relic monitor resource from your Azure subscription /// /// /// Request Path @@ -421,7 +421,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string userEmail, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> UpdateAsync(Wai } /// - /// Update a NewRelicMonitorResource + /// Updates an existing New Relic monitor resource from your Azure subscription /// /// /// Request Path @@ -467,7 +467,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -501,7 +501,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, } /// - /// Get metric rules + /// Retrieves the metric rules that are configured in the New Relic monitor resource /// /// /// Request Path @@ -513,7 +513,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -543,7 +543,7 @@ public virtual async Task> GetMetricR } /// - /// Get metric rules + /// Retrieves the metric rules that are configured in the New Relic monitor resource /// /// /// Request Path @@ -555,7 +555,7 @@ public virtual async Task> GetMetricR /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -585,7 +585,7 @@ public virtual Response GetMetricRules(NewReli } /// - /// Get metric status + /// Retrieves the metric status that are configured in the New Relic monitor resource /// /// /// Request Path @@ -597,7 +597,7 @@ public virtual Response GetMetricRules(NewReli /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -627,7 +627,7 @@ public virtual async Task> GetMetricStatus } /// - /// Get metric status + /// Retrieves the metric status that are configured in the New Relic monitor resource /// /// /// Request Path @@ -639,7 +639,7 @@ public virtual async Task> GetMetricStatus /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -669,19 +669,19 @@ public virtual Response GetMetricStatus(NewRelicMet } /// - /// List the app service resources currently being monitored by the NewRelic resource. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/latestLinkedSaaS /// /// /// Operation Id - /// Monitors_ListAppServices + /// Monitors_LatestLinkedSaaS /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -689,33 +689,37 @@ public virtual Response GetMetricStatus(NewRelicMet /// /// /// - /// The details of the app services get request. /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAppServicesAsync(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + public virtual async Task> LatestLinkedSaaSAsync(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); + scope.Start(); + try + { + var response = await _newRelicMonitorResourceMonitorsRestClient.LatestLinkedSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// List the app service resources currently being monitored by the NewRelic resource. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/latestLinkedSaaS /// /// /// Operation Id - /// Monitors_ListAppServices + /// Monitors_LatestLinkedSaaS /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -723,33 +727,37 @@ public virtual AsyncPageable GetAppServices /// /// /// - /// The details of the app services get request. /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAppServices(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + public virtual Response LatestLinkedSaaS(CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); + scope.Start(); + try + { + var response = _newRelicMonitorResourceMonitorsRestClient.LatestLinkedSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Switches the billing for NewRelic monitor resource. + /// Links a new SaaS to the newrelic organization of the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/linkSaaS /// /// /// Operation Id - /// Monitors_SwitchBilling + /// Monitors_LinkSaaS /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -757,19 +765,23 @@ public virtual Pageable GetAppServices(NewR /// /// /// - /// The details of the switch billing request. + /// 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. + /// Link SaaS body parameter. /// The cancellation token to use. - /// is null. - public virtual async Task> SwitchBillingAsync(NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> LinkSaaSAsync(WaitUntil waitUntil, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(details, nameof(details)); - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.SwitchBilling"); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); scope.Start(); try { - var response = await _newRelicMonitorResourceMonitorsRestClient.SwitchBillingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new NewRelicMonitorResource(Client, response.Value), response.GetRawResponse()); + var response = await _newRelicMonitorResourceMonitorsRestClient.LinkSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details, cancellationToken).ConfigureAwait(false); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; } catch (Exception e) { @@ -779,19 +791,19 @@ public virtual async Task> SwitchBillingAsync( } /// - /// Switches the billing for NewRelic monitor resource. + /// Links a new SaaS to the newrelic organization of the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/linkSaaS /// /// /// Operation Id - /// Monitors_SwitchBilling + /// Monitors_LinkSaaS /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -799,19 +811,23 @@ public virtual async Task> SwitchBillingAsync( /// /// /// - /// The details of the switch billing request. + /// 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. + /// Link SaaS body parameter. /// The cancellation token to use. - /// is null. - public virtual Response SwitchBilling(NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation LinkSaaS(WaitUntil waitUntil, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(content, nameof(content)); + Argument.AssertNotNull(details, nameof(details)); - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.SwitchBilling"); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); scope.Start(); try { - var response = _newRelicMonitorResourceMonitorsRestClient.SwitchBilling(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - return Response.FromValue(new NewRelicMonitorResource(Client, response.Value), response.GetRawResponse()); + var response = _newRelicMonitorResourceMonitorsRestClient.LinkSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details, cancellationToken); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; } catch (Exception e) { @@ -821,7 +837,75 @@ public virtual Response SwitchBilling(NewRelicSwitchBil } /// - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// + /// + /// Operation Id + /// Monitors_ListAppServices + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the app services get request. + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAppServicesAsync(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + } + + /// + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// + /// + /// Operation Id + /// Monitors_ListAppServices + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the app services get request. + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAppServices(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability /// /// /// Request Path @@ -833,7 +917,7 @@ public virtual Response SwitchBilling(NewRelicSwitchBil /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -855,7 +939,7 @@ public virtual AsyncPageable GetHostsAsync(NewRelic } /// - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability /// /// /// Request Path @@ -867,7 +951,7 @@ public virtual AsyncPageable GetHostsAsync(NewRelic /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -889,7 +973,67 @@ public virtual Pageable GetHosts(NewRelicHostsGetCo } /// - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources + /// + /// + /// Operation Id + /// Monitors_ListLinkedResources + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetLinkedResourcesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources + /// + /// + /// Operation Id + /// Monitors_ListLinkedResources + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetLinkedResources(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup /// /// /// Request Path @@ -901,7 +1045,7 @@ public virtual Pageable GetHosts(NewRelicHostsGetCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -919,7 +1063,7 @@ public virtual AsyncPageable GetMonitoredResource } /// - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup /// /// /// Request Path @@ -931,7 +1075,7 @@ public virtual AsyncPageable GetMonitoredResource /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -949,19 +1093,19 @@ public virtual Pageable GetMonitoredResources(Can } /// - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/refreshIngestionKey /// /// /// Operation Id - /// Monitors_ListLinkedResources + /// Monitors_RefreshIngestionKey /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -970,28 +1114,36 @@ public virtual Pageable GetMonitoredResources(Can /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetLinkedResourcesAsync(CancellationToken cancellationToken = default) + public virtual async Task RefreshIngestionKeyAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.RefreshIngestionKey"); + scope.Start(); + try + { + var response = await _newRelicMonitorResourceMonitorsRestClient.RefreshIngestionKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/refreshIngestionKey /// /// /// Operation Id - /// Monitors_ListLinkedResources + /// Monitors_RefreshIngestionKey /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1000,16 +1152,194 @@ public virtual AsyncPageable GetLinkedResourcesAsync(CancellationTo /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetLinkedResources(CancellationToken cancellationToken = default) + public virtual Response RefreshIngestionKey(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.RefreshIngestionKey"); + scope.Start(); + try + { + var response = _newRelicMonitorResourceMonitorsRestClient.RefreshIngestionKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// A long-running resource action. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe + /// + /// + /// Operation Id + /// Monitors_Resubscribe + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resubscribe Properties. + /// The cancellation token to use. + public virtual async Task> ResubscribeAsync(WaitUntil waitUntil, NewRelicResubscribeProperties body = null, CancellationToken cancellationToken = default) + { + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.Resubscribe"); + scope.Start(); + try + { + var response = await _newRelicMonitorResourceMonitorsRestClient.ResubscribeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateResubscribeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// A long-running resource action. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe + /// + /// + /// Operation Id + /// Monitors_Resubscribe + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Resubscribe Properties. + /// The cancellation token to use. + public virtual ArmOperation Resubscribe(WaitUntil waitUntil, NewRelicResubscribeProperties body = null, CancellationToken cancellationToken = default) + { + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.Resubscribe"); + scope.Start(); + try + { + var response = _newRelicMonitorResourceMonitorsRestClient.Resubscribe(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateResubscribeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling + /// + /// + /// Operation Id + /// Monitors_SwitchBilling + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the switch billing request. + /// The cancellation token to use. + /// is null. + public virtual async Task> SwitchBillingAsync(NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.SwitchBilling"); + scope.Start(); + try + { + var response = await _newRelicMonitorResourceMonitorsRestClient.SwitchBillingAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new NewRelicMonitorResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/switchBilling + /// + /// + /// Operation Id + /// Monitors_SwitchBilling + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the switch billing request. + /// The cancellation token to use. + /// is null. + public virtual Response SwitchBilling(NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.SwitchBilling"); + scope.Start(); + try + { + var response = _newRelicMonitorResourceMonitorsRestClient.SwitchBilling(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + return Response.FromValue(new NewRelicMonitorResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } /// - /// Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM. + /// Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details /// /// /// Request Path @@ -1021,7 +1351,7 @@ public virtual Pageable GetLinkedResources(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1047,7 +1377,7 @@ public virtual async Task> VmH } /// - /// Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM. + /// Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details /// /// /// Request Path @@ -1059,7 +1389,7 @@ public virtual async Task> VmH /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1085,7 +1415,7 @@ public virtual Response VmHostPayload(C } /// - /// Get marketplace info mapped to the given monitor. + /// A synchronous resource action. /// /// /// Request Path @@ -1097,7 +1427,7 @@ public virtual Response VmHostPayload(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -1119,7 +1449,7 @@ public virtual async Task> GetBillingInfoAsy } /// - /// Get marketplace info mapped to the given monitor. + /// A synchronous resource action. /// /// /// Request Path @@ -1131,7 +1461,7 @@ public virtual async Task> GetBillingInfoAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -1153,7 +1483,7 @@ public virtual Response GetBillingInfo(CancellationTo } /// - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// /// /// Request Path @@ -1165,7 +1495,7 @@ public virtual Response GetBillingInfo(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -1180,7 +1510,7 @@ public virtual AsyncPageable GetConnectedP } /// - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// /// /// Request Path @@ -1192,7 +1522,7 @@ public virtual AsyncPageable GetConnectedP /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// @@ -1219,7 +1549,7 @@ public virtual Pageable GetConnectedPartne /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1281,7 +1611,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1343,7 +1673,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1400,7 +1730,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1457,7 +1787,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -1517,7 +1847,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceCollection.cs index 30d259e778b1..75fa49c5c694 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceCollection.cs @@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create a NewRelicMonitorResource + /// Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic /// /// /// Request Path @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -102,7 +102,7 @@ public virtual async Task> CreateOrUpdateA } /// - /// Create a NewRelicMonitorResource + /// Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic /// /// /// Request Path @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -196,7 +196,7 @@ public virtual async Task> GetAsync(string mon } /// - /// Get a NewRelicMonitorResource + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string mon /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response Get(string monitorName, Cancell } /// - /// List NewRelicMonitorResource resources by resource group + /// Retrieves a list of all New Relic monitor resources either a specific resource group /// /// /// Request Path @@ -253,7 +253,7 @@ public virtual Response Get(string monitorName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo } /// - /// List NewRelicMonitorResource resources by resource group + /// Retrieves a list of all New Relic monitor resources either a specific resource group /// /// /// Request Path @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string monitorName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string monitorName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.Serialization.cs index a45e2b6bd703..fdc13f6958bf 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.Serialization.cs @@ -42,7 +42,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"u8); - ((IJsonModel)Identity).Write(writer, options); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); @@ -81,6 +81,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("planData"u8); writer.WriteObjectValue(PlanData, options); } + if (Optional.IsDefined(SaaSData)) + { + writer.WritePropertyName("saaSData"u8); + writer.WriteObjectValue(SaaSData, options); + } if (options.Format != "W" && Optional.IsDefined(LiftrResourceCategory)) { writer.WritePropertyName("liftrResourceCategory"u8); @@ -148,6 +153,7 @@ internal static NewRelicMonitorResourceData DeserializeNewRelicMonitorResourceDa NewRelicAccountProperties newRelicAccountProperties = default; NewRelicObservabilityUserInfo userInfo = default; NewRelicPlanDetails planData = default; + NewRelicSaaSDataDetails saaSData = default; NewRelicLiftrResourceCategory? liftrResourceCategory = default; int? liftrResourcePreference = default; NewRelicObservabilityOrgCreationSource? orgCreationSource = default; @@ -164,7 +170,7 @@ internal static NewRelicMonitorResourceData DeserializeNewRelicMonitorResourceDa { continue; } - identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerNewRelicObservabilityContext.Default); + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerNewRelicObservabilityContext.Default); continue; } if (property.NameEquals("tags"u8)) @@ -278,6 +284,15 @@ internal static NewRelicMonitorResourceData DeserializeNewRelicMonitorResourceDa planData = NewRelicPlanDetails.DeserializeNewRelicPlanDetails(property0.Value, options); continue; } + if (property0.NameEquals("saaSData"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSData = NewRelicSaaSDataDetails.DeserializeNewRelicSaaSDataDetails(property0.Value, options); + continue; + } if (property0.NameEquals("liftrResourceCategory"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -348,6 +363,7 @@ internal static NewRelicMonitorResourceData DeserializeNewRelicMonitorResourceDa newRelicAccountProperties, userInfo, planData, + saaSData, liftrResourceCategory, liftrResourcePreference, orgCreationSource, @@ -600,6 +616,26 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("SaaSResourceId", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" saaSData: "); + builder.AppendLine("{"); + builder.AppendLine(" saaSData: {"); + builder.Append(" saaSResourceId: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(SaaSData)) + { + builder.Append(" saaSData: "); + BicepSerializationHelpers.AppendChildObject(builder, SaaSData, options, 4, false, " saaSData: "); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LiftrResourceCategory), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs index 3becd5235266..a795b16810e9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicMonitorResource data model. /// A Monitor Resource by NewRelic + /// Serialized Name: NewRelicMonitorResource /// public partial class NewRelicMonitorResourceData : TrackedResourceData { @@ -64,22 +65,68 @@ public NewRelicMonitorResourceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// State of the Azure Subscription containing the monitor resource. - /// Status of Azure Subscription where Marketplace SaaS is located. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResource.identity + /// + /// + /// Provisioning State of the resource + /// Serialized Name: NewRelicMonitorResource.properties.provisioningState + /// + /// + /// MonitoringStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus + /// + /// + /// NewRelic Organization properties of the resource + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus + /// + /// + /// Marketplace Subscription Id + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResource.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResource.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// + /// + /// Liftr resource preference. The priority of the resource. + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource + /// + /// + /// State of the Azure Subscription containing the monitor resource + /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState + /// + /// + /// Status of Azure Subscription where Marketplace SaaS is located. + /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus + /// /// Keeps track of any properties unknown to the library. - internal NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicSaaSDataDetails saaSData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Identity = identity; ProvisioningState = provisioningState; @@ -89,6 +136,7 @@ internal NewRelicMonitorResourceData(ResourceIdentifier id, string name, Resourc NewRelicAccountProperties = newRelicAccountProperties; UserInfo = userInfo; PlanData = planData; + SaaSData = saaSData; LiftrResourceCategory = liftrResourceCategory; LiftrResourcePreference = liftrResourcePreference; OrgCreationSource = orgCreationSource; @@ -103,46 +151,109 @@ internal NewRelicMonitorResourceData() { } - /// The managed service identities assigned to this resource. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResource.identity + /// [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } - /// Provisioning State of the resource. + /// + /// Provisioning State of the resource + /// Serialized Name: NewRelicMonitorResource.properties.provisioningState + /// [WirePath("properties.provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// MonitoringStatus of the resource. + /// + /// MonitoringStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus + /// [WirePath("properties.monitoringStatus")] public NewRelicObservabilityMonitoringStatus? MonitoringStatus { get; } - /// NewRelic Organization properties of the resource. + /// + /// NewRelic Organization properties of the resource + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus + /// [WirePath("properties.marketplaceSubscriptionStatus")] public NewRelicObservabilityMarketplaceSubscriptionStatus? MarketplaceSubscriptionStatus { get; } - /// Marketplace Subscription Id. + /// + /// Marketplace Subscription Id + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId + /// [WirePath("properties.marketplaceSubscriptionId")] public string MarketplaceSubscriptionId { get; } - /// MarketplaceSubscriptionStatus of the resource. + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties + /// [WirePath("properties.newRelicAccountProperties")] public NewRelicAccountProperties NewRelicAccountProperties { get; set; } - /// User Info. + /// + /// User Info + /// Serialized Name: NewRelicMonitorResource.properties.userInfo + /// [WirePath("properties.userInfo")] public NewRelicObservabilityUserInfo UserInfo { get; set; } - /// Plan details. + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResource.properties.planData + /// [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// Liftr resource category. + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// + internal NewRelicSaaSDataDetails SaaSData { get; set; } + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// + [WirePath("properties.saaSData.saaSResourceId")] + public ResourceIdentifier SaaSResourceId + { + get => SaaSData is null ? default : SaaSData.SaaSResourceId; + set + { + if (SaaSData is null) + SaaSData = new NewRelicSaaSDataDetails(); + SaaSData.SaaSResourceId = value; + } + } + + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// [WirePath("properties.liftrResourceCategory")] public NewRelicLiftrResourceCategory? LiftrResourceCategory { get; } - /// Liftr resource preference. The priority of the resource. + /// + /// Liftr resource preference. The priority of the resource. + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference + /// [WirePath("properties.liftrResourcePreference")] public int? LiftrResourcePreference { get; } - /// Source of org creation. + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource + /// [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// Source of account creation. + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource + /// [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } - /// State of the Azure Subscription containing the monitor resource. + /// + /// State of the Azure Subscription containing the monitor resource + /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState + /// [WirePath("properties.subscriptionState")] public string SubscriptionState { get; set; } - /// Status of Azure Subscription where Marketplace SaaS is located. + /// + /// Status of Azure Subscription where Marketplace SaaS is located. + /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus + /// [WirePath("properties.saaSAzureSubscriptionStatus")] public string SaaSAzureSubscriptionStatus { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs index 9cb75db43db9..59ca832a99a0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs @@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Add the subscriptions that should be monitored by the NewRelic monitor resource. + /// Create a MonitoredSubscriptionProperties /// /// /// Request Path @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -100,7 +100,7 @@ public virtual async Task> C } /// - /// Add the subscriptions that should be monitored by the NewRelic monitor resource. + /// Create a MonitoredSubscriptionProperties /// /// /// Request Path @@ -112,7 +112,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -147,7 +147,7 @@ public virtual ArmOperation CreateOrUpdat } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -159,7 +159,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -188,7 +188,7 @@ public virtual async Task> GetAs } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -200,7 +200,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -229,7 +229,7 @@ public virtual Response Get(MonitoredSubs } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource /// /// /// Request Path @@ -241,7 +241,7 @@ public virtual Response Get(MonitoredSubs /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -259,7 +259,7 @@ public virtual AsyncPageable GetAllAsync( } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource /// /// /// Request Path @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -340,7 +340,7 @@ public virtual async Task> ExistsAsync(MonitoredSubscriptionConfi /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -379,7 +379,7 @@ public virtual Response Exists(MonitoredSubscriptionConfigurationName conf /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -420,7 +420,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs index 8f795fba11ae..b83c2948b5a8 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicMonitoredSubscription data model. /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: MonitoredSubscriptionProperties /// public partial class NewRelicMonitoredSubscriptionData : ResourceData { @@ -61,7 +62,10 @@ public NewRelicMonitoredSubscriptionData() /// The name. /// The resourceType. /// The systemData. - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: MonitoredSubscriptionProperties.properties + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicMonitoredSubscriptionProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -69,7 +73,10 @@ internal NewRelicMonitoredSubscriptionData(ResourceIdentifier id, string name, R _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: MonitoredSubscriptionProperties.properties + /// [WirePath("properties")] public NewRelicMonitoredSubscriptionProperties Properties { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs index 430e8197493c..9e9ca0a8bdc9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -130,7 +130,7 @@ public virtual async Task> GetAs } /// - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -142,7 +142,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response Get(CancellationT } /// - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource + /// Delete a MonitoredSubscriptionProperties /// /// /// Request Path @@ -182,7 +182,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource + /// Delete a MonitoredSubscriptionProperties /// /// /// Request Path @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -254,7 +254,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource + /// Update a MonitoredSubscriptionProperties /// /// /// Request Path @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -300,7 +300,7 @@ public virtual async Task> U } /// - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource + /// Update a MonitoredSubscriptionProperties /// /// /// Request Path @@ -312,7 +312,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleCollection.cs index ab9f05824e52..d0989dcd47c8 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Create a TagRule + /// Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -101,7 +101,7 @@ public virtual async Task> Cr } /// - /// Create a TagRule + /// Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate } /// - /// Get a TagRule + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -195,7 +195,7 @@ public virtual async Task> GetAsy } /// - /// Get a TagRule + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -240,7 +240,7 @@ public virtual Response Get(string ruleSet } /// - /// List TagRule resources by NewRelicMonitorResource + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string ruleSet /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(C } /// - /// List TagRule resources by NewRelicMonitorResource + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ruleSetName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ruleSetName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs index bfbd1f296637..3c7d3c5a96f0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs @@ -16,6 +16,7 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicObservabilityTagRule data model. /// A tag rule belonging to NewRelic account + /// Serialized Name: TagRule /// public partial class NewRelicObservabilityTagRuleData : ResourceData { @@ -61,9 +62,18 @@ public NewRelicObservabilityTagRuleData() /// The name. /// The resourceType. /// The systemData. - /// Provisioning State of the resource. - /// Set of rules for sending logs for the Monitor resource. - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Provisioning State of the resource + /// Serialized Name: TagRule.properties.provisioningState + /// + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: TagRule.properties.logRules + /// + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: TagRule.properties.metricRules + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicProvisioningState? provisioningState, NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -73,13 +83,22 @@ internal NewRelicObservabilityTagRuleData(ResourceIdentifier id, string name, Re _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Provisioning State of the resource. + /// + /// Provisioning State of the resource + /// Serialized Name: TagRule.properties.provisioningState + /// [WirePath("properties.provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// Set of rules for sending logs for the Monitor resource. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Serialized Name: TagRule.properties.logRules + /// [WirePath("properties.logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// Set of rules for sending metrics for the Monitor resource. + /// + /// Set of rules for sending metrics for the Monitor resource. + /// Serialized Name: TagRule.properties.metricRules + /// [WirePath("properties.metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleResource.cs index bf72c29e9630..01efa8abcd51 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Get a TagRule + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -130,7 +130,7 @@ public virtual async Task> GetAsy } /// - /// Get a TagRule + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response Get(CancellationTo } /// - /// Delete a TagRule + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags /// /// /// Request Path @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete a TagRule + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags /// /// /// Request Path @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -254,7 +254,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update a TagRule + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored /// /// /// Request Path @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> Update } /// - /// Update a TagRule + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored /// /// /// Request Path @@ -308,7 +308,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2024-03-01 + /// 2025-05-01-preview /// /// /// Resource diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs index 925894cc5197..6720d2d6d334 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/AccountsRestOperations.cs @@ -32,7 +32,7 @@ public AccountsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -68,7 +68,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string userEmail, return message; } - /// List all the existing accounts. + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created. /// The ID of the target subscription. /// User Email. /// Location for NewRelic. @@ -96,7 +96,7 @@ public async Task> ListAsync(string subscri } } - /// List all the existing accounts. + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created. /// The ID of the target subscription. /// User Email. /// Location for NewRelic. @@ -146,7 +146,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List all the existing accounts. + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created. /// The URL to the next page of results. /// The ID of the target subscription. /// User Email. @@ -176,7 +176,7 @@ public async Task> ListNextPageAsync(string } } - /// List all the existing accounts. + /// Lists all the New Relic accounts linked to your email address, helping you understand the existing accounts that have been created. /// The URL to the next page of results. /// The ID of the target subscription. /// User Email. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs index af764a203e50..ced01fab45fc 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs @@ -32,7 +32,7 @@ public BillingInfoRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,7 +72,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get marketplace info mapped to the given monitor. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -101,7 +101,7 @@ public async Task> GetAsync(string subscript } } - /// Get marketplace info mapped to the given monitor. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/ConnectedPartnerResourcesRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/ConnectedPartnerResourcesRestOperations.cs index c04f3c886c28..d6f78e178c8d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/ConnectedPartnerResourcesRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/ConnectedPartnerResourcesRestOperations.cs @@ -32,7 +32,7 @@ public ConnectedPartnerResourcesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -79,7 +79,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -109,7 +109,7 @@ public async Task> ListAsync(str } } - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -161,7 +161,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -193,7 +193,7 @@ public async Task> ListNextPageA } } - /// List of all active deployments that are associated with the marketplace subscription linked to the given monitor. + /// A synchronous resource action. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs index 834ff48b2d83..8da5dc704550 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs @@ -32,7 +32,7 @@ public MonitoredSubscriptionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,7 +72,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -101,7 +101,7 @@ public async Task> ListAsync(strin } } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -168,7 +168,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -200,7 +200,7 @@ public async Task> GetAsync(string s } } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -274,7 +274,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Add the subscriptions that should be monitored by the NewRelic monitor resource. + /// Create a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -302,7 +302,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Add the subscriptions that should be monitored by the NewRelic monitor resource. + /// Create a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -372,7 +372,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource. + /// Update a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -400,7 +400,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource. + /// Update a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -466,7 +466,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource. + /// Delete a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -492,7 +492,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Updates the subscriptions that are being monitored by the NewRelic monitor resource. + /// Delete a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -540,7 +540,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -571,7 +571,7 @@ public async Task> ListNextPageAsy } } - /// List the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs index 2ff67093789f..baff96b32791 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -32,7 +32,7 @@ public MonitorsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -64,7 +64,7 @@ internal HttpMessage CreateListBySubscriptionRequest(string subscriptionId) return message; } - /// List NewRelicMonitorResource resources by subscription ID. + /// Lists all New Relic monitor resources either within a specific subscription. /// The ID of the target subscription. /// The cancellation token to use. /// is null. @@ -89,7 +89,7 @@ public async Task> ListBySubscriptio } } - /// List NewRelicMonitorResource resources by subscription ID. + /// Lists all New Relic monitor resources either within a specific subscription. /// The ID of the target subscription. /// The cancellation token to use. /// is null. @@ -146,7 +146,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str return message; } - /// List NewRelicMonitorResource resources by resource group. + /// Retrieves a list of all New Relic monitor resources either a specific resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. @@ -173,7 +173,7 @@ public async Task> ListByResourceGro } } - /// List NewRelicMonitorResource resources by resource group. + /// Retrieves a list of all New Relic monitor resources either a specific resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. @@ -234,7 +234,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a NewRelicMonitorResource. + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -265,7 +265,7 @@ public async Task> GetAsync(string subscri } } - /// Get a NewRelicMonitorResource. + /// Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -334,7 +334,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create a NewRelicMonitorResource. + /// Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -361,7 +361,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create a NewRelicMonitorResource. + /// Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -426,7 +426,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update a NewRelicMonitorResource. + /// Updates an existing New Relic monitor resource from your Azure subscription. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -453,7 +453,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update a NewRelicMonitorResource. + /// Updates an existing New Relic monitor resource from your Azure subscription. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -516,7 +516,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete a NewRelicMonitorResource. + /// Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -544,7 +544,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete a NewRelicMonitorResource. + /// Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -612,7 +612,7 @@ internal HttpMessage CreateGetMetricRulesRequest(string subscriptionId, string r return message; } - /// Get metric rules. + /// Retrieves the metric rules that are configured in the New Relic monitor resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -643,7 +643,7 @@ public async Task> GetMetricRulesAsyn } } - /// Get metric rules. + /// Retrieves the metric rules that are configured in the New Relic monitor resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -714,7 +714,7 @@ internal HttpMessage CreateGetMetricStatusRequest(string subscriptionId, string return message; } - /// Get metric status. + /// Retrieves the metric status that are configured in the New Relic monitor resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -745,7 +745,7 @@ public async Task> GetMetricStatusAsync(st } } - /// Get metric status. + /// Retrieves the metric status that are configured in the New Relic monitor resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -776,7 +776,7 @@ public Response GetMetricStatus(string subscription } } - internal RequestUriBuilder CreateListAppServicesRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) + internal RequestUriBuilder CreateLatestLinkedSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -786,12 +786,12 @@ internal RequestUriBuilder CreateListAppServicesRequestUri(string subscriptionId uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/listAppServices", false); + uri.AppendPath("/latestLinkedSaaS", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content) + internal HttpMessage CreateLatestLinkedSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -804,42 +804,36 @@ internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/listAppServices", false); + uri.AppendPath("/latestLinkedSaaS", 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; } - /// List the app service resources currently being monitored by the NewRelic resource. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// The details of the app services get request. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListAppServicesAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + public async Task> LatestLinkedSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListAppServicesRequest(subscriptionId, resourceGroupName, monitorName, content); + using var message = CreateLatestLinkedSaaSRequest(subscriptionId, resourceGroupName, monitorName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - NewRelicAppServicesListResult value = default; + NewRelicLatestLinkedSaaSResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicAppServicesListResult.DeserializeNewRelicAppServicesListResult(document.RootElement); + value = NewRelicLatestLinkedSaaSResult.DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -847,30 +841,28 @@ public async Task> ListAppServicesAsync( } } - /// List the app service resources currently being monitored by the NewRelic resource. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// The details of the app services get request. /// The cancellation token to use. - /// , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListAppServices(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + public Response LatestLinkedSaaS(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListAppServicesRequest(subscriptionId, resourceGroupName, monitorName, content); + using var message = CreateLatestLinkedSaaSRequest(subscriptionId, resourceGroupName, monitorName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - NewRelicAppServicesListResult value = default; + NewRelicLatestLinkedSaaSResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicAppServicesListResult.DeserializeNewRelicAppServicesListResult(document.RootElement); + value = NewRelicLatestLinkedSaaSResult.DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -878,7 +870,7 @@ public Response ListAppServices(string subscripti } } - internal RequestUriBuilder CreateSwitchBillingRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content) + internal RequestUriBuilder CreateLinkSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -888,12 +880,12 @@ internal RequestUriBuilder CreateSwitchBillingRequestUri(string subscriptionId, uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/switchBilling", false); + uri.AppendPath("/linkSaaS", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateSwitchBillingRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content) + internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -906,7 +898,101 @@ internal HttpMessage CreateSwitchBillingRequest(string subscriptionId, string re uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/switchBilling", false); + uri.AppendPath("/linkSaaS", 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(details, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Links a new SaaS to the newrelic organization of the underlying monitor. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// Link SaaS body parameter. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task LinkSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + Argument.AssertNotNull(details, nameof(details)); + + using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, details); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Links a new SaaS to the newrelic organization of the underlying monitor. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// Link SaaS body parameter. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response LinkSaaS(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + Argument.AssertNotNull(details, nameof(details)); + + using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, details); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListAppServicesRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listAppServices", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listAppServices", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -918,69 +1004,63 @@ internal HttpMessage CreateSwitchBillingRequest(string subscriptionId, string re return message; } - /// Switches the billing for NewRelic monitor resource. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// The details of the switch billing request. + /// The details of the app services get request. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> SwitchBillingAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + public async Task> ListAppServicesAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateSwitchBillingRequest(subscriptionId, resourceGroupName, monitorName, content); + using var message = CreateListAppServicesRequest(subscriptionId, resourceGroupName, monitorName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - NewRelicMonitorResourceData value = default; + NewRelicAppServicesListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicMonitorResourceData.DeserializeNewRelicMonitorResourceData(document.RootElement); + value = NewRelicAppServicesListResult.DeserializeNewRelicAppServicesListResult(document.RootElement); return Response.FromValue(value, message.Response); } - case 202: - case 204: - return Response.FromValue((NewRelicMonitorResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Switches the billing for NewRelic monitor resource. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// The details of the switch billing request. + /// The details of the app services get request. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response SwitchBilling(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + public Response ListAppServices(string subscriptionId, string resourceGroupName, string monitorName, NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNull(content, nameof(content)); - using var message = CreateSwitchBillingRequest(subscriptionId, resourceGroupName, monitorName, content); + using var message = CreateListAppServicesRequest(subscriptionId, resourceGroupName, monitorName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - NewRelicMonitorResourceData value = default; + NewRelicAppServicesListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicMonitorResourceData.DeserializeNewRelicMonitorResourceData(document.RootElement); + value = NewRelicAppServicesListResult.DeserializeNewRelicAppServicesListResult(document.RootElement); return Response.FromValue(value, message.Response); } - case 202: - case 204: - return Response.FromValue((NewRelicMonitorResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -1026,7 +1106,7 @@ internal HttpMessage CreateListHostsRequest(string subscriptionId, string resour return message; } - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1057,7 +1137,7 @@ public async Task> ListHostsA } } - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1088,6 +1168,100 @@ public Response ListHosts(string subsc } } + internal RequestUriBuilder CreateListLinkedResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listLinkedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/listLinkedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListLinkedResourcesAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + + using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + LinkedResourceListResponse value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListLinkedResources(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + + using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + LinkedResourceListResponse value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListMonitoredResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); @@ -1124,7 +1298,7 @@ internal HttpMessage CreateListMonitoredResourcesRequest(string subscriptionId, return message; } - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1153,7 +1327,7 @@ public async Task> ListMonitoredRe } } - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1182,7 +1356,7 @@ public Response ListMonitoredResources(stri } } - internal RequestUriBuilder CreateListLinkedResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + internal RequestUriBuilder CreateRefreshIngestionKeyRequestUri(string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1192,12 +1366,12 @@ internal RequestUriBuilder CreateListLinkedResourcesRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/listLinkedResources", false); + uri.AppendPath("/refreshIngestionKey", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) + internal HttpMessage CreateRefreshIngestionKeyRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1210,7 +1384,7 @@ internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/listLinkedResources", false); + uri.AppendPath("/refreshIngestionKey", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1218,59 +1392,252 @@ internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, str return message; } - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListLinkedResourcesAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task RefreshIngestionKeyAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); + using var message = CreateRefreshIngestionKeyRequest(subscriptionId, resourceGroupName, monitorName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response RefreshIngestionKey(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + + using var message = CreateRefreshIngestionKeyRequest(subscriptionId, resourceGroupName, monitorName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateResubscribeRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicResubscribeProperties body) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/resubscribe", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateResubscribeRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicResubscribeProperties body) + { + 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/resubscribe", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + if (body != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); + request.Content = content; + } + _userAgent.Apply(message); + return message; + } + + /// A long-running resource action. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// Resubscribe Properties. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task ResubscribeAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicResubscribeProperties body = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + + using var message = CreateResubscribeRequest(subscriptionId, resourceGroupName, monitorName, body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// A long-running resource action. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// Resubscribe Properties. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Resubscribe(string subscriptionId, string resourceGroupName, string monitorName, NewRelicResubscribeProperties body = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + + using var message = CreateResubscribeRequest(subscriptionId, resourceGroupName, monitorName, body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateSwitchBillingRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/switchBilling", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateSwitchBillingRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent 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/NewRelic.Observability/monitors/", false); + uri.AppendPath(monitorName, true); + uri.AppendPath("/switchBilling", 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; + } + + /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// Name of the Monitors resource. + /// The details of the switch billing request. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> SwitchBillingAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateSwitchBillingRequest(subscriptionId, resourceGroupName, monitorName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - LinkedResourceListResponse value = default; + NewRelicMonitorResourceData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + value = NewRelicMonitorResourceData.DeserializeNewRelicMonitorResourceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 202: + case 204: + return Response.FromValue((NewRelicMonitorResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. + /// The details of the switch billing request. /// The cancellation token to use. - /// , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListLinkedResources(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response SwitchBilling(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSwitchBillingContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); + using var message = CreateSwitchBillingRequest(subscriptionId, resourceGroupName, monitorName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - LinkedResourceListResponse value = default; + NewRelicMonitorResourceData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + value = NewRelicMonitorResourceData.DeserializeNewRelicMonitorResourceData(document.RootElement); return Response.FromValue(value, message.Response); } + case 202: + case 204: + return Response.FromValue((NewRelicMonitorResourceData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -1312,7 +1679,7 @@ internal HttpMessage CreateVmHostPayloadRequest(string subscriptionId, string re return message; } - /// Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM. + /// Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1341,7 +1708,7 @@ public async Task> VmHostPaylo } } - /// Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM. + /// Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1392,7 +1759,7 @@ internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, st return message; } - /// List NewRelicMonitorResource resources by subscription ID. + /// Lists all New Relic monitor resources either within a specific subscription. /// The URL to the next page of results. /// The ID of the target subscription. /// The cancellation token to use. @@ -1419,7 +1786,7 @@ public async Task> ListBySubscriptio } } - /// List NewRelicMonitorResource resources by subscription ID. + /// Lists all New Relic monitor resources either within a specific subscription. /// The URL to the next page of results. /// The ID of the target subscription. /// The cancellation token to use. @@ -1468,7 +1835,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s return message; } - /// List NewRelicMonitorResource resources by resource group. + /// Retrieves a list of all New Relic monitor resources either a specific resource group. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1497,7 +1864,7 @@ public async Task> ListByResourceGro } } - /// List NewRelicMonitorResource resources by resource group. + /// Retrieves a list of all New Relic monitor resources either a specific resource group. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1548,7 +1915,7 @@ internal HttpMessage CreateListAppServicesNextPageRequest(string nextLink, strin return message; } - /// List the app service resources currently being monitored by the NewRelic resource. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1581,7 +1948,7 @@ public async Task> ListAppServicesNextPa } } - /// List the app service resources currently being monitored by the NewRelic resource. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1636,7 +2003,7 @@ internal HttpMessage CreateListHostsNextPageRequest(string nextLink, string subs return message; } - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1669,7 +2036,7 @@ public async Task> ListHostsN } } - /// List the compute vm resources currently being monitored by the NewRelic resource. + /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1702,7 +2069,7 @@ public Response ListHostsNextPage(stri } } - internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + internal RequestUriBuilder CreateListLinkedResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1710,7 +2077,7 @@ internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string return uri; } - internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1724,7 +2091,7 @@ internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink return message; } - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1732,22 +2099,22 @@ internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListMonitoredResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> ListLinkedResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateListMonitoredResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); + using var message = CreateListLinkedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - NewRelicMonitoredResourceListResult value = default; + LinkedResourceListResponse value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicMonitoredResourceListResult.DeserializeNewRelicMonitoredResourceListResult(document.RootElement); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1755,7 +2122,7 @@ public async Task> ListMonitoredRe } } - /// List the resources currently being monitored by the NewRelic monitor resource. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1763,22 +2130,22 @@ public async Task> ListMonitoredRe /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListMonitoredResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response ListLinkedResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateListMonitoredResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); + using var message = CreateListLinkedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - NewRelicMonitoredResourceListResult value = default; + LinkedResourceListResponse value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicMonitoredResourceListResult.DeserializeNewRelicMonitoredResourceListResult(document.RootElement); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1786,7 +2153,7 @@ public Response ListMonitoredResourcesNextP } } - internal RequestUriBuilder CreateListLinkedResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + internal RequestUriBuilder CreateListMonitoredResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1794,7 +2161,7 @@ internal RequestUriBuilder CreateListLinkedResourcesNextPageRequestUri(string ne return uri; } - internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) + internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1808,7 +2175,7 @@ internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, s return message; } - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1816,22 +2183,22 @@ internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, s /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListLinkedResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> ListMonitoredResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateListLinkedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); + using var message = CreateListMonitoredResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - LinkedResourceListResponse value = default; + NewRelicMonitoredResourceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + value = NewRelicMonitoredResourceListResult.DeserializeNewRelicMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1839,7 +2206,7 @@ public async Task> ListLinkedResourcesNextP } } - /// List all Azure resources associated to the same NewRelic organization and account as the target resource. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -1847,22 +2214,22 @@ public async Task> ListLinkedResourcesNextP /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListLinkedResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response ListMonitoredResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateListLinkedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); + using var message = CreateListMonitoredResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, monitorName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - LinkedResourceListResponse value = default; + NewRelicMonitoredResourceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + value = NewRelicMonitoredResourceListResult.DeserializeNewRelicMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs index 80bcf87daf98..3777d4dd5527 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/OrganizationsRestOperations.cs @@ -32,7 +32,7 @@ public OrganizationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -68,7 +68,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string userEmail, return message; } - /// List all the existing organizations. + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created. /// The ID of the target subscription. /// User Email. /// Location for NewRelic. @@ -96,7 +96,7 @@ public async Task> ListAsync(string su } } - /// List all the existing organizations. + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created. /// The ID of the target subscription. /// User Email. /// Location for NewRelic. @@ -146,7 +146,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List all the existing organizations. + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created. /// The URL to the next page of results. /// The ID of the target subscription. /// User Email. @@ -176,7 +176,7 @@ public async Task> ListNextPageAsync(s } } - /// List all the existing organizations. + /// Lists all the New Relic organizations linked to your email address, helping you understand the existing organizations that have been created. /// The URL to the next page of results. /// The ID of the target subscription. /// User Email. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs index 0318e7439dcc..4d58cb6d5ec7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/PlansRestOperations.cs @@ -32,7 +32,7 @@ public PlansRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -80,7 +80,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string accountId, return message; } - /// List plans data. + /// Lists the plans data linked to your organization, providing an overview of the available plans. /// The ID of the target subscription. /// Account Id. /// Organization Id. @@ -107,7 +107,7 @@ public async Task> ListAsync(string subscri } } - /// List plans data. + /// Lists the plans data linked to your organization, providing an overview of the available plans. /// The ID of the target subscription. /// Account Id. /// Organization Id. @@ -156,7 +156,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// List plans data. + /// Lists the plans data linked to your organization, providing an overview of the available plans. /// The URL to the next page of results. /// The ID of the target subscription. /// Account Id. @@ -185,7 +185,7 @@ public async Task> ListNextPageAsync(string } } - /// List plans data. + /// Lists the plans data linked to your organization, providing an overview of the available plans. /// The URL to the next page of results. /// The ID of the target subscription. /// Account Id. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs new file mode 100644 index 000000000000..13434daf40f2 --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs @@ -0,0 +1,125 @@ +// 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.NewRelicObservability.Models; + +namespace Azure.ResourceManager.NewRelicObservability +{ + internal partial class SaaSRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SaaSRestOperations. + /// 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 SaaSRestOperations(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 ?? "2025-05-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateActivateResourceRequestUri(string subscriptionId, ActivateSaaSParameterContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/NewRelic.Observability/activateSaaS", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateActivateResourceRequest(string subscriptionId, ActivateSaaSParameterContent 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/NewRelic.Observability/activateSaaS", 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; + } + + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource. + /// The ID of the target subscription. + /// The request body. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ActivateResourceAsync(string subscriptionId, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateActivateResourceRequest(subscriptionId, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + NewRelicSaaSResourceDetailsResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = NewRelicSaaSResourceDetailsResult.DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource. + /// The ID of the target subscription. + /// The request body. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + public Response ActivateResource(string subscriptionId, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateActivateResourceRequest(subscriptionId, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + NewRelicSaaSResourceDetailsResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = NewRelicSaaSResourceDetailsResult.DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs index dda8c90cbe0c..377b496c7f31 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -32,7 +32,7 @@ public TagRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2025-05-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,7 +72,7 @@ internal HttpMessage CreateListByNewRelicMonitorResourceRequest(string subscript return message; } - /// List TagRule resources by NewRelicMonitorResource. + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -101,7 +101,7 @@ public async Task> ListByNewRel } } - /// List TagRule resources by NewRelicMonitorResource. + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -168,7 +168,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Get a TagRule. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -201,7 +201,7 @@ public async Task> GetAsync(string su } } - /// Get a TagRule. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -276,7 +276,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Create a TagRule. + /// Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -305,7 +305,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Create a TagRule. + /// Creates a new set of tag rules for a specific New Relic monitor resource, determining which Azure resources are monitored based on their tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -334,7 +334,7 @@ public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, } } - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -350,11 +350,11 @@ internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -368,67 +368,81 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG 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; } - /// Delete a TagRule. + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// Name of the TagRule. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNullOrEmpty(ruleSetName, nameof(ruleSetName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName, patch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + NewRelicObservabilityTagRuleData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = NewRelicObservabilityTagRuleData.DeserializeNewRelicObservabilityTagRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Delete a TagRule. + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// Name of the TagRule. + /// The resource properties to be updated. /// The cancellation token to use. - /// , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNullOrEmpty(ruleSetName, nameof(ruleSetName)); + Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName, patch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - case 204: - return message.Response; + { + NewRelicObservabilityTagRuleData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = NewRelicObservabilityTagRuleData.DeserializeNewRelicObservabilityTagRuleData(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -444,11 +458,11 @@ internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string return uri; } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch) + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/subscriptions/", false); @@ -462,75 +476,61 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG 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; } - /// Update a TagRule. + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// Name of the TagRule. - /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. + /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch, CancellationToken cancellationToken = default) + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNullOrEmpty(ruleSetName, nameof(ruleSetName)); - Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName, patch); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - NewRelicObservabilityTagRuleData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityTagRuleData.DeserializeNewRelicObservabilityTagRuleData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Update a TagRule. + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// Name of the TagRule. - /// The resource properties to be updated. /// The cancellation token to use. - /// , , , or is null. + /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, NewRelicObservabilityTagRulePatch patch, CancellationToken cancellationToken = default) + public Response Delete(string subscriptionId, string resourceGroupName, string monitorName, string ruleSetName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); Argument.AssertNotNullOrEmpty(ruleSetName, nameof(ruleSetName)); - Argument.AssertNotNull(patch, nameof(patch)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName, patch); + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, monitorName, ruleSetName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - NewRelicObservabilityTagRuleData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicObservabilityTagRuleData.DeserializeNewRelicObservabilityTagRuleData(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + case 204: + return message.Response; default: throw new RequestFailedException(message.Response); } @@ -558,7 +558,7 @@ internal HttpMessage CreateListByNewRelicMonitorResourceNextPageRequest(string n return message; } - /// List TagRule resources by NewRelicMonitorResource. + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -589,7 +589,7 @@ public async Task> ListByNewRel } } - /// List TagRule resources by NewRelicMonitorResource. + /// Lists all tag rules associated with a specific New Relic monitor resource, helping you manage and audit the rules that control resource monitoring. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md index 1e8dc3ab99cf..ef207964131c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md @@ -7,8 +7,8 @@ azure-arm: true csharp: true library-name: Newrelic namespace: Azure.ResourceManager.NewRelicObservability -require: https://github.com/Azure/azure-rest-api-specs/blob/07d286359f828bbc7901e86288a5d62b48ae2052/specification/newrelic/resource-manager/readme.md -#tag: package-2024-03-01 +require: https://github.com/Azure/azure-rest-api-specs/blob/8eaa76601a7ad84c0b21bdf8050ff61203ecb89c/specification/newrelic/resource-manager/readme.md +#tag: package-2025-05-01-preview # before: package-2024-03-01 output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: @@ -20,8 +20,8 @@ modelerfour: use-model-reader-writer: true enable-bicep-serialization: true -#mgmt-debug: -# show-serialized-names: true +mgmt-debug: + show-serialized-names: true format-by-name-rules: 'tenantId': 'uuid' @@ -33,21 +33,12 @@ format-by-name-rules: prepend-rp-prefix: - AccountCreationSource - AccountInfo -- Agent - AppServiceInfo -- AppServicesGetContent -- AppServicesListResult -- BillingCycle - BillingSource -- Endpoint - FilteringTag -- HostsGetContent - LogRules - MarketplaceSubscriptionStatus - MetricRules -- MetricsContent -- MetricsStatusContent -- MetricsStatusResult - MonitoringStatus - OrganizationInfo - OrgCreationSource @@ -57,8 +48,6 @@ prepend-rp-prefix: - SendingMetricsStatus - SendMetricsStatus - SendSubscriptionLogsStatus -- SingleSignOnState -- SwitchBillingContent - TagAction - TagRuleListResult - TagRule @@ -96,25 +85,13 @@ rename-mapping: AccountResource: NewRelicAccountResourceData AccountResource.properties.region: -|azure-location AccountsListResponse: NewRelicAccountsListResult - AgentData.ArcResourceId: -|arm-id - AgentData.ArcVmUuid: -|uuid AppServicesGetRequest: NewRelicAppServicesGetContent AppServicesGetRequest.azureResourceIds: -|arm-id AppServiceInfo.azureResourceId: -|arm-id AppServicesListResponse: NewRelicAppServicesListResult BillingInfoResponse: NewRelicBillingInfoResult - AzureStorageBlobContainerEndpointProperties: StorageBlobContainerEndpointProperties - AzureStorageBlobContainerNewrelicEndpointProperties.StorageAccountResourceId: -|arm-id HostsGetRequest: NewRelicHostsGetContent HostsGetRequest.vmIds: -|arm-id - JobDefinitionData: NewRelicJobDefinitionData - JobRun: NewRelicJobRun - JobDefinitionData.AgentResourceId: -|arm-id - JobDefinitionData.LatestJobRunResourceId: -|arm-id - JobDefinitionData.SourceResourceId: -|arm-id - JobDefinitionData.TargetResourceId: -|arm-id - JobRunData.AgentResourceId: -|arm-id - JobRunData.SourceResourceId: -|arm-id LiftrResourceCategories: NewRelicLiftrResourceCategory MetricsRequest: NewRelicMetricsContent MetricsStatusRequest: NewRelicMetricsStatusContent @@ -124,10 +101,8 @@ rename-mapping: MonitoredResourceListResponse: NewRelicMonitoredResourceListResult MonitoringStatus.Disabled: IsDisabled MonitoringStatus.Enabled: IsEnabled - NewrelicAgentData.LocalIPAddress: -|ip-address OrganizationsListResponse: NewRelicOrganizationsListResult ProvisioningState: NewRelicProvisioningState - Project: NewRelicProject PlanDataListResponse: NewRelicPlanDataListResult PlanData: NewRelicPlanDetails PlanData.billingCycle: NewRelicPlanBillingCycle @@ -144,7 +119,6 @@ rename-mapping: SendSubscriptionLogsStatus.Disabled: IsDisabled SendSubscriptionLogsStatus.Enabled: IsEnabled SingleSignOnStates: NewRelicSingleSignOnState - StorageMover: NewRelicStorageMover SwitchBillingRequest: NewRelicSwitchBillingContent SwitchBillingRequest.azureResourceId: -|arm-id VMInfo.vmId: -|arm-id @@ -157,10 +131,24 @@ rename-mapping: SubscriptionList: NewRelicMonitoredSubscriptionProperties MonitoredSubscription: NewRelicMonitoredSubscriptionInfo MonitoringTagRulesProperties: NewRelicMonitoringTagRules + LatestLinkedSaaSResponse: NewRelicLatestLinkedSaaSResult + LatestLinkedSaaSResponse.saaSResourceId: -|arm-id + SaaSData: NewRelicSaaSDataDetails + SaaSData.saaSResourceId: -|arm-id + SaaSResourceDetailsResponse: NewRelicSaaSResourceDetailsResult + ResubscribeProperties: NewRelicResubscribeProperties + ActivateSaaSParameterRequest.saasGuid: -|uuid override-operation-name: Accounts_List: GetNewRelicAccounts Organizations_List: GetNewRelicOrganizations Plans_List: GetNewRelicPlans +directive: + - from: NewRelic.json + where: $.definitions.MonitoredSubscription + transform: > + delete $.required; + reason: Remove the required attribute to generate a parameterless public constructor. + ``` diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Azure.ResourceManager.NewRelicObservability.Tests.csproj b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Azure.ResourceManager.NewRelicObservability.Tests.csproj index fdb9a1cdcf11..5ac4abef1873 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Azure.ResourceManager.NewRelicObservability.Tests.csproj +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Azure.ResourceManager.NewRelicObservability.Tests.csproj @@ -6,4 +6,7 @@ + + + diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs index 50478e502012..ac05af628255 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NewRelicMonitorResource [Ignore("Only validating compilation of examples")] public async Task Get_MonitorsGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Get_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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_MonitorsGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Delete_MonitorsDeleteMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Delete_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -79,7 +79,7 @@ public async Task Delete_MonitorsDeleteMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Delete_MonitorsDeleteMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Delete_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -106,7 +106,7 @@ public async Task Delete_MonitorsDeleteMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task Update_MonitorsUpdateMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Update_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Update_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -186,7 +186,7 @@ public async Task Update_MonitorsUpdateMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetMetricRules_MonitorsGetMetricRulesMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_GetMetricRules_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_GetMetricRules_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_GetMetricRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 GetMetricRules_MonitorsGetMetricRulesMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetMetricRules_MonitorsGetMetricRulesMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_GetMetricRules_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_GetMetricRules_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_GetMetricRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +240,7 @@ public async Task GetMetricRules_MonitorsGetMetricRulesMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetMetricStatus_MonitorsGetMetricStatusMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_GetMetricStatus_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_GetMetricStatus_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_GetMetricStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -270,7 +270,7 @@ public async Task GetMetricStatus_MonitorsGetMetricStatusMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetMetricStatus_MonitorsGetMetricStatusMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_GetMetricStatus_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_GetMetricStatus_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_GetMetricStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -298,10 +298,10 @@ public async Task GetMetricStatus_MonitorsGetMetricStatusMinimumSetGen() [Test] [Ignore("Only validating compilation of examples")] - public async Task GetAppServices_MonitorsListAppServicesMaximumSetGen() + public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListAppServices_MaximumSet_Gen.json - // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MaximumSet_Gen.json + // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -311,30 +311,23 @@ public async Task GetAppServices_MonitorsListAppServicesMaximumSetGen() // this example assumes you already have this NewRelicMonitorResource created on azure // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rgNewRelic"; - string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + string resourceGroupName = "rgopenapi"; + string monitorName = "ipxmlcbonyxtolzejcjshkmlron"; ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - // invoke the operation and iterate over the result - NewRelicAppServicesGetContent content = new NewRelicAppServicesGetContent("ruxvg@xqkmdhrnoo.hlmbpm") - { - AzureResourceIds = { new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz") }, - }; - await foreach (NewRelicObservabilityAppServiceInfo item in newRelicMonitorResource.GetAppServicesAsync(content)) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + NewRelicLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task GetAppServices_MonitorsListAppServicesMinimumSetGen() + public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListAppServices_MinimumSet_Gen.json - // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MinimumSet_Gen.json + // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -344,30 +337,23 @@ public async Task GetAppServices_MonitorsListAppServicesMinimumSetGen() // this example assumes you already have this NewRelicMonitorResource created on azure // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rgNewRelic"; - string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + string resourceGroupName = "rgopenapi"; + string monitorName = "ipxmlcbonyxtolzejcjshkmlron"; ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - // invoke the operation and iterate over the result - NewRelicAppServicesGetContent content = new NewRelicAppServicesGetContent("ruxvg@xqkmdhrnoo.hlmbpm") - { - AzureResourceIds = { new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz") }, - }; - await foreach (NewRelicObservabilityAppServiceInfo item in newRelicMonitorResource.GetAppServicesAsync(content)) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + NewRelicLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); - Console.WriteLine("Succeeded"); + Console.WriteLine($"Succeeded: {result}"); } [Test] [Ignore("Only validating compilation of examples")] - public async Task SwitchBilling_MonitorsSwitchBillingMaximumSetGen() + public async Task LinkSaaS_MonitorsLinkSaaS() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_SwitchBilling_MaximumSet_Gen.json - // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LinkSaaS.json + // this example is just showing the usage of "Monitors_LinkSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -377,25 +363,18 @@ public async Task SwitchBilling_MonitorsSwitchBillingMaximumSetGen() // this example assumes you already have this NewRelicMonitorResource created on azure // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rgNewRelic"; - string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + string resourceGroupName = "myResourceGroup"; + string monitorName = "myMonitor"; ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicSwitchBillingContent content = new NewRelicSwitchBillingContent("ruxvg@xqkmdhrnoo.hlmbpm") + NewRelicSaaSDataDetails details = new NewRelicSaaSDataDetails { - AzureResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz"), - OrganizationId = "k", - PlanData = new NewRelicPlanDetails - { - UsageType = NewRelicObservabilityUsageType.Payg, - NewRelicPlanBillingCycle = "Yearly", - PlanDetails = "tbbiaga", - EffectiveOn = DateTimeOffset.Parse("2022-12-05T14:11:37.786Z"), - }, + SaaSResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd"), }; - NewRelicMonitorResource result = await newRelicMonitorResource.SwitchBillingAsync(content); + ArmOperation lro = await newRelicMonitorResource.LinkSaaSAsync(WaitUntil.Completed, details); + NewRelicMonitorResource 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 @@ -406,10 +385,10 @@ public async Task SwitchBilling_MonitorsSwitchBillingMaximumSetGen() [Test] [Ignore("Only validating compilation of examples")] - public async Task SwitchBilling_MonitorsSwitchBillingMinimumSetGen() + public async Task GetAppServices_MonitorsListAppServicesMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_SwitchBilling_MinimumSet_Gen.json - // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListAppServices_MaximumSet_Gen.json + // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -424,22 +403,57 @@ public async Task SwitchBilling_MonitorsSwitchBillingMinimumSetGen() ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - // invoke the operation - NewRelicSwitchBillingContent content = new NewRelicSwitchBillingContent("ruxvg@xqkmdhrnoo.hlmbpm"); - NewRelicMonitorResource result = await newRelicMonitorResource.SwitchBillingAsync(content); + // invoke the operation and iterate over the result + NewRelicAppServicesGetContent content = new NewRelicAppServicesGetContent("ruxvg@xqkmdhrnoo.hlmbpm") + { + AzureResourceIds = { new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz") }, + }; + await foreach (NewRelicObservabilityAppServiceInfo item in newRelicMonitorResource.GetAppServicesAsync(content)) + { + Console.WriteLine($"Succeeded: {item}"); + } - // 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 - NewRelicMonitorResourceData resourceData = result.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 GetAppServices_MonitorsListAppServicesMinimumSetGen() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListAppServices_MinimumSet_Gen.json + // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 NewRelicMonitorResource created on azure + // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rgNewRelic"; + string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); + NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); + + // invoke the operation and iterate over the result + NewRelicAppServicesGetContent content = new NewRelicAppServicesGetContent("ruxvg@xqkmdhrnoo.hlmbpm") + { + AzureResourceIds = { new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz") }, + }; + await foreach (NewRelicObservabilityAppServiceInfo item in newRelicMonitorResource.GetAppServicesAsync(content)) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); } [Test] [Ignore("Only validating compilation of examples")] public async Task GetHosts_MonitorsListHostsMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListHosts_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListHosts_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_ListHosts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -472,7 +486,7 @@ public async Task GetHosts_MonitorsListHostsMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetHosts_MonitorsListHostsMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListHosts_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListHosts_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_ListHosts" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -501,11 +515,40 @@ public async Task GetHosts_MonitorsListHostsMinimumSetGen() Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetLinkedResources_MonitorsListLinkedResources() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/LinkedResources_List.json + // this example is just showing the usage of "Monitors_ListLinkedResources" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 NewRelicMonitorResource created on azure + // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myResourceGroup"; + string monitorName = "myMonitor"; + ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); + NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); + + // invoke the operation and iterate over the result + await foreach (SubResource item in newRelicMonitorResource.GetLinkedResourcesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetMonitoredResources_MonitorsListMonitoredResourcesMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListMonitoredResources_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListMonitoredResources_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_ListMonitoredResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -534,7 +577,7 @@ public async Task GetMonitoredResources_MonitorsListMonitoredResourcesMaximumSet [Ignore("Only validating compilation of examples")] public async Task GetMonitoredResources_MonitorsListMonitoredResourcesMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListMonitoredResources_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListMonitoredResources_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_ListMonitoredResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -561,10 +604,10 @@ public async Task GetMonitoredResources_MonitorsListMonitoredResourcesMinimumSet [Test] [Ignore("Only validating compilation of examples")] - public async Task GetLinkedResources_MonitorsListLinkedResources() + public async Task RefreshIngestionKey_MonitorsRefreshIngestionKey() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/LinkedResources_List.json - // this example is just showing the usage of "Monitors_ListLinkedResources" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_RefreshIngestionKey.json + // this example is just showing the usage of "Monitors_RefreshIngestionKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -579,20 +622,121 @@ public async Task GetLinkedResources_MonitorsListLinkedResources() ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - // invoke the operation and iterate over the result - await foreach (SubResource item in newRelicMonitorResource.GetLinkedResourcesAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } + // invoke the operation + await newRelicMonitorResource.RefreshIngestionKeyAsync(); Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Resubscribe_MonitorsResubscribe() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Resubscribe.json + // this example is just showing the usage of "Monitors_Resubscribe" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 NewRelicMonitorResource created on azure + // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myResourceGroup"; + string monitorName = "myMonitor"; + ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); + NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); + + // invoke the operation + ArmOperation lro = await newRelicMonitorResource.ResubscribeAsync(WaitUntil.Completed); + NewRelicMonitorResource 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 + NewRelicMonitorResourceData 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 SwitchBilling_MonitorsSwitchBillingMaximumSetGen() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json + // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 NewRelicMonitorResource created on azure + // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rgNewRelic"; + string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); + NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); + + // invoke the operation + NewRelicSwitchBillingContent content = new NewRelicSwitchBillingContent("ruxvg@xqkmdhrnoo.hlmbpm") + { + AzureResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/NewRelic.Observability/monitors/fhcjxnxumkdlgpwanewtkdnyuz"), + OrganizationId = "k", + PlanData = new NewRelicPlanDetails + { + UsageType = NewRelicObservabilityUsageType.Payg, + NewRelicPlanBillingCycle = "Yearly", + PlanDetails = "tbbiaga", + EffectiveOn = DateTimeOffset.Parse("2022-12-05T14:11:37.786Z"), + }, + }; + NewRelicMonitorResource result = await newRelicMonitorResource.SwitchBillingAsync(content); + + // 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 + NewRelicMonitorResourceData 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 SwitchBilling_MonitorsSwitchBillingMinimumSetGen() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json + // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 NewRelicMonitorResource created on azure + // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rgNewRelic"; + string monitorName = "fhcjxnxumkdlgpwanewtkdnyuz"; + ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); + NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); + + // invoke the operation + NewRelicSwitchBillingContent content = new NewRelicSwitchBillingContent("ruxvg@xqkmdhrnoo.hlmbpm"); + NewRelicMonitorResource result = await newRelicMonitorResource.SwitchBillingAsync(content); + + // 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 + NewRelicMonitorResourceData 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 VmHostPayload_MonitorsVmHostPayloadMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_VmHostPayload_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_VmHostPayload_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_VmHostPayload" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -618,7 +762,7 @@ public async Task VmHostPayload_MonitorsVmHostPayloadMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task VmHostPayload_MonitorsVmHostPayloadMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_VmHostPayload_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_VmHostPayload_MinimumSet_Gen.json // this example is just showing the usage of "Monitors_VmHostPayload" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -644,7 +788,7 @@ public async Task VmHostPayload_MonitorsVmHostPayloadMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetBillingInfo_BillingInfoGet() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/BillingInfo_Get.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/BillingInfo_Get.json // this example is just showing the usage of "BillingInfo_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 @@ -670,7 +814,7 @@ public async Task GetBillingInfo_BillingInfoGet() [Ignore("Only validating compilation of examples")] public async Task GetConnectedPartnerResources_ConnectedPartnerResourcesList() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/ConnectedPartnerResources_List.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/ConnectedPartnerResources_List.json // this example is just showing the usage of "ConnectedPartnerResources_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs index e3bf899f8e67..ee75cfa24bd5 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NewRelicMonitorResourceCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_MonitorsCreateOrUpdateMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_CreateOrUpdate_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_CreateOrUpdate_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -84,6 +84,7 @@ public async Task CreateOrUpdate_MonitorsCreateOrUpdateMaximumSetGen() PlanDetails = "tbbiaga", EffectiveOn = DateTimeOffset.Parse("2022-12-05T14:11:37.786Z"), }, + SaaSResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd"), OrgCreationSource = NewRelicObservabilityOrgCreationSource.Liftr, AccountCreationSource = NewRelicObservabilityAccountCreationSource.Liftr, SubscriptionState = "Suspended", @@ -107,7 +108,7 @@ public async Task CreateOrUpdate_MonitorsCreateOrUpdateMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Get_MonitorsGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Get_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -140,7 +141,7 @@ public async Task Get_MonitorsGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetAll_MonitorsListByResourceGroupMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListByResourceGroup_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListByResourceGroup_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -175,7 +176,7 @@ public async Task GetAll_MonitorsListByResourceGroupMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Exists_MonitorsGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Get_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -204,7 +205,7 @@ public async Task Exists_MonitorsGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_MonitorsGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Get_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionCollection.cs index 1b2cc1b6450b..ed92b53e0054 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NewRelicMonitoredSubscriptionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_MonitorsAddMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_CreateOrUpdate.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_CreateOrUpdate.json // this example is just showing the usage of "MonitoredSubscriptions_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 @@ -56,7 +56,7 @@ public async Task CreateOrUpdate_MonitorsAddMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Get_MonitorsGetMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Get.json // this example is just showing the usage of "MonitoredSubscriptions_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 @@ -90,7 +90,7 @@ public async Task Get_MonitorsGetMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task GetAll_MonitorsGetMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_List.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_List.json // this example is just showing the usage of "MonitoredSubscriptions_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 @@ -126,7 +126,7 @@ public async Task GetAll_MonitorsGetMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Exists_MonitorsGetMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Get.json // this example is just showing the usage of "MonitoredSubscriptions_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_MonitorsGetMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_MonitorsGetMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Get.json // this example is just showing the usage of "MonitoredSubscriptions_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionResource.cs index db236b945aba..b335189dd34e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitoredSubscriptionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NewRelicMonitoredSubscriptionResource [Ignore("Only validating compilation of examples")] public async Task Get_MonitorsGetMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Get.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Get.json // this example is just showing the usage of "MonitoredSubscriptions_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_MonitorsGetMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Delete_MonitorsDeleteMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Delete.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Delete.json // this example is just showing the usage of "MonitoredSubscriptions_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_MonitorsDeleteMonitoredSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Update_MonitorsUpdateMonitoredSubscriptions() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/MonitoredSubscriptions_Update.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/MonitoredSubscriptions_Update.json // this example is just showing the usage of "MonitoredSubscriptions_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleCollection.cs index 830c918c05a8..ae0111afdfd1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NewRelicObservabilityTagRuleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TagRulesCreateOrUpdateMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_CreateOrUpdate_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_CreateOrUpdate_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -80,7 +80,7 @@ public async Task CreateOrUpdate_TagRulesCreateOrUpdateMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TagRulesCreateOrUpdateMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_CreateOrUpdate_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_CreateOrUpdate_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -116,7 +116,7 @@ public async Task CreateOrUpdate_TagRulesCreateOrUpdateMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task Get_TagRulesGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -150,7 +150,7 @@ public async Task Get_TagRulesGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Get_TagRulesGetMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -184,7 +184,7 @@ public async Task Get_TagRulesGetMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetAll_TagRulesListByNewRelicMonitorResourceMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_ListByNewRelicMonitorResource_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_ListByNewRelicMonitorResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -220,7 +220,7 @@ public async Task GetAll_TagRulesListByNewRelicMonitorResourceMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetAll_TagRulesListByNewRelicMonitorResourceMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_ListByNewRelicMonitorResource_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_ListByNewRelicMonitorResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task GetAll_TagRulesListByNewRelicMonitorResourceMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task Exists_TagRulesGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -286,7 +286,7 @@ public async Task Exists_TagRulesGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Exists_TagRulesGetMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -316,7 +316,7 @@ public async Task Exists_TagRulesGetMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_TagRulesGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -358,7 +358,7 @@ public async Task GetIfExists_TagRulesGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_TagRulesGetMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleResource.cs index 81a8f78bf122..4e08d91b9752 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicObservabilityTagRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NewRelicObservabilityTagRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_TagRulesGetMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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_TagRulesGetMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Get_TagRulesGetMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Get_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Get_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -82,7 +82,7 @@ public async Task Get_TagRulesGetMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task Delete_TagRulesDeleteMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Delete_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Delete_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -109,7 +109,7 @@ public async Task Delete_TagRulesDeleteMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Delete_TagRulesDeleteMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Delete_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Delete_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -136,7 +136,7 @@ public async Task Delete_TagRulesDeleteMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task Update_TagRulesUpdateMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Update_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Update_MaximumSet_Gen.json // this example is just showing the usage of "TagRules_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 @@ -192,7 +192,7 @@ public async Task Update_TagRulesUpdateMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task Update_TagRulesUpdateMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/TagRules_Update_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/TagRules_Update_MinimumSet_Gen.json // this example is just showing the usage of "TagRules_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/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 87354fa53f85..f98dbe28f1c7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetNewRelicAccounts_AccountsListMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Accounts_List_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Accounts_List_MaximumSet_Gen.json // this example is just showing the usage of "Accounts_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 @@ -50,7 +50,7 @@ public async Task GetNewRelicAccounts_AccountsListMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetNewRelicAccounts_AccountsListMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Accounts_List_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Accounts_List_MinimumSet_Gen.json // this example is just showing the usage of "Accounts_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 @@ -75,11 +75,36 @@ public async Task GetNewRelicAccounts_AccountsListMinimumSetGen() Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task ActivateResourceSaaS_ActivateSaaS() + { + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/ActivateSaaS.json + // this example is just showing the usage of "SaaS_ActivateResource" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 = "00000000-0000-0000-0000-000000000000"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation + ActivateSaaSParameterContent content = new ActivateSaaSParameterContent(Guid.Parse("00000000-0000-0000-0000-000005430000"), "publisherId"); + NewRelicSaaSResourceDetailsResult result = await subscriptionResource.ActivateResourceSaaSAsync(content); + + Console.WriteLine($"Succeeded: {result}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetNewRelicMonitorResources_MonitorsListBySubscriptionMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Monitors_ListBySubscription_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListBySubscription_MaximumSet_Gen.json // this example is just showing the usage of "Monitors_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 @@ -110,7 +135,7 @@ public async Task GetNewRelicMonitorResources_MonitorsListBySubscriptionMaximumS [Ignore("Only validating compilation of examples")] public async Task GetNewRelicOrganizations_OrganizationsListMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Organizations_List_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Organizations_List_MaximumSet_Gen.json // this example is just showing the usage of "Organizations_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 @@ -139,7 +164,7 @@ public async Task GetNewRelicOrganizations_OrganizationsListMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetNewRelicOrganizations_OrganizationsListMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Organizations_List_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Organizations_List_MinimumSet_Gen.json // this example is just showing the usage of "Organizations_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 @@ -168,7 +193,7 @@ public async Task GetNewRelicOrganizations_OrganizationsListMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetNewRelicPlans_PlansListMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Plans_List_MaximumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Plans_List_MaximumSet_Gen.json // this example is just showing the usage of "Plans_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 @@ -197,7 +222,7 @@ public async Task GetNewRelicPlans_PlansListMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task GetNewRelicPlans_PlansListMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/stable/2024-03-01/examples/Plans_List_MinimumSet_Gen.json + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Plans_List_MinimumSet_Gen.json // this example is just showing the usage of "Plans_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 From b3a275f87f47042bdb6e6e8c29ffde07d0729b76 Mon Sep 17 00:00:00 2001 From: Zhonglei Ma Date: Wed, 15 Oct 2025 17:57:34 +0800 Subject: [PATCH 2/5] updated --- ...rceManager.NewRelicObservability.net8.0.cs | 74 +-- ...er.NewRelicObservability.netstandard2.0.cs | 74 +-- .../ArmNewRelicObservabilityModelFactory.cs | 297 ++++++------ ...wRelicObservabilitySubscriptionResource.cs | 156 ++++--- .../NewRelicObservabilityExtensions.cs | 128 +++--- ...ivateSaaSParameterContent.Serialization.cs | 4 +- .../Models/ActivateSaaSParameterContent.cs | 44 +- ...urceManagerNewRelicObservabilityContext.cs | 4 - .../Generated/Models/MarketplaceSaaSInfo.cs | 45 +- ...licLatestLinkedSaaSResult.Serialization.cs | 197 -------- .../Models/NewRelicLatestLinkedSaaSResult.cs | 87 ---- .../Models/NewRelicMonitorResourcePatch.cs | 57 ++- ...ityLatestLinkedSaaSResult.Serialization.cs | 18 +- ...elicObservabilityLatestLinkedSaaSResult.cs | 30 +- ...cObservabilitySaaSContent.Serialization.cs | 18 +- .../NewRelicObservabilitySaaSContent.cs | 20 +- ...cObservabilitySaaSResourceDetailsResult.cs | 15 +- .../NewRelicSaaSDataDetails.Serialization.cs | 166 ------- .../Models/NewRelicSaaSDataDetails.cs | 76 ---- ...SaaSResourceDetailsResult.Serialization.cs | 244 ---------- .../NewRelicSaaSResourceDetailsResult.cs | 81 ---- .../ResubscribeProperties.Serialization.cs | 203 --------- .../Generated/Models/ResubscribeProperties.cs | 96 ---- .../src/Generated/NewRelicMonitorResource.cs | 422 +++++------------- .../Generated/NewRelicMonitorResourceData.cs | 92 +++- ...NewRelicMonitoredSubscriptionCollection.cs | 12 +- .../NewRelicMonitoredSubscriptionResource.cs | 12 +- .../BillingInfoRestOperations.cs | 4 +- .../MonitoredSubscriptionsRestOperations.cs | 24 +- .../RestOperations/MonitorsRestOperations.cs | 383 +++------------- .../RestOperations/SaaSRestOperations.cs | 4 +- .../RestOperations/TagRulesRestOperations.cs | 8 +- .../src/autorest.md | 4 +- .../Samples/Sample_NewRelicMonitorResource.cs | 159 +------ ...ample_NewRelicMonitorResourceCollection.cs | 2 +- .../Sample_SubscriptionResourceExtensions.cs | 27 +- 36 files changed, 790 insertions(+), 2497 deletions(-) delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.Serialization.cs delete mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.cs diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs index 7daa170a1e74..3e3adcaa08e2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs @@ -96,8 +96,8 @@ protected NewRelicMonitorResource() { } public virtual System.Threading.Tasks.Task RefreshIngestionKeyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SwitchBilling(Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -146,7 +146,7 @@ public NewRelicMonitorResourceData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? ProvisioningState { get { throw null; } } public string SaaSAzureSubscriptionStatus { get { throw null; } set { } } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public string SubscriptionState { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -260,9 +260,9 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { public partial class ActivateSaaSParameterContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ActivateSaaSParameterContent(string saasGuid, string publisherId) { } + public ActivateSaaSParameterContent(System.Guid saasGuid, string publisherId) { } public string PublisherId { get { throw null; } } - public string SaasGuid { get { throw null; } } + public System.Guid SaasGuid { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent 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) { } @@ -281,7 +281,6 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicHostsGetContent NewRelicHostsGetContent(System.Collections.Generic.IEnumerable vmIds = null, string userEmail = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusContent NewRelicMetricsStatusContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusResult NewRelicMetricsStatusResult(System.Collections.Generic.IEnumerable azureResourceIds = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties properties = null) { throw null; } @@ -291,10 +290,9 @@ public static partial class ArmNewRelicObservabilityModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string saaSResourceId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(Azure.Core.ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(string saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabilitySaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { throw null; } @@ -302,7 +300,6 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData NewRelicOrganizationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string organizationName = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource? billingSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanData NewRelicPlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus? sendingMetrics = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus?), string reasonForMetricsStatus = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus? sendingLogs = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus?), string reasonForLogsStatus = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent NewRelicSwitchBillingContent(Azure.Core.ResourceIdentifier azureResourceId = null, string organizationId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) { throw null; } } @@ -450,18 +447,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 NewRelicLatestLinkedSaaSResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NewRelicLatestLinkedSaaSResult() { } - public bool? IsHiddenSaaS { get { throw null; } } - public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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 NewRelicLiftrResourceCategory : System.IEquatable { @@ -582,7 +567,7 @@ public NewRelicMonitorResourcePatch() { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties NewRelicAccountProperties { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? OrgCreationSource { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -690,7 +675,7 @@ public partial class NewRelicObservabilityLatestLinkedSaaSResult : System.Client { internal NewRelicObservabilityLatestLinkedSaaSResult() { } public bool? IsHiddenSaaS { get { throw null; } } - public string SaaSResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult 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) { } @@ -782,7 +767,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class NewRelicObservabilitySaaSContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicObservabilitySaaSContent() { } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySaaSContent 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) { } @@ -1094,28 +1079,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 NewRelicSaaSDataDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NewRelicSaaSDataDetails() { } - public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails 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.NewRelicObservability.Models.NewRelicSaaSDataDetails 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 NewRelicSaaSResourceDetailsResult : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NewRelicSaaSResourceDetailsResult() { } - public string SaasId { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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 NewRelicSingleSignOnProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicSingleSignOnProperties() { } @@ -1176,21 +1139,4 @@ 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 ResubscribeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ResubscribeProperties() { } - public string OfferId { get { throw null; } set { } } - public string OrganizationId { get { throw null; } set { } } - public string PlanId { get { throw null; } set { } } - public string PublisherId { get { throw null; } set { } } - public string ResourceGroup { get { throw null; } set { } } - public string SubscriptionId { get { throw null; } set { } } - public string TermId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties 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.NewRelicObservability.Models.ResubscribeProperties 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; } - } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs index 7daa170a1e74..3e3adcaa08e2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs @@ -96,8 +96,8 @@ protected NewRelicMonitorResource() { } public virtual System.Threading.Tasks.Task RefreshIngestionKeyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resubscribe(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ResubscribeAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.NewRelicObservability.Models.NewRelicResubscribeProperties body = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SwitchBilling(Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -146,7 +146,7 @@ public NewRelicMonitorResourceData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? ProvisioningState { get { throw null; } } public string SaaSAzureSubscriptionStatus { get { throw null; } set { } } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public string SubscriptionState { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -260,9 +260,9 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { public partial class ActivateSaaSParameterContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public ActivateSaaSParameterContent(string saasGuid, string publisherId) { } + public ActivateSaaSParameterContent(System.Guid saasGuid, string publisherId) { } public string PublisherId { get { throw null; } } - public string SaasGuid { get { throw null; } } + public System.Guid SaasGuid { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.ActivateSaaSParameterContent 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) { } @@ -281,7 +281,6 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties properties = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicHostsGetContent NewRelicHostsGetContent(System.Collections.Generic.IEnumerable vmIds = null, string userEmail = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusContent NewRelicMetricsStatusContent(System.Collections.Generic.IEnumerable azureResourceIds = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicMetricsStatusResult NewRelicMetricsStatusResult(System.Collections.Generic.IEnumerable azureResourceIds = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoredSubscriptionProperties properties = null) { throw null; } @@ -291,10 +290,9 @@ public static partial class ArmNewRelicObservabilityModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string saaSResourceId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceData NewRelicMonitorResourceData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus? monitoringStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMonitoringStatus?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMarketplaceSubscriptionStatus?), string marketplaceSubscriptionId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties newRelicAccountProperties = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo userInfo = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicLiftrResourceCategory?), int? liftrResourcePreference = default(int?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?), string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(Azure.Core.ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(string saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } + public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(Azure.Core.ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = default(bool?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabilitySaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState? provisioningState = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicProvisioningState?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLogRules logRules = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityMetricRules metricRules = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { throw null; } @@ -302,7 +300,6 @@ public static partial class ArmNewRelicObservabilityModelFactory public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData NewRelicOrganizationResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string organizationId = null, string organizationName = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource? billingSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityBillingSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanData NewRelicPlanData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? orgCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource?), Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource? accountCreationSource = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityAccountCreationSource?)) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus? sendingMetrics = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingMetricsStatus?), string reasonForMetricsStatus = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus? sendingLogs = default(Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySendingLogsStatus?), string reasonForLogsStatus = null) { throw null; } - public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string saasId = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.NewRelicSwitchBillingContent NewRelicSwitchBillingContent(Azure.Core.ResourceIdentifier azureResourceId = null, string organizationId = null, Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails planData = null, string userEmail = null) { throw null; } public static Azure.ResourceManager.NewRelicObservability.Models.PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) { throw null; } } @@ -450,18 +447,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 NewRelicLatestLinkedSaaSResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal NewRelicLatestLinkedSaaSResult() { } - public bool? IsHiddenSaaS { get { throw null; } } - public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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.NewRelicObservability.Models.NewRelicLatestLinkedSaaSResult 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 NewRelicLiftrResourceCategory : System.IEquatable { @@ -582,7 +567,7 @@ public NewRelicMonitorResourcePatch() { } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicAccountProperties NewRelicAccountProperties { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityOrgCreationSource? OrgCreationSource { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicPlanDetails PlanData { get { throw null; } set { } } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityUserInfo UserInfo { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -690,7 +675,7 @@ public partial class NewRelicObservabilityLatestLinkedSaaSResult : System.Client { internal NewRelicObservabilityLatestLinkedSaaSResult() { } public bool? IsHiddenSaaS { get { throw null; } } - public string SaaSResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityLatestLinkedSaaSResult 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) { } @@ -782,7 +767,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class NewRelicObservabilitySaaSContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicObservabilitySaaSContent() { } - public string SaaSResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilitySaaSContent 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) { } @@ -1094,28 +1079,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 NewRelicSaaSDataDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NewRelicSaaSDataDetails() { } - public Azure.Core.ResourceIdentifier SaaSResourceId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSDataDetails 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.NewRelicObservability.Models.NewRelicSaaSDataDetails 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 NewRelicSaaSResourceDetailsResult : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public NewRelicSaaSResourceDetailsResult() { } - public string SaasId { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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.NewRelicObservability.Models.NewRelicSaaSResourceDetailsResult 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 NewRelicSingleSignOnProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicSingleSignOnProperties() { } @@ -1176,21 +1139,4 @@ 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 ResubscribeProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ResubscribeProperties() { } - public string OfferId { get { throw null; } set { } } - public string OrganizationId { get { throw null; } set { } } - public string PlanId { get { throw null; } set { } } - public string PublisherId { get { throw null; } set { } } - public string ResourceGroup { get { throw null; } set { } } - public string SubscriptionId { get { throw null; } set { } } - public string TermId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.NewRelicObservability.Models.ResubscribeProperties 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.NewRelicObservability.Models.ResubscribeProperties 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; } - } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs index 29972a67a2fc..873ba58d04f1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -53,7 +52,7 @@ public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceId serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -62,10 +61,10 @@ public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceId /// Id of the Marketplace SaaS Resource /// Serialized Name: SaaSResourceDetailsResponse.saasId /// - /// A new instance for mocking. - public static NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string saasId = null) + /// A new instance for mocking. + public static NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string saasId = null) { - return new NewRelicSaaSResourceDetailsResult( + return new NewRelicObservabilitySaaSResourceDetailsResult( id, name, resourceType, @@ -81,23 +80,68 @@ public static NewRelicSaaSResourceDetailsResult NewRelicSaaSResourceDetailsResul /// The systemData. /// The tags. /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// SaaS details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// State of the Azure Subscription containing the monitor resource. - /// Status of Azure Subscription where Marketplace SaaS is located. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResource.identity + /// + /// + /// Provisioning State of the resource + /// Serialized Name: NewRelicMonitorResource.properties.provisioningState + /// + /// + /// MonitoringStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus + /// + /// + /// NewRelic Organization properties of the resource + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus + /// + /// + /// Marketplace Subscription Id + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResource.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResource.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// + /// + /// Liftr resource preference. The priority of the resource. + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource + /// + /// + /// State of the Azure Subscription containing the monitor resource + /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState + /// + /// + /// Status of Azure Subscription where Marketplace SaaS is located. + /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus + /// /// A new instance for mocking. - public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, string saaSResourceId = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) + public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, ResourceIdentifier saaSResourceId = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { tags ??= new Dictionary(); @@ -188,24 +232,79 @@ public static NewRelicPlanData NewRelicPlanData(ResourceIdentifier id = null, st serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Id of the Marketplace SaaS Resource. - /// A new instance for mocking. - public static NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string saasId = null) + /// Initializes a new instance of . + /// + /// Marketplace Subscription details + /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo + /// + /// + /// Partner Billing Entity details: Organization Info + /// Serialized Name: BillingInfoResponse.partnerBillingEntity + /// + /// A new instance for mocking. + public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo = null, PartnerBillingEntity partnerBillingEntity = null) { - return new NewRelicObservabilitySaaSResourceDetailsResult( - id, - name, - resourceType, - systemData, - saasId, + return new NewRelicBillingInfoResult(marketplaceSaasInfo, partnerBillingEntity, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId + /// + /// + /// Marketplace Subscription Details: SAAS Name + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName + /// + /// + /// Marketplace Subscription Details: Resource URI + /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId + /// + /// + /// Marketplace Subscription Details: SaaS Subscription Status + /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus + /// + /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId + /// + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// + /// A new instance for mocking. + public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) + { + return new MarketplaceSaaSInfo( + marketplaceSubscriptionId, + marketplaceSubscriptionName, + marketplaceResourceId, + marketplaceStatus, + billedAzureSubscriptionId, + publisherId, + offerId, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// + /// The New Relic Organization Id. + /// Serialized Name: PartnerBillingEntity.organizationId + /// + /// + /// The New Relic Organization Name. + /// Serialized Name: PartnerBillingEntity.organizationName + /// + /// A new instance for mocking. + public static PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) + { + return new PartnerBillingEntity(organizationId, organizationName, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// /// Azure resource IDs @@ -236,7 +335,7 @@ public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerabl return new NewRelicMetricsStatusResult(azureResourceIds?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// SaaS resource id /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId @@ -245,10 +344,10 @@ public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerabl /// Flag indicating if the SaaS resource is hidden /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS /// - /// A new instance for mocking. - public static NewRelicLatestLinkedSaaSResult NewRelicLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = null) + /// A new instance for mocking. + public static NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = null) { - return new NewRelicLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, serializedAdditionalRawData: null); + return new NewRelicObservabilityLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -390,34 +489,24 @@ public static NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Resour serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Marketplace Subscription details. - /// Partner Billing Entity details: Organization Info. - /// A new instance for mocking. - public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo = null, PartnerBillingEntity partnerBillingEntity = null) - { - return new NewRelicBillingInfoResult(marketplaceSaasInfo, partnerBillingEntity, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Marketplace Subscription Details: SAAS Name. - /// Marketplace Subscription Details: Resource URI. - /// Marketplace Subscription Details: SaaS Subscription Status. - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// Publisher Id of the Marketplace offer. - /// Offer Id of the Marketplace offer,. - /// A new instance for mocking. - public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. + /// Serialized Name: MonitoredSubscriptionProperties.properties + /// + /// A new instance for mocking. + public static NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicMonitoredSubscriptionProperties properties = null) { - return new MarketplaceSaaSInfo( - marketplaceSubscriptionId, - marketplaceSubscriptionName, - marketplaceResourceId, - marketplaceStatus, - billedAzureSubscriptionId, - publisherId, - offerId, + return new NewRelicMonitoredSubscriptionData( + id, + name, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } @@ -525,81 +614,5 @@ public static NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExt { return new NewRelicObservabilityVmExtensionPayload(ingestionKey, serializedAdditionalRawData: null); } - - /// Initializes a new instance of . - /// SaaS resource id. - /// Flag indicating if the SaaS resource is hidden. - /// A new instance for mocking. - public static NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(string saaSResourceId = null, bool? isHiddenSaaS = null) - { - return new NewRelicObservabilityLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// State of the Azure Subscription containing the monitor resource. - /// Status of Azure Subscription where Marketplace SaaS is located. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus) - { - return NewRelicMonitorResourceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, monitoringStatus: monitoringStatus, marketplaceSubscriptionStatus: marketplaceSubscriptionStatus, marketplaceSubscriptionId: marketplaceSubscriptionId, newRelicAccountProperties: newRelicAccountProperties, userInfo: userInfo, planData: planData, saaSResourceId: default, liftrResourceCategory: liftrResourceCategory, liftrResourcePreference: liftrResourcePreference, orgCreationSource: orgCreationSource, accountCreationSource: accountCreationSource, subscriptionState: subscriptionState, saaSAzureSubscriptionStatus: saaSAzureSubscriptionStatus); - } - - /// Initializes a new instance of . - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Marketplace Subscription Details: SAAS Name. - /// Marketplace Subscription Details: Resource URI. - /// Marketplace Subscription Details: SaaS Subscription Status. - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId) - { - return MarketplaceSaaSInfo(marketplaceSubscriptionId: marketplaceSubscriptionId, marketplaceSubscriptionName: marketplaceSubscriptionName, marketplaceResourceId: marketplaceResourceId, marketplaceStatus: marketplaceStatus, billedAzureSubscriptionId: billedAzureSubscriptionId, publisherId: default, offerId: default); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource) - { - return NewRelicMonitorResourceData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, identity: identity, provisioningState: provisioningState, monitoringStatus: monitoringStatus, marketplaceSubscriptionStatus: marketplaceSubscriptionStatus, marketplaceSubscriptionId: marketplaceSubscriptionId, newRelicAccountProperties: newRelicAccountProperties, userInfo: userInfo, planData: planData, saaSResourceId: default, liftrResourceCategory: liftrResourceCategory, liftrResourcePreference: liftrResourcePreference, orgCreationSource: orgCreationSource, accountCreationSource: accountCreationSource, subscriptionState: default, saaSAzureSubscriptionStatus: default); - } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs index 85fab4c26a29..99e39ca8ac23 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/MockableNewRelicObservabilitySubscriptionResource.cs @@ -28,8 +28,6 @@ public partial class MockableNewRelicObservabilitySubscriptionResource : ArmReso private OrganizationsRestOperations _organizationsRestClient; private ClientDiagnostics _plansClientDiagnostics; private PlansRestOperations _plansRestClient; - private ClientDiagnostics _saaSClientDiagnostics; - private SaaSRestOperations _saaSRestClient; /// Initializes a new instance of the class for mocking. protected MockableNewRelicObservabilitySubscriptionResource() @@ -53,8 +51,6 @@ internal MockableNewRelicObservabilitySubscriptionResource(ArmClient client, Res private OrganizationsRestOperations OrganizationsRestClient => _organizationsRestClient ??= new OrganizationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics PlansClientDiagnostics => _plansClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", ProviderConstants.DefaultProviderNamespace, Diagnostics); private PlansRestOperations PlansRestClient => _plansRestClient ??= new PlansRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - private ClientDiagnostics SaaSClientDiagnostics => _saaSClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.NewRelicObservability", ProviderConstants.DefaultProviderNamespace, Diagnostics); - private SaaSRestOperations SaaSRestClient => _saaSRestClient ??= new SaaSRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -124,6 +120,82 @@ public virtual Pageable GetNewRelicAccounts(string return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NewRelicAccountResourceData.DeserializeNewRelicAccountResourceData(e), AccountsClientDiagnostics, Pipeline, "MockableNewRelicObservabilitySubscriptionResource.GetNewRelicAccounts", "value", "nextLink", cancellationToken); } + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual async Task> ActivateResourceSaaSAsync(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); + scope.Start(); + try + { + var response = await SaaSRestClient.ActivateResourceAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// The request body. + /// The cancellation token to use. + /// is null. + public virtual Response ActivateResourceSaaS(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); + scope.Start(); + try + { + var response = SaaSRestClient.ActivateResource(Id.SubscriptionId, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Lists all New Relic monitor resources either within a specific subscription /// @@ -301,81 +373,5 @@ public virtual Pageable GetNewRelicPlans(string accountId = nu HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => PlansRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, accountId, organizationId); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NewRelicPlanData.DeserializeNewRelicPlanData(e), PlansClientDiagnostics, Pipeline, "MockableNewRelicObservabilitySubscriptionResource.GetNewRelicPlans", "value", "nextLink", cancellationToken); } - - /// - /// Resolve the token to get the SaaS resource ID and activate the SaaS resource - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS - /// - /// - /// Operation Id - /// SaaS_ActivateResource - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// - /// The details for ActivateSaaSParameter request. - /// The cancellation token to use. - /// is null. - public virtual async Task> ActivateResourceSaaSAsync(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); - scope.Start(); - try - { - var response = await SaaSRestClient.ActivateResourceAsync(Id.SubscriptionId, content, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Resolve the token to get the SaaS resource ID and activate the SaaS resource - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS - /// - /// - /// Operation Id - /// SaaS_ActivateResource - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// - /// The details for ActivateSaaSParameter request. - /// The cancellation token to use. - /// is null. - public virtual Response ActivateResourceSaaS(ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = SaaSClientDiagnostics.CreateScope("MockableNewRelicObservabilitySubscriptionResource.ActivateResourceSaaS"); - scope.Start(); - try - { - var response = SaaSRestClient.ActivateResource(Id.SubscriptionId, content, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs index f151186120ba..24d4d0c805b6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Extensions/NewRelicObservabilityExtensions.cs @@ -251,6 +251,70 @@ public static Pageable GetNewRelicAccounts(this Sub return GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).GetNewRelicAccounts(userEmail, location, cancellationToken); } + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The request body. + /// The cancellation token to use. + /// or is null. + public static async Task> ActivateResourceSaaSAsync(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return await GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaSAsync(content, cancellationToken).ConfigureAwait(false); + } + + /// + /// Resolve the token to get the SaaS resource ID and activate the SaaS resource + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS + /// + /// + /// Operation Id + /// SaaS_ActivateResource + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The request body. + /// The cancellation token to use. + /// or is null. + public static Response ActivateResourceSaaS(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaS(content, cancellationToken); + } + /// /// Lists all New Relic monitor resources either within a specific subscription /// @@ -458,69 +522,5 @@ public static Pageable GetNewRelicPlans(this SubscriptionResou return GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).GetNewRelicPlans(accountId, organizationId, cancellationToken); } - - /// - /// Resolve the token to get the SaaS resource ID and activate the SaaS resource - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS - /// - /// - /// Operation Id - /// SaaS_ActivateResource - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The details for ActivateSaaSParameter request. - /// The cancellation token to use. - /// or is null. - public static async Task> ActivateResourceSaaSAsync(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return await GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaSAsync(content, cancellationToken).ConfigureAwait(false); - } - - /// - /// Resolve the token to get the SaaS resource ID and activate the SaaS resource - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/NewRelic.Observability/activateSaaS - /// - /// - /// Operation Id - /// SaaS_ActivateResource - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The details for ActivateSaaSParameter request. - /// The cancellation token to use. - /// or is null. - public static Response ActivateResourceSaaS(this SubscriptionResource subscriptionResource, ActivateSaaSParameterContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); - - return GetMockableNewRelicObservabilitySubscriptionResource(subscriptionResource).ActivateResourceSaaS(content, cancellationToken); - } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs index 29b1d016f7a4..b80d80ed9e09 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.Serialization.cs @@ -75,7 +75,7 @@ internal static ActivateSaaSParameterContent DeserializeActivateSaaSParameterCon { return null; } - string saasGuid = default; + Guid saasGuid = default; string publisherId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -83,7 +83,7 @@ internal static ActivateSaaSParameterContent DeserializeActivateSaaSParameterCon { if (property.NameEquals("saasGuid"u8)) { - saasGuid = property.Value.GetString(); + saasGuid = property.Value.GetGuid(); continue; } if (property.NameEquals("publisherId"u8)) diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs index 308c3b982fe7..bc12bee5d13d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs @@ -10,7 +10,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// SaaS guid & PublishedId for Activate and Validate SaaS Resource. + /// + /// SaaS guid & PublishedId for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest + /// public partial class ActivateSaaSParameterContent { /// @@ -46,12 +49,17 @@ public partial class ActivateSaaSParameterContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// SaaS guid for Activate and Validate SaaS Resource. - /// Publisher Id for NewRelic resource. - /// or is null. - public ActivateSaaSParameterContent(string saasGuid, string publisherId) + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// + /// is null. + public ActivateSaaSParameterContent(Guid saasGuid, string publisherId) { - Argument.AssertNotNull(saasGuid, nameof(saasGuid)); Argument.AssertNotNull(publisherId, nameof(publisherId)); SaasGuid = saasGuid; @@ -59,10 +67,16 @@ public ActivateSaaSParameterContent(string saasGuid, string publisherId) } /// Initializes a new instance of . - /// SaaS guid for Activate and Validate SaaS Resource. - /// Publisher Id for NewRelic resource. + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// /// Keeps track of any properties unknown to the library. - internal ActivateSaaSParameterContent(string saasGuid, string publisherId, IDictionary serializedAdditionalRawData) + internal ActivateSaaSParameterContent(Guid saasGuid, string publisherId, IDictionary serializedAdditionalRawData) { SaasGuid = saasGuid; PublisherId = publisherId; @@ -74,10 +88,16 @@ internal ActivateSaaSParameterContent() { } - /// SaaS guid for Activate and Validate SaaS Resource. + /// + /// SaaS guid for Activate and Validate SaaS Resource + /// Serialized Name: ActivateSaaSParameterRequest.saasGuid + /// [WirePath("saasGuid")] - public string SaasGuid { get; } - /// Publisher Id for NewRelic resource. + public Guid SaasGuid { get; } + /// + /// Publisher Id for NewRelic resource + /// Serialized Name: ActivateSaaSParameterRequest.publisherId + /// [WirePath("publisherId")] public string PublisherId { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs index cee4d9aedde0..443a07dc5c5a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/AzureResourceManagerNewRelicObservabilityContext.cs @@ -31,7 +31,6 @@ namespace Azure.ResourceManager.NewRelicObservability [ModelReaderWriterBuildable(typeof(NewRelicConnectedPartnerResourceInfo))] [ModelReaderWriterBuildable(typeof(NewRelicConnectedPartnerResourceProperties))] [ModelReaderWriterBuildable(typeof(NewRelicHostsGetContent))] - [ModelReaderWriterBuildable(typeof(NewRelicLatestLinkedSaaSResult))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsContent))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsStatusContent))] [ModelReaderWriterBuildable(typeof(NewRelicMetricsStatusResult))] @@ -69,13 +68,10 @@ namespace Azure.ResourceManager.NewRelicObservability [ModelReaderWriterBuildable(typeof(NewRelicPlanDetails))] [ModelReaderWriterBuildable(typeof(NewRelicResourceMonitorResult))] [ModelReaderWriterBuildable(typeof(NewRelicResubscribeProperties))] - [ModelReaderWriterBuildable(typeof(NewRelicSaaSDataDetails))] - [ModelReaderWriterBuildable(typeof(NewRelicSaaSResourceDetailsResult))] [ModelReaderWriterBuildable(typeof(NewRelicSingleSignOnProperties))] [ModelReaderWriterBuildable(typeof(NewRelicSwitchBillingContent))] [ModelReaderWriterBuildable(typeof(PartnerBillingEntity))] [ModelReaderWriterBuildable(typeof(ResponseError))] - [ModelReaderWriterBuildable(typeof(ResubscribeProperties))] [ModelReaderWriterBuildable(typeof(SubResource))] [ModelReaderWriterBuildable(typeof(SystemData))] [ModelReaderWriterBuildable(typeof(UserAssignedIdentity))] diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs index f15ca9deeebb..2ebdbb978741 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs @@ -54,13 +54,34 @@ internal MarketplaceSaaSInfo() } /// Initializes a new instance of . - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Marketplace Subscription Details: SAAS Name. - /// Marketplace Subscription Details: Resource URI. - /// Marketplace Subscription Details: SaaS Subscription Status. - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// Publisher Id of the Marketplace offer. - /// Offer Id of the Marketplace offer,. + /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId + /// + /// + /// Marketplace Subscription Details: SAAS Name + /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName + /// + /// + /// Marketplace Subscription Details: Resource URI + /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId + /// + /// + /// Marketplace Subscription Details: SaaS Subscription Status + /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus + /// + /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId + /// + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// /// Keeps track of any properties unknown to the library. internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) { @@ -104,10 +125,16 @@ internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplac /// [WirePath("billedAzureSubscriptionId")] public string BilledAzureSubscriptionId { get; } - /// Publisher Id of the Marketplace offer. + /// + /// Publisher Id of the Marketplace offer. + /// Serialized Name: MarketplaceSaaSInfo.publisherId + /// [WirePath("publisherId")] public string PublisherId { get; } - /// Offer Id of the Marketplace offer,. + /// + /// Offer Id of the Marketplace offer, + /// Serialized Name: MarketplaceSaaSInfo.offerId + /// [WirePath("offerId")] public string OfferId { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs deleted file mode 100644 index 3c248e11908e..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.Serialization.cs +++ /dev/null @@ -1,197 +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.NewRelicObservability.Models -{ - public partial class NewRelicLatestLinkedSaaSResult : 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(NewRelicLatestLinkedSaaSResult)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(SaaSResourceId)) - { - writer.WritePropertyName("saaSResourceId"u8); - writer.WriteStringValue(SaaSResourceId); - } - if (Optional.IsDefined(IsHiddenSaaS)) - { - writer.WritePropertyName("isHiddenSaaS"u8); - writer.WriteBooleanValue(IsHiddenSaaS.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 - } - } - } - - NewRelicLatestLinkedSaaSResult 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(NewRelicLatestLinkedSaaSResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement, options); - } - - internal static NewRelicLatestLinkedSaaSResult DeserializeNewRelicLatestLinkedSaaSResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier saaSResourceId = default; - bool? isHiddenSaaS = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("saaSResourceId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - saaSResourceId = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("isHiddenSaaS"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - isHiddenSaaS = property.Value.GetBoolean(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NewRelicLatestLinkedSaaSResult(saaSResourceId, isHiddenSaaS, 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(SaaSResourceId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" saaSResourceId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SaaSResourceId)) - { - builder.Append(" saaSResourceId: "); - builder.AppendLine($"'{SaaSResourceId.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsHiddenSaaS), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" isHiddenSaaS: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(IsHiddenSaaS)) - { - builder.Append(" isHiddenSaaS: "); - var boolValue = IsHiddenSaaS.Value == true ? "true" : "false"; - builder.AppendLine($"{boolValue}"); - } - } - - 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, AzureResourceManagerNewRelicObservabilityContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(NewRelicLatestLinkedSaaSResult)} does not support writing '{options.Format}' format."); - } - } - - NewRelicLatestLinkedSaaSResult 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 DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NewRelicLatestLinkedSaaSResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.cs deleted file mode 100644 index af366bffab43..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLatestLinkedSaaSResult.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; - -namespace Azure.ResourceManager.NewRelicObservability.Models -{ - /// - /// Response of get latest linked SaaS resource operation - /// Serialized Name: LatestLinkedSaaSResponse - /// - public partial class NewRelicLatestLinkedSaaSResult - { - /// - /// 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 NewRelicLatestLinkedSaaSResult() - { - } - - /// Initializes a new instance of . - /// - /// SaaS resource id - /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId - /// - /// - /// Flag indicating if the SaaS resource is hidden - /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS - /// - /// Keeps track of any properties unknown to the library. - internal NewRelicLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId, bool? isHiddenSaaS, IDictionary serializedAdditionalRawData) - { - SaaSResourceId = saaSResourceId; - IsHiddenSaaS = isHiddenSaaS; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// - /// SaaS resource id - /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId - /// - [WirePath("saaSResourceId")] - public ResourceIdentifier SaaSResourceId { get; } - /// - /// Flag indicating if the SaaS resource is hidden - /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS - /// - [WirePath("isHiddenSaaS")] - public bool? IsHiddenSaaS { get; } - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs index 2519d9bffbd6..78f8bf9f5cf1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs @@ -57,14 +57,38 @@ public NewRelicMonitorResourcePatch() } /// Initializes a new instance of . - /// The managed service identities assigned to this resource. - /// Resource tags. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// SaaS details. - /// Source of org creation. - /// Source of account creation. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResourceUpdate.identity + /// + /// + /// Resource tags. + /// Serialized Name: NewRelicMonitorResourceUpdate.tags + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.accountCreationSource + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictionary tags, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicObservabilitySaaSContent saaSData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) { @@ -109,11 +133,17 @@ internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictiona /// [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// SaaS details. + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData + /// internal NewRelicObservabilitySaaSContent SaaSData { get; set; } - /// SaaS resource id. + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// [WirePath("properties.saaSData.saaSResourceId")] - public string SaaSResourceId + public ResourceIdentifier SaaSResourceId { get => SaaSData is null ? default : SaaSData.SaaSResourceId; set @@ -124,7 +154,10 @@ public string SaaSResourceId } } - /// Source of org creation. + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource + /// [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } /// diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.Serialization.cs index e34ee9c7c40d..a003c0d323cd 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.Serialization.cs @@ -82,7 +82,7 @@ internal static NewRelicObservabilityLatestLinkedSaaSResult DeserializeNewRelicO { return null; } - string saaSResourceId = default; + ResourceIdentifier saaSResourceId = default; bool? isHiddenSaaS = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -90,7 +90,11 @@ internal static NewRelicObservabilityLatestLinkedSaaSResult DeserializeNewRelicO { if (property.NameEquals("saaSResourceId"u8)) { - saaSResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("isHiddenSaaS"u8)) @@ -133,15 +137,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) if (Optional.IsDefined(SaaSResourceId)) { builder.Append(" saaSResourceId: "); - if (SaaSResourceId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SaaSResourceId}'''"); - } - else - { - builder.AppendLine($"'{SaaSResourceId}'"); - } + builder.AppendLine($"'{SaaSResourceId.ToString()}'"); } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs index 3bbc3208c188..7cbc8ad96830 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Response of get latest linked SaaS resource operation. + /// + /// Response of get latest linked SaaS resource operation + /// Serialized Name: LatestLinkedSaaSResponse + /// public partial class NewRelicObservabilityLatestLinkedSaaSResult { /// @@ -51,20 +55,32 @@ internal NewRelicObservabilityLatestLinkedSaaSResult() } /// Initializes a new instance of . - /// SaaS resource id. - /// Flag indicating if the SaaS resource is hidden. + /// + /// SaaS resource id + /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId + /// + /// + /// Flag indicating if the SaaS resource is hidden + /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS + /// /// Keeps track of any properties unknown to the library. - internal NewRelicObservabilityLatestLinkedSaaSResult(string saaSResourceId, bool? isHiddenSaaS, IDictionary serializedAdditionalRawData) + internal NewRelicObservabilityLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId, bool? isHiddenSaaS, IDictionary serializedAdditionalRawData) { SaaSResourceId = saaSResourceId; IsHiddenSaaS = isHiddenSaaS; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// SaaS resource id. + /// + /// SaaS resource id + /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId + /// [WirePath("saaSResourceId")] - public string SaaSResourceId { get; } - /// Flag indicating if the SaaS resource is hidden. + public ResourceIdentifier SaaSResourceId { get; } + /// + /// Flag indicating if the SaaS resource is hidden + /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS + /// [WirePath("isHiddenSaaS")] public bool? IsHiddenSaaS { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.Serialization.cs index 08fcde1f696d..7741ddacb506 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.Serialization.cs @@ -77,14 +77,18 @@ internal static NewRelicObservabilitySaaSContent DeserializeNewRelicObservabilit { return null; } - string saaSResourceId = default; + ResourceIdentifier saaSResourceId = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("saaSResourceId"u8)) { - saaSResourceId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + saaSResourceId = new ResourceIdentifier(property.Value.GetString()); continue; } if (options.Format != "W") @@ -118,15 +122,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) if (Optional.IsDefined(SaaSResourceId)) { builder.Append(" saaSResourceId: "); - if (SaaSResourceId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SaaSResourceId}'''"); - } - else - { - builder.AppendLine($"'{SaaSResourceId}'"); - } + builder.AppendLine($"'{SaaSResourceId.ToString()}'"); } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs index d989669c5ca6..a9883e71248d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs @@ -7,10 +7,14 @@ using System; using System.Collections.Generic; +using Azure.Core; namespace Azure.ResourceManager.NewRelicObservability.Models { - /// SaaS details. + /// + /// SaaS details + /// Serialized Name: SaaSData + /// public partial class NewRelicObservabilitySaaSContent { /// @@ -51,16 +55,22 @@ public NewRelicObservabilitySaaSContent() } /// Initializes a new instance of . - /// SaaS resource id. + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// /// Keeps track of any properties unknown to the library. - internal NewRelicObservabilitySaaSContent(string saaSResourceId, IDictionary serializedAdditionalRawData) + internal NewRelicObservabilitySaaSContent(ResourceIdentifier saaSResourceId, IDictionary serializedAdditionalRawData) { SaaSResourceId = saaSResourceId; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// SaaS resource id. + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// [WirePath("saaSResourceId")] - public string SaaSResourceId { get; set; } + public ResourceIdentifier SaaSResourceId { get; set; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs index 427468e1c3f6..e13045dd812b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs @@ -12,7 +12,10 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// Marketplace SaaS resource details. + /// + /// Marketplace SaaS resource details. + /// Serialized Name: SaaSResourceDetailsResponse + /// public partial class NewRelicObservabilitySaaSResourceDetailsResult : ResourceData { /// @@ -57,7 +60,10 @@ public NewRelicObservabilitySaaSResourceDetailsResult() /// The name. /// The resourceType. /// The systemData. - /// Id of the Marketplace SaaS Resource. + /// + /// Id of the Marketplace SaaS Resource + /// Serialized Name: SaaSResourceDetailsResponse.saasId + /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string saasId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -65,7 +71,10 @@ internal NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id, s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Id of the Marketplace SaaS Resource. + /// + /// Id of the Marketplace SaaS Resource + /// Serialized Name: SaaSResourceDetailsResponse.saasId + /// [WirePath("saasId")] public string SaasId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs deleted file mode 100644 index a64409500e93..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.Serialization.cs +++ /dev/null @@ -1,166 +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.NewRelicObservability.Models -{ - public partial class NewRelicSaaSDataDetails : 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(NewRelicSaaSDataDetails)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(SaaSResourceId)) - { - writer.WritePropertyName("saaSResourceId"u8); - writer.WriteStringValue(SaaSResourceId); - } - 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 - } - } - } - - NewRelicSaaSDataDetails 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(NewRelicSaaSDataDetails)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNewRelicSaaSDataDetails(document.RootElement, options); - } - - internal static NewRelicSaaSDataDetails DeserializeNewRelicSaaSDataDetails(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier saaSResourceId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("saaSResourceId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - saaSResourceId = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NewRelicSaaSDataDetails(saaSResourceId, 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(SaaSResourceId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" saaSResourceId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SaaSResourceId)) - { - builder.Append(" saaSResourceId: "); - builder.AppendLine($"'{SaaSResourceId.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, AzureResourceManagerNewRelicObservabilityContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(NewRelicSaaSDataDetails)} does not support writing '{options.Format}' format."); - } - } - - NewRelicSaaSDataDetails 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 DeserializeNewRelicSaaSDataDetails(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NewRelicSaaSDataDetails)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.cs deleted file mode 100644 index 6b61a2e4e79a..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSDataDetails.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; -using Azure.Core; - -namespace Azure.ResourceManager.NewRelicObservability.Models -{ - /// - /// SaaS details - /// Serialized Name: SaaSData - /// - public partial class NewRelicSaaSDataDetails - { - /// - /// 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 NewRelicSaaSDataDetails() - { - } - - /// Initializes a new instance of . - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// - /// Keeps track of any properties unknown to the library. - internal NewRelicSaaSDataDetails(ResourceIdentifier saaSResourceId, IDictionary serializedAdditionalRawData) - { - SaaSResourceId = saaSResourceId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// - [WirePath("saaSResourceId")] - public ResourceIdentifier SaaSResourceId { get; set; } - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs deleted file mode 100644 index d87318ac3c95..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.Serialization.cs +++ /dev/null @@ -1,244 +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.NewRelicObservability.Models -{ - public partial class NewRelicSaaSResourceDetailsResult : 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(NewRelicSaaSResourceDetailsResult)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(SaasId)) - { - writer.WritePropertyName("saasId"u8); - writer.WriteStringValue(SaasId); - } - } - - NewRelicSaaSResourceDetailsResult 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(NewRelicSaaSResourceDetailsResult)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement, options); - } - - internal static NewRelicSaaSResourceDetailsResult DeserializeNewRelicSaaSResourceDetailsResult(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string saasId = 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("saasId"u8)) - { - saasId = 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, AzureResourceManagerNewRelicObservabilityContext.Default); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new NewRelicSaaSResourceDetailsResult( - id, - name, - type, - systemData, - saasId, - 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(SaasId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" saasId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SaasId)) - { - builder.Append(" saasId: "); - if (SaasId.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{SaasId}'''"); - } - else - { - builder.AppendLine($"'{SaasId}'"); - } - } - } - - 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, AzureResourceManagerNewRelicObservabilityContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(NewRelicSaaSResourceDetailsResult)} does not support writing '{options.Format}' format."); - } - } - - NewRelicSaaSResourceDetailsResult 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 DeserializeNewRelicSaaSResourceDetailsResult(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(NewRelicSaaSResourceDetailsResult)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.cs deleted file mode 100644 index 70065b0752d3..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSaaSResourceDetailsResult.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.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.NewRelicObservability.Models -{ - /// - /// Marketplace SaaS resource details. - /// Serialized Name: SaaSResourceDetailsResponse - /// - public partial class NewRelicSaaSResourceDetailsResult : 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 NewRelicSaaSResourceDetailsResult() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// Id of the Marketplace SaaS Resource - /// Serialized Name: SaaSResourceDetailsResponse.saasId - /// - /// Keeps track of any properties unknown to the library. - internal NewRelicSaaSResourceDetailsResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string saasId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - SaasId = saasId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// - /// Id of the Marketplace SaaS Resource - /// Serialized Name: SaaSResourceDetailsResponse.saasId - /// - [WirePath("saasId")] - public string SaasId { get; set; } - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.Serialization.cs deleted file mode 100644 index d23900a14039..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.Serialization.cs +++ /dev/null @@ -1,203 +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.NewRelicObservability.Models -{ - public partial class ResubscribeProperties : 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(ResubscribeProperties)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(PlanId)) - { - writer.WritePropertyName("planId"u8); - writer.WriteStringValue(PlanId); - } - if (Optional.IsDefined(TermId)) - { - writer.WritePropertyName("termId"u8); - writer.WriteStringValue(TermId); - } - if (Optional.IsDefined(SubscriptionId)) - { - writer.WritePropertyName("subscriptionId"u8); - writer.WriteStringValue(SubscriptionId); - } - if (Optional.IsDefined(ResourceGroup)) - { - writer.WritePropertyName("resourceGroup"u8); - writer.WriteStringValue(ResourceGroup); - } - if (Optional.IsDefined(OrganizationId)) - { - writer.WritePropertyName("organizationId"u8); - writer.WriteStringValue(OrganizationId); - } - if (Optional.IsDefined(PublisherId)) - { - writer.WritePropertyName("publisherId"u8); - writer.WriteStringValue(PublisherId); - } - if (Optional.IsDefined(OfferId)) - { - writer.WritePropertyName("offerId"u8); - writer.WriteStringValue(OfferId); - } - 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 - } - } - } - - ResubscribeProperties 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(ResubscribeProperties)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeResubscribeProperties(document.RootElement, options); - } - - internal static ResubscribeProperties DeserializeResubscribeProperties(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string planId = default; - string termId = default; - string subscriptionId = default; - string resourceGroup = default; - string organizationId = default; - string publisherId = default; - string offerId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("planId"u8)) - { - planId = property.Value.GetString(); - continue; - } - if (property.NameEquals("termId"u8)) - { - termId = property.Value.GetString(); - continue; - } - if (property.NameEquals("subscriptionId"u8)) - { - subscriptionId = property.Value.GetString(); - continue; - } - if (property.NameEquals("resourceGroup"u8)) - { - resourceGroup = property.Value.GetString(); - continue; - } - if (property.NameEquals("organizationId"u8)) - { - organizationId = property.Value.GetString(); - continue; - } - if (property.NameEquals("publisherId"u8)) - { - publisherId = property.Value.GetString(); - continue; - } - if (property.NameEquals("offerId"u8)) - { - offerId = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new ResubscribeProperties( - planId, - termId, - subscriptionId, - resourceGroup, - organizationId, - publisherId, - offerId, - 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, AzureResourceManagerNewRelicObservabilityContext.Default); - default: - throw new FormatException($"The model {nameof(ResubscribeProperties)} does not support writing '{options.Format}' format."); - } - } - - ResubscribeProperties 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 DeserializeResubscribeProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(ResubscribeProperties)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.cs deleted file mode 100644 index b2585ffd6226..000000000000 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ResubscribeProperties.cs +++ /dev/null @@ -1,96 +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.NewRelicObservability.Models -{ - /// Resubscribe Properties. - public partial class ResubscribeProperties - { - /// - /// 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 ResubscribeProperties() - { - } - - /// Initializes a new instance of . - /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe. - /// Newly selected term Id to create the new Marketplace subscription for Resubscribe. - /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe. - /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe. - /// Organization Id of the NewRelic Organization that needs to be resubscribed. - /// Publisher Id of the NewRelic offer that needs to be resubscribed. - /// Offer Id of the NewRelic offer that needs to be resubscribed. - /// Keeps track of any properties unknown to the library. - internal ResubscribeProperties(string planId, string termId, string subscriptionId, string resourceGroup, string organizationId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) - { - PlanId = planId; - TermId = termId; - SubscriptionId = subscriptionId; - ResourceGroup = resourceGroup; - OrganizationId = organizationId; - PublisherId = publisherId; - OfferId = offerId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe. - [WirePath("planId")] - public string PlanId { get; set; } - /// Newly selected term Id to create the new Marketplace subscription for Resubscribe. - [WirePath("termId")] - public string TermId { get; set; } - /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe. - [WirePath("subscriptionId")] - public string SubscriptionId { get; set; } - /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe. - [WirePath("resourceGroup")] - public string ResourceGroup { get; set; } - /// Organization Id of the NewRelic Organization that needs to be resubscribed. - [WirePath("organizationId")] - public string OrganizationId { get; set; } - /// Publisher Id of the NewRelic offer that needs to be resubscribed. - [WirePath("publisherId")] - public string PublisherId { get; set; } - /// Offer Id of the NewRelic offer that needs to be resubscribed. - [WirePath("offerId")] - public string OfferId { get; set; } - } -} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs index 4a6738881778..4447d9e93724 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs @@ -110,7 +110,7 @@ public virtual NewRelicMonitoredSubscriptionCollection GetNewRelicMonitoredSubsc } /// - /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -139,7 +139,7 @@ public virtual async Task> GetNe } /// - /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -175,7 +175,7 @@ public virtual NewRelicObservabilityTagRuleCollection GetNewRelicObservabilityTa } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -206,7 +206,7 @@ public virtual async Task> GetNew } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Retrieves the details of the tag rules for a specific New Relic monitor resource, providing insight into its setup and status /// /// /// Request Path @@ -669,7 +669,7 @@ public virtual Response GetMetricStatus(NewRelicMet } /// - /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// /// /// Request Path @@ -690,7 +690,7 @@ public virtual Response GetMetricStatus(NewRelicMet /// /// /// The cancellation token to use. - public virtual async Task> LatestLinkedSaaSAsync(CancellationToken cancellationToken = default) + public virtual async Task> LatestLinkedSaaSAsync(CancellationToken cancellationToken = default) { using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); scope.Start(); @@ -707,7 +707,7 @@ public virtual async Task> LatestLinked } /// - /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// /// /// Request Path @@ -728,7 +728,7 @@ public virtual async Task> LatestLinked /// /// /// The cancellation token to use. - public virtual Response LatestLinkedSaaS(CancellationToken cancellationToken = default) + public virtual Response LatestLinkedSaaS(CancellationToken cancellationToken = default) { using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); scope.Start(); @@ -745,7 +745,7 @@ public virtual Response LatestLinkedSaaS(Cancell } /// - /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace + /// Links a new SaaS to the newrelic organization of the underlying monitor. /// /// /// Request Path @@ -766,19 +766,19 @@ public virtual Response LatestLinkedSaaS(Cancell /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Link SaaS body parameter. + /// Link SaaS body parameter. /// The cancellation token to use. - /// is null. - public virtual async Task> LinkSaaSAsync(WaitUntil waitUntil, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> LinkSaaSAsync(WaitUntil waitUntil, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(details, nameof(details)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); scope.Start(); try { - var response = await _newRelicMonitorResourceMonitorsRestClient.LinkSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details, cancellationToken).ConfigureAwait(false); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = await _newRelicMonitorResourceMonitorsRestClient.LinkSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -791,7 +791,7 @@ public virtual async Task> LinkSaaSAsync(W } /// - /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace + /// Links a new SaaS to the newrelic organization of the underlying monitor. /// /// /// Request Path @@ -812,19 +812,19 @@ public virtual async Task> LinkSaaSAsync(W /// /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Link SaaS body parameter. + /// Link SaaS body parameter. /// The cancellation token to use. - /// is null. - public virtual ArmOperation LinkSaaS(WaitUntil waitUntil, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + /// is null. + public virtual ArmOperation LinkSaaS(WaitUntil waitUntil, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(details, nameof(details)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); scope.Start(); try { - var response = _newRelicMonitorResourceMonitorsRestClient.LinkSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details, cancellationToken); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, details).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var response = _newRelicMonitorResourceMonitorsRestClient.LinkSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -836,6 +836,74 @@ public virtual ArmOperation LinkSaaS(WaitUntil waitUnti } } + /// + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// + /// + /// Operation Id + /// Monitors_ListAppServices + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the app services get request. + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAppServicesAsync(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + } + + /// + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listAppServices + /// + /// + /// Operation Id + /// Monitors_ListAppServices + /// + /// + /// Default Api Version + /// 2025-05-01-preview + /// + /// + /// Resource + /// + /// + /// + /// + /// The details of the app services get request. + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAppServices(NewRelicAppServicesGetContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListAppServicesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => NewRelicObservabilityAppServiceInfo.DeserializeNewRelicObservabilityAppServiceInfo(e), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetAppServices", "value", "nextLink", cancellationToken); + } + /// /// Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability /// @@ -905,15 +973,15 @@ public virtual Pageable GetHosts(NewRelicHostsGetCo } /// - /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/refreshIngestionKey + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources /// /// /// Operation Id - /// Monitors_RefreshIngestionKey + /// Monitors_ListLinkedResources /// /// /// Default Api Version @@ -926,32 +994,24 @@ public virtual Pageable GetHosts(NewRelicHostsGetCo /// /// /// The cancellation token to use. - public virtual async Task RefreshIngestionKeyAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetLinkedResourcesAsync(CancellationToken cancellationToken = default) { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.RefreshIngestionKey"); - scope.Start(); - try - { - var response = await _newRelicMonitorResourceMonitorsRestClient.RefreshIngestionKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); } /// - /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/refreshIngestionKey + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/listLinkedResources /// /// /// Operation Id - /// Monitors_RefreshIngestionKey + /// Monitors_ListLinkedResources /// /// /// Default Api Version @@ -964,20 +1024,12 @@ public virtual async Task RefreshIngestionKeyAsync(CancellationToken c /// /// /// The cancellation token to use. - public virtual Response RefreshIngestionKey(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetLinkedResources(CancellationToken cancellationToken = default) { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.RefreshIngestionKey"); - scope.Start(); - try - { - var response = _newRelicMonitorResourceMonitorsRestClient.RefreshIngestionKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListLinkedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(e.GetRawText())), ModelSerializationExtensions.WireOptions, AzureResourceManagerNewRelicObservabilityContext.Default), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetLinkedResources", "value", "nextLink", cancellationToken); } /// @@ -1041,7 +1093,7 @@ public virtual Pageable GetMonitoredResources(Can } /// - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// /// /// Request Path @@ -1079,7 +1131,7 @@ public virtual async Task RefreshIngestionKeyAsync(CancellationToken c } /// - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// /// /// Request Path @@ -1363,261 +1415,7 @@ public virtual Response VmHostPayload(C } /// - /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/latestLinkedSaaS - /// - /// - /// Operation Id - /// Monitors_LatestLinkedSaaS - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> LatestLinkedSaaSAsync(CancellationToken cancellationToken = default) - { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); - scope.Start(); - try - { - var response = await _newRelicMonitorResourceMonitorsRestClient.LatestLinkedSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/latestLinkedSaaS - /// - /// - /// Operation Id - /// Monitors_LatestLinkedSaaS - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response LatestLinkedSaaS(CancellationToken cancellationToken = default) - { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LatestLinkedSaaS"); - scope.Start(); - try - { - var response = _newRelicMonitorResourceMonitorsRestClient.LatestLinkedSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Links a new SaaS to the newrelic organization of the underlying monitor. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/linkSaaS - /// - /// - /// Operation Id - /// Monitors_LinkSaaS - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Link SaaS body parameter. - /// The cancellation token to use. - /// is null. - public virtual async Task> LinkSaaSAsync(WaitUntil waitUntil, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); - scope.Start(); - try - { - var response = await _newRelicMonitorResourceMonitorsRestClient.LinkSaaSAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Links a new SaaS to the newrelic organization of the underlying monitor. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/linkSaaS - /// - /// - /// Operation Id - /// Monitors_LinkSaaS - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Link SaaS body parameter. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation LinkSaaS(WaitUntil waitUntil, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(content, nameof(content)); - - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.LinkSaaS"); - scope.Start(); - try - { - var response = _newRelicMonitorResourceMonitorsRestClient.LinkSaaS(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateLinkSaaSRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe - /// - /// - /// Operation Id - /// Monitors_Resubscribe - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Resubscribe Properties. - /// The cancellation token to use. - public virtual async Task> ResubscribeAsync(WaitUntil waitUntil, ResubscribeProperties body = null, CancellationToken cancellationToken = default) - { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.Resubscribe"); - scope.Start(); - try - { - var response = await _newRelicMonitorResourceMonitorsRestClient.ResubscribeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken).ConfigureAwait(false); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateResubscribeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/resubscribe - /// - /// - /// Operation Id - /// Monitors_Resubscribe - /// - /// - /// Default Api Version - /// 2025-05-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// Resubscribe Properties. - /// The cancellation token to use. - public virtual ArmOperation Resubscribe(WaitUntil waitUntil, ResubscribeProperties body = null, CancellationToken cancellationToken = default) - { - using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.Resubscribe"); - scope.Start(); - try - { - var response = _newRelicMonitorResourceMonitorsRestClient.Resubscribe(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body, cancellationToken); - var operation = new NewRelicObservabilityArmOperation(new NewRelicMonitorResourceOperationSource(Client), _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, _newRelicMonitorResourceMonitorsRestClient.CreateResubscribeRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, body).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Retrieves marketplace and organization information mapped to the given New Relic monitor resource + /// A synchronous resource action. /// /// /// Request Path @@ -1651,7 +1449,7 @@ public virtual async Task> GetBillingInfoAsy } /// - /// Retrieves marketplace and organization information mapped to the given New Relic monitor resource + /// A synchronous resource action. /// /// /// Request Path diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs index e4e9ec7e8a4a..0d42ddb6abae 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs @@ -65,21 +65,66 @@ public NewRelicMonitorResourceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// The managed service identities assigned to this resource. - /// Provisioning State of the resource. - /// MonitoringStatus of the resource. - /// NewRelic Organization properties of the resource. - /// Marketplace Subscription Id. - /// MarketplaceSubscriptionStatus of the resource. - /// User Info. - /// Plan details. - /// SaaS details. - /// Liftr resource category. - /// Liftr resource preference. The priority of the resource. - /// Source of org creation. - /// Source of account creation. - /// State of the Azure Subscription containing the monitor resource. - /// Status of Azure Subscription where Marketplace SaaS is located. + /// + /// The managed service identities assigned to this resource. + /// Serialized Name: NewRelicMonitorResource.identity + /// + /// + /// Provisioning State of the resource + /// Serialized Name: NewRelicMonitorResource.properties.provisioningState + /// + /// + /// MonitoringStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus + /// + /// + /// NewRelic Organization properties of the resource + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus + /// + /// + /// Marketplace Subscription Id + /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId + /// + /// + /// MarketplaceSubscriptionStatus of the resource + /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties + /// + /// + /// User Info + /// Serialized Name: NewRelicMonitorResource.properties.userInfo + /// + /// + /// Plan details + /// Serialized Name: NewRelicMonitorResource.properties.planData + /// + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// + /// + /// Liftr resource preference. The priority of the resource. + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference + /// + /// + /// Source of org creation + /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource + /// + /// + /// Source of account creation + /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource + /// + /// + /// State of the Azure Subscription containing the monitor resource + /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState + /// + /// + /// Status of Azure Subscription where Marketplace SaaS is located. + /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus + /// /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicObservabilitySaaSContent saaSData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -154,11 +199,17 @@ internal NewRelicMonitorResourceData() /// [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// SaaS details. + /// + /// SaaS details + /// Serialized Name: NewRelicMonitorResource.properties.saaSData + /// internal NewRelicObservabilitySaaSContent SaaSData { get; set; } - /// SaaS resource id. + /// + /// SaaS resource id + /// Serialized Name: SaaSData.saaSResourceId + /// [WirePath("properties.saaSData.saaSResourceId")] - public string SaaSResourceId + public ResourceIdentifier SaaSResourceId { get => SaaSData is null ? default : SaaSData.SaaSResourceId; set @@ -169,7 +220,10 @@ public string SaaSResourceId } } - /// Liftr resource category. + /// + /// Liftr resource category + /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory + /// [WirePath("properties.liftrResourceCategory")] public NewRelicLiftrResourceCategory? LiftrResourceCategory { get; } /// diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs index 6ac1316aa184..59ca832a99a0 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionCollection.cs @@ -53,7 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. + /// Create a MonitoredSubscriptionProperties /// /// /// Request Path @@ -100,7 +100,7 @@ public virtual async Task> C } /// - /// Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. + /// Create a MonitoredSubscriptionProperties /// /// /// Request Path @@ -147,7 +147,7 @@ public virtual ArmOperation CreateOrUpdat } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -188,7 +188,7 @@ public virtual async Task> GetAs } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -229,7 +229,7 @@ public virtual Response Get(MonitoredSubs } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource /// /// /// Request Path @@ -259,7 +259,7 @@ public virtual AsyncPageable GetAllAsync( } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource /// /// /// Request Path diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs index 67f2eac7fd6c..9e9ca0a8bdc9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionResource.cs @@ -90,7 +90,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -130,7 +130,7 @@ public virtual async Task> GetAs } /// - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties /// /// /// Request Path @@ -170,7 +170,7 @@ public virtual Response Get(CancellationT } /// - /// Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities + /// Delete a MonitoredSubscriptionProperties /// /// /// Request Path @@ -212,7 +212,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities + /// Delete a MonitoredSubscriptionProperties /// /// /// Request Path @@ -254,7 +254,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance + /// Update a MonitoredSubscriptionProperties /// /// /// Request Path @@ -300,7 +300,7 @@ public virtual async Task> U } /// - /// Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance + /// Update a MonitoredSubscriptionProperties /// /// /// Request Path diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs index 8d0c38e8fcff..ced01fab45fc 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/BillingInfoRestOperations.cs @@ -72,7 +72,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Retrieves marketplace and organization information mapped to the given New Relic monitor resource. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -101,7 +101,7 @@ public async Task> GetAsync(string subscript } } - /// Retrieves marketplace and organization information mapped to the given New Relic monitor resource. + /// A synchronous resource action. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs index 923a9b780206..8da5dc704550 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitoredSubscriptionsRestOperations.cs @@ -72,7 +72,7 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -101,7 +101,7 @@ public async Task> ListAsync(strin } } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -168,7 +168,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -200,7 +200,7 @@ public async Task> GetAsync(string s } } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// Get a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -274,7 +274,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } - /// Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. + /// Create a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -302,7 +302,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } } - /// Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. + /// Create a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -372,7 +372,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. + /// Update a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -400,7 +400,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. + /// Update a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -466,7 +466,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. + /// Delete a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -492,7 +492,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. + /// Delete a MonitoredSubscriptionProperties. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -540,7 +540,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -571,7 +571,7 @@ public async Task> ListNextPageAsy } } - /// Lists all the subscriptions currently being monitored by the NewRelic monitor resource. + /// List MonitoredSubscriptionProperties resources by NewRelicMonitorResource. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs index e5150d3b8f45..89ff58560738 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -812,14 +812,14 @@ internal HttpMessage CreateLatestLinkedSaaSRequest(string subscriptionId, string return message; } - /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> LatestLinkedSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> LatestLinkedSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -831,9 +831,9 @@ public async Task> LatestLinkedSaaSAsyn { case 200: { - NewRelicLatestLinkedSaaSResult value = default; + NewRelicObservabilityLatestLinkedSaaSResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicLatestLinkedSaaSResult.DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement); + value = NewRelicObservabilityLatestLinkedSaaSResult.DeserializeNewRelicObservabilityLatestLinkedSaaSResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -841,14 +841,14 @@ public async Task> LatestLinkedSaaSAsyn } } - /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. + /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response LatestLinkedSaaS(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response LatestLinkedSaaS(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -860,9 +860,9 @@ public Response LatestLinkedSaaS(string subscrip { case 200: { - NewRelicLatestLinkedSaaSResult value = default; + NewRelicObservabilityLatestLinkedSaaSResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicLatestLinkedSaaSResult.DeserializeNewRelicLatestLinkedSaaSResult(document.RootElement); + value = NewRelicObservabilityLatestLinkedSaaSResult.DeserializeNewRelicObservabilityLatestLinkedSaaSResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -870,7 +870,7 @@ public Response LatestLinkedSaaS(string subscrip } } - internal RequestUriBuilder CreateLinkSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details) + internal RequestUriBuilder CreateLinkSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -885,7 +885,7 @@ internal RequestUriBuilder CreateLinkSaaSRequestUri(string subscriptionId, strin return uri; } - internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details) + internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -903,9 +903,9 @@ internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourc request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(details, ModelSerializationExtensions.WireOptions); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -914,18 +914,18 @@ internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourc /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// Link SaaS body parameter. + /// Link SaaS body parameter. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task LinkSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + public async Task LinkSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(details, nameof(details)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, details); + using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -941,18 +941,18 @@ public async Task LinkSaaSAsync(string subscriptionId, string resource /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. - /// Link SaaS body parameter. + /// Link SaaS body parameter. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response LinkSaaS(string subscriptionId, string resourceGroupName, string monitorName, NewRelicSaaSDataDetails details, CancellationToken cancellationToken = default) + public Response LinkSaaS(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(details, nameof(details)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, details); + using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -1004,7 +1004,7 @@ internal HttpMessage CreateListAppServicesRequest(string subscriptionId, string return message; } - /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1035,7 +1035,7 @@ public async Task> ListAppServicesAsync( } } - /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace. + /// Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1168,7 +1168,7 @@ public Response ListHosts(string subsc } } - internal RequestUriBuilder CreateRefreshIngestionKeyRequestUri(string subscriptionId, string resourceGroupName, string monitorName) + internal RequestUriBuilder CreateListLinkedResourcesRequestUri(string subscriptionId, string resourceGroupName, string monitorName) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -1178,12 +1178,12 @@ internal RequestUriBuilder CreateRefreshIngestionKeyRequestUri(string subscripti uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/refreshIngestionKey", false); + uri.AppendPath("/listLinkedResources", false); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateRefreshIngestionKeyRequest(string subscriptionId, string resourceGroupName, string monitorName) + internal HttpMessage CreateListLinkedResourcesRequest(string subscriptionId, string resourceGroupName, string monitorName) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1196,7 +1196,7 @@ internal HttpMessage CreateRefreshIngestionKeyRequest(string subscriptionId, str uri.AppendPath(resourceGroupName, true); uri.AppendPath("/providers/NewRelic.Observability/monitors/", false); uri.AppendPath(monitorName, true); - uri.AppendPath("/refreshIngestionKey", false); + uri.AppendPath("/listLinkedResources", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -1204,49 +1204,59 @@ internal HttpMessage CreateRefreshIngestionKeyRequest(string subscriptionId, str return message; } - /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task RefreshIngestionKeyAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> ListLinkedResourcesAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateRefreshIngestionKeyRequest(subscriptionId, resourceGroupName, monitorName); + using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 204: - return message.Response; + case 200: + { + LinkedResourceListResponse value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RefreshIngestionKey(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response ListLinkedResources(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - using var message = CreateRefreshIngestionKeyRequest(subscriptionId, resourceGroupName, monitorName); + using var message = CreateListLinkedResourcesRequest(subscriptionId, resourceGroupName, monitorName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 204: - return message.Response; + case 200: + { + LinkedResourceListResponse value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = LinkedResourceListResponse.DeserializeLinkedResourceListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } @@ -1382,7 +1392,7 @@ internal HttpMessage CreateRefreshIngestionKeyRequest(string subscriptionId, str return message; } - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1599,7 +1609,7 @@ public async Task> SwitchBillingAsync(stri } } - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -1727,289 +1737,6 @@ public Response VmHostPayload(string su } } - internal RequestUriBuilder CreateLatestLinkedSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName) - { - 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/latestLinkedSaaS", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateLatestLinkedSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName) - { - 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/latestLinkedSaaS", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task> LatestLinkedSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - - using var message = CreateLatestLinkedSaaSRequest(subscriptionId, resourceGroupName, monitorName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - NewRelicObservabilityLatestLinkedSaaSResult value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityLatestLinkedSaaSResult.DeserializeNewRelicObservabilityLatestLinkedSaaSResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Returns the latest SaaS linked to the newrelic organization of the underlying monitor. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response LatestLinkedSaaS(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - - using var message = CreateLatestLinkedSaaSRequest(subscriptionId, resourceGroupName, monitorName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - NewRelicObservabilityLatestLinkedSaaSResult value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = NewRelicObservabilityLatestLinkedSaaSResult.DeserializeNewRelicObservabilityLatestLinkedSaaSResult(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateLinkSaaSRequestUri(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/linkSaaS", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateLinkSaaSRequest(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/linkSaaS", 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; - } - - /// Links a new SaaS to the newrelic organization of the underlying monitor. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// Link SaaS body parameter. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task LinkSaaSAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, content); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Links a new SaaS to the newrelic organization of the underlying monitor. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// Link SaaS body parameter. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response LinkSaaS(string subscriptionId, string resourceGroupName, string monitorName, NewRelicObservabilitySaaSContent content, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - Argument.AssertNotNull(content, nameof(content)); - - using var message = CreateLinkSaaSRequest(subscriptionId, resourceGroupName, monitorName, content); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateResubscribeRequestUri(string subscriptionId, string resourceGroupName, string monitorName, ResubscribeProperties body) - { - 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/resubscribe", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateResubscribeRequest(string subscriptionId, string resourceGroupName, string monitorName, ResubscribeProperties body) - { - 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/NewRelic.Observability/monitors/", false); - uri.AppendPath(monitorName, true); - uri.AppendPath("/resubscribe", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - if (body != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(body, ModelSerializationExtensions.WireOptions); - request.Content = content; - } - _userAgent.Apply(message); - return message; - } - - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// Resubscribe Properties. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task ResubscribeAsync(string subscriptionId, string resourceGroupName, string monitorName, ResubscribeProperties body = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - - using var message = CreateResubscribeRequest(subscriptionId, resourceGroupName, monitorName, body); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Resubscribes the New Relic Organization of the underline Monitor Resource to be billed by Azure Marketplace. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// Monitor resource name. - /// Resubscribe Properties. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Resubscribe(string subscriptionId, string resourceGroupName, string monitorName, ResubscribeProperties body = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(monitorName, nameof(monitorName)); - - using var message = CreateResubscribeRequest(subscriptionId, resourceGroupName, monitorName, body); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - internal RequestUriBuilder CreateListBySubscriptionNextPageRequestUri(string nextLink, string subscriptionId) { var uri = new RawRequestUriBuilder(); @@ -2364,7 +2091,7 @@ internal HttpMessage CreateListLinkedResourcesNextPageRequest(string nextLink, s return message; } - /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -2395,7 +2122,7 @@ public async Task> ListLinkedResourcesNextP } } - /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. + /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -2448,7 +2175,7 @@ internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink return message; } - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -2479,7 +2206,7 @@ public async Task> ListMonitoredRe } } - /// Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration. + /// Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs index 7b58212710cd..294570b8c447 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/SaaSRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateActivateResourceRequest(string subscriptionId, Activa /// Resolve the token to get the SaaS resource ID and activate the SaaS resource. /// The ID of the target subscription. - /// The details for ActivateSaaSParameter request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -97,7 +97,7 @@ public async Task> Acti /// Resolve the token to get the SaaS resource ID and activate the SaaS resource. /// The ID of the target subscription. - /// The details for ActivateSaaSParameter request. + /// The request body. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs index e7ecf72b68dc..377b496c7f31 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/TagRulesRestOperations.cs @@ -376,7 +376,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -409,7 +409,7 @@ public async Task> UpdateAsync(string } } - /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. + /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -480,7 +480,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. @@ -508,7 +508,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Updates the tag rules for a specific New Relic monitor resource, allowing you to modify the rules that control which Azure resources are monitored. + /// Deletes a tag rule set for a given New Relic monitor resource, removing fine-grained control over observability based on resource tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the Monitors resource. diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md index 71f4b94bfe7b..42fecb3b6985 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md @@ -131,13 +131,13 @@ rename-mapping: SubscriptionList: NewRelicMonitoredSubscriptionProperties MonitoredSubscription: NewRelicMonitoredSubscriptionInfo MonitoringTagRulesProperties: NewRelicMonitoringTagRules + LatestLinkedSaaSResponse: NewRelicObservabilityLatestLinkedSaaSResult LatestLinkedSaaSResponse.saaSResourceId: -|arm-id + SaaSData: NewRelicObservabilitySaaSInfo SaaSData.saaSResourceId: -|arm-id ResubscribeProperties: NewRelicResubscribeProperties ActivateSaaSParameterRequest.saasGuid: -|uuid - LatestLinkedSaaSResponse: NewRelicObservabilityLatestLinkedSaaSResult SaaSResourceDetailsResponse: NewRelicObservabilitySaaSResourceDetailsResult - SaaSData: NewRelicObservabilitySaaSInfo override-operation-name: Accounts_List: GetNewRelicAccounts diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs index c71370df2ee7..e6af17916a14 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResource.cs @@ -300,8 +300,8 @@ public async Task GetMetricStatus_MonitorsGetMetricStatusMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListAppServices_MaximumSet_Gen.json - // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MaximumSet_Gen.json + // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -317,7 +317,7 @@ public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMaximumSetGen() NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); + NewRelicObservabilityLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); Console.WriteLine($"Succeeded: {result}"); } @@ -326,8 +326,8 @@ public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMaximumSetGen() [Ignore("Only validating compilation of examples")] public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMinimumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListAppServices_MinimumSet_Gen.json - // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MinimumSet_Gen.json + // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -343,7 +343,7 @@ public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMinimumSetGen() NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); + NewRelicObservabilityLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); Console.WriteLine($"Succeeded: {result}"); } @@ -352,8 +352,8 @@ public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMinimumSetGen() [Ignore("Only validating compilation of examples")] public async Task LinkSaaS_MonitorsLinkSaaS() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_SwitchBilling_MaximumSet_Gen.json - // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LinkSaaS.json + // this example is just showing the usage of "Monitors_LinkSaaS" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -369,11 +369,11 @@ public async Task LinkSaaS_MonitorsLinkSaaS() NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicSaaSDataDetails details = new NewRelicSaaSDataDetails + NewRelicObservabilitySaaSContent content = new NewRelicObservabilitySaaSContent { SaaSResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd"), }; - ArmOperation lro = await newRelicMonitorResource.LinkSaaSAsync(WaitUntil.Completed, details); + ArmOperation lro = await newRelicMonitorResource.LinkSaaSAsync(WaitUntil.Completed, content); NewRelicMonitorResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well @@ -387,8 +387,8 @@ public async Task LinkSaaS_MonitorsLinkSaaS() [Ignore("Only validating compilation of examples")] public async Task GetAppServices_MonitorsListAppServicesMaximumSetGen() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_SwitchBilling_MinimumSet_Gen.json - // this example is just showing the usage of "Monitors_SwitchBilling" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_ListAppServices_MaximumSet_Gen.json + // this example is just showing the usage of "Monitors_ListAppServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -517,10 +517,10 @@ public async Task GetHosts_MonitorsListHostsMinimumSetGen() [Test] [Ignore("Only validating compilation of examples")] - public async Task RefreshIngestionKey_MonitorsRefreshIngestionKey() + public async Task GetLinkedResources_MonitorsListLinkedResources() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_RefreshIngestionKey.json - // this example is just showing the usage of "Monitors_RefreshIngestionKey" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/LinkedResources_List.json + // this example is just showing the usage of "Monitors_ListLinkedResources" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -535,8 +535,11 @@ public async Task RefreshIngestionKey_MonitorsRefreshIngestionKey() ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - // invoke the operation - await newRelicMonitorResource.RefreshIngestionKeyAsync(); + // invoke the operation and iterate over the result + await foreach (SubResource item in newRelicMonitorResource.GetLinkedResourcesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } Console.WriteLine("Succeeded"); } @@ -603,8 +606,8 @@ public async Task GetMonitoredResources_MonitorsListMonitoredResourcesMinimumSet [Ignore("Only validating compilation of examples")] public async Task RefreshIngestionKey_MonitorsRefreshIngestionKey() { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/LinkedResources_List.json - // this example is just showing the usage of "Monitors_ListLinkedResources" operation, for the dependent resources, they will have to be created separately. + // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_RefreshIngestionKey.json + // this example is just showing the usage of "Monitors_RefreshIngestionKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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(); @@ -781,124 +784,6 @@ public async Task VmHostPayload_MonitorsVmHostPayloadMinimumSetGen() Console.WriteLine($"Succeeded: {result}"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMaximumSetGen() - { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MaximumSet_Gen.json - // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 NewRelicMonitorResource created on azure - // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rgopenapi"; - string monitorName = "ipxmlcbonyxtolzejcjshkmlron"; - ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); - NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - - // invoke the operation - NewRelicObservabilityLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task LatestLinkedSaaS_MonitorsLatestLinkedSaaSMinimumSetGen() - { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LatestLinkedSaaS_MinimumSet_Gen.json - // this example is just showing the usage of "Monitors_LatestLinkedSaaS" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 NewRelicMonitorResource created on azure - // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "rgopenapi"; - string monitorName = "ipxmlcbonyxtolzejcjshkmlron"; - ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); - NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - - // invoke the operation - NewRelicObservabilityLatestLinkedSaaSResult result = await newRelicMonitorResource.LatestLinkedSaaSAsync(); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task LinkSaaS_MonitorsLinkSaaS() - { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_LinkSaaS.json - // this example is just showing the usage of "Monitors_LinkSaaS" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 NewRelicMonitorResource created on azure - // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myResourceGroup"; - string monitorName = "myMonitor"; - ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); - NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - - // invoke the operation - NewRelicObservabilitySaaSContent content = new NewRelicObservabilitySaaSContent - { - SaaSResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd", - }; - ArmOperation lro = await newRelicMonitorResource.LinkSaaSAsync(WaitUntil.Completed, content); - NewRelicMonitorResource 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 - NewRelicMonitorResourceData 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 Resubscribe_MonitorsResubscribe() - { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/Monitors_Resubscribe.json - // this example is just showing the usage of "Monitors_Resubscribe" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 NewRelicMonitorResource created on azure - // for more information of creating NewRelicMonitorResource, please refer to the document of NewRelicMonitorResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myResourceGroup"; - string monitorName = "myMonitor"; - ResourceIdentifier newRelicMonitorResourceId = NewRelicMonitorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, monitorName); - NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); - - // invoke the operation - ArmOperation lro = await newRelicMonitorResource.ResubscribeAsync(WaitUntil.Completed); - NewRelicMonitorResource 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 - NewRelicMonitorResourceData 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 GetBillingInfo_BillingInfoGet() diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs index 783a25e42491..ee75cfa24bd5 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_NewRelicMonitorResourceCollection.cs @@ -84,7 +84,7 @@ public async Task CreateOrUpdate_MonitorsCreateOrUpdateMaximumSetGen() PlanDetails = "tbbiaga", EffectiveOn = DateTimeOffset.Parse("2022-12-05T14:11:37.786Z"), }, - SaaSResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd", + SaaSResourceId = new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgNewRelic/providers/Microsoft.SaaS/resources/abcd"), OrgCreationSource = NewRelicObservabilityOrgCreationSource.Liftr, AccountCreationSource = NewRelicObservabilityAccountCreationSource.Liftr, SubscriptionState = "Suspended", diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 48e7011a832f..d7da0f96ae3a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -95,7 +95,7 @@ public async Task ActivateResourceSaaS_ActivateSaaS() // invoke the operation ActivateSaaSParameterContent content = new ActivateSaaSParameterContent(Guid.Parse("00000000-0000-0000-0000-000005430000"), "publisherId"); - NewRelicSaaSResourceDetailsResult result = await subscriptionResource.ActivateResourceSaaSAsync(content); + NewRelicObservabilitySaaSResourceDetailsResult result = await subscriptionResource.ActivateResourceSaaSAsync(content); Console.WriteLine($"Succeeded: {result}"); } @@ -245,30 +245,5 @@ public async Task GetNewRelicPlans_PlansListMinimumSetGen() Console.WriteLine("Succeeded"); } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task ActivateResourceSaaS_ActivateSaaS() - { - // Generated from example definition: specification/newrelic/resource-manager/NewRelic.Observability/preview/2025-05-01-preview/examples/ActivateSaaS.json - // this example is just showing the usage of "SaaS_ActivateResource" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 = "00000000-0000-0000-0000-000000000000"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation - ActivateSaaSParameterContent content = new ActivateSaaSParameterContent("00000000-0000-0000-0000-000005430000", "publisherId"); - NewRelicObservabilitySaaSResourceDetailsResult result = await subscriptionResource.ActivateResourceSaaSAsync(content); - - Console.WriteLine($"Succeeded: {result}"); - } } } From 1c4ff0641ff27ff3f8a4406f09ce5e7474ad62ee Mon Sep 17 00:00:00 2001 From: Zhonglei Ma Date: Wed, 15 Oct 2025 17:58:21 +0800 Subject: [PATCH 3/5] updated --- .../src/Generated/ArmNewRelicObservabilityModelFactory.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs index 873ba58d04f1..c7672062f63f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; From 2e981ede21572f2725c6235c8f202eaebcae3897 Mon Sep 17 00:00:00 2001 From: Zhonglei Ma Date: Thu, 16 Oct 2025 09:18:59 +0800 Subject: [PATCH 4/5] fixed changelog --- .../Azure.ResourceManager.NewRelicObservability/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md index 1fe4e9a19c92..1bd2b9345c96 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/CHANGELOG.md @@ -4,10 +4,6 @@ ### Features Added -### Breaking Changes - -### Bugs Fixed - Updating the api-version to "2025-05-01-preview" ### Other Changes From 9ae36c0f45b14c9fa1e13f6dc8d82c04f1c1fd4b Mon Sep 17 00:00:00 2001 From: Zhonglei Ma Date: Fri, 17 Oct 2025 14:31:53 +0800 Subject: [PATCH 5/5] remove directive and add custom code --- ...rceManager.NewRelicObservability.net8.0.cs | 1 + ...er.NewRelicObservability.netstandard2.0.cs | 1 + .../NewRelicMonitoredSubscriptionInfo.cs | 16 + .../ArmNewRelicObservabilityModelFactory.cs | 385 ++++-------------- .../Models/ActivateSaaSParameterContent.cs | 35 +- .../ConnectedPartnerResourcesListResponse.cs | 30 +- .../Models/LinkedResourceListResponse.cs | 30 +- .../Generated/Models/MarketplaceSaaSInfo.cs | 75 +--- .../MonitoredSubscriptionConfigurationName.cs | 10 +- .../MonitoredSubscriptionPatchOperation.cs | 30 +- .../MonitoredSubscriptionPropertiesList.cs | 30 +- .../Models/NewRelicAccountProperties.cs | 50 +-- .../Models/NewRelicAccountResourceData.cs | 45 +- .../Models/NewRelicAccountsListResult.cs | 30 +- .../Models/NewRelicAppServicesGetContent.cs | 30 +- .../Models/NewRelicAppServicesListResult.cs | 30 +- .../Models/NewRelicBillingInfoResult.cs | 25 +- .../NewRelicConnectedPartnerResourceInfo.cs | 15 +- ...RelicConnectedPartnerResourceProperties.cs | 45 +- .../Models/NewRelicHostsGetContent.cs | 30 +- .../Models/NewRelicLiftrResourceCategory.cs | 15 +- .../Models/NewRelicMetricsContent.cs | 20 +- .../Models/NewRelicMetricsStatusContent.cs | 30 +- .../Models/NewRelicMetricsStatusResult.cs | 15 +- .../NewRelicMonitorResourceListResult.cs | 30 +- .../Models/NewRelicMonitorResourcePatch.cs | 90 +--- .../NewRelicMonitoredResourceListResult.cs | 30 +- ...MonitoredSubscriptionInfo.Serialization.cs | 7 +- .../NewRelicMonitoredSubscriptionInfo.cs | 52 +-- ...NewRelicMonitoredSubscriptionProperties.cs | 35 +- .../Models/NewRelicMonitoringStatus.cs | 25 +- .../Models/NewRelicMonitoringTagRules.cs | 35 +- ...RelicObservabilityAccountCreationSource.cs | 15 +- .../NewRelicObservabilityAccountInfo.cs | 35 +- .../NewRelicObservabilityAppServiceInfo.cs | 35 +- .../NewRelicObservabilityBillingSource.cs | 15 +- .../NewRelicObservabilityFilteringTag.cs | 35 +- ...elicObservabilityLatestLinkedSaaSResult.cs | 25 +- .../Models/NewRelicObservabilityLogRules.cs | 37 +- ...ervabilityMarketplaceSubscriptionStatus.cs | 15 +- .../NewRelicObservabilityMetricRules.cs | 35 +- .../NewRelicObservabilityMonitoringStatus.cs | 15 +- .../NewRelicObservabilityOrgCreationSource.cs | 15 +- .../NewRelicObservabilityOrganizationInfo.cs | 15 +- .../NewRelicObservabilitySaaSContent.cs | 15 +- ...cObservabilitySaaSResourceDetailsResult.cs | 15 +- .../NewRelicObservabilitySendAadLogsStatus.cs | 15 +- ...elicObservabilitySendActivityLogsStatus.cs | 15 +- .../NewRelicObservabilitySendMetricsStatus.cs | 15 +- ...ObservabilitySendSubscriptionLogsStatus.cs | 15 +- .../NewRelicObservabilitySendingLogsStatus.cs | 15 +- ...wRelicObservabilitySendingMetricsStatus.cs | 15 +- .../Models/NewRelicObservabilityTagAction.cs | 15 +- .../NewRelicObservabilityTagRuleListResult.cs | 30 +- .../NewRelicObservabilityTagRulePatch.cs | 25 +- .../Models/NewRelicObservabilityUsageType.cs | 15 +- .../Models/NewRelicObservabilityUserInfo.cs | 55 +-- ...NewRelicObservabilityVmExtensionPayload.cs | 15 +- ...ewRelicObservabilityVmHostsListResponse.cs | 30 +- .../Models/NewRelicObservabilityVmInfo.cs | 35 +- .../NewRelicOrganizationResourceData.cs | 35 +- .../Models/NewRelicOrganizationsListResult.cs | 30 +- .../src/Generated/Models/NewRelicPlanData.cs | 35 +- .../Models/NewRelicPlanDataListResult.cs | 30 +- .../Generated/Models/NewRelicPlanDetails.cs | 45 +- .../Models/NewRelicProvisioningState.cs | 50 +-- .../Models/NewRelicResourceMonitorResult.cs | 55 +-- .../Models/NewRelicResubscribeProperties.cs | 75 +--- .../Models/NewRelicSingleSignOnProperties.cs | 45 +- .../Models/NewRelicSingleSignOnState.cs | 25 +- .../Models/NewRelicSwitchBillingContent.cs | 50 +-- .../Generated/Models/PartnerBillingEntity.cs | 25 +- .../Generated/NewRelicMonitorResourceData.cs | 156 ++----- .../NewRelicMonitoredSubscriptionData.cs | 11 +- .../NewRelicObservabilityTagRuleData.cs | 31 +- .../src/autorest.md | 11 +- 76 files changed, 552 insertions(+), 2116 deletions(-) create mode 100644 sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/Models/NewRelicMonitoredSubscriptionInfo.cs diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs index 3e3adcaa08e2..c2b5b20273af 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.net8.0.cs @@ -502,6 +502,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class NewRelicMonitoredSubscriptionInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicMonitoredSubscriptionInfo() { } + public NewRelicMonitoredSubscriptionInfo(string subscriptionId) { } public string Error { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoringStatus? Status { get { throw null; } set { } } public string SubscriptionId { get { throw null; } set { } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs index 3e3adcaa08e2..c2b5b20273af 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/api/Azure.ResourceManager.NewRelicObservability.netstandard2.0.cs @@ -502,6 +502,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class NewRelicMonitoredSubscriptionInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NewRelicMonitoredSubscriptionInfo() { } + public NewRelicMonitoredSubscriptionInfo(string subscriptionId) { } public string Error { get { throw null; } set { } } public Azure.ResourceManager.NewRelicObservability.Models.NewRelicMonitoringStatus? Status { get { throw null; } set { } } public string SubscriptionId { get { throw null; } set { } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/Models/NewRelicMonitoredSubscriptionInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/Models/NewRelicMonitoredSubscriptionInfo.cs new file mode 100644 index 000000000000..2b7fed33478e --- /dev/null +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Custom/Models/NewRelicMonitoredSubscriptionInfo.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +namespace Azure.ResourceManager.NewRelicObservability.Models +{ + // Add missing public parameterless constructor + public partial class NewRelicMonitoredSubscriptionInfo + { + /// Initializes a new instance of . + public NewRelicMonitoredSubscriptionInfo() + { + } + } +} diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs index c7672062f63f..df1442ca7f50 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs @@ -22,22 +22,10 @@ public static partial class ArmNewRelicObservabilityModelFactory /// The name. /// The resourceType. /// The systemData. - /// - /// organization id - /// Serialized Name: AccountResource.properties.organizationId - /// - /// - /// account id - /// Serialized Name: AccountResource.properties.accountId - /// - /// - /// account name - /// Serialized Name: AccountResource.properties.accountName - /// - /// - /// Region where New Relic account is present - /// Serialized Name: AccountResource.properties.region - /// + /// organization id. + /// account id. + /// account name. + /// Region where New Relic account is present. /// A new instance for mocking. public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string organizationId = null, string accountId = null, string accountName = null, AzureLocation? region = null) { @@ -58,10 +46,7 @@ public static NewRelicAccountResourceData NewRelicAccountResourceData(ResourceId /// The name. /// The resourceType. /// The systemData. - /// - /// Id of the Marketplace SaaS Resource - /// Serialized Name: SaaSResourceDetailsResponse.saasId - /// + /// Id of the Marketplace SaaS Resource. /// A new instance for mocking. public static NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string saasId = null) { @@ -81,66 +66,21 @@ public static NewRelicObservabilitySaaSResourceDetailsResult NewRelicObservabili /// The systemData. /// The tags. /// The location. - /// - /// The managed service identities assigned to this resource. - /// Serialized Name: NewRelicMonitorResource.identity - /// - /// - /// Provisioning State of the resource - /// Serialized Name: NewRelicMonitorResource.properties.provisioningState - /// - /// - /// MonitoringStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus - /// - /// - /// NewRelic Organization properties of the resource - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus - /// - /// - /// Marketplace Subscription Id - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId - /// - /// - /// MarketplaceSubscriptionStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties - /// - /// - /// User Info - /// Serialized Name: NewRelicMonitorResource.properties.userInfo - /// - /// - /// Plan details - /// Serialized Name: NewRelicMonitorResource.properties.planData - /// - /// - /// SaaS details - /// Serialized Name: NewRelicMonitorResource.properties.saaSData - /// - /// - /// Liftr resource category - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory - /// - /// - /// Liftr resource preference. The priority of the resource. - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference - /// - /// - /// Source of org creation - /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource - /// - /// - /// Source of account creation - /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource - /// - /// - /// State of the Azure Subscription containing the monitor resource - /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState - /// - /// - /// Status of Azure Subscription where Marketplace SaaS is located. - /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus - /// + /// The managed service identities assigned to this resource. + /// Provisioning State of the resource. + /// MonitoringStatus of the resource. + /// NewRelic Organization properties of the resource. + /// Marketplace Subscription Id. + /// MarketplaceSubscriptionStatus of the resource. + /// User Info. + /// Plan details. + /// SaaS details. + /// Liftr resource category. + /// Liftr resource preference. The priority of the resource. + /// Source of org creation. + /// Source of account creation. + /// State of the Azure Subscription containing the monitor resource. + /// Status of Azure Subscription where Marketplace SaaS is located. /// A new instance for mocking. public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityMonitoringStatus? monitoringStatus = null, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string marketplaceSubscriptionId = null, NewRelicAccountProperties newRelicAccountProperties = null, NewRelicObservabilityUserInfo userInfo = null, NewRelicPlanDetails planData = null, ResourceIdentifier saaSResourceId = null, NewRelicLiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null, string subscriptionState = null, string saaSAzureSubscriptionStatus = null) { @@ -176,18 +116,9 @@ public static NewRelicMonitorResourceData NewRelicMonitorResourceData(ResourceId /// The name. /// The resourceType. /// The systemData. - /// - /// organization id - /// Serialized Name: OrganizationResource.properties.organizationId - /// - /// - /// organization name - /// Serialized Name: OrganizationResource.properties.organizationName - /// - /// - /// Billing source - /// Serialized Name: OrganizationResource.properties.billingSource - /// + /// organization id. + /// organization name. + /// Billing source. /// A new instance for mocking. public static NewRelicOrganizationResourceData NewRelicOrganizationResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string organizationId = null, string organizationName = null, NewRelicObservabilityBillingSource? billingSource = null) { @@ -207,18 +138,9 @@ public static NewRelicOrganizationResourceData NewRelicOrganizationResourceData( /// The name. /// The resourceType. /// The systemData. - /// - /// Plan details - /// Serialized Name: PlanDataResource.properties.planData - /// - /// - /// Source of org creation - /// Serialized Name: PlanDataResource.properties.orgCreationSource - /// - /// - /// Source of account creation - /// Serialized Name: PlanDataResource.properties.accountCreationSource - /// + /// Plan details. + /// Source of org creation. + /// Source of account creation. /// A new instance for mocking. public static NewRelicPlanData NewRelicPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicPlanDetails planData = null, NewRelicObservabilityOrgCreationSource? orgCreationSource = null, NewRelicObservabilityAccountCreationSource? accountCreationSource = null) { @@ -234,14 +156,8 @@ public static NewRelicPlanData NewRelicPlanData(ResourceIdentifier id = null, st } /// Initializes a new instance of . - /// - /// Marketplace Subscription details - /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo - /// - /// - /// Partner Billing Entity details: Organization Info - /// Serialized Name: BillingInfoResponse.partnerBillingEntity - /// + /// Marketplace Subscription details. + /// Partner Billing Entity details: Organization Info. /// A new instance for mocking. public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo = null, PartnerBillingEntity partnerBillingEntity = null) { @@ -249,34 +165,13 @@ public static NewRelicBillingInfoResult NewRelicBillingInfoResult(MarketplaceSaa } /// Initializes a new instance of . - /// - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId - /// - /// - /// Marketplace Subscription Details: SAAS Name - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName - /// - /// - /// Marketplace Subscription Details: Resource URI - /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId - /// - /// - /// Marketplace Subscription Details: SaaS Subscription Status - /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus - /// - /// - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId - /// - /// - /// Publisher Id of the Marketplace offer. - /// Serialized Name: MarketplaceSaaSInfo.publisherId - /// - /// - /// Offer Id of the Marketplace offer, - /// Serialized Name: MarketplaceSaaSInfo.offerId - /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Marketplace Subscription Details: SAAS Name. + /// Marketplace Subscription Details: Resource URI. + /// Marketplace Subscription Details: SaaS Subscription Status. + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Publisher Id of the Marketplace offer. + /// Offer Id of the Marketplace offer,. /// A new instance for mocking. public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscriptionId = null, string marketplaceSubscriptionName = null, string marketplaceResourceId = null, string marketplaceStatus = null, string billedAzureSubscriptionId = null, string publisherId = null, string offerId = null) { @@ -292,14 +187,8 @@ public static MarketplaceSaaSInfo MarketplaceSaaSInfo(string marketplaceSubscrip } /// Initializes a new instance of . - /// - /// The New Relic Organization Id. - /// Serialized Name: PartnerBillingEntity.organizationId - /// - /// - /// The New Relic Organization Name. - /// Serialized Name: PartnerBillingEntity.organizationName - /// + /// The New Relic Organization Id. + /// The New Relic Organization Name. /// A new instance for mocking. public static PartnerBillingEntity PartnerBillingEntity(string organizationId = null, string organizationName = null) { @@ -307,14 +196,8 @@ public static PartnerBillingEntity PartnerBillingEntity(string organizationId = } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusRequest.azureResourceIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsStatusRequest.userEmail - /// + /// Azure resource IDs. + /// Reusable representation of an email address. /// A new instance for mocking. public static NewRelicMetricsStatusContent NewRelicMetricsStatusContent(IEnumerable azureResourceIds = null, string userEmail = null) { @@ -324,10 +207,7 @@ public static NewRelicMetricsStatusContent NewRelicMetricsStatusContent(IEnumera } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusResponse.azureResourceIds - /// + /// Azure resource IDs. /// A new instance for mocking. public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerable azureResourceIds = null) { @@ -337,14 +217,8 @@ public static NewRelicMetricsStatusResult NewRelicMetricsStatusResult(IEnumerabl } /// Initializes a new instance of . - /// - /// SaaS resource id - /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId - /// - /// - /// Flag indicating if the SaaS resource is hidden - /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS - /// + /// SaaS resource id. + /// Flag indicating if the SaaS resource is hidden. /// A new instance for mocking. public static NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId = null, bool? isHiddenSaaS = null) { @@ -352,14 +226,8 @@ public static NewRelicObservabilityLatestLinkedSaaSResult NewRelicObservabilityL } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: AppServicesGetRequest.azureResourceIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: AppServicesGetRequest.userEmail - /// + /// Azure resource IDs. + /// Reusable representation of an email address. /// A new instance for mocking. public static NewRelicAppServicesGetContent NewRelicAppServicesGetContent(IEnumerable azureResourceIds = null, string userEmail = null) { @@ -369,18 +237,9 @@ public static NewRelicAppServicesGetContent NewRelicAppServicesGetContent(IEnume } /// Initializes a new instance of . - /// - /// Azure App service resource ID - /// Serialized Name: AppServiceInfo.azureResourceId - /// - /// - /// Version of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentVersion - /// - /// - /// Status of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentStatus - /// + /// Azure App service resource ID. + /// Version of the NewRelic agent installed on the App service. + /// Status of the NewRelic agent installed on the App service. /// A new instance for mocking. public static NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId = null, string agentVersion = null, string agentStatus = null) { @@ -388,10 +247,7 @@ public static NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServic } /// Initializes a new instance of . - /// - /// Connected Partner Resource Properties - /// Serialized Name: ConnectedPartnerResourcesListFormat.properties - /// + /// Connected Partner Resource Properties. /// A new instance for mocking. public static NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourceProperties properties = null) { @@ -399,22 +255,10 @@ public static NewRelicConnectedPartnerResourceInfo NewRelicConnectedPartnerResou } /// Initializes a new instance of . - /// - /// NewRelic account name - /// Serialized Name: ConnectedPartnerResourceProperties.accountName - /// - /// - /// NewRelic Account Id - /// Serialized Name: ConnectedPartnerResourceProperties.accountId - /// - /// - /// The azure resource Id of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId - /// - /// - /// The location of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.location - /// + /// NewRelic account name. + /// NewRelic Account Id. + /// The azure resource Id of the deployment. + /// The location of the deployment. /// A new instance for mocking. public static NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartnerResourceProperties(string accountName = null, string accountId = null, string azureResourceId = null, AzureLocation? location = null) { @@ -422,14 +266,8 @@ public static NewRelicConnectedPartnerResourceProperties NewRelicConnectedPartne } /// Initializes a new instance of . - /// - /// VM resource IDs - /// Serialized Name: HostsGetRequest.vmIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: HostsGetRequest.userEmail - /// + /// VM resource IDs. + /// Reusable representation of an email address. /// A new instance for mocking. public static NewRelicHostsGetContent NewRelicHostsGetContent(IEnumerable vmIds = null, string userEmail = null) { @@ -439,18 +277,9 @@ public static NewRelicHostsGetContent NewRelicHostsGetContent(IEnumerable Initializes a new instance of . - /// - /// Azure VM resource ID - /// Serialized Name: VMInfo.vmId - /// - /// - /// Version of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentVersion - /// - /// - /// Status of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentStatus - /// + /// Azure VM resource ID. + /// Version of the NewRelic agent installed on the VM. + /// Status of the NewRelic agent installed on the VM. /// A new instance for mocking. public static NewRelicObservabilityVmInfo NewRelicObservabilityVmInfo(ResourceIdentifier vmId = null, string agentVersion = null, string agentStatus = null) { @@ -458,26 +287,11 @@ public static NewRelicObservabilityVmInfo NewRelicObservabilityVmInfo(ResourceId } /// Initializes a new instance of . - /// - /// The ARM id of the resource. - /// Serialized Name: MonitoredResource.id - /// - /// - /// Flag indicating if resource is sending metrics to NewRelic. - /// Serialized Name: MonitoredResource.sendingMetrics - /// - /// - /// Reason for why the resource is sending metrics (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForMetricsStatus - /// - /// - /// Flag indicating if resource is sending logs to NewRelic. - /// Serialized Name: MonitoredResource.sendingLogs - /// - /// - /// Reason for why the resource is sending logs (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForLogsStatus - /// + /// The ARM id of the resource. + /// Flag indicating if resource is sending metrics to NewRelic. + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Flag indicating if resource is sending logs to NewRelic. + /// Reason for why the resource is sending logs (or why it is not sending). /// A new instance for mocking. public static NewRelicResourceMonitorResult NewRelicResourceMonitorResult(ResourceIdentifier id = null, NewRelicObservabilitySendingMetricsStatus? sendingMetrics = null, string reasonForMetricsStatus = null, NewRelicObservabilitySendingLogsStatus? sendingLogs = null, string reasonForLogsStatus = null) { @@ -495,10 +309,7 @@ public static NewRelicResourceMonitorResult NewRelicResourceMonitorResult(Resour /// The name. /// The resourceType. /// The systemData. - /// - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// Serialized Name: MonitoredSubscriptionProperties.properties - /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. /// A new instance for mocking. public static NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicMonitoredSubscriptionProperties properties = null) { @@ -512,18 +323,9 @@ public static NewRelicMonitoredSubscriptionData NewRelicMonitoredSubscriptionDat } /// Initializes a new instance of . - /// - /// The operation for the patch on the resource. - /// Serialized Name: SubscriptionList.patchOperation - /// - /// - /// List of subscriptions and the state of the monitoring. - /// Serialized Name: SubscriptionList.monitoredSubscriptionList - /// - /// - /// Provisioning State of the resource - /// Serialized Name: SubscriptionList.provisioningState - /// + /// The operation for the patch on the resource. + /// List of subscriptions and the state of the monitoring. + /// Provisioning State of the resource. /// A new instance for mocking. public static NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOperation? patchOperation = null, IEnumerable monitoredSubscriptionList = null, NewRelicProvisioningState? provisioningState = null) { @@ -533,18 +335,9 @@ public static NewRelicMonitoredSubscriptionProperties NewRelicMonitoredSubscript } /// Initializes a new instance of . - /// - /// Provisioning State of the resource - /// Serialized Name: MonitoringTagRulesProperties.provisioningState - /// - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.logRules - /// - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.metricRules - /// + /// Provisioning State of the resource. + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. /// A new instance for mocking. public static NewRelicMonitoringTagRules NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityLogRules logRules = null, NewRelicObservabilityMetricRules metricRules = null) { @@ -552,22 +345,10 @@ public static NewRelicMonitoringTagRules NewRelicMonitoringTagRules(NewRelicProv } /// Initializes a new instance of . - /// - /// Azure resource Id - /// Serialized Name: SwitchBillingRequest.azureResourceId - /// - /// - /// Organization id - /// Serialized Name: SwitchBillingRequest.organizationId - /// - /// - /// Plan details - /// Serialized Name: SwitchBillingRequest.planData - /// - /// - /// Reusable representation of an email address - /// Serialized Name: SwitchBillingRequest.userEmail - /// + /// Azure resource Id. + /// Organization id. + /// Plan details. + /// Reusable representation of an email address. /// A new instance for mocking. public static NewRelicSwitchBillingContent NewRelicSwitchBillingContent(ResourceIdentifier azureResourceId = null, string organizationId = null, NewRelicPlanDetails planData = null, string userEmail = null) { @@ -579,18 +360,9 @@ public static NewRelicSwitchBillingContent NewRelicSwitchBillingContent(Resource /// The name. /// The resourceType. /// The systemData. - /// - /// Provisioning State of the resource - /// Serialized Name: TagRule.properties.provisioningState - /// - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: TagRule.properties.logRules - /// - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: TagRule.properties.metricRules - /// + /// Provisioning State of the resource. + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. /// A new instance for mocking. public static NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, NewRelicProvisioningState? provisioningState = null, NewRelicObservabilityLogRules logRules = null, NewRelicObservabilityMetricRules metricRules = null) { @@ -606,10 +378,7 @@ public static NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData( } /// Initializes a new instance of . - /// - /// Ingestion key of the account - /// Serialized Name: VMExtensionPayload.ingestionKey - /// + /// Ingestion key of the account. /// A new instance for mocking. public static NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) { diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs index bc12bee5d13d..90d78f5b5b2c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ActivateSaaSParameterContent.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// SaaS guid & PublishedId for Activate and Validate SaaS Resource - /// Serialized Name: ActivateSaaSParameterRequest - /// + /// SaaS guid & PublishedId for Activate and Validate SaaS Resource. public partial class ActivateSaaSParameterContent { /// @@ -49,14 +46,8 @@ public partial class ActivateSaaSParameterContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// SaaS guid for Activate and Validate SaaS Resource - /// Serialized Name: ActivateSaaSParameterRequest.saasGuid - /// - /// - /// Publisher Id for NewRelic resource - /// Serialized Name: ActivateSaaSParameterRequest.publisherId - /// + /// SaaS guid for Activate and Validate SaaS Resource. + /// Publisher Id for NewRelic resource. /// is null. public ActivateSaaSParameterContent(Guid saasGuid, string publisherId) { @@ -67,14 +58,8 @@ public ActivateSaaSParameterContent(Guid saasGuid, string publisherId) } /// Initializes a new instance of . - /// - /// SaaS guid for Activate and Validate SaaS Resource - /// Serialized Name: ActivateSaaSParameterRequest.saasGuid - /// - /// - /// Publisher Id for NewRelic resource - /// Serialized Name: ActivateSaaSParameterRequest.publisherId - /// + /// SaaS guid for Activate and Validate SaaS Resource. + /// Publisher Id for NewRelic resource. /// Keeps track of any properties unknown to the library. internal ActivateSaaSParameterContent(Guid saasGuid, string publisherId, IDictionary serializedAdditionalRawData) { @@ -88,16 +73,10 @@ internal ActivateSaaSParameterContent() { } - /// - /// SaaS guid for Activate and Validate SaaS Resource - /// Serialized Name: ActivateSaaSParameterRequest.saasGuid - /// + /// SaaS guid for Activate and Validate SaaS Resource. [WirePath("saasGuid")] public Guid SaasGuid { get; } - /// - /// Publisher Id for NewRelic resource - /// Serialized Name: ActivateSaaSParameterRequest.publisherId - /// + /// Publisher Id for NewRelic resource. [WirePath("publisherId")] public string PublisherId { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs index 4be419c4c02d..f3fff867010d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/ConnectedPartnerResourcesListResponse.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// List of all active newrelic deployments. - /// Serialized Name: ConnectedPartnerResourcesListResponse - /// + /// List of all active newrelic deployments. internal partial class ConnectedPartnerResourcesListResponse { /// @@ -50,10 +47,7 @@ internal partial class ConnectedPartnerResourcesListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The ConnectedPartnerResourcesListFormat items on this page - /// Serialized Name: ConnectedPartnerResourcesListResponse.value - /// + /// The ConnectedPartnerResourcesListFormat items on this page. /// is null. internal ConnectedPartnerResourcesListResponse(IEnumerable value) { @@ -63,14 +57,8 @@ internal ConnectedPartnerResourcesListResponse(IEnumerable Initializes a new instance of . - /// - /// The ConnectedPartnerResourcesListFormat items on this page - /// Serialized Name: ConnectedPartnerResourcesListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: ConnectedPartnerResourcesListResponse.nextLink - /// + /// The ConnectedPartnerResourcesListFormat items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal ConnectedPartnerResourcesListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal ConnectedPartnerResourcesListResponse() { } - /// - /// The ConnectedPartnerResourcesListFormat items on this page - /// Serialized Name: ConnectedPartnerResourcesListResponse.value - /// + /// The ConnectedPartnerResourcesListFormat items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: ConnectedPartnerResourcesListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs index 055a5f23da4a..645061b22f2e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/LinkedResourceListResponse.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of a list operation. - /// Serialized Name: LinkedResourceListResponse - /// + /// Response of a list operation. internal partial class LinkedResourceListResponse { /// @@ -51,10 +48,7 @@ internal partial class LinkedResourceListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The LinkedResource items on this page - /// Serialized Name: LinkedResourceListResponse.value - /// + /// The LinkedResource items on this page. /// is null. internal LinkedResourceListResponse(IEnumerable value) { @@ -64,14 +58,8 @@ internal LinkedResourceListResponse(IEnumerable value) } /// Initializes a new instance of . - /// - /// The LinkedResource items on this page - /// Serialized Name: LinkedResourceListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: LinkedResourceListResponse.nextLink - /// + /// The LinkedResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal LinkedResourceListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -85,15 +73,9 @@ internal LinkedResourceListResponse() { } - /// - /// The LinkedResource items on this page - /// Serialized Name: LinkedResourceListResponse.value - /// + /// The LinkedResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: LinkedResourceListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs index 2ebdbb978741..01da783734f6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MarketplaceSaaSInfo.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Marketplace SAAS Info of the resource. - /// Serialized Name: MarketplaceSaaSInfo - /// + /// Marketplace SAAS Info of the resource. public partial class MarketplaceSaaSInfo { /// @@ -54,34 +51,13 @@ internal MarketplaceSaaSInfo() } /// Initializes a new instance of . - /// - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId - /// - /// - /// Marketplace Subscription Details: SAAS Name - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName - /// - /// - /// Marketplace Subscription Details: Resource URI - /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId - /// - /// - /// Marketplace Subscription Details: SaaS Subscription Status - /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus - /// - /// - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId - /// - /// - /// Publisher Id of the Marketplace offer. - /// Serialized Name: MarketplaceSaaSInfo.publisherId - /// - /// - /// Offer Id of the Marketplace offer, - /// Serialized Name: MarketplaceSaaSInfo.offerId - /// + /// Marketplace Subscription Id. This is a GUID-formatted string. + /// Marketplace Subscription Details: SAAS Name. + /// Marketplace Subscription Details: Resource URI. + /// Marketplace Subscription Details: SaaS Subscription Status. + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + /// Publisher Id of the Marketplace offer. + /// Offer Id of the Marketplace offer,. /// Keeps track of any properties unknown to the library. internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplaceSubscriptionName, string marketplaceResourceId, string marketplaceStatus, string billedAzureSubscriptionId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) { @@ -95,46 +71,25 @@ internal MarketplaceSaaSInfo(string marketplaceSubscriptionId, string marketplac _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Marketplace Subscription Id. This is a GUID-formatted string. - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionId - /// + /// Marketplace Subscription Id. This is a GUID-formatted string. [WirePath("marketplaceSubscriptionId")] public string MarketplaceSubscriptionId { get; } - /// - /// Marketplace Subscription Details: SAAS Name - /// Serialized Name: MarketplaceSaaSInfo.marketplaceSubscriptionName - /// + /// Marketplace Subscription Details: SAAS Name. [WirePath("marketplaceSubscriptionName")] public string MarketplaceSubscriptionName { get; } - /// - /// Marketplace Subscription Details: Resource URI - /// Serialized Name: MarketplaceSaaSInfo.marketplaceResourceId - /// + /// Marketplace Subscription Details: Resource URI. [WirePath("marketplaceResourceId")] public string MarketplaceResourceId { get; } - /// - /// Marketplace Subscription Details: SaaS Subscription Status - /// Serialized Name: MarketplaceSaaSInfo.marketplaceStatus - /// + /// Marketplace Subscription Details: SaaS Subscription Status. [WirePath("marketplaceStatus")] public string MarketplaceStatus { get; } - /// - /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. - /// Serialized Name: MarketplaceSaaSInfo.billedAzureSubscriptionId - /// + /// The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. [WirePath("billedAzureSubscriptionId")] public string BilledAzureSubscriptionId { get; } - /// - /// Publisher Id of the Marketplace offer. - /// Serialized Name: MarketplaceSaaSInfo.publisherId - /// + /// Publisher Id of the Marketplace offer. [WirePath("publisherId")] public string PublisherId { get; } - /// - /// Offer Id of the Marketplace offer, - /// Serialized Name: MarketplaceSaaSInfo.offerId - /// + /// Offer Id of the Marketplace offer,. [WirePath("offerId")] public string OfferId { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs index 5df34293de54..48306016a179 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionConfigurationName.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The MonitoredSubscriptionConfigurationName. - /// Serialized Name: ConfigurationName - /// + /// The MonitoredSubscriptionConfigurationName. public readonly partial struct MonitoredSubscriptionConfigurationName : IEquatable { private readonly string _value; @@ -27,10 +24,7 @@ public MonitoredSubscriptionConfigurationName(string value) private const string DefaultValue = "default"; - /// - /// default - /// Serialized Name: ConfigurationName.default - /// + /// default. public static MonitoredSubscriptionConfigurationName Default { get; } = new MonitoredSubscriptionConfigurationName(DefaultValue); /// Determines if two values are the same. public static bool operator ==(MonitoredSubscriptionConfigurationName left, MonitoredSubscriptionConfigurationName right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs index 73ac2c7f0d5d..346bea733cd2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPatchOperation.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The operation for the patch on the resource. - /// Serialized Name: PatchOperation - /// + /// The operation for the patch on the resource. public readonly partial struct MonitoredSubscriptionPatchOperation : IEquatable { private readonly string _value; @@ -31,30 +28,15 @@ public MonitoredSubscriptionPatchOperation(string value) private const string DeleteCompleteValue = "DeleteComplete"; private const string ActiveValue = "Active"; - /// - /// AddBegin - /// Serialized Name: PatchOperation.AddBegin - /// + /// AddBegin. public static MonitoredSubscriptionPatchOperation AddBegin { get; } = new MonitoredSubscriptionPatchOperation(AddBeginValue); - /// - /// AddComplete - /// Serialized Name: PatchOperation.AddComplete - /// + /// AddComplete. public static MonitoredSubscriptionPatchOperation AddComplete { get; } = new MonitoredSubscriptionPatchOperation(AddCompleteValue); - /// - /// DeleteBegin - /// Serialized Name: PatchOperation.DeleteBegin - /// + /// DeleteBegin. public static MonitoredSubscriptionPatchOperation DeleteBegin { get; } = new MonitoredSubscriptionPatchOperation(DeleteBeginValue); - /// - /// DeleteComplete - /// Serialized Name: PatchOperation.DeleteComplete - /// + /// DeleteComplete. public static MonitoredSubscriptionPatchOperation DeleteComplete { get; } = new MonitoredSubscriptionPatchOperation(DeleteCompleteValue); - /// - /// Active - /// Serialized Name: PatchOperation.Active - /// + /// Active. public static MonitoredSubscriptionPatchOperation Active { get; } = new MonitoredSubscriptionPatchOperation(ActiveValue); /// Determines if two values are the same. public static bool operator ==(MonitoredSubscriptionPatchOperation left, MonitoredSubscriptionPatchOperation right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs index b05489520bd7..de9ea0571674 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredSubscriptionPropertiesList.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Paged collection of MonitoredSubscriptionProperties items - /// Serialized Name: MonitoredSubscriptionPropertiesList - /// + /// Paged collection of MonitoredSubscriptionProperties items. internal partial class MonitoredSubscriptionPropertiesList { /// @@ -50,10 +47,7 @@ internal partial class MonitoredSubscriptionPropertiesList private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The MonitoredSubscriptionProperties items on this page - /// Serialized Name: MonitoredSubscriptionPropertiesList.value - /// + /// The MonitoredSubscriptionProperties items on this page. /// is null. internal MonitoredSubscriptionPropertiesList(IEnumerable value) { @@ -63,14 +57,8 @@ internal MonitoredSubscriptionPropertiesList(IEnumerable Initializes a new instance of . - /// - /// The MonitoredSubscriptionProperties items on this page - /// Serialized Name: MonitoredSubscriptionPropertiesList.value - /// - /// - /// The link to the next page of items - /// Serialized Name: MonitoredSubscriptionPropertiesList.nextLink - /// + /// The MonitoredSubscriptionProperties items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal MonitoredSubscriptionPropertiesList(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal MonitoredSubscriptionPropertiesList() { } - /// - /// The MonitoredSubscriptionProperties items on this page - /// Serialized Name: MonitoredSubscriptionPropertiesList.value - /// + /// The MonitoredSubscriptionProperties items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: MonitoredSubscriptionPropertiesList.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs index 89d3b9936778..ae69a383546e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Properties of the NewRelic account - /// Serialized Name: NewRelicAccountProperties - /// + /// Properties of the NewRelic account. public partial class NewRelicAccountProperties { /// @@ -54,22 +51,10 @@ public NewRelicAccountProperties() } /// Initializes a new instance of . - /// - /// User id - /// Serialized Name: NewRelicAccountProperties.userId - /// - /// - /// NewRelic Account Information - /// Serialized Name: NewRelicAccountProperties.accountInfo - /// - /// - /// NewRelic Organization Information - /// Serialized Name: NewRelicAccountProperties.organizationInfo - /// - /// - /// date when plan was applied - /// Serialized Name: NewRelicAccountProperties.singleSignOnProperties - /// + /// User id. + /// NewRelic Account Information. + /// NewRelic Organization Information. + /// date when plan was applied. /// Keeps track of any properties unknown to the library. internal NewRelicAccountProperties(string userId, NewRelicObservabilityAccountInfo accountInfo, NewRelicObservabilityOrganizationInfo organizationInfo, NewRelicSingleSignOnProperties singleSignOnProperties, IDictionary serializedAdditionalRawData) { @@ -80,27 +65,15 @@ internal NewRelicAccountProperties(string userId, NewRelicObservabilityAccountIn _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// User id - /// Serialized Name: NewRelicAccountProperties.userId - /// + /// User id. [WirePath("userId")] public string UserId { get; set; } - /// - /// NewRelic Account Information - /// Serialized Name: NewRelicAccountProperties.accountInfo - /// + /// NewRelic Account Information. [WirePath("accountInfo")] public NewRelicObservabilityAccountInfo AccountInfo { get; set; } - /// - /// NewRelic Organization Information - /// Serialized Name: NewRelicAccountProperties.organizationInfo - /// + /// NewRelic Organization Information. internal NewRelicObservabilityOrganizationInfo OrganizationInfo { get; set; } - /// - /// Organization id - /// Serialized Name: OrganizationInfo.organizationId - /// + /// Organization id. [WirePath("organizationInfo.organizationId")] public string OrganizationId { @@ -113,10 +86,7 @@ public string OrganizationId } } - /// - /// date when plan was applied - /// Serialized Name: NewRelicAccountProperties.singleSignOnProperties - /// + /// date when plan was applied. [WirePath("singleSignOnProperties")] public NewRelicSingleSignOnProperties SingleSignOnProperties { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs index d3dc5e12aea0..7f2af3d44fb6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountResourceData.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The details of a account resource. - /// Serialized Name: AccountResource - /// + /// The details of a account resource. public partial class NewRelicAccountResourceData : ResourceData { /// @@ -60,22 +57,10 @@ public NewRelicAccountResourceData() /// The name. /// The resourceType. /// The systemData. - /// - /// organization id - /// Serialized Name: AccountResource.properties.organizationId - /// - /// - /// account id - /// Serialized Name: AccountResource.properties.accountId - /// - /// - /// account name - /// Serialized Name: AccountResource.properties.accountName - /// - /// - /// Region where New Relic account is present - /// Serialized Name: AccountResource.properties.region - /// + /// organization id. + /// account id. + /// account name. + /// Region where New Relic account is present. /// Keeps track of any properties unknown to the library. internal NewRelicAccountResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string organizationId, string accountId, string accountName, AzureLocation? region, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -86,28 +71,16 @@ internal NewRelicAccountResourceData(ResourceIdentifier id, string name, Resourc _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// organization id - /// Serialized Name: AccountResource.properties.organizationId - /// + /// organization id. [WirePath("properties.organizationId")] public string OrganizationId { get; set; } - /// - /// account id - /// Serialized Name: AccountResource.properties.accountId - /// + /// account id. [WirePath("properties.accountId")] public string AccountId { get; set; } - /// - /// account name - /// Serialized Name: AccountResource.properties.accountName - /// + /// account name. [WirePath("properties.accountName")] public string AccountName { get; set; } - /// - /// Region where New Relic account is present - /// Serialized Name: AccountResource.properties.region - /// + /// Region where New Relic account is present. [WirePath("properties.region")] public AzureLocation? Region { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs index a47beb2f92ab..5ee5c6d20e86 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAccountsListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of get all accounts Operation. - /// Serialized Name: AccountsListResponse - /// + /// Response of get all accounts Operation. internal partial class NewRelicAccountsListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicAccountsListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The AccountResource items on this page - /// Serialized Name: AccountsListResponse.value - /// + /// The AccountResource items on this page. /// is null. internal NewRelicAccountsListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicAccountsListResult(IEnumerable val } /// Initializes a new instance of . - /// - /// The AccountResource items on this page - /// Serialized Name: AccountsListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: AccountsListResponse.nextLink - /// + /// The AccountResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicAccountsListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicAccountsListResult() { } - /// - /// The AccountResource items on this page - /// Serialized Name: AccountsListResponse.value - /// + /// The AccountResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: AccountsListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs index f1a1969b6a55..785c9b3c8fbb 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesGetContent.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Request of a app services get Operation. - /// Serialized Name: AppServicesGetRequest - /// + /// Request of a app services get Operation. public partial class NewRelicAppServicesGetContent { /// @@ -50,10 +47,7 @@ public partial class NewRelicAppServicesGetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: AppServicesGetRequest.userEmail - /// + /// Reusable representation of an email address. /// is null. public NewRelicAppServicesGetContent(string userEmail) { @@ -64,14 +58,8 @@ public NewRelicAppServicesGetContent(string userEmail) } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: AppServicesGetRequest.azureResourceIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: AppServicesGetRequest.userEmail - /// + /// Azure resource IDs. + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicAppServicesGetContent(IList azureResourceIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -85,16 +73,10 @@ internal NewRelicAppServicesGetContent() { } - /// - /// Azure resource IDs - /// Serialized Name: AppServicesGetRequest.azureResourceIds - /// + /// Azure resource IDs. [WirePath("azureResourceIds")] public IList AzureResourceIds { get; } - /// - /// Reusable representation of an email address - /// Serialized Name: AppServicesGetRequest.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs index 18bfa08fd90a..68949c8c3cee 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicAppServicesListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of a list app services Operation. - /// Serialized Name: AppServicesListResponse - /// + /// Response of a list app services Operation. internal partial class NewRelicAppServicesListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicAppServicesListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The AppServiceInfo items on this page - /// Serialized Name: AppServicesListResponse.value - /// + /// The AppServiceInfo items on this page. /// is null. internal NewRelicAppServicesListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicAppServicesListResult(IEnumerable Initializes a new instance of . - /// - /// The AppServiceInfo items on this page - /// Serialized Name: AppServicesListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: AppServicesListResponse.nextLink - /// + /// The AppServiceInfo items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicAppServicesListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicAppServicesListResult() { } - /// - /// The AppServiceInfo items on this page - /// Serialized Name: AppServicesListResponse.value - /// + /// The AppServiceInfo items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: AppServicesListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs index 2dad91765dd1..29052bfb9d9c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicBillingInfoResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Marketplace Subscription and Organization details to which resource gets billed into. - /// Serialized Name: BillingInfoResponse - /// + /// Marketplace Subscription and Organization details to which resource gets billed into. public partial class NewRelicBillingInfoResult { /// @@ -54,14 +51,8 @@ internal NewRelicBillingInfoResult() } /// Initializes a new instance of . - /// - /// Marketplace Subscription details - /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo - /// - /// - /// Partner Billing Entity details: Organization Info - /// Serialized Name: BillingInfoResponse.partnerBillingEntity - /// + /// Marketplace Subscription details. + /// Partner Billing Entity details: Organization Info. /// Keeps track of any properties unknown to the library. internal NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo, PartnerBillingEntity partnerBillingEntity, IDictionary serializedAdditionalRawData) { @@ -70,16 +61,10 @@ internal NewRelicBillingInfoResult(MarketplaceSaaSInfo marketplaceSaasInfo, Part _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Marketplace Subscription details - /// Serialized Name: BillingInfoResponse.marketplaceSaasInfo - /// + /// Marketplace Subscription details. [WirePath("marketplaceSaasInfo")] public MarketplaceSaaSInfo MarketplaceSaasInfo { get; } - /// - /// Partner Billing Entity details: Organization Info - /// Serialized Name: BillingInfoResponse.partnerBillingEntity - /// + /// Partner Billing Entity details: Organization Info. [WirePath("partnerBillingEntity")] public PartnerBillingEntity PartnerBillingEntity { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs index fb5b94a40dcd..032c798cd92c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceInfo.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Connected Partner Resources List Format - /// Serialized Name: ConnectedPartnerResourcesListFormat - /// + /// Connected Partner Resources List Format. public partial class NewRelicConnectedPartnerResourceInfo { /// @@ -54,10 +51,7 @@ internal NewRelicConnectedPartnerResourceInfo() } /// Initializes a new instance of . - /// - /// Connected Partner Resource Properties - /// Serialized Name: ConnectedPartnerResourcesListFormat.properties - /// + /// Connected Partner Resource Properties. /// Keeps track of any properties unknown to the library. internal NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourceProperties properties, IDictionary serializedAdditionalRawData) { @@ -65,10 +59,7 @@ internal NewRelicConnectedPartnerResourceInfo(NewRelicConnectedPartnerResourcePr _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Connected Partner Resource Properties - /// Serialized Name: ConnectedPartnerResourcesListFormat.properties - /// + /// Connected Partner Resource Properties. [WirePath("properties")] public NewRelicConnectedPartnerResourceProperties Properties { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs index 8c18368c3377..db157cc54d22 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicConnectedPartnerResourceProperties.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Connected Partner Resource Properties - /// Serialized Name: ConnectedPartnerResourceProperties - /// + /// Connected Partner Resource Properties. public partial class NewRelicConnectedPartnerResourceProperties { /// @@ -55,22 +52,10 @@ internal NewRelicConnectedPartnerResourceProperties() } /// Initializes a new instance of . - /// - /// NewRelic account name - /// Serialized Name: ConnectedPartnerResourceProperties.accountName - /// - /// - /// NewRelic Account Id - /// Serialized Name: ConnectedPartnerResourceProperties.accountId - /// - /// - /// The azure resource Id of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId - /// - /// - /// The location of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.location - /// + /// NewRelic account name. + /// NewRelic Account Id. + /// The azure resource Id of the deployment. + /// The location of the deployment. /// Keeps track of any properties unknown to the library. internal NewRelicConnectedPartnerResourceProperties(string accountName, string accountId, string azureResourceId, AzureLocation? location, IDictionary serializedAdditionalRawData) { @@ -81,28 +66,16 @@ internal NewRelicConnectedPartnerResourceProperties(string accountName, string a _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// NewRelic account name - /// Serialized Name: ConnectedPartnerResourceProperties.accountName - /// + /// NewRelic account name. [WirePath("accountName")] public string AccountName { get; } - /// - /// NewRelic Account Id - /// Serialized Name: ConnectedPartnerResourceProperties.accountId - /// + /// NewRelic Account Id. [WirePath("accountId")] public string AccountId { get; } - /// - /// The azure resource Id of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.azureResourceId - /// + /// The azure resource Id of the deployment. [WirePath("azureResourceId")] public string AzureResourceId { get; } - /// - /// The location of the deployment. - /// Serialized Name: ConnectedPartnerResourceProperties.location - /// + /// The location of the deployment. [WirePath("location")] public AzureLocation? Location { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs index c8e0c7ba8eba..ec1ddaeb982f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicHostsGetContent.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Request of a Hosts get Operation. - /// Serialized Name: HostsGetRequest - /// + /// Request of a Hosts get Operation. public partial class NewRelicHostsGetContent { /// @@ -50,10 +47,7 @@ public partial class NewRelicHostsGetContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: HostsGetRequest.userEmail - /// + /// Reusable representation of an email address. /// is null. public NewRelicHostsGetContent(string userEmail) { @@ -64,14 +58,8 @@ public NewRelicHostsGetContent(string userEmail) } /// Initializes a new instance of . - /// - /// VM resource IDs - /// Serialized Name: HostsGetRequest.vmIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: HostsGetRequest.userEmail - /// + /// VM resource IDs. + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicHostsGetContent(IList vmIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -85,16 +73,10 @@ internal NewRelicHostsGetContent() { } - /// - /// VM resource IDs - /// Serialized Name: HostsGetRequest.vmIds - /// + /// VM resource IDs. [WirePath("vmIds")] public IList VmIds { get; } - /// - /// Reusable representation of an email address - /// Serialized Name: HostsGetRequest.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs index 1d04baa4761f..981e5dad2b60 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicLiftrResourceCategory.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Liftr Resource category. - /// Serialized Name: LiftrResourceCategories - /// + /// Liftr Resource category. public readonly partial struct NewRelicLiftrResourceCategory : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicLiftrResourceCategory(string value) private const string UnknownValue = "Unknown"; private const string MonitorLogsValue = "MonitorLogs"; - /// - /// Unknown - /// Serialized Name: LiftrResourceCategories.Unknown - /// + /// Unknown. public static NewRelicLiftrResourceCategory Unknown { get; } = new NewRelicLiftrResourceCategory(UnknownValue); - /// - /// MonitorLogs - /// Serialized Name: LiftrResourceCategories.MonitorLogs - /// + /// MonitorLogs. public static NewRelicLiftrResourceCategory MonitorLogs { get; } = new NewRelicLiftrResourceCategory(MonitorLogsValue); /// Determines if two values are the same. public static bool operator ==(NewRelicLiftrResourceCategory left, NewRelicLiftrResourceCategory right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs index e35920027989..9d9642846365 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsContent.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Request of get metrics Operation. - /// Serialized Name: MetricsRequest - /// + /// Request of get metrics Operation. public partial class NewRelicMetricsContent { /// @@ -49,10 +46,7 @@ public partial class NewRelicMetricsContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsRequest.userEmail - /// + /// Reusable representation of an email address. /// is null. public NewRelicMetricsContent(string userEmail) { @@ -62,10 +56,7 @@ public NewRelicMetricsContent(string userEmail) } /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsRequest.userEmail - /// + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicMetricsContent(string userEmail, IDictionary serializedAdditionalRawData) { @@ -78,10 +69,7 @@ internal NewRelicMetricsContent() { } - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsRequest.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs index ad57e7bec99a..f43f2350dffa 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusContent.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Request of get metrics status Operation. - /// Serialized Name: MetricsStatusRequest - /// + /// Request of get metrics status Operation. public partial class NewRelicMetricsStatusContent { /// @@ -49,10 +46,7 @@ public partial class NewRelicMetricsStatusContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsStatusRequest.userEmail - /// + /// Reusable representation of an email address. /// is null. public NewRelicMetricsStatusContent(string userEmail) { @@ -63,14 +57,8 @@ public NewRelicMetricsStatusContent(string userEmail) } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusRequest.azureResourceIds - /// - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsStatusRequest.userEmail - /// + /// Azure resource IDs. + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicMetricsStatusContent(IList azureResourceIds, string userEmail, IDictionary serializedAdditionalRawData) { @@ -84,16 +72,10 @@ internal NewRelicMetricsStatusContent() { } - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusRequest.azureResourceIds - /// + /// Azure resource IDs. [WirePath("azureResourceIds")] public IList AzureResourceIds { get; } - /// - /// Reusable representation of an email address - /// Serialized Name: MetricsStatusRequest.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs index 4ed4a64b7f3e..eec83f0e1a59 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMetricsStatusResult.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of get metrics status Operation. - /// Serialized Name: MetricsStatusResponse - /// + /// Response of get metrics status Operation. public partial class NewRelicMetricsStatusResult { /// @@ -55,10 +52,7 @@ internal NewRelicMetricsStatusResult() } /// Initializes a new instance of . - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusResponse.azureResourceIds - /// + /// Azure resource IDs. /// Keeps track of any properties unknown to the library. internal NewRelicMetricsStatusResult(IReadOnlyList azureResourceIds, IDictionary serializedAdditionalRawData) { @@ -66,10 +60,7 @@ internal NewRelicMetricsStatusResult(IReadOnlyList azureResourceIds, IDi _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Azure resource IDs - /// Serialized Name: MetricsStatusResponse.azureResourceIds - /// + /// Azure resource IDs. [WirePath("azureResourceIds")] public IReadOnlyList AzureResourceIds { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs index 1b9769e597ab..177c19221e14 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourceListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The response of a NewRelicMonitorResource list operation. - /// Serialized Name: NewRelicMonitorResourceListResult - /// + /// The response of a NewRelicMonitorResource list operation. internal partial class NewRelicMonitorResourceListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicMonitorResourceListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The NewRelicMonitorResource items on this page - /// Serialized Name: NewRelicMonitorResourceListResult.value - /// + /// The NewRelicMonitorResource items on this page. /// is null. internal NewRelicMonitorResourceListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicMonitorResourceListResult(IEnumerable Initializes a new instance of . - /// - /// The NewRelicMonitorResource items on this page - /// Serialized Name: NewRelicMonitorResourceListResult.value - /// - /// - /// The link to the next page of items - /// Serialized Name: NewRelicMonitorResourceListResult.nextLink - /// + /// The NewRelicMonitorResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicMonitorResourceListResult() { } - /// - /// The NewRelicMonitorResource items on this page - /// Serialized Name: NewRelicMonitorResourceListResult.value - /// + /// The NewRelicMonitorResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: NewRelicMonitorResourceListResult.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs index 78f8bf9f5cf1..edfcb038f19e 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitorResourcePatch.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The type used for update operations of the NewRelicMonitorResource. - /// Serialized Name: NewRelicMonitorResourceUpdate - /// + /// The type used for update operations of the NewRelicMonitorResource. public partial class NewRelicMonitorResourcePatch { /// @@ -57,38 +54,14 @@ public NewRelicMonitorResourcePatch() } /// Initializes a new instance of . - /// - /// The managed service identities assigned to this resource. - /// Serialized Name: NewRelicMonitorResourceUpdate.identity - /// - /// - /// Resource tags. - /// Serialized Name: NewRelicMonitorResourceUpdate.tags - /// - /// - /// MarketplaceSubscriptionStatus of the resource - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.newRelicAccountProperties - /// - /// - /// User Info - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.userInfo - /// - /// - /// Plan details - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.planData - /// - /// - /// SaaS details - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData - /// - /// - /// Source of org creation - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource - /// - /// - /// Source of account creation - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.accountCreationSource - /// + /// The managed service identities assigned to this resource. + /// Resource tags. + /// MarketplaceSubscriptionStatus of the resource. + /// User Info. + /// Plan details. + /// SaaS details. + /// Source of org creation. + /// Source of account creation. /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictionary tags, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicObservabilitySaaSContent saaSData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) { @@ -103,45 +76,24 @@ internal NewRelicMonitorResourcePatch(ManagedServiceIdentity identity, IDictiona _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The managed service identities assigned to this resource. - /// Serialized Name: NewRelicMonitorResourceUpdate.identity - /// + /// The managed service identities assigned to this resource. [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } - /// - /// Resource tags. - /// Serialized Name: NewRelicMonitorResourceUpdate.tags - /// + /// Resource tags. [WirePath("tags")] public IDictionary Tags { get; } - /// - /// MarketplaceSubscriptionStatus of the resource - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.newRelicAccountProperties - /// + /// MarketplaceSubscriptionStatus of the resource. [WirePath("properties.newRelicAccountProperties")] public NewRelicAccountProperties NewRelicAccountProperties { get; set; } - /// - /// User Info - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.userInfo - /// + /// User Info. [WirePath("properties.userInfo")] public NewRelicObservabilityUserInfo UserInfo { get; set; } - /// - /// Plan details - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.planData - /// + /// Plan details. [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// - /// SaaS details - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.saaSData - /// + /// SaaS details. internal NewRelicObservabilitySaaSContent SaaSData { get; set; } - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// + /// SaaS resource id. [WirePath("properties.saaSData.saaSResourceId")] public ResourceIdentifier SaaSResourceId { @@ -154,16 +106,10 @@ public ResourceIdentifier SaaSResourceId } } - /// - /// Source of org creation - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.orgCreationSource - /// + /// Source of org creation. [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// - /// Source of account creation - /// Serialized Name: NewRelicMonitorResourceUpdate.properties.accountCreationSource - /// + /// Source of account creation. [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs index ed46888b792f..10d013436cbc 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredResourceListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// List of all the resources being monitored by NewRelic monitor resource - /// Serialized Name: MonitoredResourceListResponse - /// + /// List of all the resources being monitored by NewRelic monitor resource. internal partial class NewRelicMonitoredResourceListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicMonitoredResourceListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The MonitoredResource items on this page - /// Serialized Name: MonitoredResourceListResponse.value - /// + /// The MonitoredResource items on this page. /// is null. internal NewRelicMonitoredResourceListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicMonitoredResourceListResult(IEnumerable Initializes a new instance of . - /// - /// The MonitoredResource items on this page - /// Serialized Name: MonitoredResourceListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: MonitoredResourceListResponse.nextLink - /// + /// The MonitoredResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredResourceListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicMonitoredResourceListResult() { } - /// - /// The MonitoredResource items on this page - /// Serialized Name: MonitoredResourceListResponse.value - /// + /// The MonitoredResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: MonitoredResourceListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.Serialization.cs index 3257c619b43d..9df512049ee1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.Serialization.cs @@ -35,11 +35,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(NewRelicMonitoredSubscriptionInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(SubscriptionId)) - { - writer.WritePropertyName("subscriptionId"u8); - writer.WriteStringValue(SubscriptionId); - } + writer.WritePropertyName("subscriptionId"u8); + writer.WriteStringValue(SubscriptionId); if (Optional.IsDefined(Status)) { writer.WritePropertyName("status"u8); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs index fc549eb6861b..6b33cdd00b86 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionInfo.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The list of subscriptions and it's monitoring status by current NewRelic monitor. - /// Serialized Name: MonitoredSubscription - /// + /// The list of subscriptions and it's monitoring status by current NewRelic monitor. public partial class NewRelicMonitoredSubscriptionInfo { /// @@ -49,27 +46,20 @@ public partial class NewRelicMonitoredSubscriptionInfo private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - public NewRelicMonitoredSubscriptionInfo() + /// The subscriptionId to be monitored. + /// is null. + public NewRelicMonitoredSubscriptionInfo(string subscriptionId) { + Argument.AssertNotNull(subscriptionId, nameof(subscriptionId)); + + SubscriptionId = subscriptionId; } /// Initializes a new instance of . - /// - /// The subscriptionId to be monitored. - /// Serialized Name: MonitoredSubscription.subscriptionId - /// - /// - /// The state of monitoring. - /// Serialized Name: MonitoredSubscription.status - /// - /// - /// The reason of not monitoring the subscription. - /// Serialized Name: MonitoredSubscription.error - /// - /// - /// The resource-specific properties for this resource. - /// Serialized Name: MonitoredSubscription.tagRules - /// + /// The subscriptionId to be monitored. + /// The state of monitoring. + /// The reason of not monitoring the subscription. + /// The resource-specific properties for this resource. /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionInfo(string subscriptionId, NewRelicMonitoringStatus? status, string error, NewRelicMonitoringTagRules tagRules, IDictionary serializedAdditionalRawData) { @@ -80,28 +70,16 @@ internal NewRelicMonitoredSubscriptionInfo(string subscriptionId, NewRelicMonito _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The subscriptionId to be monitored. - /// Serialized Name: MonitoredSubscription.subscriptionId - /// + /// The subscriptionId to be monitored. [WirePath("subscriptionId")] public string SubscriptionId { get; set; } - /// - /// The state of monitoring. - /// Serialized Name: MonitoredSubscription.status - /// + /// The state of monitoring. [WirePath("status")] public NewRelicMonitoringStatus? Status { get; set; } - /// - /// The reason of not monitoring the subscription. - /// Serialized Name: MonitoredSubscription.error - /// + /// The reason of not monitoring the subscription. [WirePath("error")] public string Error { get; set; } - /// - /// The resource-specific properties for this resource. - /// Serialized Name: MonitoredSubscription.tagRules - /// + /// The resource-specific properties for this resource. [WirePath("tagRules")] public NewRelicMonitoringTagRules TagRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs index 836cd0982398..9db29e15f365 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoredSubscriptionProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// Serialized Name: SubscriptionList - /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. public partial class NewRelicMonitoredSubscriptionProperties { /// @@ -55,18 +52,9 @@ public NewRelicMonitoredSubscriptionProperties() } /// Initializes a new instance of . - /// - /// The operation for the patch on the resource. - /// Serialized Name: SubscriptionList.patchOperation - /// - /// - /// List of subscriptions and the state of the monitoring. - /// Serialized Name: SubscriptionList.monitoredSubscriptionList - /// - /// - /// Provisioning State of the resource - /// Serialized Name: SubscriptionList.provisioningState - /// + /// The operation for the patch on the resource. + /// List of subscriptions and the state of the monitoring. + /// Provisioning State of the resource. /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOperation? patchOperation, IList monitoredSubscriptionList, NewRelicProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { @@ -76,22 +64,13 @@ internal NewRelicMonitoredSubscriptionProperties(MonitoredSubscriptionPatchOpera _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The operation for the patch on the resource. - /// Serialized Name: SubscriptionList.patchOperation - /// + /// The operation for the patch on the resource. [WirePath("patchOperation")] public MonitoredSubscriptionPatchOperation? PatchOperation { get; set; } - /// - /// List of subscriptions and the state of the monitoring. - /// Serialized Name: SubscriptionList.monitoredSubscriptionList - /// + /// List of subscriptions and the state of the monitoring. [WirePath("monitoredSubscriptionList")] public IList MonitoredSubscriptionList { get; } - /// - /// Provisioning State of the resource - /// Serialized Name: SubscriptionList.provisioningState - /// + /// Provisioning State of the resource. [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs index cba5f8ac238a..c8a6136e657b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The state of monitoring. - /// Serialized Name: Status - /// + /// The state of monitoring. public readonly partial struct NewRelicMonitoringStatus : IEquatable { private readonly string _value; @@ -30,25 +27,13 @@ public NewRelicMonitoringStatus(string value) private const string FailedValue = "Failed"; private const string DeletingValue = "Deleting"; - /// - /// InProgress - /// Serialized Name: Status.InProgress - /// + /// InProgress. public static NewRelicMonitoringStatus InProgress { get; } = new NewRelicMonitoringStatus(InProgressValue); - /// - /// Active - /// Serialized Name: Status.Active - /// + /// Active. public static NewRelicMonitoringStatus Active { get; } = new NewRelicMonitoringStatus(ActiveValue); - /// - /// Failed - /// Serialized Name: Status.Failed - /// + /// Failed. public static NewRelicMonitoringStatus Failed { get; } = new NewRelicMonitoringStatus(FailedValue); - /// - /// Deleting - /// Serialized Name: Status.Deleting - /// + /// Deleting. public static NewRelicMonitoringStatus Deleting { get; } = new NewRelicMonitoringStatus(DeletingValue); /// Determines if two values are the same. public static bool operator ==(NewRelicMonitoringStatus left, NewRelicMonitoringStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs index ae93cb561b94..e27f2c656013 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicMonitoringTagRules.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The resource-specific properties for this resource. - /// Serialized Name: MonitoringTagRulesProperties - /// + /// The resource-specific properties for this resource. public partial class NewRelicMonitoringTagRules { /// @@ -54,18 +51,9 @@ public NewRelicMonitoringTagRules() } /// Initializes a new instance of . - /// - /// Provisioning State of the resource - /// Serialized Name: MonitoringTagRulesProperties.provisioningState - /// - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.logRules - /// - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.metricRules - /// + /// Provisioning State of the resource. + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. /// Keeps track of any properties unknown to the library. internal NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState, NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) { @@ -75,22 +63,13 @@ internal NewRelicMonitoringTagRules(NewRelicProvisioningState? provisioningState _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Provisioning State of the resource - /// Serialized Name: MonitoringTagRulesProperties.provisioningState - /// + /// Provisioning State of the resource. [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.logRules - /// + /// Set of rules for sending logs for the Monitor resource. [WirePath("logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: MonitoringTagRulesProperties.metricRules - /// + /// Set of rules for sending metrics for the Monitor resource. [WirePath("metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs index 15a498f19db9..b454b4819119 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountCreationSource.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Source of Account creation - /// Serialized Name: AccountCreationSource - /// + /// Source of Account creation. public readonly partial struct NewRelicObservabilityAccountCreationSource : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityAccountCreationSource(string value) private const string LiftrValue = "LIFTR"; private const string NewrelicValue = "NEWRELIC"; - /// - /// Account is created from LIFTR - /// Serialized Name: AccountCreationSource.LIFTR - /// + /// Account is created from LIFTR. public static NewRelicObservabilityAccountCreationSource Liftr { get; } = new NewRelicObservabilityAccountCreationSource(LiftrValue); - /// - /// Account is created from NEWRELIC - /// Serialized Name: AccountCreationSource.NEWRELIC - /// + /// Account is created from NEWRELIC. public static NewRelicObservabilityAccountCreationSource Newrelic { get; } = new NewRelicObservabilityAccountCreationSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityAccountCreationSource left, NewRelicObservabilityAccountCreationSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs index 746df9a8daf8..fd9efca11fea 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAccountInfo.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Account Info of the NewRelic account - /// Serialized Name: AccountInfo - /// + /// Account Info of the NewRelic account. public partial class NewRelicObservabilityAccountInfo { /// @@ -55,18 +52,9 @@ public NewRelicObservabilityAccountInfo() } /// Initializes a new instance of . - /// - /// Account id - /// Serialized Name: AccountInfo.accountId - /// - /// - /// Credential string. - /// Serialized Name: AccountInfo.ingestionKey - /// - /// - /// Region where New Relic account is present - /// Serialized Name: AccountInfo.region - /// + /// Account id. + /// Credential string. + /// Region where New Relic account is present. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityAccountInfo(string accountId, string ingestionKey, AzureLocation? region, IDictionary serializedAdditionalRawData) { @@ -76,22 +64,13 @@ internal NewRelicObservabilityAccountInfo(string accountId, string ingestionKey, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Account id - /// Serialized Name: AccountInfo.accountId - /// + /// Account id. [WirePath("accountId")] public string AccountId { get; set; } - /// - /// Credential string. - /// Serialized Name: AccountInfo.ingestionKey - /// + /// Credential string. [WirePath("ingestionKey")] public string IngestionKey { get; set; } - /// - /// Region where New Relic account is present - /// Serialized Name: AccountInfo.region - /// + /// Region where New Relic account is present. [WirePath("region")] public AzureLocation? Region { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs index b8ba218b8485..dea3393063e7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityAppServiceInfo.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Details of VM Resource having NewRelic OneAgent installed - /// Serialized Name: AppServiceInfo - /// + /// Details of VM Resource having NewRelic OneAgent installed. public partial class NewRelicObservabilityAppServiceInfo { /// @@ -55,18 +52,9 @@ internal NewRelicObservabilityAppServiceInfo() } /// Initializes a new instance of . - /// - /// Azure App service resource ID - /// Serialized Name: AppServiceInfo.azureResourceId - /// - /// - /// Version of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentVersion - /// - /// - /// Status of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentStatus - /// + /// Azure App service resource ID. + /// Version of the NewRelic agent installed on the App service. + /// Status of the NewRelic agent installed on the App service. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId, string agentVersion, string agentStatus, IDictionary serializedAdditionalRawData) { @@ -76,22 +64,13 @@ internal NewRelicObservabilityAppServiceInfo(ResourceIdentifier azureResourceId, _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Azure App service resource ID - /// Serialized Name: AppServiceInfo.azureResourceId - /// + /// Azure App service resource ID. [WirePath("azureResourceId")] public ResourceIdentifier AzureResourceId { get; } - /// - /// Version of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentVersion - /// + /// Version of the NewRelic agent installed on the App service. [WirePath("agentVersion")] public string AgentVersion { get; } - /// - /// Status of the NewRelic agent installed on the App service. - /// Serialized Name: AppServiceInfo.agentStatus - /// + /// Status of the NewRelic agent installed on the App service. [WirePath("agentStatus")] public string AgentStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs index fd6bafdd5e20..0fc4ad4cd9f4 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityBillingSource.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Billing source - /// Serialized Name: BillingSource - /// + /// Billing source. public readonly partial struct NewRelicObservabilityBillingSource : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityBillingSource(string value) private const string AzureValue = "AZURE"; private const string NewrelicValue = "NEWRELIC"; - /// - /// Billing source is Azure - /// Serialized Name: BillingSource.AZURE - /// + /// Billing source is Azure. public static NewRelicObservabilityBillingSource Azure { get; } = new NewRelicObservabilityBillingSource(AzureValue); - /// - /// NEWRELIC - /// Serialized Name: BillingSource.NEWRELIC - /// + /// NEWRELIC. public static NewRelicObservabilityBillingSource Newrelic { get; } = new NewRelicObservabilityBillingSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityBillingSource left, NewRelicObservabilityBillingSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs index f7216efd51fa..04432e54ae61 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityFilteringTag.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. - /// Serialized Name: FilteringTag - /// + /// The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. public partial class NewRelicObservabilityFilteringTag { /// @@ -54,18 +51,9 @@ public NewRelicObservabilityFilteringTag() } /// Initializes a new instance of . - /// - /// The name (also known as the key) of the tag. - /// Serialized Name: FilteringTag.name - /// - /// - /// The value of the tag. - /// Serialized Name: FilteringTag.value - /// - /// - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. - /// Serialized Name: FilteringTag.action - /// + /// The name (also known as the key) of the tag. + /// The value of the tag. + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityFilteringTag(string name, string value, NewRelicObservabilityTagAction? action, IDictionary serializedAdditionalRawData) { @@ -75,22 +63,13 @@ internal NewRelicObservabilityFilteringTag(string name, string value, NewRelicOb _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The name (also known as the key) of the tag. - /// Serialized Name: FilteringTag.name - /// + /// The name (also known as the key) of the tag. [WirePath("name")] public string Name { get; set; } - /// - /// The value of the tag. - /// Serialized Name: FilteringTag.value - /// + /// The value of the tag. [WirePath("value")] public string Value { get; set; } - /// - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. - /// Serialized Name: FilteringTag.action - /// + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. [WirePath("action")] public NewRelicObservabilityTagAction? Action { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs index 7cbc8ad96830..95453ea304fe 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLatestLinkedSaaSResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of get latest linked SaaS resource operation - /// Serialized Name: LatestLinkedSaaSResponse - /// + /// Response of get latest linked SaaS resource operation. public partial class NewRelicObservabilityLatestLinkedSaaSResult { /// @@ -55,14 +52,8 @@ internal NewRelicObservabilityLatestLinkedSaaSResult() } /// Initializes a new instance of . - /// - /// SaaS resource id - /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId - /// - /// - /// Flag indicating if the SaaS resource is hidden - /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS - /// + /// SaaS resource id. + /// Flag indicating if the SaaS resource is hidden. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityLatestLinkedSaaSResult(ResourceIdentifier saaSResourceId, bool? isHiddenSaaS, IDictionary serializedAdditionalRawData) { @@ -71,16 +62,10 @@ internal NewRelicObservabilityLatestLinkedSaaSResult(ResourceIdentifier saaSReso _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// SaaS resource id - /// Serialized Name: LatestLinkedSaaSResponse.saaSResourceId - /// + /// SaaS resource id. [WirePath("saaSResourceId")] public ResourceIdentifier SaaSResourceId { get; } - /// - /// Flag indicating if the SaaS resource is hidden - /// Serialized Name: LatestLinkedSaaSResponse.isHiddenSaaS - /// + /// Flag indicating if the SaaS resource is hidden. [WirePath("isHiddenSaaS")] public bool? IsHiddenSaaS { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs index 66462be3ff18..ca72c3329d22 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityLogRules.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: LogRules - /// + /// Set of rules for sending logs for the Monitor resource. public partial class NewRelicObservabilityLogRules { /// @@ -55,22 +52,12 @@ public NewRelicObservabilityLogRules() } /// Initializes a new instance of . - /// - /// Flag specifying if AAD logs should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendAadLogs - /// - /// - /// Flag specifying if subscription logs should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendSubscriptionLogs - /// - /// - /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendActivityLogs - /// + /// Flag specifying if AAD logs should be sent for the Monitor resource. + /// Flag specifying if subscription logs should be sent for the Monitor resource. + /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. /// /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. - /// Serialized Name: LogRules.filteringTags /// /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityLogRules(NewRelicObservabilitySendAadLogsStatus? sendAadLogs, NewRelicObservabilitySendSubscriptionLogsStatus? sendSubscriptionLogs, NewRelicObservabilitySendActivityLogsStatus? sendActivityLogs, IList filteringTags, IDictionary serializedAdditionalRawData) @@ -82,28 +69,18 @@ internal NewRelicObservabilityLogRules(NewRelicObservabilitySendAadLogsStatus? s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Flag specifying if AAD logs should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendAadLogs - /// + /// Flag specifying if AAD logs should be sent for the Monitor resource. [WirePath("sendAadLogs")] public NewRelicObservabilitySendAadLogsStatus? SendAadLogs { get; set; } - /// - /// Flag specifying if subscription logs should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendSubscriptionLogs - /// + /// Flag specifying if subscription logs should be sent for the Monitor resource. [WirePath("sendSubscriptionLogs")] public NewRelicObservabilitySendSubscriptionLogsStatus? SendSubscriptionLogs { get; set; } - /// - /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. - /// Serialized Name: LogRules.sendActivityLogs - /// + /// Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. [WirePath("sendActivityLogs")] public NewRelicObservabilitySendActivityLogsStatus? SendActivityLogs { get; set; } /// /// List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. /// If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. - /// Serialized Name: LogRules.filteringTags /// [WirePath("filteringTags")] public IList FilteringTags { get; } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs index 0ff56f2e5e79..7fa83b80af90 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMarketplaceSubscriptionStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. - /// Serialized Name: MarketplaceSubscriptionStatus - /// + /// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. public readonly partial struct NewRelicObservabilityMarketplaceSubscriptionStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityMarketplaceSubscriptionStatus(string value) private const string ActiveValue = "Active"; private const string SuspendedValue = "Suspended"; - /// - /// monitoring is enabled - /// Serialized Name: MarketplaceSubscriptionStatus.Active - /// + /// monitoring is enabled. public static NewRelicObservabilityMarketplaceSubscriptionStatus Active { get; } = new NewRelicObservabilityMarketplaceSubscriptionStatus(ActiveValue); - /// - /// monitoring is disabled - /// Serialized Name: MarketplaceSubscriptionStatus.Suspended - /// + /// monitoring is disabled. public static NewRelicObservabilityMarketplaceSubscriptionStatus Suspended { get; } = new NewRelicObservabilityMarketplaceSubscriptionStatus(SuspendedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityMarketplaceSubscriptionStatus left, NewRelicObservabilityMarketplaceSubscriptionStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs index 2f7a78d2832e..9fe194c387bf 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMetricRules.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: MetricRules - /// + /// Set of rules for sending metrics for the Monitor resource. public partial class NewRelicObservabilityMetricRules { /// @@ -55,18 +52,9 @@ public NewRelicObservabilityMetricRules() } /// Initializes a new instance of . - /// - /// Flag specifying if metrics should be sent for the Monitor resource. - /// Serialized Name: MetricRules.sendMetrics - /// - /// - /// List of filtering tags to be used for capturing metrics. - /// Serialized Name: MetricRules.filteringTags - /// - /// - /// Reusable representation of an email address - /// Serialized Name: MetricRules.userEmail - /// + /// Flag specifying if metrics should be sent for the Monitor resource. + /// List of filtering tags to be used for capturing metrics. + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityMetricRules(NewRelicObservabilitySendMetricsStatus? sendMetrics, IList filteringTags, string userEmail, IDictionary serializedAdditionalRawData) { @@ -76,22 +64,13 @@ internal NewRelicObservabilityMetricRules(NewRelicObservabilitySendMetricsStatus _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Flag specifying if metrics should be sent for the Monitor resource. - /// Serialized Name: MetricRules.sendMetrics - /// + /// Flag specifying if metrics should be sent for the Monitor resource. [WirePath("sendMetrics")] public NewRelicObservabilitySendMetricsStatus? SendMetrics { get; set; } - /// - /// List of filtering tags to be used for capturing metrics. - /// Serialized Name: MetricRules.filteringTags - /// + /// List of filtering tags to be used for capturing metrics. [WirePath("filteringTags")] public IList FilteringTags { get; } - /// - /// Reusable representation of an email address - /// Serialized Name: MetricRules.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs index 58e9b1e56b37..8ef52abc5f53 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoringStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Flag specifying if the resource monitoring is enabled or disabled. - /// Serialized Name: MonitoringStatus - /// + /// Flag specifying if the resource monitoring is enabled or disabled. public readonly partial struct NewRelicObservabilityMonitoringStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityMonitoringStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// monitoring is enabled - /// Serialized Name: MonitoringStatus.Enabled - /// + /// monitoring is enabled. public static NewRelicObservabilityMonitoringStatus IsEnabled { get; } = new NewRelicObservabilityMonitoringStatus(IsEnabledValue); - /// - /// monitoring is disabled - /// Serialized Name: MonitoringStatus.Disabled - /// + /// monitoring is disabled. public static NewRelicObservabilityMonitoringStatus IsDisabled { get; } = new NewRelicObservabilityMonitoringStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityMonitoringStatus left, NewRelicObservabilityMonitoringStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs index ef7451f260f7..38aeea82d784 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrgCreationSource.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Source of Org creation - /// Serialized Name: OrgCreationSource - /// + /// Source of Org creation. public readonly partial struct NewRelicObservabilityOrgCreationSource : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityOrgCreationSource(string value) private const string LiftrValue = "LIFTR"; private const string NewrelicValue = "NEWRELIC"; - /// - /// Org is created from LIFTR - /// Serialized Name: OrgCreationSource.LIFTR - /// + /// Org is created from LIFTR. public static NewRelicObservabilityOrgCreationSource Liftr { get; } = new NewRelicObservabilityOrgCreationSource(LiftrValue); - /// - /// Org is created from NEWRELIC - /// Serialized Name: OrgCreationSource.NEWRELIC - /// + /// Org is created from NEWRELIC. public static NewRelicObservabilityOrgCreationSource Newrelic { get; } = new NewRelicObservabilityOrgCreationSource(NewrelicValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityOrgCreationSource left, NewRelicObservabilityOrgCreationSource right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs index 66c883b7eddb..754b43f8be20 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityOrganizationInfo.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Organization Info of the NewRelic account - /// Serialized Name: OrganizationInfo - /// + /// Organization Info of the NewRelic account. internal partial class NewRelicObservabilityOrganizationInfo { /// @@ -54,10 +51,7 @@ public NewRelicObservabilityOrganizationInfo() } /// Initializes a new instance of . - /// - /// Organization id - /// Serialized Name: OrganizationInfo.organizationId - /// + /// Organization id. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityOrganizationInfo(string organizationId, IDictionary serializedAdditionalRawData) { @@ -65,10 +59,7 @@ internal NewRelicObservabilityOrganizationInfo(string organizationId, IDictionar _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Organization id - /// Serialized Name: OrganizationInfo.organizationId - /// + /// Organization id. [WirePath("organizationId")] public string OrganizationId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs index a9883e71248d..58a60cea6ca2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSContent.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// SaaS details - /// Serialized Name: SaaSData - /// + /// SaaS details. public partial class NewRelicObservabilitySaaSContent { /// @@ -55,10 +52,7 @@ public NewRelicObservabilitySaaSContent() } /// Initializes a new instance of . - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// + /// SaaS resource id. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilitySaaSContent(ResourceIdentifier saaSResourceId, IDictionary serializedAdditionalRawData) { @@ -66,10 +60,7 @@ internal NewRelicObservabilitySaaSContent(ResourceIdentifier saaSResourceId, IDi _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// + /// SaaS resource id. [WirePath("saaSResourceId")] public ResourceIdentifier SaaSResourceId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs index e13045dd812b..427468e1c3f6 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySaaSResourceDetailsResult.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Marketplace SaaS resource details. - /// Serialized Name: SaaSResourceDetailsResponse - /// + /// Marketplace SaaS resource details. public partial class NewRelicObservabilitySaaSResourceDetailsResult : ResourceData { /// @@ -60,10 +57,7 @@ public NewRelicObservabilitySaaSResourceDetailsResult() /// The name. /// The resourceType. /// The systemData. - /// - /// Id of the Marketplace SaaS Resource - /// Serialized Name: SaaSResourceDetailsResponse.saasId - /// + /// Id of the Marketplace SaaS Resource. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string saasId, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -71,10 +65,7 @@ internal NewRelicObservabilitySaaSResourceDetailsResult(ResourceIdentifier id, s _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Id of the Marketplace SaaS Resource - /// Serialized Name: SaaSResourceDetailsResponse.saasId - /// + /// Id of the Marketplace SaaS Resource. [WirePath("saasId")] public string SaasId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs index 44edbc0e29cd..7f54876acee4 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendAadLogsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether AAD logs are being sent. - /// Serialized Name: SendAadLogsStatus - /// + /// Indicates whether AAD logs are being sent. public readonly partial struct NewRelicObservabilitySendAadLogsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendAadLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendAadLogsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendAadLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendAadLogsStatus(IsEnabledValue); - /// - /// Disabled - /// Serialized Name: SendAadLogsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendAadLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendAadLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendAadLogsStatus left, NewRelicObservabilitySendAadLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs index 566ae8277765..e320bf7d93b5 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendActivityLogsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether activity logs are being sent. - /// Serialized Name: SendActivityLogsStatus - /// + /// Indicates whether activity logs are being sent. public readonly partial struct NewRelicObservabilitySendActivityLogsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendActivityLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendActivityLogsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendActivityLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendActivityLogsStatus(IsEnabledValue); - /// - /// Disabled - /// Serialized Name: SendActivityLogsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendActivityLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendActivityLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendActivityLogsStatus left, NewRelicObservabilitySendActivityLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs index a589756857c9..7a159af913b3 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendMetricsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether metrics are being sent. - /// Serialized Name: SendMetricsStatus - /// + /// Indicates whether metrics are being sent. public readonly partial struct NewRelicObservabilitySendMetricsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendMetricsStatus(string value) private const string EnabledValue = "Enabled"; private const string DisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendMetricsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendMetricsStatus Enabled { get; } = new NewRelicObservabilitySendMetricsStatus(EnabledValue); - /// - /// Disabled - /// Serialized Name: SendMetricsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendMetricsStatus Disabled { get; } = new NewRelicObservabilitySendMetricsStatus(DisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendMetricsStatus left, NewRelicObservabilitySendMetricsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs index a7800832aef2..7f485051bd27 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendSubscriptionLogsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether subscription logs are being sent. - /// Serialized Name: SendSubscriptionLogsStatus - /// + /// Indicates whether subscription logs are being sent. public readonly partial struct NewRelicObservabilitySendSubscriptionLogsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendSubscriptionLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendSubscriptionLogsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendSubscriptionLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendSubscriptionLogsStatus(IsEnabledValue); - /// - /// Disabled - /// Serialized Name: SendSubscriptionLogsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendSubscriptionLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendSubscriptionLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendSubscriptionLogsStatus left, NewRelicObservabilitySendSubscriptionLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs index 4446f4b3b262..4bec88a9d283 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingLogsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether logs are being sent. - /// Serialized Name: SendingLogsStatus - /// + /// Indicates whether logs are being sent. public readonly partial struct NewRelicObservabilitySendingLogsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendingLogsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendingLogsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendingLogsStatus IsEnabled { get; } = new NewRelicObservabilitySendingLogsStatus(IsEnabledValue); - /// - /// Disabled - /// Serialized Name: SendingLogsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendingLogsStatus IsDisabled { get; } = new NewRelicObservabilitySendingLogsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendingLogsStatus left, NewRelicObservabilitySendingLogsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs index d6c4d9f7df46..d22260135e09 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilitySendingMetricsStatus.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Indicates whether metrics are being sent. - /// Serialized Name: SendingMetricsStatus - /// + /// Indicates whether metrics are being sent. public readonly partial struct NewRelicObservabilitySendingMetricsStatus : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilitySendingMetricsStatus(string value) private const string IsEnabledValue = "Enabled"; private const string IsDisabledValue = "Disabled"; - /// - /// Enabled - /// Serialized Name: SendingMetricsStatus.Enabled - /// + /// Enabled. public static NewRelicObservabilitySendingMetricsStatus IsEnabled { get; } = new NewRelicObservabilitySendingMetricsStatus(IsEnabledValue); - /// - /// Disabled - /// Serialized Name: SendingMetricsStatus.Disabled - /// + /// Disabled. public static NewRelicObservabilitySendingMetricsStatus IsDisabled { get; } = new NewRelicObservabilitySendingMetricsStatus(IsDisabledValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilitySendingMetricsStatus left, NewRelicObservabilitySendingMetricsStatus right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs index 62df40581f54..a204117e69f9 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagAction.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. - /// Serialized Name: TagAction - /// + /// Valid actions for a filtering tag. Exclusion takes priority over inclusion. public readonly partial struct NewRelicObservabilityTagAction : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityTagAction(string value) private const string IncludeValue = "Include"; private const string ExcludeValue = "Exclude"; - /// - /// Include - /// Serialized Name: TagAction.Include - /// + /// Include. public static NewRelicObservabilityTagAction Include { get; } = new NewRelicObservabilityTagAction(IncludeValue); - /// - /// Exclude - /// Serialized Name: TagAction.Exclude - /// + /// Exclude. public static NewRelicObservabilityTagAction Exclude { get; } = new NewRelicObservabilityTagAction(ExcludeValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityTagAction left, NewRelicObservabilityTagAction right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs index c250997ef3e0..ad72a78eaede 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRuleListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The response of a TagRule list operation. - /// Serialized Name: TagRuleListResult - /// + /// The response of a TagRule list operation. internal partial class NewRelicObservabilityTagRuleListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicObservabilityTagRuleListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The TagRule items on this page - /// Serialized Name: TagRuleListResult.value - /// + /// The TagRule items on this page. /// is null. internal NewRelicObservabilityTagRuleListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicObservabilityTagRuleListResult(IEnumerable Initializes a new instance of . - /// - /// The TagRule items on this page - /// Serialized Name: TagRuleListResult.value - /// - /// - /// The link to the next page of items - /// Serialized Name: TagRuleListResult.nextLink - /// + /// The TagRule items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRuleListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicObservabilityTagRuleListResult() { } - /// - /// The TagRule items on this page - /// Serialized Name: TagRuleListResult.value - /// + /// The TagRule items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: TagRuleListResult.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs index 89423c4f27c0..168b72d91d0c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityTagRulePatch.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The type used for update operations of the TagRule. - /// Serialized Name: TagRuleUpdate - /// + /// The type used for update operations of the TagRule. public partial class NewRelicObservabilityTagRulePatch { /// @@ -54,14 +51,8 @@ public NewRelicObservabilityTagRulePatch() } /// Initializes a new instance of . - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: TagRuleUpdate.properties.logRules - /// - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: TagRuleUpdate.properties.metricRules - /// + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRulePatch(NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) { @@ -70,16 +61,10 @@ internal NewRelicObservabilityTagRulePatch(NewRelicObservabilityLogRules logRule _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: TagRuleUpdate.properties.logRules - /// + /// Set of rules for sending logs for the Monitor resource. [WirePath("properties.logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: TagRuleUpdate.properties.metricRules - /// + /// Set of rules for sending metrics for the Monitor resource. [WirePath("properties.metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs index 752e62406465..6c60c19ad066 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUsageType.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Different usage type like PAYG/COMMITTED - /// Serialized Name: UsageType - /// + /// Different usage type like PAYG/COMMITTED. public readonly partial struct NewRelicObservabilityUsageType : IEquatable { private readonly string _value; @@ -28,15 +25,9 @@ public NewRelicObservabilityUsageType(string value) private const string PaygValue = "PAYG"; private const string CommittedValue = "COMMITTED"; - /// - /// Usage type is PAYG - /// Serialized Name: UsageType.PAYG - /// + /// Usage type is PAYG. public static NewRelicObservabilityUsageType Payg { get; } = new NewRelicObservabilityUsageType(PaygValue); - /// - /// Usage type is COMMITTED - /// Serialized Name: UsageType.COMMITTED - /// + /// Usage type is COMMITTED. public static NewRelicObservabilityUsageType Committed { get; } = new NewRelicObservabilityUsageType(CommittedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicObservabilityUsageType left, NewRelicObservabilityUsageType right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs index 65b063ae8d24..fc1fa9b2c4b8 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityUserInfo.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// User Info of NewRelic Monitor resource - /// Serialized Name: UserInfo - /// + /// User Info of NewRelic Monitor resource. public partial class NewRelicObservabilityUserInfo { /// @@ -54,26 +51,11 @@ public NewRelicObservabilityUserInfo() } /// Initializes a new instance of . - /// - /// First name - /// Serialized Name: UserInfo.firstName - /// - /// - /// Last name - /// Serialized Name: UserInfo.lastName - /// - /// - /// Reusable representation of an email address - /// Serialized Name: UserInfo.emailAddress - /// - /// - /// Contact phone number - /// Serialized Name: UserInfo.phoneNumber - /// - /// - /// country if user - /// Serialized Name: UserInfo.country - /// + /// First name. + /// Last name. + /// Reusable representation of an email address. + /// Contact phone number. + /// country if user. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityUserInfo(string firstName, string lastName, string emailAddress, string phoneNumber, string country, IDictionary serializedAdditionalRawData) { @@ -85,34 +67,19 @@ internal NewRelicObservabilityUserInfo(string firstName, string lastName, string _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// First name - /// Serialized Name: UserInfo.firstName - /// + /// First name. [WirePath("firstName")] public string FirstName { get; set; } - /// - /// Last name - /// Serialized Name: UserInfo.lastName - /// + /// Last name. [WirePath("lastName")] public string LastName { get; set; } - /// - /// Reusable representation of an email address - /// Serialized Name: UserInfo.emailAddress - /// + /// Reusable representation of an email address. [WirePath("emailAddress")] public string EmailAddress { get; set; } - /// - /// Contact phone number - /// Serialized Name: UserInfo.phoneNumber - /// + /// Contact phone number. [WirePath("phoneNumber")] public string PhoneNumber { get; set; } - /// - /// country if user - /// Serialized Name: UserInfo.country - /// + /// country if user. [WirePath("country")] public string Country { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs index bf6cd74cbaa5..2e45e937f383 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of payload to be passed while installing VM agent. - /// Serialized Name: VMExtensionPayload - /// + /// Response of payload to be passed while installing VM agent. public partial class NewRelicObservabilityVmExtensionPayload { /// @@ -54,10 +51,7 @@ internal NewRelicObservabilityVmExtensionPayload() } /// Initializes a new instance of . - /// - /// Ingestion key of the account - /// Serialized Name: VMExtensionPayload.ingestionKey - /// + /// Ingestion key of the account. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmExtensionPayload(string ingestionKey, IDictionary serializedAdditionalRawData) { @@ -65,10 +59,7 @@ internal NewRelicObservabilityVmExtensionPayload(string ingestionKey, IDictionar _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Ingestion key of the account - /// Serialized Name: VMExtensionPayload.ingestionKey - /// + /// Ingestion key of the account. [WirePath("ingestionKey")] public string IngestionKey { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs index 20e06ef55b99..66b005a8f99d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of a list VM Host Operation. - /// Serialized Name: VMHostsListResponse - /// + /// Response of a list VM Host Operation. internal partial class NewRelicObservabilityVmHostsListResponse { /// @@ -50,10 +47,7 @@ internal partial class NewRelicObservabilityVmHostsListResponse private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The VMInfo items on this page - /// Serialized Name: VMHostsListResponse.value - /// + /// The VMInfo items on this page. /// is null. internal NewRelicObservabilityVmHostsListResponse(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicObservabilityVmHostsListResponse(IEnumerable Initializes a new instance of . - /// - /// The VMInfo items on this page - /// Serialized Name: VMHostsListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: VMHostsListResponse.nextLink - /// + /// The VMInfo items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmHostsListResponse(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicObservabilityVmHostsListResponse() { } - /// - /// The VMInfo items on this page - /// Serialized Name: VMHostsListResponse.value - /// + /// The VMInfo items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: VMHostsListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs index a75e95ff30ed..3cf04b601279 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Details of VM Resource having NewRelic OneAgent installed - /// Serialized Name: VMInfo - /// + /// Details of VM Resource having NewRelic OneAgent installed. public partial class NewRelicObservabilityVmInfo { /// @@ -55,18 +52,9 @@ internal NewRelicObservabilityVmInfo() } /// Initializes a new instance of . - /// - /// Azure VM resource ID - /// Serialized Name: VMInfo.vmId - /// - /// - /// Version of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentVersion - /// - /// - /// Status of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentStatus - /// + /// Azure VM resource ID. + /// Version of the NewRelic agent installed on the VM. + /// Status of the NewRelic agent installed on the VM. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityVmInfo(ResourceIdentifier vmId, string agentVersion, string agentStatus, IDictionary serializedAdditionalRawData) { @@ -76,22 +64,13 @@ internal NewRelicObservabilityVmInfo(ResourceIdentifier vmId, string agentVersio _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Azure VM resource ID - /// Serialized Name: VMInfo.vmId - /// + /// Azure VM resource ID. [WirePath("vmId")] public ResourceIdentifier VmId { get; } - /// - /// Version of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentVersion - /// + /// Version of the NewRelic agent installed on the VM. [WirePath("agentVersion")] public string AgentVersion { get; } - /// - /// Status of the NewRelic agent installed on the VM. - /// Serialized Name: VMInfo.agentStatus - /// + /// Status of the NewRelic agent installed on the VM. [WirePath("agentStatus")] public string AgentStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs index 98287ac2edf6..76835bc35a0f 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationResourceData.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The details of a Organization resource. - /// Serialized Name: OrganizationResource - /// + /// The details of a Organization resource. public partial class NewRelicOrganizationResourceData : ResourceData { /// @@ -60,18 +57,9 @@ public NewRelicOrganizationResourceData() /// The name. /// The resourceType. /// The systemData. - /// - /// organization id - /// Serialized Name: OrganizationResource.properties.organizationId - /// - /// - /// organization name - /// Serialized Name: OrganizationResource.properties.organizationName - /// - /// - /// Billing source - /// Serialized Name: OrganizationResource.properties.billingSource - /// + /// organization id. + /// organization name. + /// Billing source. /// Keeps track of any properties unknown to the library. internal NewRelicOrganizationResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string organizationId, string organizationName, NewRelicObservabilityBillingSource? billingSource, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -81,22 +69,13 @@ internal NewRelicOrganizationResourceData(ResourceIdentifier id, string name, Re _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// organization id - /// Serialized Name: OrganizationResource.properties.organizationId - /// + /// organization id. [WirePath("properties.organizationId")] public string OrganizationId { get; set; } - /// - /// organization name - /// Serialized Name: OrganizationResource.properties.organizationName - /// + /// organization name. [WirePath("properties.organizationName")] public string OrganizationName { get; set; } - /// - /// Billing source - /// Serialized Name: OrganizationResource.properties.billingSource - /// + /// Billing source. [WirePath("properties.billingSource")] public NewRelicObservabilityBillingSource? BillingSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs index 650129af5030..8ee23e63ab06 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicOrganizationsListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of get all organizations Operation. - /// Serialized Name: OrganizationsListResponse - /// + /// Response of get all organizations Operation. internal partial class NewRelicOrganizationsListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicOrganizationsListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The OrganizationResource items on this page - /// Serialized Name: OrganizationsListResponse.value - /// + /// The OrganizationResource items on this page. /// is null. internal NewRelicOrganizationsListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicOrganizationsListResult(IEnumerable Initializes a new instance of . - /// - /// The OrganizationResource items on this page - /// Serialized Name: OrganizationsListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: OrganizationsListResponse.nextLink - /// + /// The OrganizationResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicOrganizationsListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicOrganizationsListResult() { } - /// - /// The OrganizationResource items on this page - /// Serialized Name: OrganizationsListResponse.value - /// + /// The OrganizationResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: OrganizationsListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs index 02ae02527805..42852478a533 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanData.cs @@ -12,10 +12,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// The details of a PlanData resource. - /// Serialized Name: PlanDataResource - /// + /// The details of a PlanData resource. public partial class NewRelicPlanData : ResourceData { /// @@ -60,18 +57,9 @@ public NewRelicPlanData() /// The name. /// The resourceType. /// The systemData. - /// - /// Plan details - /// Serialized Name: PlanDataResource.properties.planData - /// - /// - /// Source of org creation - /// Serialized Name: PlanDataResource.properties.orgCreationSource - /// - /// - /// Source of account creation - /// Serialized Name: PlanDataResource.properties.accountCreationSource - /// + /// Plan details. + /// Source of org creation. + /// Source of account creation. /// Keeps track of any properties unknown to the library. internal NewRelicPlanData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicPlanDetails planData, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -81,22 +69,13 @@ internal NewRelicPlanData(ResourceIdentifier id, string name, ResourceType resou _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Plan details - /// Serialized Name: PlanDataResource.properties.planData - /// + /// Plan details. [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// - /// Source of org creation - /// Serialized Name: PlanDataResource.properties.orgCreationSource - /// + /// Source of org creation. [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// - /// Source of account creation - /// Serialized Name: PlanDataResource.properties.accountCreationSource - /// + /// Source of account creation. [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs index d4d19d5eeaaa..584c068fde5d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDataListResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Response of get all plan data Operation. - /// Serialized Name: PlanDataListResponse - /// + /// Response of get all plan data Operation. internal partial class NewRelicPlanDataListResult { /// @@ -50,10 +47,7 @@ internal partial class NewRelicPlanDataListResult private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// The PlanDataResource items on this page - /// Serialized Name: PlanDataListResponse.value - /// + /// The PlanDataResource items on this page. /// is null. internal NewRelicPlanDataListResult(IEnumerable value) { @@ -63,14 +57,8 @@ internal NewRelicPlanDataListResult(IEnumerable value) } /// Initializes a new instance of . - /// - /// The PlanDataResource items on this page - /// Serialized Name: PlanDataListResponse.value - /// - /// - /// The link to the next page of items - /// Serialized Name: PlanDataListResponse.nextLink - /// + /// The PlanDataResource items on this page. + /// The link to the next page of items. /// Keeps track of any properties unknown to the library. internal NewRelicPlanDataListResult(IReadOnlyList value, Uri nextLink, IDictionary serializedAdditionalRawData) { @@ -84,15 +72,9 @@ internal NewRelicPlanDataListResult() { } - /// - /// The PlanDataResource items on this page - /// Serialized Name: PlanDataListResponse.value - /// + /// The PlanDataResource items on this page. public IReadOnlyList Value { get; } - /// - /// The link to the next page of items - /// Serialized Name: PlanDataListResponse.nextLink - /// + /// The link to the next page of items. public Uri NextLink { get; } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs index 654d822731b6..e542be5caaa1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicPlanDetails.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Plan data of NewRelic Monitor resource - /// Serialized Name: PlanData - /// + /// Plan data of NewRelic Monitor resource. public partial class NewRelicPlanDetails { /// @@ -54,22 +51,10 @@ public NewRelicPlanDetails() } /// Initializes a new instance of . - /// - /// Different usage type like PAYG/COMMITTED. this could be enum - /// Serialized Name: PlanData.usageType - /// - /// - /// Different billing cycles like Monthly/Weekly. - /// Serialized Name: PlanData.billingCycle - /// - /// - /// plan id as published by NewRelic - /// Serialized Name: PlanData.planDetails - /// - /// - /// date when plan was applied - /// Serialized Name: PlanData.effectiveDate - /// + /// Different usage type like PAYG/COMMITTED. this could be enum. + /// Different billing cycles like Monthly/Weekly. + /// plan id as published by NewRelic. + /// date when plan was applied. /// Keeps track of any properties unknown to the library. internal NewRelicPlanDetails(NewRelicObservabilityUsageType? usageType, string newRelicPlanBillingCycle, string planDetails, DateTimeOffset? effectiveOn, IDictionary serializedAdditionalRawData) { @@ -80,28 +65,16 @@ internal NewRelicPlanDetails(NewRelicObservabilityUsageType? usageType, string n _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Different usage type like PAYG/COMMITTED. this could be enum - /// Serialized Name: PlanData.usageType - /// + /// Different usage type like PAYG/COMMITTED. this could be enum. [WirePath("usageType")] public NewRelicObservabilityUsageType? UsageType { get; set; } - /// - /// Different billing cycles like Monthly/Weekly. - /// Serialized Name: PlanData.billingCycle - /// + /// Different billing cycles like Monthly/Weekly. [WirePath("billingCycle")] public string NewRelicPlanBillingCycle { get; set; } - /// - /// plan id as published by NewRelic - /// Serialized Name: PlanData.planDetails - /// + /// plan id as published by NewRelic. [WirePath("planDetails")] public string PlanDetails { get; set; } - /// - /// date when plan was applied - /// Serialized Name: PlanData.effectiveDate - /// + /// date when plan was applied. [WirePath("effectiveDate")] public DateTimeOffset? EffectiveOn { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs index 9854929676ab..f6a95a1b60a4 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicProvisioningState.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Provisioning State of the Monitor resource - /// Serialized Name: ProvisioningState - /// + /// Provisioning State of the Monitor resource. public readonly partial struct NewRelicProvisioningState : IEquatable { private readonly string _value; @@ -35,50 +32,23 @@ public NewRelicProvisioningState(string value) private const string DeletedValue = "Deleted"; private const string NotSpecifiedValue = "NotSpecified"; - /// - /// Monitor resource creation request accepted - /// Serialized Name: ProvisioningState.Accepted - /// + /// Monitor resource creation request accepted. public static NewRelicProvisioningState Accepted { get; } = new NewRelicProvisioningState(AcceptedValue); - /// - /// Monitor resource creation started - /// Serialized Name: ProvisioningState.Creating - /// + /// Monitor resource creation started. public static NewRelicProvisioningState Creating { get; } = new NewRelicProvisioningState(CreatingValue); - /// - /// Monitor resource is being updated - /// Serialized Name: ProvisioningState.Updating - /// + /// Monitor resource is being updated. public static NewRelicProvisioningState Updating { get; } = new NewRelicProvisioningState(UpdatingValue); - /// - /// Monitor resource deletion started - /// Serialized Name: ProvisioningState.Deleting - /// + /// Monitor resource deletion started. public static NewRelicProvisioningState Deleting { get; } = new NewRelicProvisioningState(DeletingValue); - /// - /// Monitor resource creation successful - /// Serialized Name: ProvisioningState.Succeeded - /// + /// Monitor resource creation successful. public static NewRelicProvisioningState Succeeded { get; } = new NewRelicProvisioningState(SucceededValue); - /// - /// Monitor resource creation failed - /// Serialized Name: ProvisioningState.Failed - /// + /// Monitor resource creation failed. public static NewRelicProvisioningState Failed { get; } = new NewRelicProvisioningState(FailedValue); - /// - /// Monitor resource creation canceled - /// Serialized Name: ProvisioningState.Canceled - /// + /// Monitor resource creation canceled. public static NewRelicProvisioningState Canceled { get; } = new NewRelicProvisioningState(CanceledValue); - /// - /// Monitor resource is deleted - /// Serialized Name: ProvisioningState.Deleted - /// + /// Monitor resource is deleted. public static NewRelicProvisioningState Deleted { get; } = new NewRelicProvisioningState(DeletedValue); - /// - /// Monitor resource state is unknown - /// Serialized Name: ProvisioningState.NotSpecified - /// + /// Monitor resource state is unknown. public static NewRelicProvisioningState NotSpecified { get; } = new NewRelicProvisioningState(NotSpecifiedValue); /// Determines if two values are the same. public static bool operator ==(NewRelicProvisioningState left, NewRelicProvisioningState right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs index f386d64fb2e3..8070764e7dd4 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResourceMonitorResult.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Details of resource being monitored by NewRelic monitor resource - /// Serialized Name: MonitoredResource - /// + /// Details of resource being monitored by NewRelic monitor resource. public partial class NewRelicResourceMonitorResult { /// @@ -55,26 +52,11 @@ internal NewRelicResourceMonitorResult() } /// Initializes a new instance of . - /// - /// The ARM id of the resource. - /// Serialized Name: MonitoredResource.id - /// - /// - /// Flag indicating if resource is sending metrics to NewRelic. - /// Serialized Name: MonitoredResource.sendingMetrics - /// - /// - /// Reason for why the resource is sending metrics (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForMetricsStatus - /// - /// - /// Flag indicating if resource is sending logs to NewRelic. - /// Serialized Name: MonitoredResource.sendingLogs - /// - /// - /// Reason for why the resource is sending logs (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForLogsStatus - /// + /// The ARM id of the resource. + /// Flag indicating if resource is sending metrics to NewRelic. + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Flag indicating if resource is sending logs to NewRelic. + /// Reason for why the resource is sending logs (or why it is not sending). /// Keeps track of any properties unknown to the library. internal NewRelicResourceMonitorResult(ResourceIdentifier id, NewRelicObservabilitySendingMetricsStatus? sendingMetrics, string reasonForMetricsStatus, NewRelicObservabilitySendingLogsStatus? sendingLogs, string reasonForLogsStatus, IDictionary serializedAdditionalRawData) { @@ -86,34 +68,19 @@ internal NewRelicResourceMonitorResult(ResourceIdentifier id, NewRelicObservabil _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The ARM id of the resource. - /// Serialized Name: MonitoredResource.id - /// + /// The ARM id of the resource. [WirePath("id")] public ResourceIdentifier Id { get; } - /// - /// Flag indicating if resource is sending metrics to NewRelic. - /// Serialized Name: MonitoredResource.sendingMetrics - /// + /// Flag indicating if resource is sending metrics to NewRelic. [WirePath("sendingMetrics")] public NewRelicObservabilitySendingMetricsStatus? SendingMetrics { get; } - /// - /// Reason for why the resource is sending metrics (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForMetricsStatus - /// + /// Reason for why the resource is sending metrics (or why it is not sending). [WirePath("reasonForMetricsStatus")] public string ReasonForMetricsStatus { get; } - /// - /// Flag indicating if resource is sending logs to NewRelic. - /// Serialized Name: MonitoredResource.sendingLogs - /// + /// Flag indicating if resource is sending logs to NewRelic. [WirePath("sendingLogs")] public NewRelicObservabilitySendingLogsStatus? SendingLogs { get; } - /// - /// Reason for why the resource is sending logs (or why it is not sending). - /// Serialized Name: MonitoredResource.reasonForLogsStatus - /// + /// Reason for why the resource is sending logs (or why it is not sending). [WirePath("reasonForLogsStatus")] public string ReasonForLogsStatus { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs index e869918762ae..4614c1f3fb1d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicResubscribeProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Resubscribe Properties - /// Serialized Name: ResubscribeProperties - /// + /// Resubscribe Properties. public partial class NewRelicResubscribeProperties { /// @@ -54,34 +51,13 @@ public NewRelicResubscribeProperties() } /// Initializes a new instance of . - /// - /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe - /// Serialized Name: ResubscribeProperties.planId - /// - /// - /// Newly selected term Id to create the new Marketplace subscription for Resubscribe - /// Serialized Name: ResubscribeProperties.termId - /// - /// - /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe - /// Serialized Name: ResubscribeProperties.subscriptionId - /// - /// - /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe - /// Serialized Name: ResubscribeProperties.resourceGroup - /// - /// - /// Organization Id of the NewRelic Organization that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.organizationId - /// - /// - /// Publisher Id of the NewRelic offer that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.publisherId - /// - /// - /// Offer Id of the NewRelic offer that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.offerId - /// + /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe. + /// Newly selected term Id to create the new Marketplace subscription for Resubscribe. + /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe. + /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe. + /// Organization Id of the NewRelic Organization that needs to be resubscribed. + /// Publisher Id of the NewRelic offer that needs to be resubscribed. + /// Offer Id of the NewRelic offer that needs to be resubscribed. /// Keeps track of any properties unknown to the library. internal NewRelicResubscribeProperties(string planId, string termId, string subscriptionId, string resourceGroup, string organizationId, string publisherId, string offerId, IDictionary serializedAdditionalRawData) { @@ -95,46 +71,25 @@ internal NewRelicResubscribeProperties(string planId, string termId, string subs _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe - /// Serialized Name: ResubscribeProperties.planId - /// + /// Newly selected plan Id to create the new Marketplace subscription for Resubscribe. [WirePath("planId")] public string PlanId { get; set; } - /// - /// Newly selected term Id to create the new Marketplace subscription for Resubscribe - /// Serialized Name: ResubscribeProperties.termId - /// + /// Newly selected term Id to create the new Marketplace subscription for Resubscribe. [WirePath("termId")] public string TermId { get; set; } - /// - /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe - /// Serialized Name: ResubscribeProperties.subscriptionId - /// + /// Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe. [WirePath("subscriptionId")] public string SubscriptionId { get; set; } - /// - /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe - /// Serialized Name: ResubscribeProperties.resourceGroup - /// + /// Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe. [WirePath("resourceGroup")] public string ResourceGroup { get; set; } - /// - /// Organization Id of the NewRelic Organization that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.organizationId - /// + /// Organization Id of the NewRelic Organization that needs to be resubscribed. [WirePath("organizationId")] public string OrganizationId { get; set; } - /// - /// Publisher Id of the NewRelic offer that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.publisherId - /// + /// Publisher Id of the NewRelic offer that needs to be resubscribed. [WirePath("publisherId")] public string PublisherId { get; set; } - /// - /// Offer Id of the NewRelic offer that needs to be resubscribed - /// Serialized Name: ResubscribeProperties.offerId - /// + /// Offer Id of the NewRelic offer that needs to be resubscribed. [WirePath("offerId")] public string OfferId { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs index 2452691718e5..b7a3f513b620 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnProperties.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Single sign on Info of the NewRelic account - /// Serialized Name: NewRelicSingleSignOnProperties - /// + /// Single sign on Info of the NewRelic account. public partial class NewRelicSingleSignOnProperties { /// @@ -54,22 +51,10 @@ public NewRelicSingleSignOnProperties() } /// Initializes a new instance of . - /// - /// Single sign-on state - /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnState - /// - /// - /// The Id of the Enterprise App used for Single sign-on. - /// Serialized Name: NewRelicSingleSignOnProperties.enterpriseAppId - /// - /// - /// The login URL specific to this NewRelic Organization - /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnUrl - /// - /// - /// Provisioning state - /// Serialized Name: NewRelicSingleSignOnProperties.provisioningState - /// + /// Single sign-on state. + /// The Id of the Enterprise App used for Single sign-on. + /// The login URL specific to this NewRelic Organization. + /// Provisioning state. /// Keeps track of any properties unknown to the library. internal NewRelicSingleSignOnProperties(NewRelicSingleSignOnState? singleSignOnState, string enterpriseAppId, Uri singleSignOnUri, NewRelicProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { @@ -80,28 +65,16 @@ internal NewRelicSingleSignOnProperties(NewRelicSingleSignOnState? singleSignOnS _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Single sign-on state - /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnState - /// + /// Single sign-on state. [WirePath("singleSignOnState")] public NewRelicSingleSignOnState? SingleSignOnState { get; set; } - /// - /// The Id of the Enterprise App used for Single sign-on. - /// Serialized Name: NewRelicSingleSignOnProperties.enterpriseAppId - /// + /// The Id of the Enterprise App used for Single sign-on. [WirePath("enterpriseAppId")] public string EnterpriseAppId { get; set; } - /// - /// The login URL specific to this NewRelic Organization - /// Serialized Name: NewRelicSingleSignOnProperties.singleSignOnUrl - /// + /// The login URL specific to this NewRelic Organization. [WirePath("singleSignOnUrl")] public Uri SingleSignOnUri { get; set; } - /// - /// Provisioning state - /// Serialized Name: NewRelicSingleSignOnProperties.provisioningState - /// + /// Provisioning state. [WirePath("provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs index d2b9d7cacc79..2d3102b809ea 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSingleSignOnState.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Various states of the SSO resource - /// Serialized Name: SingleSignOnStates - /// + /// Various states of the SSO resource. public readonly partial struct NewRelicSingleSignOnState : IEquatable { private readonly string _value; @@ -30,25 +27,13 @@ public NewRelicSingleSignOnState(string value) private const string DisableValue = "Disable"; private const string ExistingValue = "Existing"; - /// - /// Initial - /// Serialized Name: SingleSignOnStates.Initial - /// + /// Initial. public static NewRelicSingleSignOnState Initial { get; } = new NewRelicSingleSignOnState(InitialValue); - /// - /// Enable - /// Serialized Name: SingleSignOnStates.Enable - /// + /// Enable. public static NewRelicSingleSignOnState Enable { get; } = new NewRelicSingleSignOnState(EnableValue); - /// - /// Disable - /// Serialized Name: SingleSignOnStates.Disable - /// + /// Disable. public static NewRelicSingleSignOnState Disable { get; } = new NewRelicSingleSignOnState(DisableValue); - /// - /// Existing - /// Serialized Name: SingleSignOnStates.Existing - /// + /// Existing. public static NewRelicSingleSignOnState Existing { get; } = new NewRelicSingleSignOnState(ExistingValue); /// Determines if two values are the same. public static bool operator ==(NewRelicSingleSignOnState left, NewRelicSingleSignOnState right) => left.Equals(right); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs index d6d4f3b5e908..07b835210699 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicSwitchBillingContent.cs @@ -11,10 +11,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Request of a switch billing Operation. - /// Serialized Name: SwitchBillingRequest - /// + /// Request of a switch billing Operation. public partial class NewRelicSwitchBillingContent { /// @@ -50,10 +47,7 @@ public partial class NewRelicSwitchBillingContent private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// - /// Reusable representation of an email address - /// Serialized Name: SwitchBillingRequest.userEmail - /// + /// Reusable representation of an email address. /// is null. public NewRelicSwitchBillingContent(string userEmail) { @@ -63,22 +57,10 @@ public NewRelicSwitchBillingContent(string userEmail) } /// Initializes a new instance of . - /// - /// Azure resource Id - /// Serialized Name: SwitchBillingRequest.azureResourceId - /// - /// - /// Organization id - /// Serialized Name: SwitchBillingRequest.organizationId - /// - /// - /// Plan details - /// Serialized Name: SwitchBillingRequest.planData - /// - /// - /// Reusable representation of an email address - /// Serialized Name: SwitchBillingRequest.userEmail - /// + /// Azure resource Id. + /// Organization id. + /// Plan details. + /// Reusable representation of an email address. /// Keeps track of any properties unknown to the library. internal NewRelicSwitchBillingContent(ResourceIdentifier azureResourceId, string organizationId, NewRelicPlanDetails planData, string userEmail, IDictionary serializedAdditionalRawData) { @@ -94,28 +76,16 @@ internal NewRelicSwitchBillingContent() { } - /// - /// Azure resource Id - /// Serialized Name: SwitchBillingRequest.azureResourceId - /// + /// Azure resource Id. [WirePath("azureResourceId")] public ResourceIdentifier AzureResourceId { get; set; } - /// - /// Organization id - /// Serialized Name: SwitchBillingRequest.organizationId - /// + /// Organization id. [WirePath("organizationId")] public string OrganizationId { get; set; } - /// - /// Plan details - /// Serialized Name: SwitchBillingRequest.planData - /// + /// Plan details. [WirePath("planData")] public NewRelicPlanDetails PlanData { get; set; } - /// - /// Reusable representation of an email address - /// Serialized Name: SwitchBillingRequest.userEmail - /// + /// Reusable representation of an email address. [WirePath("userEmail")] public string UserEmail { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs index 778e27ca2d0b..51c56a64c241 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/PartnerBillingEntity.cs @@ -10,10 +10,7 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - /// - /// Partner Billing details associated with the resource. - /// Serialized Name: PartnerBillingEntity - /// + /// Partner Billing details associated with the resource. public partial class PartnerBillingEntity { /// @@ -54,14 +51,8 @@ internal PartnerBillingEntity() } /// Initializes a new instance of . - /// - /// The New Relic Organization Id. - /// Serialized Name: PartnerBillingEntity.organizationId - /// - /// - /// The New Relic Organization Name. - /// Serialized Name: PartnerBillingEntity.organizationName - /// + /// The New Relic Organization Id. + /// The New Relic Organization Name. /// Keeps track of any properties unknown to the library. internal PartnerBillingEntity(string organizationId, string organizationName, IDictionary serializedAdditionalRawData) { @@ -70,16 +61,10 @@ internal PartnerBillingEntity(string organizationId, string organizationName, ID _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The New Relic Organization Id. - /// Serialized Name: PartnerBillingEntity.organizationId - /// + /// The New Relic Organization Id. [WirePath("organizationId")] public string OrganizationId { get; } - /// - /// The New Relic Organization Name. - /// Serialized Name: PartnerBillingEntity.organizationName - /// + /// The New Relic Organization Name. [WirePath("organizationName")] public string OrganizationName { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs index 0d42ddb6abae..4165a9fbf0db 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResourceData.cs @@ -16,7 +16,6 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicMonitorResource data model. /// A Monitor Resource by NewRelic - /// Serialized Name: NewRelicMonitorResource /// public partial class NewRelicMonitorResourceData : TrackedResourceData { @@ -65,66 +64,21 @@ public NewRelicMonitorResourceData(AzureLocation location) : base(location) /// The systemData. /// The tags. /// The location. - /// - /// The managed service identities assigned to this resource. - /// Serialized Name: NewRelicMonitorResource.identity - /// - /// - /// Provisioning State of the resource - /// Serialized Name: NewRelicMonitorResource.properties.provisioningState - /// - /// - /// MonitoringStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus - /// - /// - /// NewRelic Organization properties of the resource - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus - /// - /// - /// Marketplace Subscription Id - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId - /// - /// - /// MarketplaceSubscriptionStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties - /// - /// - /// User Info - /// Serialized Name: NewRelicMonitorResource.properties.userInfo - /// - /// - /// Plan details - /// Serialized Name: NewRelicMonitorResource.properties.planData - /// - /// - /// SaaS details - /// Serialized Name: NewRelicMonitorResource.properties.saaSData - /// - /// - /// Liftr resource category - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory - /// - /// - /// Liftr resource preference. The priority of the resource. - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference - /// - /// - /// Source of org creation - /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource - /// - /// - /// Source of account creation - /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource - /// - /// - /// State of the Azure Subscription containing the monitor resource - /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState - /// - /// - /// Status of Azure Subscription where Marketplace SaaS is located. - /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus - /// + /// The managed service identities assigned to this resource. + /// Provisioning State of the resource. + /// MonitoringStatus of the resource. + /// NewRelic Organization properties of the resource. + /// Marketplace Subscription Id. + /// MarketplaceSubscriptionStatus of the resource. + /// User Info. + /// Plan details. + /// SaaS details. + /// Liftr resource category. + /// Liftr resource preference. The priority of the resource. + /// Source of org creation. + /// Source of account creation. + /// State of the Azure Subscription containing the monitor resource. + /// Status of Azure Subscription where Marketplace SaaS is located. /// Keeps track of any properties unknown to the library. internal NewRelicMonitorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ManagedServiceIdentity identity, NewRelicProvisioningState? provisioningState, NewRelicObservabilityMonitoringStatus? monitoringStatus, NewRelicObservabilityMarketplaceSubscriptionStatus? marketplaceSubscriptionStatus, string marketplaceSubscriptionId, NewRelicAccountProperties newRelicAccountProperties, NewRelicObservabilityUserInfo userInfo, NewRelicPlanDetails planData, NewRelicObservabilitySaaSContent saaSData, NewRelicLiftrResourceCategory? liftrResourceCategory, int? liftrResourcePreference, NewRelicObservabilityOrgCreationSource? orgCreationSource, NewRelicObservabilityAccountCreationSource? accountCreationSource, string subscriptionState, string saaSAzureSubscriptionStatus, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { @@ -151,63 +105,33 @@ internal NewRelicMonitorResourceData() { } - /// - /// The managed service identities assigned to this resource. - /// Serialized Name: NewRelicMonitorResource.identity - /// + /// The managed service identities assigned to this resource. [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } - /// - /// Provisioning State of the resource - /// Serialized Name: NewRelicMonitorResource.properties.provisioningState - /// + /// Provisioning State of the resource. [WirePath("properties.provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// - /// MonitoringStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.monitoringStatus - /// + /// MonitoringStatus of the resource. [WirePath("properties.monitoringStatus")] public NewRelicObservabilityMonitoringStatus? MonitoringStatus { get; } - /// - /// NewRelic Organization properties of the resource - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionStatus - /// + /// NewRelic Organization properties of the resource. [WirePath("properties.marketplaceSubscriptionStatus")] public NewRelicObservabilityMarketplaceSubscriptionStatus? MarketplaceSubscriptionStatus { get; } - /// - /// Marketplace Subscription Id - /// Serialized Name: NewRelicMonitorResource.properties.marketplaceSubscriptionId - /// + /// Marketplace Subscription Id. [WirePath("properties.marketplaceSubscriptionId")] public string MarketplaceSubscriptionId { get; } - /// - /// MarketplaceSubscriptionStatus of the resource - /// Serialized Name: NewRelicMonitorResource.properties.newRelicAccountProperties - /// + /// MarketplaceSubscriptionStatus of the resource. [WirePath("properties.newRelicAccountProperties")] public NewRelicAccountProperties NewRelicAccountProperties { get; set; } - /// - /// User Info - /// Serialized Name: NewRelicMonitorResource.properties.userInfo - /// + /// User Info. [WirePath("properties.userInfo")] public NewRelicObservabilityUserInfo UserInfo { get; set; } - /// - /// Plan details - /// Serialized Name: NewRelicMonitorResource.properties.planData - /// + /// Plan details. [WirePath("properties.planData")] public NewRelicPlanDetails PlanData { get; set; } - /// - /// SaaS details - /// Serialized Name: NewRelicMonitorResource.properties.saaSData - /// + /// SaaS details. internal NewRelicObservabilitySaaSContent SaaSData { get; set; } - /// - /// SaaS resource id - /// Serialized Name: SaaSData.saaSResourceId - /// + /// SaaS resource id. [WirePath("properties.saaSData.saaSResourceId")] public ResourceIdentifier SaaSResourceId { @@ -220,40 +144,22 @@ public ResourceIdentifier SaaSResourceId } } - /// - /// Liftr resource category - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourceCategory - /// + /// Liftr resource category. [WirePath("properties.liftrResourceCategory")] public NewRelicLiftrResourceCategory? LiftrResourceCategory { get; } - /// - /// Liftr resource preference. The priority of the resource. - /// Serialized Name: NewRelicMonitorResource.properties.liftrResourcePreference - /// + /// Liftr resource preference. The priority of the resource. [WirePath("properties.liftrResourcePreference")] public int? LiftrResourcePreference { get; } - /// - /// Source of org creation - /// Serialized Name: NewRelicMonitorResource.properties.orgCreationSource - /// + /// Source of org creation. [WirePath("properties.orgCreationSource")] public NewRelicObservabilityOrgCreationSource? OrgCreationSource { get; set; } - /// - /// Source of account creation - /// Serialized Name: NewRelicMonitorResource.properties.accountCreationSource - /// + /// Source of account creation. [WirePath("properties.accountCreationSource")] public NewRelicObservabilityAccountCreationSource? AccountCreationSource { get; set; } - /// - /// State of the Azure Subscription containing the monitor resource - /// Serialized Name: NewRelicMonitorResource.properties.subscriptionState - /// + /// State of the Azure Subscription containing the monitor resource. [WirePath("properties.subscriptionState")] public string SubscriptionState { get; set; } - /// - /// Status of Azure Subscription where Marketplace SaaS is located. - /// Serialized Name: NewRelicMonitorResource.properties.saaSAzureSubscriptionStatus - /// + /// Status of Azure Subscription where Marketplace SaaS is located. [WirePath("properties.saaSAzureSubscriptionStatus")] public string SaaSAzureSubscriptionStatus { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs index b83c2948b5a8..8f795fba11ae 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitoredSubscriptionData.cs @@ -16,7 +16,6 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicMonitoredSubscription data model. /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// Serialized Name: MonitoredSubscriptionProperties /// public partial class NewRelicMonitoredSubscriptionData : ResourceData { @@ -62,10 +61,7 @@ public NewRelicMonitoredSubscriptionData() /// The name. /// The resourceType. /// The systemData. - /// - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// Serialized Name: MonitoredSubscriptionProperties.properties - /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. /// Keeps track of any properties unknown to the library. internal NewRelicMonitoredSubscriptionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicMonitoredSubscriptionProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -73,10 +69,7 @@ internal NewRelicMonitoredSubscriptionData(ResourceIdentifier id, string name, R _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. - /// Serialized Name: MonitoredSubscriptionProperties.properties - /// + /// The request to update subscriptions needed to be monitored by the NewRelic monitor resource. [WirePath("properties")] public NewRelicMonitoredSubscriptionProperties Properties { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs index 3c7d3c5a96f0..bfbd1f296637 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicObservabilityTagRuleData.cs @@ -16,7 +16,6 @@ namespace Azure.ResourceManager.NewRelicObservability /// /// A class representing the NewRelicObservabilityTagRule data model. /// A tag rule belonging to NewRelic account - /// Serialized Name: TagRule /// public partial class NewRelicObservabilityTagRuleData : ResourceData { @@ -62,18 +61,9 @@ public NewRelicObservabilityTagRuleData() /// The name. /// The resourceType. /// The systemData. - /// - /// Provisioning State of the resource - /// Serialized Name: TagRule.properties.provisioningState - /// - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: TagRule.properties.logRules - /// - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: TagRule.properties.metricRules - /// + /// Provisioning State of the resource. + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. /// Keeps track of any properties unknown to the library. internal NewRelicObservabilityTagRuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, NewRelicProvisioningState? provisioningState, NewRelicObservabilityLogRules logRules, NewRelicObservabilityMetricRules metricRules, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { @@ -83,22 +73,13 @@ internal NewRelicObservabilityTagRuleData(ResourceIdentifier id, string name, Re _serializedAdditionalRawData = serializedAdditionalRawData; } - /// - /// Provisioning State of the resource - /// Serialized Name: TagRule.properties.provisioningState - /// + /// Provisioning State of the resource. [WirePath("properties.provisioningState")] public NewRelicProvisioningState? ProvisioningState { get; } - /// - /// Set of rules for sending logs for the Monitor resource. - /// Serialized Name: TagRule.properties.logRules - /// + /// Set of rules for sending logs for the Monitor resource. [WirePath("properties.logRules")] public NewRelicObservabilityLogRules LogRules { get; set; } - /// - /// Set of rules for sending metrics for the Monitor resource. - /// Serialized Name: TagRule.properties.metricRules - /// + /// Set of rules for sending metrics for the Monitor resource. [WirePath("properties.metricRules")] public NewRelicObservabilityMetricRules MetricRules { get; set; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md index 42fecb3b6985..e2d09909a3ed 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md @@ -20,8 +20,8 @@ modelerfour: use-model-reader-writer: true enable-bicep-serialization: true -mgmt-debug: - show-serialized-names: true +#mgmt-debug: +# show-serialized-names: true format-by-name-rules: 'tenantId': 'uuid' @@ -144,11 +144,4 @@ override-operation-name: Organizations_List: GetNewRelicOrganizations Plans_List: GetNewRelicPlans -directive: - - from: NewRelic.json - where: $.definitions.MonitoredSubscription - transform: > - delete $.required; - reason: Remove the required attribute to generate a parameterless public constructor. - ```