diff --git a/specification/monitor/cspell.yaml b/specification/monitor/cspell.yaml index 1280715cb7ff..381a967f5703 100644 --- a/specification/monitor/cspell.yaml +++ b/specification/monitor/cspell.yaml @@ -9,9 +9,11 @@ import: words: - adece - amcs + - ampm - azlogs - azmetrics - azns + - bcdr - byval - ciis - dcrmetadata @@ -46,4 +48,3 @@ overrides: - occurringlocation - routingid - tsgid - diff --git a/specification/monitor/resource-manager/Microsoft.Insights/Insights/DataCollectionApi/DataCollectionRuleAssociationProxyOnlyResource.tsp b/specification/monitor/resource-manager/Microsoft.Insights/Insights/DataCollectionApi/DataCollectionRuleAssociationProxyOnlyResource.tsp index 1f5da6eebb01..f70ad7d6373d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/Insights/DataCollectionApi/DataCollectionRuleAssociationProxyOnlyResource.tsp +++ b/specification/monitor/resource-manager/Microsoft.Insights/Insights/DataCollectionApi/DataCollectionRuleAssociationProxyOnlyResource.tsp @@ -27,17 +27,21 @@ model DataCollectionRuleAssociationProxyOnlyResource ...Azure.ResourceManager.Legacy.EntityTagProperty; } -alias DataCollectionRuleAssociationProxyOnlyResourcesOps = Azure.ResourceManager.Legacy.LegacyOperations< +alias DataCollectionRuleAssociationProxyOnlyResourcesOps = Azure.ResourceManager.Legacy.ExtensionOperations< { ...ApiVersionParameter; /** - * The identifier of the resource. + * The fully qualified Azure Resource manager identifier of the resource. */ @path(#{ allowReserved: true }) @minLength(1) resourceUri: string; - + }, + { + ...Azure.ResourceManager.Legacy.Provider; + }, + { ...Azure.ResourceManager.Legacy.Provider; /** @@ -47,7 +51,7 @@ alias DataCollectionRuleAssociationProxyOnlyResourcesOps = Azure.ResourceManager @segment("dataCollectionRuleAssociations") associationName: string; }, - {} + "DataCollectionRuleAssociation" >; @armResourceOperations(#{ omitTags: true }) @@ -57,10 +61,9 @@ interface DataCollectionRuleAssociationProxyOnlyResources { */ @tag("DataCollectionRuleAssociations") @summary("Returns the specified association.") - get is Extension.Read< - Extension.ScopeParameter, + get is DataCollectionRuleAssociationProxyOnlyResourcesOps.Read< DataCollectionRuleAssociationProxyOnlyResource, - Error = ErrorResponseCommonV2 + ErrorType = ErrorResponseCommonV2 >; /** @@ -75,7 +78,7 @@ interface DataCollectionRuleAssociationProxyOnlyResources { Response = | DataCollectionRuleAssociationProxyOnlyResource | ArmResourceCreatedSyncResponse, - OverrideErrorType = ErrorResponseCommonV2 + ErrorType = ErrorResponseCommonV2 >; /** @@ -83,10 +86,9 @@ interface DataCollectionRuleAssociationProxyOnlyResources { */ @tag("DataCollectionRuleAssociations") @summary("Deletes an association.") - delete is Extension.DeleteSync< - Extension.ScopeParameter, + delete is DataCollectionRuleAssociationProxyOnlyResourcesOps.DeleteSync< DataCollectionRuleAssociationProxyOnlyResource, - Error = ErrorResponseCommonV2 + ErrorType = ErrorResponseCommonV2 >; /** @@ -94,10 +96,9 @@ interface DataCollectionRuleAssociationProxyOnlyResources { */ @tag("DataCollectionRuleAssociations") @summary("Lists associations for the specified resource.") - listByResource is Extension.ListByTarget< - Extension.ScopeParameter, + listByResource is DataCollectionRuleAssociationProxyOnlyResourcesOps.List< DataCollectionRuleAssociationProxyOnlyResource, - Error = ErrorResponseCommonV2 + ErrorType = ErrorResponseCommonV2 >; } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/Insights/PrivateLinkScopesApi/PrivateLinkResource.tsp b/specification/monitor/resource-manager/Microsoft.Insights/Insights/PrivateLinkScopesApi/PrivateLinkResource.tsp index c3138f09e5d6..5761a2895d7a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/Insights/PrivateLinkScopesApi/PrivateLinkResource.tsp +++ b/specification/monitor/resource-manager/Microsoft.Insights/Insights/PrivateLinkScopesApi/PrivateLinkResource.tsp @@ -14,7 +14,6 @@ namespace PrivateLinkScopesApi; /** * A private link resource */ -@parentResource(AzureMonitorPrivateLinkScope) model PrivateLinkResource is PrivateLink; alias PrivateLinkOperations = PrivateLinks; @@ -29,7 +28,7 @@ interface PrivateLinkResources { "privateLinkResourceName", "groupName" ) - get is PrivateLinkOperations.Read; + get is PrivateLinkOperations.Read; /** * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. @@ -41,7 +40,7 @@ interface PrivateLinkResources { "privateLinkResourceName", "groupName" ) - listByPrivateLinkScope is PrivateLinkOperations.ListSinglePageByParent; + listByPrivateLinkScope is PrivateLinkOperations.ListSinglePageByParent; } @@doc(PrivateLinkResource.properties, "Resource properties."); diff --git a/specification/monitor/resource-manager/Microsoft.Insights/Insights/client.tsp b/specification/monitor/resource-manager/Microsoft.Insights/Insights/client.tsp index 0ffb8899396e..3dc39a557e51 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/Insights/client.tsp +++ b/specification/monitor/resource-manager/Microsoft.Insights/Insights/client.tsp @@ -22,8 +22,14 @@ using TypeSpec.Versioning; using TypeSpec.Http; using TypeSpec.Rest; using Microsoft.Insights; +using ActionGroupsApi; +using ActivityLogAlertsApi; +using AlertRulesIncidentsApi; using ScheduledQueryRuleApi; using AutoScaleApi; +using DataCollectionApi; +using LogProfilesApi; +using MetricAlertApi; using Microsoft.Common; using PrivateLinkScopesApi; using MetricsApi; @@ -63,25 +69,1259 @@ namespace Microsoft.InsightsCombinedClient; "python" ); +// C# compatibility names from the shipped AutoRest-based Azure.ResourceManager.Monitor package. +@@clientName(ActionGroupsApi.ActionGroup, "ActionGroupProperties", "csharp"); +@@clientName(ActionGroupsApi.ActionGroup.enabled, "IsEnabled", "csharp"); +@@clientName(ActionGroupsApi.ActionGroupResource, "ActionGroup", "csharp"); +@@clientName( + ActionGroupsApi.ActionGroupPatchBody, + "ActionGroupPatch", + "csharp" +); +@@clientName( + ActionGroupsApi.ActionGroupPatch, + "ActionGroupPatchProperties", + "csharp" +); +@@clientName(ActionGroupsApi.ActionGroupPatch.enabled, "IsEnabled", "csharp"); +@@clientName( + ActionGroupsApi.NotificationRequestBody, + "NotificationContent", + "csharp" +); +@@clientName( + ActionGroupsApi.TestNotificationDetailsResponse, + "NotificationStatus", + "csharp" +); +@@clientName(ActionGroupsApi.Context, "NotificationContext", "csharp"); +@@clientName( + ActionGroupsApi.ActionDetail, + "NotificationActionDetail", + "csharp" +); +@@clientName( + ActionGroupsApi.EnableRequest, + "ActionGroupEnableContent", + "csharp" +); +@@clientName( + ActionGroupsApi.ActionGroupResources.createNotificationsAtActionGroupResourceLevel, + "CreateNotifications", + "csharp" +); +@@clientName( + ActionGroupsApi.ActionGroupResources.getTestNotificationsAtActionGroupResourceLevel, + "GetNotificationStatus", + "csharp" +); +@@clientName( + ActivityLogsApi.ActivityLogsOperationGroup.list, + "GetActivityLogs", + "csharp" +); +@@clientName( + ActivityLogsApi.TenantActivityLogsOperationGroup.list, + "GetTenantActivityLogs", + "csharp" +); +@@clientName( + ActivityLogsApi.EventCategoriesOperationGroup.list, + "GetEventCategories", + "csharp" +); +@@clientName(AlertRulesIncidentsApi.Incident, "MonitorIncident", "csharp"); +@@clientName( + MetricAlertApi.MetricAlertResources.list, + "GetAllMetricAlertsStatus", + "csharp" +); +@@clientName( + MetricAlertApi.MetricAlertResources.listByName, + "GetAllMetricAlertsStatusByName", + "csharp" +); +@@clientName( + MetricAlertApi.ResolveConfiguration.autoResolved, + "IsAutoResolved", + "csharp" +); +@@clientName( + MetricAlertApi.ResolveConfiguration, + "MetricAlertResolveConfiguration", + "csharp" +); +#suppress "@azure-tools/typespec-client-generator-core/duplicate-client-name-warning" "preserve the shipped C# overload name for resource-scope metric retrieval" +@@clientName( + MetricsApi.MetricsOperationGroup.list, + "GetMonitorMetrics", + "csharp" +); +@@clientName(MetricsApi.Response, "MonitorMetricsResult", "csharp"); +#suppress "@azure-tools/typespec-client-generator-core/duplicate-client-name-warning" "preserve the shipped C# overload name for subscription-scope metric retrieval" +@@clientName( + MetricsApi.MetricsOperationGroup.listAtSubscriptionScope, + "GetMonitorMetrics", + "csharp" +); +@@clientName( + MetricsApi.MetricsOperationGroup.listAtSubscriptionScopePost, + "GetMonitorMetricsWithPost", + "csharp" +); +@@clientName( + MetricsApi.AggregationType, + "MonitorMetricAggregationType", + "csharp" +); +@@clientName( + MetricsApi.SubscriptionScopeMetricsRequestBodyParameters, + "SubscriptionScopeMetricsContent", + "csharp" +); +@@clientName( + MetricBaselinesApi.BaselinesOperationGroup.list, + "GetMonitorMetricBaselines", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionEndpointResources.listByDataCollectionEndpoint, + "GetDataCollectionRuleAssociations", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionRuleResources.listByRule, + "GetDataCollectionRuleAssociationsByRule", + "csharp" +); +@@clientName( + ActivityLogAlertsApi.ActivityLogAlertResource, + "ActivityLogAlert", + "csharp" +); +@@clientName( + ActivityLogAlertsApi.AlertRuleProperties.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + ActivityLogAlertsApi.AlertRulePatchProperties.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + AutoScaleApi.AutoscaleSetting, + "AutoscaleSettingProperties", + "csharp" +); +@@clientName( + AutoScaleApi.AutoscaleSettingResource, + "AutoscaleSetting", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionEndpoint, + "DataCollectionEndpointProperties", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionEndpointResource, + "DataCollectionEndpoint", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionRule, + "DataCollectionRuleProperties", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionRuleResource, + "DataCollectionRule", + "csharp" +); +@@clientName(LogProfilesApi.LogProfileResource, "LogProfile", "csharp"); +@@clientName( + LogProfilesApi.LogProfileCollection, + "LogProfileListResult", + "csharp" +); +@@alternateType( + LogProfilesApi.LogProfileProperties.storageAccountId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + LogProfilesApi.LogProfileProperties.serviceBusRuleId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + LogProfilesApi.LogProfileProperties.locations, + Azure.Core.azureLocation[], + "csharp" +); +@@clientName(MetricAlertApi.MetricAlertResource, "MetricAlert", "csharp"); +@@clientName( + MetricAlertApi.MetricAlertProperties.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + MetricAlertApi.MetricAlertProperties.autoMitigate, + "IsAutoMitigateEnabled", + "csharp" +); +@@clientName( + MetricAlertApi.MetricAlertPropertiesPatch.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + MetricAlertApi.MetricAlertPropertiesPatch.autoMitigate, + "IsAutoMitigateEnabled", + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertProperties.targetResourceType, + Azure.Core.armResourceType, + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertProperties.targetResourceRegion, + Azure.Core.azureLocation, + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertPropertiesPatch.targetResourceType, + Azure.Core.armResourceType, + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertPropertiesPatch.targetResourceRegion, + Azure.Core.azureLocation, + "csharp" +); +@@clientName( + ScheduledQueryRuleApi.ScheduledQueryRuleResource, + "ScheduledQueryRule", + "csharp" +); +// DCR association and diagnostic setting are extension resources whose GA SDK surface +// used resource names without the TypeSpec proxy/service prefixes. +@@clientName( + DataCollectionApi.DataCollectionRuleAssociation, + "DataCollectionRuleAssociationProperties", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionRuleAssociationProxyOnlyResource, + "DataCollectionRuleAssociation", + "csharp" +); +@@clientName( + DataCollectionApi.KnownDataCollectionRuleAssociationProvisioningState, + "DataCollectionRuleAssociationProvisioningState", + "csharp" +); +@@clientName( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettings, + "DiagnosticSettingsProperties", + "csharp" +); +@@clientName( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettingsResource, + "ServiceDiagnosticSetting", + "csharp" +); +@@alternateType( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettingsResource.location, + Azure.Core.azureLocation, + "csharp" +); +@@alternateType( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettings.storageAccountId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettings.serviceBusRuleId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettings.eventHubAuthorizationRuleId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + ServiceDiagnosticsSettingsApi.ServiceDiagnosticSettings.workspaceId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@clientName( + PrivateLinkScopesApi.AzureMonitorPrivateLinkScope, + "MonitorPrivateLinkScope", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.PrivateEndpointConnection, + "MonitorPrivateEndpointConnection", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.PrivateLinkResource, + "MonitorPrivateLinkResource", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.PrivateLinkScopeProvisioningState, + "MonitorPrivateLinkScopeProvisioningState", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.ScopedResourceKind, + "MonitorScopedResourceKind", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.ScopedResourceProvisioningState, + "MonitorScopedResourceProvisioningState", + "csharp" +); +@@usage(PrivateLinkScopesApi.PrivateLinkResource, Usage.input, "csharp"); +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "restore flattened private link resource data shape for C# compatibility" +@@Azure.ClientGenerator.Core.Legacy.flattenProperty( + PrivateLinkScopesApi.PrivateLinkResource.properties, + "csharp" +); +@@clientName( + PrivateLinkScopesApi.ScopedResource, + "MonitorPrivateLinkScopedResource", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.AzureMonitorPrivateLinkScopeProperties.provisioningState, + "PrivateLinkScopeProvisioningState", + "csharp" +); +@@alternateType( + PrivateLinkScopesApi.ScopedResourceProperties.linkedResourceId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + PrivateLinkScopesApi.ScopedResourceProperties.subscriptionLocation, + Azure.Core.azureLocation, + "csharp" +); +@@clientName( + PrivateLinkScopesApi.ScopedResourceProperties.provisioningState, + "ScopedResourceProvisioningState", + "csharp" +); + +// Split NSP operations by resource type for C# so each generated client has a single API version. +// Keeping ActionGroup NSP operations in ActionGroups mixes 2021-10-01 with 2024-10-01-preview. +@@clientLocation( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.getNSP, + "NspActionGroup", + "csharp" +); +@@clientLocation( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.listNSP, + "NspActionGroup", + "csharp" +); +@@clientLocation( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.reconcileNSP, + "NspActionGroup", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.getNSP, + "GetNetworkSecurityPerimeterConfiguration", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.listNSP, + "GetNetworkSecurityPerimeterConfigurations", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.NetworkSecurityPerimeterConfigurations.reconcileNSP, + "ReconcileNetworkSecurityPerimeterConfiguration", + "csharp" +); + +// Split DataCollectionEndpoint NSP operations from the main DataCollectionEndpoints client. +// The main endpoint operations use 2024-03-11, while NSP operations use 2021-10-01. +@@clientLocation( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.getNSP, + "NspDataCollectionEndpoint", + "csharp" +); +@@clientLocation( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.listNSP, + "NspDataCollectionEndpoint", + "csharp" +); +@@clientLocation( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.reconcileNSP, + "NspDataCollectionEndpoint", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.getNSP, + "GetNetworkSecurityPerimeterConfiguration", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.listNSP, + "GetNetworkSecurityPerimeterConfigurations", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.DataCollectionEndpoints.reconcileNSP, + "ReconcileNetworkSecurityPerimeterConfiguration", + "csharp" +); +@@clientName( + DataCollectionApi.KnownPerfCounterDataSourceStreams, + "PerfCounterDataSourceStream", + "csharp" +); +@@clientName( + DataCollectionApi.KnownWindowsEventLogDataSourceStreams, + "WindowsEventLogDataSourceStream", + "csharp" +); +@@clientName( + DataCollectionApi.KnownSyslogDataSourceStreams, + "SyslogDataSourceStream", + "csharp" +); +@@clientName( + DataCollectionApi.KnownSyslogDataSourceFacilityNames, + "SyslogDataSourceFacilityName", + "csharp" +); +@@clientName( + DataCollectionApi.KnownExtensionDataSourceStreams, + "ExtensionDataSourceStream", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFilesDataSourceFormat, + "LogFilesDataSourceFormat", + "csharp" +); +@@clientName( + DataCollectionApi.KnownPrometheusForwarderDataSourceStreams, + "DataCollectionRuleKnownPrometheusForwarderDataSourceStream", + "csharp" +); +@@clientName( + DataCollectionApi.EventHubDestination, + "DataCollectionRuleEventHubDestination", + "csharp" +); +@@clientName( + DataCollectionApi.KnownDataFlowStreams, + "DataFlowStream", + "csharp" +); +@@clientName( + DataCollectionApi.KnownColumnDefinitionType, + "DataColumnDefinitionType", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat, + "LogFileTextSettingsRecordStartTimestampFormat", + "csharp" +); +@@clientName( + DataCollectionApi.LocationSpec, + "DataCollectionRuleBcdrLocationSpec", + "csharp" +); +@@clientName( + DataCollectionApi.FailoverConfigurationSpec, + "DataCollectionRuleBcdrFailoverConfigurationSpec", + "csharp" +); +@@clientName( + DataCollectionApi.Metadata, + "DataCollectionRuleRelatedResourceMetadata", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLocationSpecProvisioningStatus, + "DataCollectionRuleBcdrLocationSpecProvisioningStatus", + "csharp" +); +@@clientName( + DataCollectionApi.KnownSyslogDataSourceLogLevels, + "SyslogDataSourceLogLevel", + "csharp" +); +@@clientName( + DataCollectionApi.EventHubDirectDestination, + "DataCollectionRuleEventHubDirectDestination", + "csharp" +); +@@clientName( + DataCollectionApi.EventHubDataSource, + "DataCollectionRuleEventHubDataSource", + "csharp" +); +@@clientName( + DataCollectionApi.StorageBlobDestination, + "DataCollectionRuleStorageBlobDestination", + "csharp" +); +@@clientName( + DataCollectionApi.StorageTableDestination, + "DataCollectionRuleStorageTableDestination", + "csharp" +); +@@clientName( + DataCollectionApi.EndpointsSpec, + "DataCollectionEndpointsInfo", + "csharp" +); +@@clientName( + DataCollectionApi.ReferencesSpec, + "DataCollectionReferencesInfo", + "csharp" +); +@@clientName(DataCollectionApi.AgentSetting, "MonitorAgentSetting", "csharp"); +@@clientName( + DataCollectionApi.KnownAgentSettingName, + "KnownMonitorAgentSettingName", + "csharp" +); +@@clientName( + DataCollectionApi.StorageBlob, + "DataCollectionRuleEnrichmentStorageBlob", + "csharp" +); +@@clientName( + DataCollectionApi.ApplicationInsights, + "MonitorApplicationInsightsReference", + "csharp" +); +@@clientName( + DataCollectionApi.DirectDataSourcesSpec, + "DataCollectionRuleDirectDataSourcesBase", + "csharp" +); +@@clientName(DataCollectionApi.LogsQuotaSpec, "LogsQuotaInfo", "csharp"); +@@clientName( + DataCollectionApi.PerformanceCountersOTelDataSource, + "PerformanceCountersOtelDataSource", + "csharp" +); +@@clientName( + DataCollectionApi.KnownPerformanceCountersOTelDataSourceStreams, + "KnownPerformanceCountersOtelDataSourceStreams", + "csharp" +); +@@clientName( + DataCollectionApi.DataFlow.captureOverflow, + "ShouldCaptureOverflow", + "csharp" +); +@@clientName( + DataCollectionApi.OtelLogsDataSource.replaceResourceIdWithReference, + "ShouldReplaceResourceIdWithReference", + "csharp" +); +@@clientName( + DataCollectionApi.OtelLogsDirectDataSource.replaceResourceIdWithReference, + "ShouldReplaceResourceIdWithReference", + "csharp" +); +@@clientName( + DataCollectionApi.OtelTracesDataSource.replaceResourceIdWithReference, + "ShouldReplaceResourceIdWithReference", + "csharp" +); +@@clientName( + DataCollectionApi.OtelTracesDirectDataSource.replaceResourceIdWithReference, + "ShouldReplaceResourceIdWithReference", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.AccessModeSettings, + "MonitorPrivateLinkAccessModeSettings", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.AccessModeSettingsExclusion, + "MonitorPrivateLinkAccessModeSettingsExclusion", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.AccessMode, + "MonitorPrivateLinkAccessMode", + "csharp" +); +@@clientName(AutoScaleApi.TimeWindow, "MonitorTimeWindow", "csharp"); +@@clientName(AutoScaleApi.Recurrence, "MonitorRecurrence", "csharp"); +@@clientName(AutoScaleApi.ScaleAction, "MonitorScaleAction", "csharp"); +@@clientName(AutoScaleApi.ScaleCapacity, "MonitorScaleCapacity", "csharp"); +@@clientName(AutoScaleApi.ScaleRule, "AutoscaleRule", "csharp"); +@@clientName( + AutoScaleApi.TimeAggregationType, + "MetricTriggerTimeAggregationType", + "csharp" +); +@@clientName(AutoScaleApi.ScaleDirection, "MonitorScaleDirection", "csharp"); +@@clientName( + AutoScaleApi.ComparisonOperationType, + "MetricTriggerComparisonOperator", + "csharp" +); +@@clientName(AutoScaleApi.ScaleType, "MonitorScaleType", "csharp"); +@@clientName( + AutoScaleApi.ScaleRuleMetricDimension, + "AutoscaleRuleMetricDimension", + "csharp" +); +@@clientName( + AutoScaleApi.MetricTrigger.metricResourceUri, + "MetricResourceId", + "csharp" +); +@@alternateType( + AutoScaleApi.MetricTrigger.metricResourceUri, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@clientName( + AutoScaleApi.MetricTrigger.operator, + "ComparisonOperator", + "csharp" +); +@@clientName( + AutoScaleApi.MetricTrigger.dividePerInstance, + "IsDividedPerInstance", + "csharp" +); +@@clientName(AutoScaleApi.ScaleAction.type, "ScaleType", "csharp"); +@@clientName(AutoScaleApi.TimeWindow.start, "StartOn", "csharp"); +@@clientName(AutoScaleApi.TimeWindow.end, "EndOn", "csharp"); +@@clientName( + MetricAlertApi.AggregationTypeEnum, + "MetricCriteriaTimeAggregationType", + "csharp" +); +@@clientName(MetricAlertApi.Operator, "MetricCriteriaOperator", "csharp"); +@@clientName( + AutoScaleApi.ScaleRuleMetricDimensionOperationType.Equals, + "EqualsValue", + "csharp" +); +@@clientName(MetricAlertApi.Operator.Equals, "EqualsValue", "csharp"); +@@clientName(AutoScaleApi.AutoscaleSetting.enabled, "IsEnabled", "csharp"); +@@clientName( + AutoScaleApi.AutoscaleSetting.notifications, + "Notifications", + "csharp" +); +@@clientName( + AutoScaleApi.AutoscaleSetting.targetResourceUri, + "TargetResourceId", + "csharp" +); +@@alternateType( + AutoScaleApi.AutoscaleSetting.targetResourceUri, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + AutoScaleApi.AutoscaleSetting.targetResourceLocation, + Azure.Core.azureLocation, + "csharp" +); +@@clientName( + AutoScaleApi.PredictiveResponse, + "AutoscaleSettingPredicativeResult", + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionEndpointResource.etag, + "ETag", + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionEndpointResource.etag, + Azure.Core.eTag, + "csharp" +); +@@alternateType( + Azure.ResourceManager.Legacy.EntityTagProperty.etag, + Azure.Core.eTag, + "csharp" +); +@@clientName( + DataCollectionApi.DataCollectionEndpointResource.identity, + "Identity", + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionEndpointResource.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionRuleResource.etag, + Azure.Core.eTag, + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionRuleResource.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertResource.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + MetricAlertApi.MetricAlertResourcePatch.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + ScheduledQueryRuleApi.ScheduledQueryRuleResource.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + ScheduledQueryRuleApi.ScheduledQueryRuleResourcePatch.identity, + Azure.ResourceManager.CommonTypes.ManagedServiceIdentity, + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionRule.dataCollectionEndpointId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionRuleAssociation.dataCollectionRuleId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + DataCollectionApi.DataCollectionRuleAssociation.dataCollectionEndpointId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + DataCollectionApi.Metadata.provisionedByResourceId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + DataCollectionApi.StorageBlob.resourceId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType( + DataCollectionApi.AdxDestination.resourceId, + Azure.Core.armResourceIdentifier, + "csharp" +); +@@alternateType(DataCollectionApi.AdxDestination.ingestionUri, url, "csharp"); +@@clientName( + DataCollectionApi.DataCollectionRuleAssociationProxyOnlyResource.etag, + "ETag", + "csharp" +); +@@clientName( + ActivityLogAlertsApi.AlertRuleLeafCondition.equals, + "EqualsValue", + "csharp" +); +@@clientName( + ActivityLogAlertsApi.AlertRuleAnyOfOrLeafCondition, + "ActivityLogAlertAnyOfOrLeafCondition", + "csharp" +); +@@clientName(ActionGroupsApi.EmailReceiver, "MonitorEmailReceiver", "csharp"); +@@clientName(ActionGroupsApi.SmsReceiver, "MonitorSmsReceiver", "csharp"); +@@clientName( + ActionGroupsApi.WebhookReceiver, + "MonitorWebhookReceiver", + "csharp" +); +@@clientName(ActionGroupsApi.ItsmReceiver, "MonitorItsmReceiver", "csharp"); +@@clientName( + ActionGroupsApi.AzureAppPushReceiver, + "MonitorAzureAppPushReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.AutomationRunbookReceiver, + "MonitorAutomationRunbookReceiver", + "csharp" +); +@@clientName(ActionGroupsApi.VoiceReceiver, "MonitorVoiceReceiver", "csharp"); +@@clientName( + ActionGroupsApi.LogicAppReceiver, + "MonitorLogicAppReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.AzureFunctionReceiver, + "MonitorAzureFunctionReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.ArmRoleReceiver, + "MonitorArmRoleReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.EventHubReceiver, + "MonitorEventHubReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.IncidentReceiver, + "MonitorIncidentReceiver", + "csharp" +); +@@clientName( + ActionGroupsApi.IncidentServiceConnection, + "MonitorIncidentServiceConnection", + "csharp" +); +@@clientName( + ActionGroupsApi.IncidentManagementService, + "MonitorIncidentManagementService", + "csharp" +); +@@clientName(ActionGroupsApi.ReceiverStatus, "MonitorReceiverStatus", "csharp"); +@@clientName( + DataCollectionApi.KnownDataCollectionEndpointResourceKind, + "DataCollectionEndpointResourceKind", + "csharp" +); +@@clientName( + DataCollectionApi.KnownDataCollectionEndpointProvisioningState, + "DataCollectionEndpointProvisioningState", + "csharp" +); +@@clientName( + DataCollectionApi.KnownPublicNetworkAccessOptions, + "MonitorPublicNetworkAccess", + "csharp" +); +@@clientName( + DataCollectionApi.PrivateLinkScopedResource, + "DataCollectionRulePrivateLinkScopedResourceInfo", + "csharp" +); +@@clientName( + DataCollectionApi.ColumnDefinition.type, + "DefinitionType", + "csharp" +); +@@clientName( + DataCollectionApi.KnownDataCollectionRuleResourceKind, + "DataCollectionRuleResourceKind", + "csharp" +); +@@clientName( + DataCollectionApi.KnownDataCollectionRuleProvisioningState, + "DataCollectionRuleProvisioningState", + "csharp" +); +@@clientName( + DataCollectionApi.StreamDeclaration, + "DataStreamDeclaration", + "csharp" +); +@@clientName( + DataCollectionApi.ColumnDefinition, + "DataColumnDefinition", + "csharp" +); +@@clientName(ScheduledQueryRuleApi.Kind, "ScheduledQueryRuleKind", "csharp"); +@@clientName( + ScheduledQueryRuleApi.TimeAggregation, + "ScheduledQueryRuleTimeAggregationType", + "csharp" +); +@@clientName( + Microsoft.Common.CriterionType, + "ScheduledQueryRuleCriterionType", + "csharp" +); +@@clientName(ScheduledQueryRuleApi.Dimension, "MonitorDimension", "csharp"); +@@clientName( + ScheduledQueryRuleApi.DimensionOperator, + "MonitorDimensionOperator", + "csharp" +); +@@clientName( + ScheduledQueryRuleApi.Condition, + "ScheduledQueryRuleCondition", + "csharp" +); +@@clientName( + ScheduledQueryRuleApi.Actions, + "ScheduledQueryRuleActions", + "csharp" +); +@@clientName( + AutoScaleApi.AutoscaleSetting.name, + "AutoscaleSettingName", + "csharp" +); +@@clientName(ActivityLogsApi.EventData, "EventDataInfo", "csharp"); +@@clientName( + ActivityLogsApi.HttpRequestInfo, + "EventDataHttpRequestInfo", + "csharp" +); +@@clientName( + ActivityLogsApi.HttpRequestInfo.clientIpAddress, + "ClientIPAddress", + "csharp" +); +@@alternateType( + ActivityLogsApi.HttpRequestInfo.clientIpAddress, + Azure.Core.ipV4Address, + "csharp" +); +@@clientName(ActivityLogsApi.EventLevel, "MonitorEventLevel", "csharp"); +@@clientName(LocalizableString, "MonitorLocalizableString", "csharp"); +@@clientName( + MetricBaselinesApi.SingleMetricBaseline, + "MonitorSingleMetricBaseline", + "csharp" +); +@@clientName( + MetricBaselinesApi.TimeSeriesBaseline, + "MonitorTimeSeriesBaseline", + "csharp" +); +@@clientName( + MetricBaselinesApi.MetricSingleDimension, + "MonitorMetricSingleDimension", + "csharp" +); +@@clientName( + MetricBaselinesApi.SingleBaseline, + "MonitorSingleBaseline", + "csharp" +); +@@clientName( + MetricBaselinesApi.BaselineSensitivity, + "MonitorBaselineSensitivity", + "csharp" +); +@@clientName( + MetricBaselinesApi.BaselineMetadata, + "MonitorBaselineMetadata", + "csharp" +); +@@clientName(MetricsApi.MetricDefinition, "MonitorMetricDefinition", "csharp"); +@@clientName( + MetricsApi.MetricDefinition.primaryAggregationType, + "PrimaryAggregationKind", + "csharp" +); +@@clientName( + MetricsApi.MetricDefinition.supportedAggregationTypes, + "SupportedAggregationKinds", + "csharp" +); +@@clientName(MetricsApi.MetricClass, "MonitorMetricClass", "csharp"); +@@clientName( + MetricsApi.MetricAvailability, + "MonitorMetricAvailability", + "csharp" +); +@@clientName( + MetricsApi.MetricAggregationType, + "MonitorAggregationKind", + "csharp" +); +@@clientName(MetricsApi.MetricUnit, "MonitorMetricUnit", "csharp"); +@@clientName(MetricsApi.MetricNamespace, "MonitorMetricNamespace", "csharp"); +@@clientName( + MetricsApi.NamespaceClassification, + "MonitorNamespaceClassification", + "csharp" +); +@@clientName(MetricsApi.MetricResultType, "MonitorMetricResultType", "csharp"); +@@clientName( + MetricsApi.MetricNamespaceName.metricNamespaceName, + "MetricNamespaceNameValue", + "csharp" +); +@@clientName(MetricsApi.Metric, "MonitorMetric", "csharp"); +@@clientName(MetricsApi.Metric.type, "MetricType", "csharp"); +@@clientName( + MetricsApi.TimeSeriesElement, + "MonitorTimeSeriesElement", + "csharp" +); +@@clientName(MetricsApi.MetadataValue, "MonitorMetadataValue", "csharp"); +@@clientName(MetricsApi.MetricValue, "MonitorMetricValue", "csharp"); +@@clientName( + MetricsApi.SubscriptionScopeMetricDefinition, + "MonitorSubscriptionScopeMetric", + "csharp" +); +@@clientName( + AutoScaleApi.AutoscaleSettingResources.predictiveMetricGet, + "GetPredictiveMetric", + "csharp" +); +@@clientName( + MetricsApi.MetricDefinitionsOperationGroup.list, + "GetMonitorMetricDefinitions", + "csharp" +); +@@clientName( + MetricsApi.MetricDefinitionsOperationGroup.listAtSubscriptionScope, + "GetSubscriptionMonitorMetricDefinitions", + "csharp" +); +@@clientName( + MetricsApi.MetricNamespacesOperationGroup.list, + "GetMonitorMetricNamespaces", + "csharp" +); +@@clientName(ResultType, "MonitorResultType", "csharp"); +@@clientName( + MetricsApi.SubscriptionScopeMetricDefinition.primaryAggregationType, + "PrimaryAggregationKind", + "csharp" +); +@@clientName( + MetricsApi.SubscriptionScopeMetricDefinition.supportedAggregationTypes, + "SupportedAggregationKinds", + "csharp" +); +@@clientName( + ServiceDiagnosticsSettingsApi.MetricSettings.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + ServiceDiagnosticsSettingsApi.LogSettings.enabled, + "IsEnabled", + "csharp" +); +@@clientName(Microsoft.Common.RetentionPolicy.enabled, "IsEnabled", "csharp"); +@@clientName(ActionGroupsApi.ActionDetail.SendTime, "SendOn", "csharp"); +@@clientName( + ActionGroupsApi.TestNotificationDetailsResponse.completedTime, + "CompletedOn", + "csharp" +); +@@clientName( + ActionGroupsApi.TestNotificationDetailsResponse.createdTime, + "CreatedOn", + "csharp" +); +@@clientName( + ScheduledQueryRuleApi.ScheduledQueryRuleProperties.enabled, + "IsEnabled", + "csharp" +); +@@clientName( + ScheduledQueryRuleApi.RuleResolveConfiguration.autoResolved, + "IsAutoResolved", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties.privateLinkServiceConnectionState, + "ConnectionState", + "csharp" +); +@@clientName( + PrivateLinkScopesApi.PrivateLinkResources.listByPrivateLinkScope, + "GetAllPrivateLinkResources", + "csharp" +); + +// LRO status polling endpoints are implementation details and should not generate public C# SDK methods. +@@scope(PrivateLinkScopeOperationStatusOperationGroup.get, "!csharp"); + +// Monitor C# names for Network Security Perimeter common types need package and feature context. +@@clientName( + Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter, + "MonitorNetworkSecurityPerimeter", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration, + "MonitorNetworkSecurityPerimeterConfigurationData", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties, + "MonitorNetworkSecurityPerimeterConfigurationProperties", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProvisioningState, + "MonitorNetworkSecurityPerimeterConfigurationProvisioningState", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.NetworkSecurityProfile, + "MonitorNetworkSecurityProfile", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.AccessRule, + "MonitorNetworkSecurityPerimeterConfigurationAccessRule", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.AccessRuleDirection, + "MonitorNetworkSecurityPerimeterConfigurationAccessRuleDirection", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.AccessRuleProperties, + "MonitorNetworkSecurityPerimeterConfigurationAccessRuleProperties", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.IssueType, + "MonitorNetworkSecurityPerimeterConfigurationIssueType", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.ProvisioningIssue, + "MonitorNetworkSecurityPerimeterConfigurationProvisioningIssue", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties, + "MonitorNetworkSecurityPerimeterConfigurationProvisioningIssueProperties", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.ResourceAssociation, + "MonitorNetworkSecurityPerimeterConfigurationResourceAssociation", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.ResourceAssociationAccessMode, + "MonitorNetworkSecurityPerimeterConfigurationResourceAssociationAccessMode", + "csharp" +); +@@clientName( + Azure.ResourceManager.CommonTypes.Severity, + "MonitorNetworkSecurityPerimeterConfigurationIssueSeverity", + "csharp" +); +@@alternateType( + Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter.location, + Azure.Core.azureLocation, + "csharp" +); + +/** Days of the week accepted by Monitor recurring schedules. */ +union MonitorDayOfWeek { + string, + + /** Sunday. */ + Sunday: "Sunday", + + /** Monday. */ + Monday: "Monday", + + /** Tuesday. */ + Tuesday: "Tuesday", + + /** Wednesday. */ + Wednesday: "Wednesday", + + /** Thursday. */ + Thursday: "Thursday", + + /** Friday. */ + Friday: "Friday", + + /** Saturday. */ + Saturday: "Saturday", +} + +/** Monitor autoscale operation type. */ +union MonitorOperationType { + string, + + /** Scale operation. */ + Scale: "Scale", +} + +/** Monitor condition comparison operator. */ +#suppress "@azure-tools/typespec-azure-core/no-enum" "C# compatibility alternate type must generate the shipped MonitorConditionOperator extensible enum" +enum MonitorConditionOperator { + /** Greater than. */ + GreaterThan: "GreaterThan", + + /** Greater than or equal. */ + GreaterThanOrEqual: "GreaterThanOrEqual", + + /** Less than. */ + LessThan: "LessThan", + + /** Less than or equal. */ + LessThanOrEqual: "LessThanOrEqual", + + /** Equals. */ + EqualsValue: "Equals", +} + +@@alternateType( + AutoScaleApi.RecurrentSchedule.days, + MonitorDayOfWeek[], + "csharp" +); +@@alternateType( + AutoScaleApi.AutoscaleNotification.operation, + MonitorOperationType, + "csharp" +); +@@alternateType( + ScheduledQueryRuleApi.Condition.operator, + MonitorConditionOperator, + "csharp" +); + #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "list should be pageable" @@Azure.ClientGenerator.Core.Legacy.markAsPageable( PrivateLinkScopesApi.PrivateEndpointConnections.listByPrivateLinkScope, - "java,python" + "csharp,java,python" ); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "list should be pageable" @@Azure.ClientGenerator.Core.Legacy.markAsPageable( PrivateLinkScopesApi.PrivateLinkResources.listByPrivateLinkScope, - "python" + "csharp,python" ); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "list should be pageable" @@Azure.ClientGenerator.Core.Legacy.markAsPageable( MetricAlertApi.MetricAlertResources.list, - "java" + "csharp,java" ); #suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "list should be pageable" @@Azure.ClientGenerator.Core.Legacy.markAsPageable( MetricAlertApi.MetricAlertResources.listByName, - "java" + "csharp,java" ); // ActivityLogAlerts - rename back to match fluent SDK expected names @@ -110,12 +1350,12 @@ namespace Microsoft.InsightsCombinedClient; @@clientName( Azure.ResourceManager.CommonTypes.ErrorResponse, "ErrorResponseAutoGenerated", - "java,python" + "java,python,csharp" ); @@clientName( Azure.ResourceManager.CommonTypes.ErrorDetail, "ErrorDetailAutoGenerated", - "java,python" + "java,python,csharp" ); // Response.resourceregion - rename to resourceRegion for Java camelCase @@ -151,11 +1391,12 @@ model MetricSettings { */ retentionPolicy?: Microsoft.Common.RetentionPolicy; } +@@clientName(MetricSettings.enabled, "IsEnabled", "csharp"); @@alternateType( ServiceDiagnosticsSettingsApi.MetricSettings, MetricSettings, - "java,python" + "csharp,java,python" ); /** @@ -182,11 +1423,12 @@ model LogSettings { */ retentionPolicy?: Microsoft.Common.RetentionPolicy; } +@@clientName(LogSettings.enabled, "IsEnabled", "csharp"); @@alternateType( ServiceDiagnosticsSettingsApi.LogSettings, LogSettings, - "java,python" + "csharp,java,python" ); @@clientLocation( @@ -204,6 +1446,21 @@ model LogSettings { "NspScheduledQueryRule", "java" ); +@@clientName( + NetworkSecurityPerimeterApi.ScheduledQueryRule.getNSP, + "GetNetworkSecurityPerimeterConfiguration", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.ScheduledQueryRule.listNSP, + "GetNetworkSecurityPerimeterConfigurations", + "csharp" +); +@@clientName( + NetworkSecurityPerimeterApi.ScheduledQueryRule.reconcileNSP, + "ReconcileNetworkSecurityPerimeterConfiguration", + "csharp" +); @@alternateType(AutoscaleNotification.operation, "Scale", "java"); @@ -215,11 +1472,11 @@ model LogSettings { "java" ); -@@clientName(AlertSeverity.`0`, "Zero", "go,javascript"); -@@clientName(AlertSeverity.`1`, "One", "go,javascript"); -@@clientName(AlertSeverity.`2`, "Two", "go,javascript"); -@@clientName(AlertSeverity.`3`, "Three", "go,javascript"); -@@clientName(AlertSeverity.`4`, "Four", "go,javascript"); +@@clientName(AlertSeverity.`0`, "Zero", "csharp,go,javascript"); +@@clientName(AlertSeverity.`1`, "One", "csharp,go,javascript"); +@@clientName(AlertSeverity.`2`, "Two", "csharp,go,javascript"); +@@clientName(AlertSeverity.`3`, "Three", "csharp,go,javascript"); +@@clientName(AlertSeverity.`4`, "Four", "csharp,go,javascript"); @@alternateType(AutoscaleNotification.operation, "Scale", "go"); @@ -230,10 +1487,15 @@ model AccessRulePropertiesSubscriptionsItem { /** The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000') */ id?: Azure.Core.armResourceIdentifier; } +@@clientName( + AccessRulePropertiesSubscriptionsItem, + "MonitorNetworkSecurityPerimeterConfigurationAccessRuleSubscription", + "csharp" +); @@alternateType( Azure.ResourceManager.CommonTypes.AccessRuleProperties.subscriptions, - AccessRulePropertiesSubscriptionsItem, - "go" + AccessRulePropertiesSubscriptionsItem[], + "csharp,go" ); @@clientName( Azure.ResourceManager.CommonTypes.ErrorDetail, @@ -286,6 +1548,46 @@ model AccessRulePropertiesSubscriptionsItem { "DD_MMM_YYYY_HH_MM_SS_ZZZ", "python" ); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`YYYY-MM-DD HH:MM:SS`, + "YyyyMmDdHhMmSs", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`M/D/YYYY HH:MM:SS AM/PM`, + "MDYyyyHhMmSsAMPM", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`Mon DD, YYYY HH:MM:SS`, + "MonDdYyyyHhMmSs", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`yyMMdd HH:mm:ss`, + "YyMMddHhMmSs", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`ddMMyy HH:mm:ss`, + "DdMMyyHhMmSs", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`MMM d hh:mm:ss`, + "MmmDHhMmSs", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`dd/MMM/yyyy:HH:mm:ss zzz`, + "DdMmmYyyyHhMmSsZzz", + "csharp" +); +@@clientName( + DataCollectionApi.KnownLogFileTextSettingsRecordStartTimestampFormat.`yyyy-MM-ddTHH:mm:ssK`, + "YyyyMmDdTHHMmSsK", + "csharp" +); @@clientName(AlertSeverity.`0`, "ZERO", "python"); @@clientName(AlertSeverity.`1`, "ONE", "python"); @@clientName(AlertSeverity.`2`, "TWO", "python"); diff --git a/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2024-03-11/dataCollection.json b/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2024-03-11/dataCollection.json index 8e832017a218..fb075456ffe4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2024-03-11/dataCollection.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2024-03-11/dataCollection.json @@ -159,7 +159,7 @@ { "name": "resourceUri", "in": "path", - "description": "The identifier of the resource.", + "description": "The fully qualified Azure Resource manager identifier of the resource.", "required": true, "type": "string", "minLength": 1, diff --git a/specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml b/specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml index 629598a7966b..a3b15a353a46 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml +++ b/specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml @@ -55,3 +55,6 @@ options: generate-fakes: true head-as-boolean: true inject-spans: true + "@azure-typespec/http-client-csharp-mgmt": + namespace: "Azure.ResourceManager.Monitor" + emitter-output-dir: "{output-dir}/{service-dir}/{namespace}"