From 50cab8f0bb64a8a31ce526fd625d55b3234c46b8 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Mon, 28 Apr 2025 09:59:16 +0800 Subject: [PATCH 01/32] newly converted --- .../DatadogMonitorResource.tsp | 185 ++++ .../DatadogSingleSignOnResource.tsp | 55 ++ .../MonitoredSubscriptionProperties.tsp | 81 ++ .../Datadog.Management/MonitoringTagRules.tsp | 57 ++ .../Datadog.Management/back-compatible.tsp | 18 + .../2023-10-20/ApiKeys_GetDefaultKey.json | 20 + .../examples/2023-10-20/ApiKeys_List.json | 31 + .../2023-10-20/ApiKeys_SetDefaultKey.json | 16 + .../examples/2023-10-20/BillingInfo_Get.json | 28 + .../2023-10-20/CreationSupported_Get.json | 19 + .../2023-10-20/CreationSupported_List.json | 24 + .../examples/2023-10-20/Hosts_List.json | 63 ++ .../2023-10-20/LinkedResources_List.json | 21 + .../MarketplaceAgreements_Create.json | 32 + .../MarketplaceAgreements_List.json | 47 + .../2023-10-20/MonitoredResources_List.json | 25 + ...MonitoredSubscriptions_CreateorUpdate.json | 209 +++++ .../MonitoredSubscriptions_Delete.json | 20 + .../MonitoredSubscriptions_Get.json | 78 ++ .../MonitoredSubscriptions_List.json | 81 ++ .../MonitoredSubscriptions_Update.json | 144 +++ .../examples/2023-10-20/Monitors_Create.json | 88 ++ .../examples/2023-10-20/Monitors_Delete.json | 19 + .../examples/2023-10-20/Monitors_Get.json | 37 + .../examples/2023-10-20/Monitors_List.json | 40 + .../Monitors_ListByResourceGroup.json | 39 + .../examples/2023-10-20/Monitors_Update.json | 71 ++ .../examples/2023-10-20/Operations_List.json | 25 + .../2023-10-20/RefreshSetPassword_Get.json | 17 + ...leSignOnConfigurations_CreateOrUpdate.json | 41 + .../SingleSignOnConfigurations_Get.json | 24 + .../SingleSignOnConfigurations_List.json | 27 + .../2023-10-20/TagRules_CreateOrUpdate.json | 68 ++ .../examples/2023-10-20/TagRules_Get.json | 43 + .../examples/2023-10-20/TagRules_List.json | 46 + .../datadog/Datadog.Management/main.tsp | 50 ++ .../datadog/Datadog.Management/models.tsp | 837 ++++++++++++++++++ .../datadog/Datadog.Management/routes.tsp | 91 ++ .../datadog/Datadog.Management/tspconfig.yaml | 13 + 39 files changed, 2830 insertions(+) create mode 100644 specification/datadog/Datadog.Management/DatadogMonitorResource.tsp create mode 100644 specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp create mode 100644 specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp create mode 100644 specification/datadog/Datadog.Management/MonitoringTagRules.tsp create mode 100644 specification/datadog/Datadog.Management/back-compatible.tsp create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json create mode 100644 specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json create mode 100644 specification/datadog/Datadog.Management/main.tsp create mode 100644 specification/datadog/Datadog.Management/models.tsp create mode 100644 specification/datadog/Datadog.Management/routes.tsp create mode 100644 specification/datadog/Datadog.Management/tspconfig.yaml diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp new file mode 100644 index 000000000000..b9fcd016878a --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -0,0 +1,185 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +model DatadogMonitorResource + is Azure.ResourceManager.TrackedResource { + ...ResourceNameParameter< + Resource = DatadogMonitorResource, + KeyName = "monitorName", + SegmentName = "monitors", + NamePattern = "" + >; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + sku?: ResourceSku; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + identity?: IdentityProperties; +} + +@armResourceOperations +interface DatadogMonitorResources { + /** + * Get the properties of a specific monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_Get") + get is ArmResourceRead; + + /** + * Create a monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_Create") + create is ArmResourceCreateOrReplaceAsync; + + /** + * Update a monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @patch(#{ implicitOptionality: false }) + @operationId("Monitors_Update") + update is ArmCustomPatchAsync< + DatadogMonitorResource, + PatchModel = DatadogMonitorResourceUpdateParameters, + Response = ArmResponse | ArmResourceCreatedResponse + >; + + /** + * Delete a monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + @operationId("Monitors_Delete") + delete is ArmResourceDeleteWithoutOkAsync< + DatadogMonitorResource, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List all monitors under the specified resource group. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_ListByResourceGroup") + listByResourceGroup is ArmResourceListByParent< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List all monitors under the specified subscription. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_List") + list is ArmListBySubscription< + DatadogMonitorResource, + Response = ArmResponse + >; + + /** + * List the api keys for a given monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_ListApiKeys") + listApiKeys is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Get the default api key. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_GetDefaultKey") + getDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Set the default api key. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_SetDefaultKey") + setDefaultKey is ArmResourceActionSync< + DatadogMonitorResource, + { + @bodyRoot + body?: DatadogApiKey; + }, + OkResponse + >; + + /** + * List the hosts for a given monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_ListHosts") + listHosts is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List all Azure resources associated to the same Datadog organization as the target resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_ListLinkedResources") + listLinkedResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * List the resources currently being monitored by the Datadog monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_ListMonitoredResources") + listMonitoredResources is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Refresh the set password link and return a latest one. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("Monitors_RefreshSetPasswordLink") + refreshSetPasswordLink is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; + + /** + * Get marketplace and organization info mapped to the given monitor. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @action("getBillingInfo") + @operationId("BillingInfo_Get") + billingInfoGet is ArmResourceActionSync< + DatadogMonitorResource, + void, + ArmResponse + >; +} + +@@doc(DatadogMonitorResource.name, "Monitor resource name"); +@@doc(DatadogMonitorResource.properties, + "Properties specific to the monitor resource." +); +@@doc(DatadogMonitorResources.create::parameters.resource, ""); +@@doc(DatadogMonitorResources.update::parameters.properties, ""); diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp new file mode 100644 index 000000000000..2eea592e5b00 --- /dev/null +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -0,0 +1,55 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +@parentResource(DatadogMonitorResource) +model DatadogSingleSignOnResource + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = DatadogSingleSignOnResource, + KeyName = "configurationName", + SegmentName = "singleSignOnConfigurations", + NamePattern = "" + >; +} + +@armResourceOperations +interface DatadogSingleSignOnResources { + /** + * Gets the datadog single sign-on resource for the given Monitor. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("SingleSignOnConfigurations_Get") + get is ArmResourceRead; + + /** + * Configures single-sign-on for this resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("SingleSignOnConfigurations_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceAsync; + + /** + * List the single sign-on configurations for a given monitor resource. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @operationId("SingleSignOnConfigurations_List") + list is ArmResourceListByParent< + DatadogSingleSignOnResource, + Response = ArmResponse + >; +} + +@@doc(DatadogSingleSignOnResource.name, "Configuration name"); +@@doc(DatadogSingleSignOnResource.properties, ""); +@@doc(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp new file mode 100644 index 000000000000..47f01e46d6e1 --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -0,0 +1,81 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; +/** + * The request to update subscriptions needed to be monitored by the Datadog monitor resource. + */ +@parentResource(DatadogMonitorResource) +model MonitoredSubscriptionProperties + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = MonitoredSubscriptionProperties, + KeyName = "configurationName", + SegmentName = "monitoredSubscriptions", + NamePattern = "" + >; +} + +@armResourceOperations +interface MonitoredSubscriptions { + /** + * List the subscriptions currently being monitored by the Datadog monitor resource. + */ + get is ArmResourceRead; + + /** + * Add the subscriptions that should be monitored by the Datadog monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" + createorUpdate is ArmResourceCreateOrReplaceAsync< + MonitoredSubscriptionProperties, + Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< + MonitoredSubscriptionProperties, + ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + > | ArmAcceptedLroResponse + >; + + /** + * Updates the subscriptions that are being monitored by the Datadog monitor resource + */ + @patch(#{ implicitOptionality: false }) + update is ArmCustomPatchAsync< + MonitoredSubscriptionProperties, + PatchModel = MonitoredSubscriptionProperties + >; + + /** + * Updates the subscriptions that are being monitored by the Datadog monitor resource + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + delete is ArmResourceDeleteWithoutOkAsync< + MonitoredSubscriptionProperties, + Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse + >; + + /** + * List the subscriptions currently being monitored by the Datadog monitor resource. + */ + list is ArmResourceListByParent< + MonitoredSubscriptionProperties, + Response = ArmResponse + >; +} + +@@doc(MonitoredSubscriptionProperties.name, + "The configuration name. Only 'default' value is supported." +); +@@doc(MonitoredSubscriptionProperties.properties, + "The request to update subscriptions needed to be monitored by the Datadog monitor resource." +); +@@doc(MonitoredSubscriptions.createorUpdate::parameters.resource, ""); +@@doc(MonitoredSubscriptions.update::parameters.properties, ""); diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp new file mode 100644 index 000000000000..dcc7c6cfa5dd --- /dev/null +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -0,0 +1,57 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./DatadogMonitorResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; +/** + * Capture logs and metrics of Azure resources based on ARM tags. + */ +@parentResource(DatadogMonitorResource) +model MonitoringTagRules + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = MonitoringTagRules, + KeyName = "ruleSetName", + SegmentName = "tagRules", + NamePattern = "" + >; +} + +@armResourceOperations +interface TagRules { + /** + * Get a tag rule set for a given monitor resource. + */ + get is ArmResourceRead; + + /** + * Create or update a tag rule set for a given monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" + createOrUpdate is ArmResourceCreateOrReplaceSync< + MonitoringTagRules, + Response = ArmResourceUpdatedResponse + >; + + /** + * List the tag rules for a given monitor resource. + */ + list is ArmResourceListByParent< + MonitoringTagRules, + Response = ArmResponse + >; +} + +@@doc(MonitoringTagRules.name, "Rule set name"); +@@doc(MonitoringTagRules.properties, + "Definition of the properties for a TagRules resource." +); +@@doc(TagRules.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp new file mode 100644 index 000000000000..565d9dea861c --- /dev/null +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -0,0 +1,18 @@ +import "@azure-tools/typespec-client-generator-core"; + +using Azure.ClientGenerator.Core; +using Microsoft.Datadog; + +@@clientName(DatadogMonitorResources.create::parameters.resource, "body"); +@@clientName(DatadogMonitorResources.update::parameters.properties, "body"); + +@@clientName(TagRules.createOrUpdate::parameters.resource, "body"); + +@@clientName(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, + "body" +); + +@@clientName(MonitoredSubscriptions.createorUpdate::parameters.resource, + "body" +); +@@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json new file mode 100644 index 000000000000..d86a274d5bc2 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + } + } + }, + "operationId": "Monitors_GetDefaultKey", + "title": "Monitors_GetDefaultKey" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json new file mode 100644 index 000000000000..b8f32c0361a9 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "", + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + { + "name": "", + "created": "2019-04-05 09:19:53", + "createdBy": "jane@example.com", + "key": "2111111111111111aaaaaaaaaaaaaaaa" + } + ] + } + } + }, + "operationId": "Monitors_ListApiKeys", + "title": "Monitors_ListApiKeys" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json new file mode 100644 index 000000000000..47708dbae999 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "key": "1111111111111111aaaaaaaaaaaaaaaa" + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {} + }, + "operationId": "Monitors_SetDefaultKey", + "title": "Monitors_SetDefaultKey" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json new file mode 100644 index 000000000000..7db5b2248851 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "marketplaceSaasInfo": { + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "marketplaceName": "MP_RESOURCE", + "marketplaceStatus": "Status", + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "subscribed": true + }, + "partnerBillingEntity": { + "name": "datadogOrganizationName", + "id": "1234567890", + "partnerEntityUri": "https://example.com" + } + } + } + }, + "operationId": "BillingInfo_Get", + "title": "BillingInfo_Get" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json new file mode 100644 index 000000000000..d700744288c8 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + } + }, + "operationId": "CreationSupported_Get", + "title": "CreationSupported_Get" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json new file mode 100644 index 000000000000..2bebc39304aa --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "properties": { + "name": "/subscriptions/00000000-0000-0000-0000-000000000000", + "creationSupported": true + } + } + ] + } + } + }, + "operationId": "CreationSupported_List", + "title": "CreationSupported_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json new file mode 100644 index 000000000000..ae261069a225 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "vm1", + "aliases": [ + "vm1", + "65f2dd83-95ae-4f56-b6aa-a5dafc05f4cd" + ], + "apps": [ + "ntp", + "agent" + ], + "meta": { + "agentVersion": "7.19.2", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "" + } + } + }, + { + "name": "vm2", + "aliases": [ + "vm2", + "df631d9a-8178-4580-bf60-c697a5e8df4d" + ], + "apps": [ + "infra", + "agent" + ], + "meta": { + "agentVersion": "7.18.1", + "installMethod": { + "installerVersion": "install_script-1.0.0", + "tool": "install_script", + "toolVersion": "install_script" + }, + "logsAgent": { + "transport": "HTTP" + } + } + } + ] + } + } + }, + "operationId": "Monitors_ListHosts", + "title": "Monitors_ListHosts" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json new file mode 100644 index 000000000000..0681bad97b2b --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor" + } + ] + } + } + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json new file mode 100644 index 000000000000..fe626d4f8f38 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "accepted": true + } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", + "properties": { + "accepted": true, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + } + }, + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "title": "MarketplaceAgreements_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json new file mode 100644 index 000000000000..82bf16aee76f --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "planid1", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLink1", + "plan": "planid1", + "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", + "retrieveDatetime": "2017-08-15T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + }, + { + "name": "planid2", + "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", + "properties": { + "accepted": false, + "licenseTextLink": "test.licenseLin2k", + "plan": "planid2", + "privacyPolicyLink": "test.privacyPolicyLink2", + "product": "offid2", + "publisher": "pubid2", + "retrieveDatetime": "2017-08-14T11:33:07.12132Z", + "signature": "ASDFSDAFWEFASDGWERLWER" + } + } + ] + } + } + }, + "operationId": "MarketplaceAgreements_List", + "title": "MarketplaceAgreements_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json new file mode 100644 index 000000000000..376b75b2f833 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", + "reasonForLogsStatus": "CapturedByRules", + "reasonForMetricsStatus": "CapturedByRules", + "sendingLogs": true, + "sendingMetrics": true + } + ] + } + } + }, + "operationId": "Monitors_ListMonitoredResources", + "title": "Monitors_ListMonitoredResources" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json new file mode 100644 index 000000000000..69cd59d795f4 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json @@ -0,0 +1,209 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddBegin" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "201": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "title": "Monitors_AddMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json new file mode 100644 index 000000000000..7a85f7b2c4d6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "MonitoredSubscriptions_Delete", + "title": "Monitors_DeleteMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json new file mode 100644 index 000000000000..7c55a6af4f7e --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + } + }, + "operationId": "MonitoredSubscriptions_Get", + "title": "Monitors_GetMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json new file mode 100644 index 000000000000..7c56d77d0bb9 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + ] + } + } + }, + "operationId": "MonitoredSubscriptions_List", + "title": "Monitors_GetMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json new file mode 100644 index 000000000000..092d40b182fc --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json @@ -0,0 +1,144 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ], + "operation": "AddComplete" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", + "properties": { + "monitoredSubscriptionList": [ + { + "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + { + "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", + "tagRules": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + } + }, + "operationId": "MonitoredSubscriptions_Update", + "title": "Monitors_UpdateMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json new file mode 100644 index 000000000000..40cda6bc79bd --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "id": "myOrg123", + "linkingAuthCode": "someAuthCode", + "linkingClientId": "00000000-0000-0000-0000-000000000000" + }, + "monitoringStatus": "Enabled", + "userInfo": { + "name": "Alice", + "emailAddress": "alice@microsoft.com", + "phoneNumber": "123-456-7890" + } + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Create", + "title": "Monitors_Create" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json new file mode 100644 index 000000000000..56570cbd1bd2 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" + } + }, + "204": {} + }, + "operationId": "Monitors_Delete", + "title": "Monitors_Delete" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json new file mode 100644 index 000000000000..3e224a1ee2c2 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Get", + "title": "Monitors_Get" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json new file mode 100644 index 000000000000..d0c5975cf222 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_List", + "title": "Monitors_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json new file mode 100644 index 000000000000..db20b8016368 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "tags": { + "Environment": "Dev" + } + } + ] + } + } + }, + "operationId": "Monitors_ListByResourceGroup", + "title": "Monitors_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json new file mode 100644 index 000000000000..6a8c6323c80e --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json @@ -0,0 +1,71 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "monitoringStatus": "Enabled" + }, + "tags": { + "Environment": "Dev" + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "enterpriseAppId": null, + "id": "myOrg123", + "linkingAuthCode": null, + "linkingClientId": null + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + }, + "201": { + "body": { + "name": "myMonitor", + "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", + "properties": { + "datadogOrganizationProperties": { + "name": "myOrg", + "id": "myOrg123" + }, + "liftrResourceCategory": "MonitorLogs", + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" + }, + "tags": { + "Environment": "Dev" + } + } + } + }, + "operationId": "Monitors_Update", + "title": "Monitors_Update" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json new file mode 100644 index 000000000000..13c8916c1df6 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2023-10-20" + }, + "responses": { + "200": { + "body": { + "nextLink": null, + "value": [ + { + "name": "Microsoft.Datadog/monitors/write", + "display": { + "description": "Write monitors resource", + "operation": "write", + "provider": "Microsoft.Datadog", + "resource": "monitors" + } + } + ] + } + } + }, + "operationId": "Operations_List", + "title": "Operations_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json new file mode 100644 index 000000000000..cedc80e2de38 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" + } + } + }, + "operationId": "Monitors_RefreshSetPasswordLink", + "title": "Monitors_RefreshSetPasswordLink" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json new file mode 100644 index 000000000000..f0185c1cc185 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable" + } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + }, + "201": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": null + } + } + } + }, + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "title": "SingleSignOnConfigurations_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json new file mode 100644 index 000000000000..8721d22a879e --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + } + }, + "operationId": "SingleSignOnConfigurations_Get", + "title": "SingleSignOnConfigurations_Get" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json new file mode 100644 index 000000000000..d3ae5524ac05 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", + "properties": { + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", + "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" + } + } + ] + } + } + }, + "operationId": "SingleSignOnConfigurations_List", + "title": "SingleSignOnConfigurations_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json new file mode 100644 index 000000000000..4bebd07d3c67 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "body": { + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_CreateOrUpdate", + "title": "TagRules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json new file mode 100644 index 000000000000..e9e8ca74b252 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + } + }, + "operationId": "TagRules_Get", + "title": "TagRules_Get" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json new file mode 100644 index 000000000000..29d7d1624b74 --- /dev/null +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2023-10-20", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "default", + "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", + "properties": { + "automuting": true, + "logRules": { + "filteringTags": [ + { + "name": "Environment", + "action": "Include", + "value": "Prod" + }, + { + "name": "Environment", + "action": "Exclude", + "value": "Dev" + } + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true + }, + "metricRules": { + "filteringTags": [] + } + } + } + ] + } + } + }, + "operationId": "TagRules_List", + "title": "TagRules_List" +} \ No newline at end of file diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp new file mode 100644 index 000000000000..08ce299dda33 --- /dev/null +++ b/specification/datadog/Datadog.Management/main.tsp @@ -0,0 +1,50 @@ +/** + * PLEASE DO NOT REMOVE - USED FOR CONVERTER METRICS + * Generated by package: @autorest/openapi-to-typespec + * Parameters used: + * isFullCompatible: true + * guessResourceKey: false + * Version: 0.11.0 + * Date: 2025-04-28T01:57:40.862Z + */ +import "@typespec/rest"; +import "@typespec/versioning"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "./models.tsp"; +import "./back-compatible.tsp"; +import "./DatadogMonitorResource.tsp"; +import "./MonitoringTagRules.tsp"; +import "./DatadogSingleSignOnResource.tsp"; +import "./MonitoredSubscriptionProperties.tsp"; +import "./routes.tsp"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager.Foundations; +using Azure.Core; +using Azure.ResourceManager; +using TypeSpec.Versioning; +/** + * // FIXME: (missing-service-description) Add service description + */ +@armProviderNamespace +@service(#{ title: "Microsoft Datadog Client" }) +@versioned(Versions) +// FIXME: Common type version v1 is not supported for now. Set to v3. +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) +namespace Microsoft.Datadog; + +/** + * The available API versions. + */ +enum Versions { + /** + * The 2023-10-20 API version. + */ + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @useDependency(Azure.Core.Versions.v1_0_Preview_1) + v2023_10_20: "2023-10-20", +} + +interface Operations extends Azure.ResourceManager.Operations {} diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp new file mode 100644 index 000000000000..2299021cf8d2 --- /dev/null +++ b/specification/datadog/Datadog.Management/models.tsp @@ -0,0 +1,837 @@ +import "@typespec/rest"; +import "@typespec/http"; +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; + +namespace Microsoft.Datadog; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union ProvisioningState { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Accepted: "Accepted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Creating: "Creating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Updating: "Updating", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Succeeded: "Succeeded", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Canceled: "Canceled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleted: "Deleted", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + NotSpecified: "NotSpecified", +} + +/** + * Flag specifying if the resource monitoring is enabled or disabled. + */ +union MonitoringStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enabled: "Enabled", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disabled: "Disabled", +} + +/** + * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + */ +union MarketplaceSubscriptionStatus { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Provisioning: "Provisioning", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Suspended: "Suspended", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unsubscribed: "Unsubscribed", +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +union LiftrResourceCategories { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Unknown: "Unknown", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + MonitorLogs: "MonitorLogs", +} + +/** + * Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. + */ +union ManagedIdentityTypes { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + SystemAssigned: "SystemAssigned", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + UserAssigned: "UserAssigned", +} + +/** + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. + */ +union TagAction { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Include: "Include", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Exclude: "Exclude", +} + +/** + * Various states of the SSO resource + */ +union SingleSignOnStates { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Initial: "Initial", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Enable: "Enable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Disable: "Disable", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Existing: "Existing", +} + +/** + * The operation for the patch on the resource. + */ +union Operation { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AddBegin: "AddBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + AddComplete: "AddComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeleteBegin: "DeleteBegin", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + DeleteComplete: "DeleteComplete", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", +} + +/** + * The state of monitoring. + */ +union Status { + string, + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + InProgress: "InProgress", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Active: "Active", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Failed: "Failed", + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + Deleting: "Deleting", +} + +/** + * Response of a list operation. + */ +model DatadogAgreementResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogAgreementResource { + /** + * ARM id of the resource. + */ + @visibility(Lifecycle.Read) + id?: string; + + /** + * Name of the agreement. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * The type of the resource. + */ + @visibility(Lifecycle.Read) + type?: string; + + /** + * Represents the properties of the resource. + */ + properties?: DatadogAgreementProperties; + + /** + * Metadata pertaining to creation and last modification of the resource. + */ + @visibility(Lifecycle.Read) + systemData?: SystemData; +} + +/** + * Terms properties. + */ +model DatadogAgreementProperties { + /** + * Publisher identifier string. + */ + publisher?: string; + + /** + * Product identifier string. + */ + product?: string; + + /** + * Plan identifier string. + */ + plan?: string; + + /** + * Link to HTML with Microsoft and Publisher terms. + */ + licenseTextLink?: string; + + /** + * Link to the privacy policy of the publisher. + */ + privacyPolicyLink?: string; + + /** + * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. + */ + // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. + retrieveDatetime?: utcDateTime; + + /** + * Terms signature. + */ + signature?: string; + + /** + * If any version of the terms have been accepted, otherwise false. + */ + accepted?: boolean; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model CreateResourceSupportedResponseList + is Azure.Core.Page; + +/** + * Datadog resource can be created or not. + */ +model CreateResourceSupportedResponse { + /** + * Represents the properties of the resource. + */ + properties?: CreateResourceSupportedProperties; +} + +/** + * Datadog resource can be created or not properties. + */ +model CreateResourceSupportedProperties { + /** + * The ARM id of the subscription. + */ + @visibility(Lifecycle.Read) + name?: string; + + /** + * Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature. + */ + @visibility(Lifecycle.Read) + creationSupported?: boolean; +} + +/** + * Response of a list operation. + */ +model DatadogApiKeyListResponse is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogApiKey { + /** + * The user that created the API key. + */ + createdBy?: string; + + /** + * The name of the API key. + */ + name?: string; + + /** + * The value of the API key. + */ + key: string; + + /** + * The time of creation of the API key. + */ + created?: string; +} + +/** + * Response of a list operation. + */ +model DatadogHostListResponse is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogHost { + /** + * The name of the host. + */ + name?: string; + + /** + * The aliases for the host installed via the Datadog agent. + */ + aliases?: string[]; + + /** + * The Datadog integrations reporting metrics for the host. + */ + apps?: string[]; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + meta?: DatadogHostMetadata; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogHostMetadata { + /** + * The agent version. + */ + agentVersion?: string; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + installMethod?: DatadogInstallMethod; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + logsAgent?: DatadogLogsAgent; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogInstallMethod { + /** + * The tool. + */ + tool?: string; + + /** + * The tool version. + */ + toolVersion?: string; + + /** + * The installer version. + */ + installerVersion?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogLogsAgent { + /** + * The transport. + */ + transport?: string; +} + +/** + * Response of a list operation. + */ +model LinkedResourceListResponse is Azure.Core.Page; + +/** + * The definition of a linked resource. + */ +model LinkedResource { + /** + * The ARM id of the linked resource. + */ + id?: string; + + /** + * The location of the linked resource. + */ + location?: string; +} + +/** + * Response of a list operation. + */ +model MonitoredResourceListResponse is Azure.Core.Page; + +/** + * The properties of a resource currently being monitored by the Datadog monitor resource. + */ +model MonitoredResource { + /** + * The ARM id of the resource. + */ + id?: string; + + /** + * Flag indicating if resource is sending metrics to Datadog. + */ + sendingMetrics?: boolean; + + /** + * Reason for why the resource is sending metrics (or why it is not sending). + */ + reasonForMetricsStatus?: string; + + /** + * Flag indicating if resource is sending logs to Datadog. + */ + sendingLogs?: boolean; + + /** + * Reason for why the resource is sending logs (or why it is not sending). + */ + reasonForLogsStatus?: string; +} + +/** + * A Microsoft.Datadog REST API operation. + */ +model OperationResult { + /** + * Operation name, i.e., {provider}/{resource}/{operation}. + */ + name?: string; + + /** + * The object that represents the operation. + */ + display?: OperationDisplay; + + /** + * Indicates whether the operation is a data action + */ + isDataAction?: boolean; +} + +/** + * Response of a list operation. + */ +model DatadogMonitorResourceListResponse + is Azure.Core.Page; + +/** + * Properties specific to the monitor resource. + */ +model MonitorProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Flag specifying if the resource monitoring is enabled or disabled. + */ + monitoringStatus?: MonitoringStatus = MonitoringStatus.Enabled; + + /** + * Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + */ + @visibility(Lifecycle.Read) + marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; + + /** + * Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. + */ + datadogOrganizationProperties?: DatadogOrganizationProperties; + + /** + * Includes name, email and optionally, phone number. User Information can't be null. + */ + userInfo?: UserInfo; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + liftrResourceCategory?: LiftrResourceCategories; + + /** + * The priority of the resource. + */ + @visibility(Lifecycle.Read) + liftrResourcePreference?: int32; +} + +/** + * Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well. + */ +model DatadogOrganizationProperties { + /** + * Name of the Datadog organization. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + name?: string; + + /** + * Id of the Datadog organization. + */ + @visibility(Lifecycle.Read, Lifecycle.Create) + id?: string; + + /** + * The auth code used to linking to an existing Datadog organization. + */ + @visibility(Lifecycle.Create) + linkingAuthCode?: string; + + /** + * The client_id from an existing in exchange for an auth token to link organization. + */ + @visibility(Lifecycle.Create) + linkingClientId?: string; + + /** + * The redirect URI for linking. + */ + @visibility(Lifecycle.Create) + redirectUri?: string; + + /** + * Api key associated to the Datadog organization. + */ + @visibility(Lifecycle.Create) + apiKey?: string; + + /** + * Application key associated to the Datadog organization. + */ + @visibility(Lifecycle.Create) + applicationKey?: string; + + /** + * The Id of the Enterprise App used for Single sign on. + */ + @visibility(Lifecycle.Create) + enterpriseAppId?: string; + + /** + * The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. + */ + cspm?: boolean; +} + +/** + * Includes name, email and optionally, phone number. User Information can't be null. + */ +model UserInfo { + /** + * Name of the user + */ + @maxLength(50) + name?: string; + + /** + * Email of the user used by Datadog for contacting them if needed + */ + @pattern("^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$") + emailAddress?: string; + + /** + * Phone number of the user used by Datadog for contacting them if needed + */ + @maxLength(40) + phoneNumber?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model IdentityProperties { + /** + * The identity ID. + */ + @visibility(Lifecycle.Read) + principalId?: string; + + /** + * The tenant ID of resource. + */ + @visibility(Lifecycle.Read) + tenantId?: string; + + /** + * Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'. + */ + type?: ManagedIdentityTypes; +} + +/** + * The parameters for a PATCH request to a monitor resource. + */ +model DatadogMonitorResourceUpdateParameters { + /** + * The set of properties that can be update in a PATCH request to a monitor resource. + */ + properties?: MonitorUpdateProperties; + + /** + * The new tags of the monitor resource. + */ + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + tags?: Record; + + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + sku?: ResourceSku; +} + +/** + * The set of properties that can be update in a PATCH request to a monitor resource. + */ +model MonitorUpdateProperties { + /** + * Flag specifying if the resource monitoring is enabled or disabled. + */ + monitoringStatus?: MonitoringStatus = MonitoringStatus.Enabled; + + /** + * The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks. + */ + cspm?: boolean; +} + +/** + * Marketplace Subscription and Organization details to which resource gets billed into. + */ +model BillingInfoResponse { + /** + * Marketplace Subscription details + */ + marketplaceSaasInfo?: MarketplaceSaaSInfo; + + /** + * Partner Billing Entity details: Organization Info + */ + partnerBillingEntity?: PartnerBillingEntity; +} + +/** + * Marketplace SAAS Info of the resource. + */ +model MarketplaceSaaSInfo { + /** + * Marketplace Subscription Id. This is a GUID-formatted string. + */ + marketplaceSubscriptionId?: string; + + /** + * Marketplace Subscription Details: SAAS Name + */ + marketplaceName?: string; + + /** + * Marketplace Subscription Details: SaaS Subscription Status + */ + marketplaceStatus?: string; + + /** + * The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into. + */ + billedAzureSubscriptionId?: string; + + /** + * Flag specifying if the Marketplace status is subscribed or not. + */ + subscribed?: boolean; +} + +/** + * Partner Billing details associated with the resource. + */ +model PartnerBillingEntity { + /** + * The Datadog Organization Id. + */ + id?: string; + + /** + * The Datadog Organization Name. + */ + name?: string; + + /** + * Link to the datadog organization page + */ + partnerEntityUri?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogSetPasswordLink { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + setPasswordLink?: string; +} + +/** + * Response of a list operation. + */ +model MonitoringTagRulesListResponse is Azure.Core.Page; + +/** + * Definition of the properties for a TagRules resource. + */ +model MonitoringTagRulesProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Set of rules for sending logs for the Monitor resource. + */ + logRules?: LogRules; + + /** + * Set of rules for sending metrics for the Monitor resource. + */ + metricRules?: MetricRules; + + /** + * Configuration to enable/disable auto-muting flag + */ + automuting?: boolean; + + /** + * Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent. + */ + customMetrics?: boolean; +} + +/** + * Set of rules for sending logs for the Monitor resource. + */ +model LogRules { + /** + * Flag specifying if AAD logs should be sent for the Monitor resource. + */ + sendAadLogs?: boolean; + + /** + * Flag specifying if Azure subscription logs should be sent for the Monitor resource. + */ + sendSubscriptionLogs?: boolean; + + /** + * Flag specifying if Azure resource logs should be sent for the Monitor resource. + */ + sendResourceLogs?: boolean; + + /** + * List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs 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. + */ + filteringTags?: FilteringTag[]; +} + +/** + * The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. + */ +model FilteringTag { + /** + * The name (also known as the key) of the tag. + */ + name?: string; + + /** + * The value of the tag. + */ + value?: string; + + /** + * Valid actions for a filtering tag. Exclusion takes priority over inclusion. + */ + action?: TagAction; +} + +/** + * Set of rules for sending metrics for the Monitor resource. + */ +model MetricRules { + /** + * List of filtering tags to be used for capturing metrics. 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. + */ + filteringTags?: FilteringTag[]; +} + +/** + * Response of a list operation. + */ +model DatadogSingleSignOnResourceListResponse + is Azure.Core.Page; + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model DatadogSingleSignOnProperties { + #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + @visibility(Lifecycle.Read) + provisioningState?: ProvisioningState; + + /** + * Various states of the SSO resource + */ + singleSignOnState?: SingleSignOnStates; + + /** + * The Id of the Enterprise App used for Single sign-on. + */ + enterpriseAppId?: string; + + /** + * The login URL specific to this Datadog Organization. + */ + @visibility(Lifecycle.Read) + singleSignOnUrl?: string; +} + +#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +model MonitoredSubscriptionPropertiesList + is Azure.Core.Page; + +/** + * The request to update subscriptions needed to be monitored by the Datadog monitor resource. + */ +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +model SubscriptionList { + /** + * The operation for the patch on the resource. + */ + @visibility(Lifecycle.Create, Lifecycle.Update) + operation?: Operation; + + /** + * List of subscriptions and the state of the monitoring. + */ + monitoredSubscriptionList?: MonitoredSubscription[]; +} + +/** + * The list of subscriptions and it's monitoring status by current Datadog monitor. + */ +model MonitoredSubscription { + /** + * The subscriptionId to be monitored. + */ + subscriptionId?: string; + + /** + * The state of monitoring. + */ + status?: Status; + + /** + * The reason of not monitoring the subscription. + */ + error?: string; + + /** + * Definition of the properties for a TagRules resource. + */ + tagRules?: MonitoringTagRulesProperties; +} diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp new file mode 100644 index 000000000000..f2c4ada8c961 --- /dev/null +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -0,0 +1,91 @@ +// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually + +import "@azure-tools/typespec-azure-core"; +import "@typespec/rest"; +import "./models.tsp"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; + +using TypeSpec.Rest; +using TypeSpec.Http; +using Azure.ResourceManager; +using TypeSpec.OpenAPI; + +namespace Microsoft.Datadog; + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface MarketplaceAgreementsOperationGroup { + /** + * List Datadog marketplace agreements in the subscription. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @summary("List Datadog marketplace agreements in the subscription.") + @operationId("MarketplaceAgreements_List") + @autoRoute + @get + @action("agreements") + list is ArmProviderActionSync< + Response = DatadogAgreementResourceListResponse, + Scope = SubscriptionActionScope, + Parameters = {} + >; + /** + * Create Datadog marketplace agreement in the subscription. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @summary("Create Datadog marketplace agreement in the subscription.") + @operationId("MarketplaceAgreements_CreateOrUpdate") + @autoRoute + @put + @action("agreements/default") + createOrUpdate is ArmProviderActionSync< + Request = DatadogAgreementResource, + Response = DatadogAgreementResource, + Scope = SubscriptionActionScope, + Parameters = {} + >; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +interface CreationSupportedOperationGroup { + /** + * Informs if the current subscription is being already monitored for selected Datadog organization. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") + @operationId("CreationSupported_List") + @autoRoute + @get + @action("subscriptionStatuses") + list is ArmProviderActionSync< + Response = CreateResourceSupportedResponseList, + Scope = SubscriptionActionScope, + Parameters = { + /** + * Datadog Organization Id + */ + @query("datadogOrganizationId") + datadogOrganizationId: string; + } + >; + /** + * Informs if the current subscription is being already monitored for selected Datadog organization. + */ + #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") + @operationId("CreationSupported_Get") + @autoRoute + @get + @action("subscriptionStatuses/default") + get is ArmProviderActionSync< + Response = CreateResourceSupportedResponse, + Scope = SubscriptionActionScope, + Parameters = { + /** + * Datadog Organization Id + */ + @query("datadogOrganizationId") + datadogOrganizationId: string; + } + >; +} diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml new file mode 100644 index 000000000000..6c69f8bd6992 --- /dev/null +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -0,0 +1,13 @@ +emit: + - "@azure-tools/typespec-autorest" +options: + "@azure-tools/typespec-autorest": + omit-unreachable-types: true + emitter-output-dir: "{project-root}/.." + azure-resource-provider-folder: "resource-manager" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" + examples-dir: "{project-root}/examples" + arm-resource-flattening: true +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" From 69812e6ff81701b69681c1c0e0a87479b9873d50 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Mon, 28 Apr 2025 16:03:14 +0800 Subject: [PATCH 02/32] update --- .../DatadogMonitorResource.tsp | 6 +- .../datadog/Datadog.Management/main.tsp | 28 +- .../datadog/Datadog.Management/models.tsp | 53 + .../datadog/Datadog.Management/tspconfig.yaml | 1 - .../stable/2023-10-20/datadog.json | 3238 +++++++++-------- .../examples/ApiKeys_GetDefaultKey.json | 16 +- .../2023-10-20/examples/ApiKeys_List.json | 26 +- .../examples/ApiKeys_SetDefaultKey.json | 14 +- .../2023-10-20/examples/BillingInfo_Get.json | 16 +- .../examples/CreationSupported_Get.json | 10 +- .../examples/CreationSupported_List.json | 14 +- .../2023-10-20/examples/Hosts_List.json | 22 +- .../examples/LinkedResources_List.json | 10 +- .../MarketplaceAgreements_Create.json | 22 +- .../examples/MarketplaceAgreements_List.json | 34 +- .../examples/MonitoredResources_List.json | 14 +- ...MonitoredSubscriptions_CreateorUpdate.json | 156 +- .../MonitoredSubscriptions_Delete.json | 12 +- .../examples/MonitoredSubscriptions_Get.json | 58 +- .../examples/MonitoredSubscriptions_List.json | 56 +- .../MonitoredSubscriptions_Update.json | 110 +- .../2023-10-20/examples/Monitors_Create.json | 72 +- .../2023-10-20/examples/Monitors_Delete.json | 10 +- .../2023-10-20/examples/Monitors_Get.json | 28 +- .../2023-10-20/examples/Monitors_List.json | 28 +- .../Monitors_ListByResourceGroup.json | 26 +- .../2023-10-20/examples/Monitors_Update.json | 54 +- .../2023-10-20/examples/Operations_List.json | 16 +- .../examples/RefreshSetPassword_Get.json | 10 +- ...leSignOnConfigurations_CreateOrUpdate.json | 24 +- .../SingleSignOnConfigurations_Get.json | 14 +- .../SingleSignOnConfigurations_List.json | 12 +- .../examples/TagRules_CreateOrUpdate.json | 58 +- .../2023-10-20/examples/TagRules_Get.json | 34 +- .../2023-10-20/examples/TagRules_List.json | 32 +- 35 files changed, 2382 insertions(+), 1952 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index b9fcd016878a..872330600837 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -50,7 +50,11 @@ interface DatadogMonitorResources { update is ArmCustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, - Response = ArmResponse | ArmResourceCreatedResponse + Response = ArmResponse | ArmResourceCreatedResponse< + DatadogMonitorResource, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader + > >; /** diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index 08ce299dda33..97801e63e3ba 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -25,6 +25,8 @@ using Azure.ResourceManager.Foundations; using Azure.Core; using Azure.ResourceManager; using TypeSpec.Versioning; +using Azure.ResourceManager.Private; + /** * // FIXME: (missing-service-description) Add service description */ @@ -47,4 +49,28 @@ enum Versions { v2023_10_20: "2023-10-20", } -interface Operations extends Azure.ResourceManager.Operations {} +// interface Operations extends Azure.ResourceManager.Operations {} +/** + * This is the interface that implements the standard Azure Resource Manager operation that returns + * all supported RP operations. You should have exactly one declaration for each + * Azure Resource Manager service. It implements + * GET "/providers/Microsoft.ContosoProviderHub/operations" + */ +interface Operations { + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "" + @tag("Operations") + @autoRoute + @armUpdateProviderNamespace + @doc("List the operations for the provider") + @segment("operations") + @get + list( + ...ApiVersionParameter, + + @path + @segment("providers") + @doc("The provider namespace (this parameter will not show up in operations).") + provider: "Microsoft.ThisWillBeReplaced", + ): ArmResponse | ErrorResponse; +} diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 2299021cf8d2..b39e036ad83a 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -7,6 +7,7 @@ using TypeSpec.Rest; using TypeSpec.Http; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; +using Azure.Core; namespace Microsoft.Datadog; @@ -835,3 +836,55 @@ model MonitoredSubscription { */ tagRules?: MonitoringTagRulesProperties; } +/** + * Represents the SKU of a resource. + */ +model ResourceSku { + /** + * The name of the SKU. + */ + name: string; +} + +/** + * Represents the display information for an operation. + */ +model OperationDisplay { + /** + * The service provider: Microsoft.Datadog. + */ + provider?: string; + + /** + * The resource on which the operation is performed. + */ + resource?: string; + + /** + * The type of operation: create, update, delete, etc. + */ + operation?: string; + + /** + * A localized description of the operation. + */ + description?: string; +} + +/** + * Represents a paginated list of operation results. + */ +@pagedResult +model OperationListResult { + /** + * The list of operations. + */ + @items + value: OperationResult[]; + + /** + * The URL to get the next set of results, if any. + */ + @nextLink + nextLink?: string; +} diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index 6c69f8bd6992..138159e97b8b 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -7,7 +7,6 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" examples-dir: "{project-root}/examples" - arm-resource-flattening: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 5e8f85aa38b8..5d147d898f55 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -1,96 +1,151 @@ { "swagger": "2.0", "info": { - "title": "Microsoft.Datadog", - "version": "2023-10-20" + "title": "Microsoft Datadog Client", + "version": "2023-10-20", + "description": "// FIXME: (missing-service-description) Add service description", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, - "host": "management.azure.com", "schemes": [ "https" ], - "consumes": [ + "host": "management.azure.com", + "produces": [ "application/json" ], - "produces": [ + "consumes": [ "application/json" ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], "securityDefinitions": { "azure_auth": { "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", - "description": "Microsoft Entra ID OAuth2 Flow", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "DatadogMonitorResources" + }, + { + "name": "TagRules" + }, + { + "name": "DatadogSingleSignOnResources" + }, + { + "name": "MonitoredSubscriptions" + } + ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "/providers/Microsoft.Datadog/operations": { "get": { + "operationId": "Operations_List", "tags": [ - "Agreements" + "Operations" ], - "summary": "List Datadog marketplace agreements in the subscription.", - "operationId": "MarketplaceAgreements_List", - "produces": [ - "application/json" + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements": { + "get": { + "operationId": "MarketplaceAgreements_List", + "summary": "List Datadog marketplace agreements in the subscription.", + "description": "List Datadog marketplace agreements in the subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DatadogAgreementResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "MarketplaceAgreements_List": { "$ref": "./examples/MarketplaceAgreements_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements/default": { "put": { - "tags": [ - "Agreements" - ], - "summary": "Create Datadog marketplace agreement in the subscription.", "operationId": "MarketplaceAgreements_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "summary": "Create Datadog marketplace agreement in the subscription.", + "description": "Create Datadog marketplace agreement in the subscription.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "in": "body", "name": "body", + "in": "body", + "description": "The request body", + "required": true, "schema": { "$ref": "#/definitions/DatadogAgreementResource" } @@ -98,15 +153,15 @@ ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/DatadogAgreementResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -117,83 +172,120 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { "get": { + "operationId": "Monitors_List", "tags": [ - "CreateResource" + "DatadogMonitorResources" ], - "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", - "operationId": "CreationSupported_List", - "produces": [ - "application/json" + "description": "List all monitors under the specified subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceListResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_List": { + "$ref": "./examples/Monitors_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses": { + "get": { + "operationId": "CreationSupported_List", + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "description": "Informs if the current subscription is being already monitored for selected Datadog organization.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DatadogOrganizationId" + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/CreateResourceSupportedResponseList" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "CreationSupported_List": { "$ref": "./examples/CreationSupported_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/subscriptionStatuses/default": { "get": { - "tags": [ - "CreateResource" - ], - "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", "operationId": "CreationSupported_Get", - "produces": [ - "application/json" - ], + "summary": "Informs if the current subscription is being already monitored for selected Datadog organization.", + "description": "Informs if the current subscription is being already monitored for selected Datadog organization.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/DatadogOrganizationId" + "name": "datadogOrganizationId", + "in": "query", + "description": "Datadog Organization Id", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "The request has succeeded.", "schema": { "$ref": "#/definitions/CreateResourceSupportedResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, @@ -204,1399 +296,1497 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { + "get": { + "operationId": "Monitors_ListByResourceGroup", "tags": [ - "ApiKey" - ], - "summary": "List the api keys for a given monitor resource.", - "operationId": "Monitors_ListApiKeys", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List all monitors under the specified resource group.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogApiKeyListResponse" + "$ref": "#/definitions/DatadogMonitorResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListApiKeys": { - "$ref": "./examples/ApiKeys_List.json" + "Monitors_ListByResourceGroup": { + "$ref": "./examples/Monitors_ListByResourceGroup.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { - "post": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { + "get": { + "operationId": "Monitors_Get", "tags": [ - "ApiKey" - ], - "summary": "Get the default api key.", - "operationId": "Monitors_GetDefaultKey", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get the properties of a specific monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogApiKey" + "$ref": "#/definitions/DatadogMonitorResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_GetDefaultKey": { - "$ref": "./examples/ApiKeys_GetDefaultKey.json" + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { - "post": { + }, + "put": { + "operationId": "Monitors_Create", "tags": [ - "ApiKey" - ], - "summary": "Set the default api key.", - "operationId": "Monitors_SetDefaultKey", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Create a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "in": "body", "name": "body", + "in": "body", + "description": "", + "required": true, "schema": { - "$ref": "#/definitions/DatadogApiKey" + "$ref": "#/definitions/DatadogMonitorResource" } } ], "responses": { "200": { - "description": "Success" + "description": "Resource 'DatadogMonitorResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_SetDefaultKey": { - "$ref": "./examples/ApiKeys_SetDefaultKey.json" + "Monitors_Create": { + "$ref": "./examples/Monitors_Create.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Monitors_Update", "tags": [ - "Hosts" - ], - "summary": "List the hosts for a given monitor resource.", - "operationId": "Monitors_ListHosts", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Update a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": true, + "schema": { + "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogHostListResponse" + "$ref": "#/definitions/DatadogMonitorResource" + } + }, + "201": { + "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogMonitorResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListHosts": { - "$ref": "./examples/Hosts_List.json" + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "Monitors_Delete", "tags": [ - "LinkedResources" - ], - "summary": "List all Azure resources associated to the same Datadog organization as the target resource.", - "operationId": "Monitors_ListLinkedResources", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Delete a monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/LinkedResourceListResponse" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListLinkedResources": { - "$ref": "./examples/LinkedResources_List.json" + "Monitors_Delete": { + "$ref": "./examples/Monitors_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { "post": { + "operationId": "BillingInfo_Get", "tags": [ - "MonitoredResources" - ], - "summary": "List the resources currently being monitored by the Datadog monitor resource.", - "operationId": "Monitors_ListMonitoredResources", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get marketplace and organization info mapped to the given monitor.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredResourceListResponse" + "$ref": "#/definitions/BillingInfoResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListMonitoredResources": { - "$ref": "./examples/MonitoredResources_List.json" + "BillingInfo_Get": { + "$ref": "./examples/BillingInfo_Get.json" } } } }, - "/providers/Microsoft.Datadog/operations": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getDefaultKey": { + "post": { + "operationId": "Monitors_GetDefaultKey", "tags": [ - "MonitorsResource" - ], - "summary": "List all operations provided by Microsoft.Datadog for the 2023-10-20 api version.", - "operationId": "Operations_List", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Get the default api key.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/OperationListResult" + "$ref": "#/definitions/DatadogApiKey" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Operations_List": { - "$ref": "./examples/Operations_List.json" + "Monitors_GetDefaultKey": { + "$ref": "./examples/ApiKeys_GetDefaultKey.json" } } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listApiKeys": { + "post": { + "operationId": "Monitors_ListApiKeys", "tags": [ - "MonitorsResource" - ], - "summary": "List all monitors under the specified subscription.", - "operationId": "Monitors_List", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the api keys for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResourceListResponse" + "$ref": "#/definitions/DatadogApiKeyListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_List": { - "$ref": "./examples/Monitors_List.json" + "Monitors_ListApiKeys": { + "$ref": "./examples/ApiKeys_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listHosts": { + "post": { + "operationId": "Monitors_ListHosts", "tags": [ - "MonitorsResource" - ], - "summary": "List all monitors under the specified resource group.", - "operationId": "Monitors_ListByResourceGroup", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the hosts for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResourceListResponse" + "$ref": "#/definitions/DatadogHostListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_ListByResourceGroup": { - "$ref": "./examples/Monitors_ListByResourceGroup.json" + "Monitors_ListHosts": { + "$ref": "./examples/Hosts_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listLinkedResources": { + "post": { + "operationId": "Monitors_ListLinkedResources", "tags": [ - "MonitorsResource" - ], - "summary": "Get the properties of a specific monitor resource.", - "operationId": "Monitors_Get", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List all Azure resources associated to the same Datadog organization as the target resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/LinkedResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_Get": { - "$ref": "./examples/Monitors_Get.json" + "Monitors_ListLinkedResources": { + "$ref": "./examples/LinkedResources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "put": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/listMonitoredResources": { + "post": { + "operationId": "Monitors_ListMonitoredResources", "tags": [ - "MonitorsResource" - ], - "summary": "Create a monitor resource.", - "operationId": "Monitors_Create", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "List the resources currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/MonitoredResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "Monitors_Create": { - "$ref": "./examples/Monitors_Create.json" + "Monitors_ListMonitoredResources": { + "$ref": "./examples/MonitoredResources_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "patch": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "get": { + "operationId": "MonitoredSubscriptions_List", "tags": [ - "MonitorsResource" - ], - "summary": "Update a monitor resource.", - "operationId": "Monitors_Update", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" - } + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogMonitorResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_Update": { - "$ref": "./examples/Monitors_Update.json" + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } - }, - "delete": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "get": { + "operationId": "MonitoredSubscriptions_Get", "tags": [ - "MonitorsResource" - ], - "summary": "Delete a monitor resource.", - "operationId": "Monitors_Delete", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "List the subscriptions currently being monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success" - }, - "202": { - "description": "Success" - }, - "204": { - "description": "Success" + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_Delete": { - "$ref": "./examples/Monitors_Delete.json" + "Monitors_GetMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Get.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/getBillingInfo": { - "post": { + }, + "put": { + "operationId": "MonitoredSubscriptions_CreateorUpdate", "tags": [ - "ConnectedResources" - ], - "summary": "Get marketplace and organization info mapped to the given monitor.", - "operationId": "BillingInfo_Get", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Add the subscriptions that should be monitored by the Datadog monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" + }, + { + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "body", + "in": "body", + "description": "", + "required": true, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } } ], "responses": { "200": { - "description": "Success", + "description": "Resource 'MonitoredSubscriptionProperties' update operation succeeded", "schema": { - "$ref": "#/definitions/BillingInfoResponse" + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "201": { + "description": "Resource 'MonitoredSubscriptionProperties' create operation succeeded", + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + }, + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "BillingInfo_Get": { - "$ref": "./examples/BillingInfo_Get.json" + "Monitors_AddMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { - "post": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "MonitoredSubscriptions_Update", "tags": [ - "RefreshSetPasswordLink" - ], - "summary": "Refresh the set password link and return a latest one.", - "operationId": "Monitors_RefreshSetPasswordLink", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": true, + "schema": { + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/DatadogSetPasswordLink" + "$ref": "#/definitions/MonitoredSubscriptionProperties" + } + }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_RefreshSetPasswordLink": { - "$ref": "./examples/RefreshSetPassword_Get.json" + "Monitors_UpdateMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Update.json" } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { - "get": { + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "MonitoredSubscriptions_Delete", "tags": [ - "Rules" - ], - "summary": "List the tag rules for a given monitor resource.", - "operationId": "TagRules_List", - "produces": [ - "application/json" + "MonitoredSubscriptions" ], + "description": "Updates the subscriptions that are being monitored by the Datadog monitor resource", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "configurationName", + "in": "path", + "description": "The configuration name. Only 'default' value is supported.", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoringTagRulesListResponse" + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, + "204": { + "description": "Resource does not exist." + }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "TagRules_List": { - "$ref": "./examples/TagRules_List.json" + "Monitors_DeleteMonitoredSubscriptions": { + "$ref": "./examples/MonitoredSubscriptions_Delete.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/refreshSetPasswordLink": { + "post": { + "operationId": "Monitors_RefreshSetPasswordLink", "tags": [ - "Rules" - ], - "summary": "Create or update a tag rule set for a given monitor resource.", - "operationId": "TagRules_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Refresh the set password link and return a latest one.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Rule set name", + "name": "monitorName", "in": "path", - "name": "ruleSetName", + "description": "Monitor resource name", "required": true, "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/MonitoringTagRules" - } } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoringTagRules" + "$ref": "#/definitions/DatadogSetPasswordLink" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "TagRules_CreateOrUpdate": { - "$ref": "./examples/TagRules_CreateOrUpdate.json" + "Monitors_RefreshSetPasswordLink": { + "$ref": "./examples/RefreshSetPassword_Get.json" } } - }, - "get": { + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/setDefaultKey": { + "post": { + "operationId": "Monitors_SetDefaultKey", "tags": [ - "Rules" - ], - "summary": "Get a tag rule set for a given monitor resource.", - "operationId": "TagRules_Get", - "produces": [ - "application/json" + "DatadogMonitorResources" ], + "description": "Set the default api key.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Rule set name", + "name": "monitorName", "in": "path", - "name": "ruleSetName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/DatadogApiKey" + } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoringTagRules" - } + "description": "The request has succeeded." }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "TagRules_Get": { - "$ref": "./examples/TagRules_Get.json" + "Monitors_SetDefaultKey": { + "$ref": "./examples/ApiKeys_SetDefaultKey.json" } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations": { "get": { - "tags": [ - "SingleSignOn" - ], - "summary": "List the single sign-on configurations for a given monitor resource.", "operationId": "SingleSignOnConfigurations_List", - "produces": [ - "application/json" + "tags": [ + "DatadogSingleSignOnResources" ], + "description": "List the single sign-on configurations for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DatadogSingleSignOnResourceListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { "SingleSignOnConfigurations_List": { "$ref": "./examples/SingleSignOnConfigurations_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}": { - "put": { + "get": { + "operationId": "SingleSignOnConfigurations_Get", "tags": [ - "SingleSignOn" - ], - "summary": "Configures single-sign-on for this resource.", - "operationId": "SingleSignOnConfigurations_CreateOrUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "DatadogSingleSignOnResources" ], + "description": "Gets the datadog single sign-on resource for the given Monitor.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Configuration name", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/DatadogSingleSignOnResource" - } + "name": "configurationName", + "in": "path", + "description": "Configuration name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/DatadogSingleSignOnResource" - } - }, - "201": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/DatadogSingleSignOnResource" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - }, "x-ms-examples": { - "SingleSignOnConfigurations_CreateOrUpdate": { - "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" + "SingleSignOnConfigurations_Get": { + "$ref": "./examples/SingleSignOnConfigurations_Get.json" } } }, - "get": { + "put": { + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", "tags": [ - "SingleSignOn" - ], - "summary": "Gets the datadog single sign-on resource for the given Monitor.", - "operationId": "SingleSignOnConfigurations_Get", - "produces": [ - "application/json" + "DatadogSingleSignOnResources" ], + "description": "Configures single-sign-on for this resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "Configuration name", + "name": "monitorName", "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" + }, + { "name": "configurationName", + "in": "path", + "description": "Configuration name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "body", + "in": "body", + "description": "", + "required": true, + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } } ], "responses": { "200": { - "description": "Success", + "description": "Resource 'DatadogSingleSignOnResource' update operation succeeded", + "schema": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } + }, + "201": { + "description": "Resource 'DatadogSingleSignOnResource' create operation succeeded", "schema": { "$ref": "#/definitions/DatadogSingleSignOnResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "A link to the status monitor" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "SingleSignOnConfigurations_Get": { - "$ref": "./examples/SingleSignOnConfigurations_Get.json" + "SingleSignOnConfigurations_CreateOrUpdate": { + "$ref": "./examples/SingleSignOnConfigurations_CreateOrUpdate.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules": { "get": { + "operationId": "TagRules_List", "tags": [ - "monitoredSubscriptions" - ], - "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_List", - "produces": [ - "application/json" + "TagRules" ], + "description": "List the tag rules for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "monitorName", + "in": "path", + "description": "Monitor resource name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredSubscriptionPropertiesList" + "$ref": "#/definitions/MonitoringTagRulesListResponse" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "x-ms-examples": { - "Monitors_GetMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_List.json" + "TagRules_List": { + "$ref": "./examples/TagRules_List.json" } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}": { "get": { + "operationId": "TagRules_Get", "tags": [ - "monitoredSubscriptions" - ], - "summary": "List the subscriptions currently being monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_Get", - "produces": [ - "application/json" + "TagRules" ], + "description": "Get a tag rule set for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "The configuration name. Only 'default' value is supported.", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "ruleSetName", + "in": "path", + "description": "Rule set name", + "required": true, + "type": "string" } ], "responses": { "200": { - "description": "Success", + "description": "Azure operation completed successfully.", "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" + "$ref": "#/definitions/MonitoringTagRules" } }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "Monitors_GetMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_Get.json" + "TagRules_Get": { + "$ref": "./examples/TagRules_Get.json" } } }, "put": { + "operationId": "TagRules_CreateOrUpdate", "tags": [ - "monitoredSubscriptions" - ], - "summary": "Add the subscriptions that should be monitored by the Datadog monitor resource.", - "operationId": "MonitoredSubscriptions_CreateorUpdate", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" + "TagRules" ], + "description": "Create or update a tag rule set for a given monitor resource.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/MonitorNameParameter" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" }, { - "description": "The configuration name. Only 'default' value is supported.", + "name": "monitorName", "in": "path", - "name": "configurationName", + "description": "Monitor resource name", "required": true, "type": "string" }, { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + "name": "ruleSetName", + "in": "path", + "description": "Rule set name", + "required": true, + "type": "string" }, { - "in": "body", "name": "body", + "in": "body", + "description": "", + "required": true, "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" + "$ref": "#/definitions/MonitoringTagRules" } } ], "responses": { "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } - }, - "201": { - "description": "Success", + "description": "Resource 'MonitoringTagRules' update operation succeeded", "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" + "$ref": "#/definitions/MonitoringTagRules" } }, - "202": { - "description": "Success" - }, "default": { - "description": "Default error response.", + "description": "An unexpected error response.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } }, - "x-ms-long-running-operation": true, "x-ms-examples": { - "Monitors_AddMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_CreateorUpdate.json" + "TagRules_CreateOrUpdate": { + "$ref": "./examples/TagRules_CreateOrUpdate.json" } } - }, - "patch": { - "tags": [ - "MonitoredSubscriptions" - ], - "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", - "operationId": "MonitoredSubscriptions_Update", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/MonitorNameParameter" - }, - { - "description": "The configuration name. Only 'default' value is supported.", - "in": "path", - "name": "configurationName", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } - }, - "202": { - "description": "Success" - }, - "default": { - "description": "Default error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } + } + } + }, + "definitions": { + "BillingInfoResponse": { + "type": "object", + "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "properties": { + "marketplaceSaasInfo": { + "$ref": "#/definitions/MarketplaceSaaSInfo", + "description": "Marketplace Subscription details" }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Monitors_UpdateMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_Update.json" - } + "partnerBillingEntity": { + "$ref": "#/definitions/PartnerBillingEntity", + "description": "Partner Billing Entity details: Organization Info" } - }, - "delete": { - "tags": [ - "MonitoredSubscriptions" - ], - "summary": "Updates the subscriptions that are being monitored by the Datadog monitor resource", - "operationId": "MonitoredSubscriptions_Delete", - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/MonitorNameParameter" - }, - { - "description": "Configuration name", - "in": "path", - "name": "configurationName", - "required": true, - "type": "string" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success" - }, - "202": { - "description": "Success" - }, - "204": { - "description": "Success" - }, - "default": { - "description": "Default error response.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } + } + }, + "CreateResourceSupportedProperties": { + "type": "object", + "description": "Datadog resource can be created or not properties.", + "properties": { + "name": { + "type": "string", + "description": "The ARM id of the subscription.", + "readOnly": true }, - "x-ms-long-running-operation": true, - "x-ms-examples": { - "Monitors_DeleteMonitoredSubscriptions": { - "$ref": "./examples/MonitoredSubscriptions_Delete.json" - } + "creationSupported": { + "type": "boolean", + "description": "Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature.", + "readOnly": true } } - } - }, - "definitions": { + }, + "CreateResourceSupportedResponse": { + "type": "object", + "description": "Datadog resource can be created or not.", + "properties": { + "properties": { + "$ref": "#/definitions/CreateResourceSupportedProperties", + "description": "Represents the properties of the resource." + } + } + }, + "CreateResourceSupportedResponseList": { + "type": "object", + "description": "Paged collection of CreateResourceSupportedResponse items", + "properties": { + "value": { + "type": "array", + "description": "The CreateResourceSupportedResponse items on this page", + "items": { + "$ref": "#/definitions/CreateResourceSupportedResponse" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, "DatadogAgreementProperties": { - "description": "Terms properties.", "type": "object", + "description": "Terms properties.", "properties": { "publisher": { - "description": "Publisher identifier string.", - "type": "string" + "type": "string", + "description": "Publisher identifier string." }, "product": { - "description": "Product identifier string.", - "type": "string" + "type": "string", + "description": "Product identifier string." }, "plan": { - "description": "Plan identifier string.", - "type": "string" + "type": "string", + "description": "Plan identifier string." }, "licenseTextLink": { - "description": "Link to HTML with Microsoft and Publisher terms.", - "type": "string" + "type": "string", + "description": "Link to HTML with Microsoft and Publisher terms." }, "privacyPolicyLink": { - "description": "Link to the privacy policy of the publisher.", - "type": "string" + "type": "string", + "description": "Link to the privacy policy of the publisher." }, "retrieveDatetime": { + "type": "string", "format": "date-time", - "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false.", - "type": "string" + "description": "Date and time in UTC of when the terms were accepted. This is empty if Accepted is false." }, "signature": { - "description": "Terms signature.", - "type": "string" + "type": "string", + "description": "Terms signature." }, "accepted": { - "description": "If any version of the terms have been accepted, otherwise false.", - "type": "boolean" + "type": "boolean", + "description": "If any version of the terms have been accepted, otherwise false." } } }, "DatadogAgreementResource": { "type": "object", - "x-ms-azure-resource": true, "properties": { "id": { - "description": "ARM id of the resource.", "type": "string", + "description": "ARM id of the resource.", "readOnly": true }, "name": { - "description": "Name of the agreement.", "type": "string", + "description": "Name of the agreement.", "readOnly": true }, "type": { - "description": "The type of the resource.", "type": "string", + "description": "The type of the resource.", "readOnly": true }, "properties": { @@ -1604,169 +1794,96 @@ "description": "Represents the properties of the resource." }, "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData", + "description": "Metadata pertaining to creation and last modification of the resource.", "readOnly": true } } }, "DatadogAgreementResourceListResponse": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogAgreementResource items on this page", "items": { "$ref": "#/definitions/DatadogAgreementResource" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" - } - } - }, - "CreateResourceSupportedProperties": { - "description": "Datadog resource can be created or not properties.", - "type": "object", - "properties": { - "name": { - "description": "The ARM id of the subscription.", "type": "string", - "readOnly": true - }, - "creationSupported": { - "description": "Indicates if selected subscription supports Datadog resource creation, if not it is already being monitored for the selected organization via multi subscription feature. ", - "type": "boolean", - "readOnly": true - } - } - }, - "CreateResourceSupportedResponse": { - "description": "Datadog resource can be created or not.", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/CreateResourceSupportedProperties", - "description": "Represents the properties of the resource." - } - } - }, - "CreateResourceSupportedResponseList": { - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/CreateResourceSupportedResponse" - }, - "x-ms-identifiers": [] - }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "DatadogApiKey": { - "required": [ - "key" - ], "type": "object", "properties": { "createdBy": { - "description": "The user that created the API key.", - "type": "string" + "type": "string", + "description": "The user that created the API key." }, "name": { - "description": "The name of the API key.", - "type": "string" + "type": "string", + "description": "The name of the API key." }, "key": { - "description": "The value of the API key.", - "type": "string" + "type": "string", + "description": "The value of the API key." }, "created": { - "description": "The time of creation of the API key.", - "type": "string" + "type": "string", + "description": "The time of creation of the API key." } - } + }, + "required": [ + "key" + ] }, "DatadogApiKeyListResponse": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogApiKey items on this page", "items": { "$ref": "#/definitions/DatadogApiKey" - } + }, + "x-ms-identifiers": [] }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "DatadogInstallMethod": { + "DatadogHost": { "type": "object", "properties": { - "tool": { - "description": "The tool.", - "type": "string" - }, - "toolVersion": { - "description": "The tool version.", - "type": "string" - }, - "installerVersion": { - "description": "The installer version.", - "type": "string" - } - } - }, - "DatadogLogsAgent": { - "type": "object", - "properties": { - "transport": { - "description": "The transport.", - "type": "string" - } - } - }, - "DatadogHostMetadata": { - "type": "object", - "properties": { - "agentVersion": { - "description": "The agent version.", - "type": "string" - }, - "installMethod": { - "$ref": "#/definitions/DatadogInstallMethod" - }, - "logsAgent": { - "$ref": "#/definitions/DatadogLogsAgent" - } - } - }, - "DatadogHost": { - "type": "object", - "properties": { - "name": { - "description": "The name of the host.", - "type": "string" + "name": { + "type": "string", + "description": "The name of the host." }, "aliases": { - "description": "The aliases for the host installed via the Datadog agent.", "type": "array", + "description": "The aliases for the host installed via the Datadog agent.", "items": { "type": "string" } }, "apps": { - "description": "The Datadog integrations reporting metrics for the host.", "type": "array", + "description": "The Datadog integrations reporting metrics for the host.", "items": { "type": "string" } @@ -1777,780 +1894,919 @@ } }, "DatadogHostListResponse": { - "description": "Response of a list operation.", "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogHost items on this page", "items": { "$ref": "#/definitions/DatadogHost" - } + }, + "x-ms-identifiers": [] }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "LinkedResource": { - "description": "The definition of a linked resource.", + "DatadogHostMetadata": { "type": "object", "properties": { - "id": { - "description": "The ARM id of the linked resource.", - "type": "string" + "agentVersion": { + "type": "string", + "description": "The agent version." }, - "location": { - "description": "The location of the linked resource.", - "type": "string" + "installMethod": { + "$ref": "#/definitions/DatadogInstallMethod" + }, + "logsAgent": { + "$ref": "#/definitions/DatadogLogsAgent" } } }, - "LinkedResourceListResponse": { - "description": "Response of a list operation.", + "DatadogInstallMethod": { "type": "object", "properties": { - "value": { - "description": "Results of a list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/LinkedResource" - } + "tool": { + "type": "string", + "description": "The tool." }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "toolVersion": { + "type": "string", + "description": "The tool version." + }, + "installerVersion": { + "type": "string", + "description": "The installer version." } } }, - "MonitoredResource": { - "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", + "DatadogLogsAgent": { "type": "object", "properties": { - "id": { - "description": "The ARM id of the resource.", - "type": "string" - }, - "sendingMetrics": { - "description": "Flag indicating if resource is sending metrics to Datadog.", - "type": "boolean" - }, - "reasonForMetricsStatus": { - "description": "Reason for why the resource is sending metrics (or why it is not sending).", - "type": "string" + "transport": { + "type": "string", + "description": "The transport." + } + } + }, + "DatadogMonitorResource": { + "type": "object", + "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", + "properties": { + "properties": { + "$ref": "#/definitions/MonitorProperties", + "description": "Properties specific to the monitor resource." }, - "sendingLogs": { - "description": "Flag indicating if resource is sending logs to Datadog.", - "type": "boolean" + "sku": { + "$ref": "#/definitions/ResourceSku" }, - "reasonForLogsStatus": { - "description": "Reason for why the resource is sending logs (or why it is not sending).", - "type": "string" + "identity": { + "$ref": "#/definitions/IdentityProperties" } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] }, - "MonitoredResourceListResponse": { - "description": "Response of a list operation.", + "DatadogMonitorResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The DatadogMonitorResource items on this page", "items": { - "$ref": "#/definitions/MonitoredResource" + "$ref": "#/definitions/DatadogMonitorResource" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "BillingInfoResponse": { - "description": "Marketplace Subscription and Organization details to which resource gets billed into.", + "DatadogMonitorResourceUpdateParameters": { "type": "object", + "description": "The parameters for a PATCH request to a monitor resource.", "properties": { - "marketplaceSaasInfo": { - "description": "Marketplace Subscription details", - "$ref": "#/definitions/MarketplaceSaaSInfo" + "properties": { + "$ref": "#/definitions/MonitorUpdateProperties", + "description": "The set of properties that can be update in a PATCH request to a monitor resource." }, - "partnerBillingEntity": { - "description": "Partner Billing Entity details: Organization Info", - "$ref": "#/definitions/PartnerBillingEntity" + "tags": { + "type": "object", + "description": "The new tags of the monitor resource.", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/ResourceSku" } } }, - "MarketplaceSaaSInfo": { - "description": "Marketplace SAAS Info of the resource.", + "DatadogOrganizationProperties": { "type": "object", + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.", "properties": { - "marketplaceSubscriptionId": { - "description": "Marketplace Subscription Id. This is a GUID-formatted string.", - "type": "string" + "name": { + "type": "string", + "description": "Name of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "marketplaceName": { - "description": "Marketplace Subscription Details: SAAS Name", - "type": "string" + "id": { + "type": "string", + "description": "Id of the Datadog organization.", + "x-ms-mutability": [ + "read", + "create" + ] }, - "marketplaceStatus": { - "description": "Marketplace Subscription Details: SaaS Subscription Status", - "type": "string" + "linkingAuthCode": { + "type": "string", + "description": "The auth code used to linking to an existing Datadog organization.", + "x-ms-mutability": [ + "create" + ] }, - "billedAzureSubscriptionId": { - "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into.", - "type": "string" + "linkingClientId": { + "type": "string", + "description": "The client_id from an existing in exchange for an auth token to link organization.", + "x-ms-mutability": [ + "create" + ] }, - "subscribed": { - "description": "Flag specifying if the Marketplace status is subscribed or not.", - "type": "boolean" + "redirectUri": { + "type": "string", + "description": "The redirect URI for linking.", + "x-ms-mutability": [ + "create" + ] + }, + "apiKey": { + "type": "string", + "description": "Api key associated to the Datadog organization.", + "x-ms-mutability": [ + "create" + ] + }, + "applicationKey": { + "type": "string", + "description": "Application key associated to the Datadog organization.", + "x-ms-mutability": [ + "create" + ] + }, + "enterpriseAppId": { + "type": "string", + "description": "The Id of the Enterprise App used for Single sign on.", + "x-ms-mutability": [ + "create" + ] + }, + "cspm": { + "type": "boolean", + "description": "The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks." } } }, - "PartnerBillingEntity": { - "description": "Partner Billing details associated with the resource.", + "DatadogSetPasswordLink": { "type": "object", "properties": { - "id": { - "description": "The Datadog Organization Id.", - "type": "string" - }, - "name": { - "description": "The Datadog Organization Name.", - "type": "string" - }, - "partnerEntityUri": { - "description": "Link to the datadog organization page", + "setPasswordLink": { "type": "string" } } }, - "MonitoredSubscription": { - "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", + "DatadogSingleSignOnProperties": { "type": "object", "properties": { - "subscriptionId": { - "description": "The subscriptionId to be monitored.", - "required": [ - "subscriptionId" - ], - "type": "string" + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, - "status": { - "description": "The state of monitoring.", - "enum": [ - "InProgress", - "Active", - "Failed", - "Deleting" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "Status" - }, - "type": "string" + "singleSignOnState": { + "$ref": "#/definitions/SingleSignOnStates", + "description": "Various states of the SSO resource" }, - "error": { - "description": "The reason of not monitoring the subscription.", - "type": "string" + "enterpriseAppId": { + "type": "string", + "description": "The Id of the Enterprise App used for Single sign-on." }, - "tagRules": { - "$ref": "#/definitions/MonitoringTagRulesProperties" + "singleSignOnUrl": { + "type": "string", + "description": "The login URL specific to this Datadog Organization.", + "readOnly": true } } }, - "SubscriptionList": { - "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "DatadogSingleSignOnResource": { "type": "object", + "description": "Concrete proxy resource types can be created by aliasing this type using a specific property type.", "properties": { - "operation": { - "description": "The operation for the patch on the resource.", - "enum": [ - "AddBegin", - "AddComplete", - "DeleteBegin", - "DeleteComplete", - "Active" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "Operation" - }, - "x-ms-mutability": [ - "create", - "update" - ] - }, - "monitoredSubscriptionList": { - "description": "List of subscriptions and the state of the monitoring.", - "type": "array", - "items": { - "$ref": "#/definitions/MonitoredSubscription" - } + "properties": { + "$ref": "#/definitions/DatadogSingleSignOnProperties" } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, - "MonitoredSubscriptionProperties": { - "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", + "DatadogSingleSignOnResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { - "name": { - "description": "Name of the monitored subscription resource.", - "type": "string", - "readOnly": true - }, - "id": { - "description": "The id of the monitored subscription resource.", - "type": "string", - "readOnly": true + "value": { + "type": "array", + "description": "The DatadogSingleSignOnResource items on this page", + "items": { + "$ref": "#/definitions/DatadogSingleSignOnResource" + } }, - "type": { - "description": "The type of the monitored subscription resource.", + "nextLink": { "type": "string", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/SubscriptionList" + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "MonitoredSubscriptionPropertiesList": { + "FilteringTag": { "type": "object", + "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", "properties": { + "name": { + "type": "string", + "description": "The name (also known as the key) of the tag." + }, "value": { - "type": "array", - "items": { - "$ref": "#/definitions/MonitoredSubscriptionProperties" - } + "type": "string", + "description": "The value of the tag." }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "action": { + "$ref": "#/definitions/TagAction", + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion." } } }, - "OperationDisplay": { - "description": "The object that represents the operation.", + "IdentityProperties": { "type": "object", "properties": { - "provider": { - "description": "Service provider, i.e., Microsoft.Datadog.", - "type": "string" - }, - "resource": { - "description": "Type on which the operation is performed, e.g., 'monitors'.", - "type": "string" + "principalId": { + "type": "string", + "description": "The identity ID.", + "readOnly": true }, - "operation": { - "description": "Operation type, e.g., read, write, delete, etc.", - "type": "string" + "tenantId": { + "type": "string", + "description": "The tenant ID of resource.", + "readOnly": true }, - "description": { - "description": "Description of the operation, e.g., 'Write monitors'.", - "type": "string" + "type": { + "$ref": "#/definitions/ManagedIdentityTypes", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'." } } }, - "OperationResult": { - "description": "A Microsoft.Datadog REST API operation.", + "LiftrResourceCategories": { + "type": "string", + "enum": [ + "Unknown", + "MonitorLogs" + ], + "x-ms-enum": { + "name": "LiftrResourceCategories", + "modelAsString": true, + "values": [ + { + "name": "Unknown", + "value": "Unknown" + }, + { + "name": "MonitorLogs", + "value": "MonitorLogs" + } + ] + } + }, + "LinkedResource": { "type": "object", + "description": "The definition of a linked resource.", "properties": { - "name": { - "description": "Operation name, i.e., {provider}/{resource}/{operation}.", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationDisplay" + "id": { + "type": "string", + "description": "The ARM id of the linked resource." }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "boolean" + "location": { + "type": "string", + "description": "The location of the linked resource." } } }, - "OperationListResult": { - "description": "Result of GET request to list the Microsoft.Datadog operations.", + "LinkedResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "List of operations supported by the Microsoft.Datadog provider.", "type": "array", + "description": "The LinkedResource items on this page", "items": { - "$ref": "#/definitions/OperationResult" + "$ref": "#/definitions/LinkedResource" } }, "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } - }, - "ResourceSku": { + }, "required": [ - "name" - ], + "value" + ] + }, + "LogRules": { "type": "object", + "description": "Set of rules for sending logs for the Monitor resource.", "properties": { - "name": { - "description": "Name of the SKU in {PlanId} format. For Terraform, the only allowed value is 'Linked'.", - "type": "string" + "sendAadLogs": { + "type": "boolean", + "description": "Flag specifying if AAD logs should be sent for the Monitor resource." + }, + "sendSubscriptionLogs": { + "type": "boolean", + "description": "Flag specifying if Azure subscription logs should be sent for the Monitor resource." + }, + "sendResourceLogs": { + "type": "boolean", + "description": "Flag specifying if Azure resource logs should be sent for the Monitor resource." + }, + "filteringTags": { + "type": "array", + "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs 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.", + "items": { + "$ref": "#/definitions/FilteringTag" + }, + "x-ms-identifiers": [] } } }, - "ProvisioningState": { - "enum": [ - "Accepted", - "Creating", - "Updating", - "Deleting", - "Succeeded", - "Failed", - "Canceled", - "Deleted", - "NotSpecified" - ], + "ManagedIdentityTypes": { "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "ProvisioningState" - }, - "readOnly": true - }, - "MonitoringStatus": { - "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", "enum": [ - "Enabled", - "Disabled" + "SystemAssigned", + "UserAssigned" ], - "default": "Enabled", - "type": "string", "x-ms-enum": { + "name": "ManagedIdentityTypes", "modelAsString": true, - "name": "MonitoringStatus" + "values": [ + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + } + ] } }, - "MarketplaceSubscriptionStatus": { - "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", - "enum": [ - "Provisioning", - "Active", - "Suspended", - "Unsubscribed" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "MarketplaceSubscriptionStatus" - }, - "readOnly": true - }, - "DatadogOrganizationProperties": { - "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well.", + "MarketplaceSaaSInfo": { "type": "object", + "description": "Marketplace SAAS Info of the resource.", "properties": { - "name": { - "description": "Name of the Datadog organization.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "id": { - "description": "Id of the Datadog organization.", - "type": "string", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "linkingAuthCode": { - "description": "The auth code used to linking to an existing Datadog organization.", - "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true - }, - "linkingClientId": { - "description": "The client_id from an existing in exchange for an auth token to link organization.", + "marketplaceSubscriptionId": { "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true + "description": "Marketplace Subscription Id. This is a GUID-formatted string." }, - "redirectUri": { - "description": "The redirect URI for linking.", - "type": "string", - "x-ms-mutability": [ - "create" - ] - }, - "apiKey": { - "description": "Api key associated to the Datadog organization.", + "marketplaceName": { "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true + "description": "Marketplace Subscription Details: SAAS Name" }, - "applicationKey": { - "description": "Application key associated to the Datadog organization.", + "marketplaceStatus": { "type": "string", - "x-ms-mutability": [ - "create" - ], - "x-ms-secret": true + "description": "Marketplace Subscription Details: SaaS Subscription Status" }, - "enterpriseAppId": { - "description": "The Id of the Enterprise App used for Single sign on.", + "billedAzureSubscriptionId": { "type": "string", - "x-ms-mutability": [ - "create" - ] + "description": "The Azure Subscription ID to which the Marketplace Subscription belongs and gets billed into." }, - "cspm": { - "description": "The configuration which describes the state of cloud security posture management. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", - "type": "boolean" + "subscribed": { + "type": "boolean", + "description": "Flag specifying if the Marketplace status is subscribed or not." } } }, - "UserInfo": { - "description": "Includes name, email and optionally, phone number. User Information can't be null.", - "type": "object", - "properties": { - "name": { - "description": "Name of the user", - "maxLength": 50, - "type": "string" - }, - "emailAddress": { - "description": "Email of the user used by Datadog for contacting them if needed", - "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", - "type": "string" - }, - "phoneNumber": { - "description": "Phone number of the user used by Datadog for contacting them if needed", - "maxLength": 40, - "type": "string" - } - }, - "x-ms-secret": true - }, - "LiftrResourceCategories": { + "MarketplaceSubscriptionStatus": { + "type": "string", + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", "enum": [ - "Unknown", - "MonitorLogs" + "Provisioning", + "Active", + "Suspended", + "Unsubscribed" ], - "type": "string", "x-ms-enum": { + "name": "MarketplaceSubscriptionStatus", "modelAsString": true, - "name": "LiftrResourceCategories" - }, - "readOnly": true + "values": [ + { + "name": "Provisioning", + "value": "Provisioning" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Suspended", + "value": "Suspended" + }, + { + "name": "Unsubscribed", + "value": "Unsubscribed" + } + ] + } + }, + "MetricRules": { + "type": "object", + "description": "Set of rules for sending metrics for the Monitor resource.", + "properties": { + "filteringTags": { + "type": "array", + "description": "List of filtering tags to be used for capturing metrics. 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.", + "items": { + "$ref": "#/definitions/FilteringTag" + }, + "x-ms-identifiers": [] + } + } }, "MonitorProperties": { - "description": "Properties specific to the monitor resource.", "type": "object", + "description": "Properties specific to the monitor resource.", "properties": { "provisioningState": { - "$ref": "#/definitions/ProvisioningState" + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, "monitoringStatus": { - "$ref": "#/definitions/MonitoringStatus" + "type": "string", + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "MonitoringStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, "marketplaceSubscriptionStatus": { - "$ref": "#/definitions/MarketplaceSubscriptionStatus" + "$ref": "#/definitions/MarketplaceSubscriptionStatus", + "description": "Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state.", + "readOnly": true }, "datadogOrganizationProperties": { - "$ref": "#/definitions/DatadogOrganizationProperties" + "$ref": "#/definitions/DatadogOrganizationProperties", + "description": "Specify the Datadog organization name. In the case of linking to existing organizations, Id, ApiKey, and Applicationkey is required as well." }, "userInfo": { - "$ref": "#/definitions/UserInfo" + "$ref": "#/definitions/UserInfo", + "description": "Includes name, email and optionally, phone number. User Information can't be null." }, "liftrResourceCategory": { - "$ref": "#/definitions/LiftrResourceCategories" + "$ref": "#/definitions/LiftrResourceCategories", + "readOnly": true }, "liftrResourcePreference": { - "description": "The priority of the resource.", - "format": "int32", "type": "integer", + "format": "int32", + "description": "The priority of the resource.", "readOnly": true } } }, - "ManagedIdentityTypes": { - "enum": [ - "SystemAssigned", - "UserAssigned" - ], - "type": "string", - "description": "Specifies the identity type of the Datadog Monitor. At this time the only allowed value is 'SystemAssigned'.", - "x-ms-enum": { - "modelAsString": true, - "name": "ManagedIdentityTypes" - } - }, - "IdentityProperties": { + "MonitorUpdateProperties": { "type": "object", + "description": "The set of properties that can be update in a PATCH request to a monitor resource.", "properties": { - "principalId": { - "description": "The identity ID.", - "type": "string", - "readOnly": true - }, - "tenantId": { - "description": "The tenant ID of resource.", + "monitoringStatus": { "type": "string", - "readOnly": true + "description": "Flag specifying if the resource monitoring is enabled or disabled.", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "MonitoringStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled" + }, + { + "name": "Disabled", + "value": "Disabled" + } + ] + } }, - "type": { - "$ref": "#/definitions/ManagedIdentityTypes" + "cspm": { + "type": "boolean", + "description": "The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks." } } }, - "DatadogMonitorResource": { - "required": [ - "location" - ], + "MonitoredResource": { "type": "object", - "x-ms-azure-resource": true, + "description": "The properties of a resource currently being monitored by the Datadog monitor resource.", "properties": { "id": { - "description": "ARM id of the monitor resource.", "type": "string", - "readOnly": true + "description": "The ARM id of the resource." }, - "name": { - "description": "Name of the monitor resource.", - "type": "string", - "readOnly": true + "sendingMetrics": { + "type": "boolean", + "description": "Flag indicating if resource is sending metrics to Datadog." }, - "type": { - "description": "The type of the monitor resource.", + "reasonForMetricsStatus": { "type": "string", - "readOnly": true + "description": "Reason for why the resource is sending metrics (or why it is not sending)." }, - "sku": { - "$ref": "#/definitions/ResourceSku" - }, - "properties": { - "$ref": "#/definitions/MonitorProperties" - }, - "identity": { - "$ref": "#/definitions/IdentityProperties" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "location": { - "type": "string" + "sendingLogs": { + "type": "boolean", + "description": "Flag indicating if resource is sending logs to Datadog." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true + "reasonForLogsStatus": { + "type": "string", + "description": "Reason for why the resource is sending logs (or why it is not sending)." } } }, - "DatadogMonitorResourceListResponse": { - "description": "Response of a list operation.", + "MonitoredResourceListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The MonitoredResource items on this page", "items": { - "$ref": "#/definitions/DatadogMonitorResource" + "$ref": "#/definitions/MonitoredResource" } }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, - "MonitorUpdateProperties": { - "description": "The set of properties that can be update in a PATCH request to a monitor resource.", + "MonitoredSubscription": { "type": "object", + "description": "The list of subscriptions and it's monitoring status by current Datadog monitor.", "properties": { - "monitoringStatus": { - "$ref": "#/definitions/MonitoringStatus" + "subscriptionId": { + "type": "string", + "description": "The subscriptionId to be monitored." }, - "cspm": { - "description": "The new cloud security posture management value of the monitor resource. This collects configuration information for all resources in a subscription and track conformance to industry benchmarks.", - "type": "boolean" - } - } - }, - "DatadogMonitorResourceUpdateParameters": { - "description": "The parameters for a PATCH request to a monitor resource.", - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/MonitorUpdateProperties" + "status": { + "$ref": "#/definitions/Status", + "description": "The state of monitoring." }, - "tags": { - "description": "The new tags of the monitor resource.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "error": { + "type": "string", + "description": "The reason of not monitoring the subscription." }, - "sku": { - "$ref": "#/definitions/ResourceSku" + "tagRules": { + "$ref": "#/definitions/MonitoringTagRulesProperties", + "description": "Definition of the properties for a TagRules resource." } } }, - "DatadogSetPasswordLink": { + "MonitoredSubscriptionProperties": { "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", "properties": { - "setPasswordLink": { - "type": "string" + "properties": { + "$ref": "#/definitions/SubscriptionList", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource." } - } - }, - "TagAction": { - "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", - "enum": [ - "Include", - "Exclude" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": true, - "name": "TagAction" - } - }, - "FilteringTag": { - "description": "The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored.", - "type": "object", - "properties": { - "name": { - "description": "The name (also known as the key) of the tag.", - "type": "string" - }, - "value": { - "description": "The value of the tag.", - "type": "string" - }, - "action": { - "$ref": "#/definitions/TagAction" + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" } - } + ] }, - "LogRules": { - "description": "Set of rules for sending logs for the Monitor resource.", + "MonitoredSubscriptionPropertiesList": { "type": "object", + "description": "Paged collection of MonitoredSubscriptionProperties items", "properties": { - "sendAadLogs": { - "description": "Flag specifying if AAD logs should be sent for the Monitor resource.", - "type": "boolean" - }, - "sendSubscriptionLogs": { - "description": "Flag specifying if Azure subscription logs should be sent for the Monitor resource.", - "type": "boolean" - }, - "sendResourceLogs": { - "description": "Flag specifying if Azure resource logs should be sent for the Monitor resource.", - "type": "boolean" - }, - "filteringTags": { - "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs 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.", + "value": { "type": "array", + "description": "The MonitoredSubscriptionProperties items on this page", "items": { - "$ref": "#/definitions/FilteringTag" + "$ref": "#/definitions/MonitoredSubscriptionProperties" } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "MonitoringTagRules": { + "type": "object", + "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "properties": { + "properties": { + "$ref": "#/definitions/MonitoringTagRulesProperties", + "description": "Definition of the properties for a TagRules resource." } - } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] }, - "MetricRules": { - "description": "Set of rules for sending metrics for the Monitor resource.", + "MonitoringTagRulesListResponse": { "type": "object", + "description": "Response of a list operation.", "properties": { - "filteringTags": { - "description": "List of filtering tags to be used for capturing metrics. 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.", + "value": { "type": "array", + "description": "The MonitoringTagRules items on this page", "items": { - "$ref": "#/definitions/FilteringTag" + "$ref": "#/definitions/MonitoringTagRules" } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" } - } + }, + "required": [ + "value" + ] }, "MonitoringTagRulesProperties": { - "description": "Definition of the properties for a TagRules resource.", "type": "object", + "description": "Definition of the properties for a TagRules resource.", "properties": { "provisioningState": { - "$ref": "#/definitions/ProvisioningState" + "$ref": "#/definitions/ProvisioningState", + "readOnly": true }, "logRules": { - "$ref": "#/definitions/LogRules" + "$ref": "#/definitions/LogRules", + "description": "Set of rules for sending logs for the Monitor resource." }, "metricRules": { - "$ref": "#/definitions/MetricRules" + "$ref": "#/definitions/MetricRules", + "description": "Set of rules for sending metrics for the Monitor resource." }, "automuting": { - "description": "Configuration to enable/disable auto-muting flag", - "type": "boolean" + "type": "boolean", + "description": "Configuration to enable/disable auto-muting flag" }, "customMetrics": { - "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent.", - "type": "boolean" + "type": "boolean", + "description": "Configuration to enable/disable custom metrics. If enabled, custom metrics from app insights will be sent." } } }, - "MonitoringTagRules": { - "description": "Capture logs and metrics of Azure resources based on ARM tags.", + "Operation": { + "type": "string", + "description": "The operation for the patch on the resource.", + "enum": [ + "AddBegin", + "AddComplete", + "DeleteBegin", + "DeleteComplete", + "Active" + ], + "x-ms-enum": { + "name": "Operation", + "modelAsString": true, + "values": [ + { + "name": "AddBegin", + "value": "AddBegin" + }, + { + "name": "AddComplete", + "value": "AddComplete" + }, + { + "name": "DeleteBegin", + "value": "DeleteBegin" + }, + { + "name": "DeleteComplete", + "value": "DeleteComplete" + }, + { + "name": "Active", + "value": "Active" + } + ] + } + }, + "OperationDisplay": { "type": "object", - "x-ms-azure-resource": true, + "description": "Represents the display information for an operation.", "properties": { - "name": { - "description": "Name of the rule set.", + "provider": { "type": "string", - "readOnly": true + "description": "The service provider: Microsoft.Datadog." }, - "id": { - "description": "The id of the rule set.", + "resource": { "type": "string", - "readOnly": true + "description": "The resource on which the operation is performed." }, - "type": { - "description": "The type of the rule set.", + "operation": { "type": "string", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/MonitoringTagRulesProperties" + "description": "The type of operation: create, update, delete, etc." }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true + "description": { + "type": "string", + "description": "A localized description of the operation." } } }, - "MonitoringTagRulesListResponse": { - "description": "Response of a list operation.", + "OperationListResult": { "type": "object", + "description": "Represents a paginated list of operation results.", "properties": { "value": { - "description": "Results of a list operation.", "type": "array", + "description": "The list of operations.", "items": { - "$ref": "#/definitions/MonitoringTagRules" - } + "$ref": "#/definitions/OperationResult" + }, + "x-ms-identifiers": [] }, "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "type": "string", + "description": "The URL to get the next set of results, if any." + } + }, + "required": [ + "value" + ] + }, + "OperationResult": { + "type": "object", + "description": "A Microsoft.Datadog REST API operation.", + "properties": { + "name": { + "type": "string", + "description": "Operation name, i.e., {provider}/{resource}/{operation}." + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The object that represents the operation." + }, + "isDataAction": { + "type": "boolean", + "description": "Indicates whether the operation is a data action" + } + } + }, + "PartnerBillingEntity": { + "type": "object", + "description": "Partner Billing details associated with the resource.", + "properties": { + "id": { + "type": "string", + "description": "The Datadog Organization Id." + }, + "name": { + "type": "string", + "description": "The Datadog Organization Name." + }, + "partnerEntityUri": { + "type": "string", + "description": "Link to the datadog organization page" } } }, + "ProvisioningState": { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled", + "Deleted", + "NotSpecified" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Accepted", + "value": "Accepted" + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "Deleting", + "value": "Deleting" + }, + { + "name": "Succeeded", + "value": "Succeeded" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Canceled", + "value": "Canceled" + }, + { + "name": "Deleted", + "value": "Deleted" + }, + { + "name": "NotSpecified", + "value": "NotSpecified" + } + ] + } + }, + "ResourceSku": { + "type": "object", + "description": "Represents the SKU of a resource.", + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU." + } + }, + "required": [ + "name" + ] + }, "SingleSignOnStates": { + "type": "string", "description": "Various states of the SSO resource", "enum": [ "Initial", @@ -2558,94 +2814,126 @@ "Disable", "Existing" ], + "x-ms-enum": { + "name": "SingleSignOnStates", + "modelAsString": true, + "values": [ + { + "name": "Initial", + "value": "Initial" + }, + { + "name": "Enable", + "value": "Enable" + }, + { + "name": "Disable", + "value": "Disable" + }, + { + "name": "Existing", + "value": "Existing" + } + ] + } + }, + "Status": { "type": "string", + "description": "The state of monitoring.", + "enum": [ + "InProgress", + "Active", + "Failed", + "Deleting" + ], "x-ms-enum": { + "name": "Status", "modelAsString": true, - "name": "SingleSignOnStates" + "values": [ + { + "name": "InProgress", + "value": "InProgress" + }, + { + "name": "Active", + "value": "Active" + }, + { + "name": "Failed", + "value": "Failed" + }, + { + "name": "Deleting", + "value": "Deleting" + } + ] } }, - "DatadogSingleSignOnProperties": { + "SubscriptionList": { "type": "object", + "description": "The request to update subscriptions needed to be monitored by the Datadog monitor resource.", "properties": { - "provisioningState": { - "$ref": "#/definitions/ProvisioningState" - }, - "singleSignOnState": { - "$ref": "#/definitions/SingleSignOnStates" - }, - "enterpriseAppId": { - "description": "The Id of the Enterprise App used for Single sign-on.", - "type": "string" + "operation": { + "$ref": "#/definitions/Operation", + "description": "The operation for the patch on the resource.", + "x-ms-mutability": [ + "update", + "create" + ] }, - "singleSignOnUrl": { - "description": "The login URL specific to this Datadog Organization.", - "type": "string", - "readOnly": true + "monitoredSubscriptionList": { + "type": "array", + "description": "List of subscriptions and the state of the monitoring.", + "items": { + "$ref": "#/definitions/MonitoredSubscription" + }, + "x-ms-identifiers": [] } } }, - "DatadogSingleSignOnResource": { + "TagAction": { + "type": "string", + "description": "Valid actions for a filtering tag. Exclusion takes priority over inclusion.", + "enum": [ + "Include", + "Exclude" + ], + "x-ms-enum": { + "name": "TagAction", + "modelAsString": true, + "values": [ + { + "name": "Include", + "value": "Include" + }, + { + "name": "Exclude", + "value": "Exclude" + } + ] + } + }, + "UserInfo": { "type": "object", - "x-ms-azure-resource": true, + "description": "Includes name, email and optionally, phone number. User Information can't be null.", "properties": { - "id": { - "description": "ARM id of the resource.", - "type": "string", - "readOnly": true - }, "name": { - "description": "Name of the configuration.", "type": "string", - "readOnly": true + "description": "Name of the user", + "maxLength": 50 }, - "type": { - "description": "The type of the resource.", + "emailAddress": { "type": "string", - "readOnly": true - }, - "properties": { - "$ref": "#/definitions/DatadogSingleSignOnProperties" - }, - "systemData": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", - "readOnly": true - } - } - }, - "DatadogSingleSignOnResourceListResponse": { - "description": "Response of a list operation.", - "type": "object", - "properties": { - "value": { - "description": "Results of a list operation.", - "type": "array", - "items": { - "$ref": "#/definitions/DatadogSingleSignOnResource" - } + "description": "Email of the user used by Datadog for contacting them if needed", + "pattern": "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" }, - "nextLink": { - "description": "Link to the next set of results, if any.", - "type": "string" + "phoneNumber": { + "type": "string", + "description": "Phone number of the user used by Datadog for contacting them if needed", + "maxLength": 40 } } } }, - "parameters": { - "MonitorNameParameter": { - "in": "path", - "name": "monitorName", - "description": "Monitor resource name", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatadogOrganizationId": { - "in": "query", - "name": "datadogOrganizationId", - "description": "Datadog Organization Id", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } + "parameters": {} } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json index 31ffe3fd95b1..d86a274d5bc2 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json @@ -1,18 +1,20 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "createdBy": "john@example.com", "name": "", - "key": "1111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:20:30" + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" } } - } -} + }, + "operationId": "Monitors_GetDefaultKey", + "title": "Monitors_GetDefaultKey" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json index b1abdec3623a..b8f32c0361a9 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json @@ -1,29 +1,31 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "createdBy": "john@example.com", "name": "", - "key": "1111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:20:30" + "created": "2019-04-05 09:20:30", + "createdBy": "john@example.com", + "key": "1111111111111111aaaaaaaaaaaaaaaa" }, { - "createdBy": "jane@example.com", "name": "", - "key": "2111111111111111aaaaaaaaaaaaaaaa", - "created": "2019-04-05 09:19:53" + "created": "2019-04-05 09:19:53", + "createdBy": "jane@example.com", + "key": "2111111111111111aaaaaaaaaaaaaaaa" } - ], - "nextLink": null + ] } } - } -} + }, + "operationId": "Monitors_ListApiKeys", + "title": "Monitors_ListApiKeys" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json index 10de586d7ea2..47708dbae999 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json @@ -1,14 +1,16 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { "key": "1111111111111111aaaaaaaaaaaaaaaa" - } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {} - } -} + }, + "operationId": "Monitors_SetDefaultKey", + "title": "Monitors_SetDefaultKey" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json index d93a0e44dae7..7db5b2248851 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json @@ -1,26 +1,28 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "marketplaceSaasInfo": { - "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", + "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", "marketplaceName": "MP_RESOURCE", "marketplaceStatus": "Status", - "billedAzureSubscriptionId": "00000000-0000-0000-0000-000000000000", + "marketplaceSubscriptionId": "12345678-1234-1234-1234-123456789012", "subscribed": true }, "partnerBillingEntity": { - "id": "1234567890", "name": "datadogOrganizationName", + "id": "1234567890", "partnerEntityUri": "https://example.com" } } } - } -} + }, + "operationId": "BillingInfo_Get", + "title": "BillingInfo_Get" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json index 9d34c4551ec1..d700744288c8 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json @@ -1,8 +1,8 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "datadogOrganizationId": "00000000-0000-0000-0000" + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,5 +13,7 @@ } } } - } -} + }, + "operationId": "CreationSupported_Get", + "title": "CreationSupported_Get" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json index 1f39298cfd22..2bebc39304aa 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json @@ -1,12 +1,13 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "datadogOrganizationId": "00000000-0000-0000-0000" + "datadogOrganizationId": "00000000-0000-0000-0000", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { "properties": { @@ -14,9 +15,10 @@ "creationSupported": true } } - ], - "nextLink": null + ] } } - } -} + }, + "operationId": "CreationSupported_List", + "title": "CreationSupported_List" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json index dbffd1b67e31..ae261069a225 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json @@ -1,13 +1,14 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { + "nextLink": null, "value": [ { "name": "vm1", @@ -22,9 +23,9 @@ "meta": { "agentVersion": "7.19.2", "installMethod": { + "installerVersion": "install_script-1.0.0", "tool": "install_script", - "toolVersion": "install_script", - "installerVersion": "install_script-1.0.0" + "toolVersion": "install_script" }, "logsAgent": { "transport": "" @@ -44,18 +45,19 @@ "meta": { "agentVersion": "7.18.1", "installMethod": { + "installerVersion": "install_script-1.0.0", "tool": "install_script", - "toolVersion": "install_script", - "installerVersion": "install_script-1.0.0" + "toolVersion": "install_script" }, "logsAgent": { "transport": "HTTP" } } } - ], - "nextLink": null + ] } } - } -} + }, + "operationId": "Monitors_ListHosts", + "title": "Monitors_ListHosts" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json index 396ed0d52571..0681bad97b2b 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -15,5 +15,7 @@ ] } } - } -} + }, + "operationId": "Monitors_ListLinkedResources", + "title": "Monitors_ListLinkedResources" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json index 5de8c551fde6..fe626d4f8f38 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json @@ -1,30 +1,32 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "body": { "properties": { "accepted": true } - } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", "name": "default", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/default", "properties": { - "publisher": "pubid1", - "product": "offid1", - "plan": "planid1", + "accepted": true, "licenseTextLink": "test.licenseLink1", + "plan": "planid1", "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", "retrieveDatetime": "2017-08-15T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": true + "signature": "ASDFSDAFWEFASDGWERLWER" } } } - } -} + }, + "operationId": "MarketplaceAgreements_CreateOrUpdate", + "title": "MarketplaceAgreements_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json index 33b6e0059857..82bf16aee76f 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json @@ -6,40 +6,42 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", "name": "planid1", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id1", "properties": { - "publisher": "pubid1", - "product": "offid1", - "plan": "planid1", + "accepted": false, "licenseTextLink": "test.licenseLink1", + "plan": "planid1", "privacyPolicyLink": "test.privacyPolicyLink1", + "product": "offid1", + "publisher": "pubid1", "retrieveDatetime": "2017-08-15T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": false + "signature": "ASDFSDAFWEFASDGWERLWER" } }, { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", "name": "planid2", "type": "Microsoft.Datadog/agreements", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Datadog/agreements/id2", "properties": { - "publisher": "pubid2", - "product": "offid2", - "plan": "planid2", + "accepted": false, "licenseTextLink": "test.licenseLin2k", + "plan": "planid2", "privacyPolicyLink": "test.privacyPolicyLink2", + "product": "offid2", + "publisher": "pubid2", "retrieveDatetime": "2017-08-14T11:33:07.12132Z", - "signature": "ASDFSDAFWEFASDGWERLWER", - "accepted": false + "signature": "ASDFSDAFWEFASDGWERLWER" } } - ], - "nextLink": null + ] } } - } -} + }, + "operationId": "MarketplaceAgreements_List", + "title": "MarketplaceAgreements_List" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json index 5ea2daf0f691..376b75b2f833 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,13 +11,15 @@ "value": [ { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault", - "sendingMetrics": true, + "reasonForLogsStatus": "CapturedByRules", "reasonForMetricsStatus": "CapturedByRules", "sendingLogs": true, - "reasonForLogsStatus": "CapturedByRules" + "sendingMetrics": true } ] } } - } -} + }, + "operationId": "Monitors_ListMonitoredResources", + "title": "Monitors_ListMonitoredResources" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json index d916c76d79aa..69cd59d795f4 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -1,132 +1,132 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "configurationName": "default", "body": { "properties": { - "operation": "AddBegin", "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } - ] + ], + "operation": "AddBegin" } - } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -136,62 +136,62 @@ "201": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -203,5 +203,7 @@ "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" } } - } -} + }, + "operationId": "MonitoredSubscriptions_CreateorUpdate", + "title": "Monitors_AddMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json index 5544af4b4279..7a85f7b2c4d6 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, @@ -14,5 +14,7 @@ } }, "204": {} - } -} + }, + "operationId": "MonitoredSubscriptions_Delete", + "title": "Monitors_DeleteMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json index 81f77fff65d8..7c55a6af4f7e 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json @@ -1,76 +1,78 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] } } } - } -} + }, + "operationId": "MonitoredSubscriptions_Get", + "title": "Monitors_GetMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json index b2938a92cb20..7c56d77d0bb9 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,62 +11,62 @@ "value": [ { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -75,5 +75,7 @@ ] } } - } -} + }, + "operationId": "MonitoredSubscriptions_List", + "title": "Monitors_GetMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json index d1f3dbc99903..092d40b182fc 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json @@ -1,132 +1,132 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "configurationName": "default", "body": { "properties": { - "operation": "AddComplete", "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } - ] + ], + "operation": "AddComplete" } - } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "type": "Microsoft.Datadog/monitors/monitoredSubscriptions", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/monitoredSubscriptions/default", "properties": { "monitoredSubscriptionList": [ { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "status": "Active", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000000", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } }, { - "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "status": "Failed", + "subscriptionId": "/subscriptions/00000000-0000-0000-0000-000000000001", "tagRules": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] @@ -138,5 +138,7 @@ "Location": "https://management.azure.com/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Datadog/monitors/test?api-version=2022-09-01" } } - } -} + }, + "operationId": "MonitoredSubscriptions_Update", + "title": "Monitors_UpdateMonitoredSubscriptions" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json index 856d235af48d..40cda6bc79bd 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json @@ -1,86 +1,88 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { - "sku": { - "name": "free_Monthly" - }, + "location": "West US", "properties": { - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", "id": "myOrg123", "linkingAuthCode": "someAuthCode", - "linkingClientId": "00000000-0000-0000-0000-000000000000", - "enterpriseAppId": "00000000-0000-0000-0000-000000000000", - "cspm": false + "linkingClientId": "00000000-0000-0000-0000-000000000000" }, + "monitoringStatus": "Enabled", "userInfo": { "name": "Alice", "emailAddress": "alice@microsoft.com", "phoneNumber": "123-456-7890" } }, + "sku": { + "name": "free_Monthly" + }, "tags": { "Environment": "Dev" - }, - "location": "West US" - } + } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } }, "201": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Accepted", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", "id": "myOrg123" }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } -} + }, + "operationId": "Monitors_Create", + "title": "Monitors_Create" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json index 4ededbbaf3da..56570cbd1bd2 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, @@ -13,5 +13,7 @@ } }, "204": {} - } -} + }, + "operationId": "Monitors_Delete", + "title": "Monitors_Delete" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json index a4ebdca2dc26..3e224a1ee2c2 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json @@ -1,35 +1,37 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null, - "cspm": false + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } -} + }, + "operationId": "Monitors_Get", + "title": "Monitors_Get" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json index ef502196ea76..d0c5975cf222 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json @@ -1,38 +1,40 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "cspm": false, + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null, - "cspm": false + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } ] } } - } -} + }, + "operationId": "Monitors_List", + "title": "Monitors_List" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json index 8a2c5f9faa74..db20b8016368 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json @@ -1,37 +1,39 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } ] } } - } -} + }, + "operationId": "Monitors_ListByResourceGroup", + "title": "Monitors_ListByResourceGroup" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json index 141b34324a73..6a8c6323c80e 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json @@ -1,9 +1,6 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", "body": { "properties": { "monitoringStatus": "Enabled" @@ -11,59 +8,64 @@ "tags": { "Environment": "Dev" } - } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Succeeded", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", + "enterpriseAppId": null, "id": "myOrg123", "linkingAuthCode": null, - "linkingClientId": null, - "enterpriseAppId": null + "linkingClientId": null }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Succeeded" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } }, "201": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", "name": "myMonitor", "type": "Microsoft.Datadog/monitors", - "sku": { - "name": "free_Monthly" - }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor", + "location": "West US", "properties": { - "provisioningState": "Accepted", - "monitoringStatus": "Enabled", "datadogOrganizationProperties": { "name": "myOrg", "id": "myOrg123" }, "liftrResourceCategory": "MonitorLogs", - "liftrResourcePreference": 1 + "liftrResourcePreference": 1, + "monitoringStatus": "Enabled", + "provisioningState": "Accepted" + }, + "sku": { + "name": "free_Monthly" }, "tags": { "Environment": "Dev" - }, - "location": "West US" + } } } - } -} + }, + "operationId": "Monitors_Update", + "title": "Monitors_Update" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json index 2e990c81387c..13c8916c1df6 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json @@ -5,19 +5,21 @@ "responses": { "200": { "body": { + "nextLink": null, "value": [ { "name": "Microsoft.Datadog/monitors/write", "display": { - "provider": "Microsoft.Datadog", - "resource": "monitors", + "description": "Write monitors resource", "operation": "write", - "description": "Write monitors resource" + "provider": "Microsoft.Datadog", + "resource": "monitors" } } - ], - "nextLink": null + ] } } - } -} + }, + "operationId": "Operations_List", + "title": "Operations_List" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json index fa608320066a..cedc80e2de38 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,5 +11,7 @@ "setPasswordLink": "https://datadoghq.com/reset_password/tokenvalue123" } } - } -} + }, + "operationId": "Monitors_RefreshSetPasswordLink", + "title": "Monitors_RefreshSetPasswordLink" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json index 1c20a0ee7c14..f0185c1cc185 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -1,16 +1,16 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "configurationName": "default", "body": { "properties": { - "singleSignOnState": "Enable", - "enterpriseAppId": "00000000-0000-0000-0000-000000000000" + "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable" } - } + }, + "configurationName": "default", + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -18,8 +18,8 @@ "name": "default", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", "properties": { - "singleSignOnState": "Enable", "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", "singleSignOnUrl": null } } @@ -29,11 +29,13 @@ "name": "default", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", "properties": { - "singleSignOnState": "Enable", "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", "singleSignOnUrl": null } } } - } -} + }, + "operationId": "SingleSignOnConfigurations_CreateOrUpdate", + "title": "SingleSignOnConfigurations_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json index 2a8756907749..8721d22a879e 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json @@ -1,10 +1,10 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", + "configurationName": "default", "monitorName": "myMonitor", - "configurationName": "default" + "resourceGroupName": "myResourceGroup", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -12,11 +12,13 @@ "name": "default", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", "properties": { - "singleSignOnState": "Enable", "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" } } } - } -} + }, + "operationId": "SingleSignOnConfigurations_Get", + "title": "SingleSignOnConfigurations_Get" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json index 502b4f521872..d3ae5524ac05 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -13,13 +13,15 @@ "name": "default", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/singleSignOnConfigurations/default", "properties": { - "singleSignOnState": "Enable", "enterpriseAppId": "00000000-0000-0000-0000-000000000000", + "singleSignOnState": "Enable", "singleSignOnUrl": "https://www.datadoghq.com/IAmSomeHash" } } ] } } - } -} + }, + "operationId": "SingleSignOnConfigurations_List", + "title": "SingleSignOnConfigurations_List" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json index 814016d40a74..4bebd07d3c67 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json @@ -1,66 +1,68 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor", - "ruleSetName": "default", "body": { "properties": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } - } + }, + "monitorName": "myMonitor", + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "properties": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } } - } -} + }, + "operationId": "TagRules_CreateOrUpdate", + "title": "TagRules_CreateOrUpdate" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json index ede2f9fd56c0..e9e8ca74b252 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json @@ -1,41 +1,43 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "myResourceGroup", "monitorName": "myMonitor", - "ruleSetName": "default" + "resourceGroupName": "myResourceGroup", + "ruleSetName": "default", + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { "body": { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "properties": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } } - } -} + }, + "operationId": "TagRules_Get", + "title": "TagRules_Get" +} \ No newline at end of file diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json index 0b2b359807cb..29d7d1624b74 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json @@ -1,9 +1,9 @@ { "parameters": { "api-version": "2023-10-20", - "subscriptionId": "00000000-0000-0000-0000-000000000000", + "monitorName": "myMonitor", "resourceGroupName": "myResourceGroup", - "monitorName": "myMonitor" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -11,34 +11,36 @@ "value": [ { "name": "default", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "type": "Microsoft.Datadog/monitors/tagRules", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default", "properties": { + "automuting": true, "logRules": { - "sendAadLogs": false, - "sendSubscriptionLogs": true, - "sendResourceLogs": true, "filteringTags": [ { "name": "Environment", - "value": "Prod", - "action": "Include" + "action": "Include", + "value": "Prod" }, { "name": "Environment", - "value": "Dev", - "action": "Exclude" + "action": "Exclude", + "value": "Dev" } - ] + ], + "sendAadLogs": false, + "sendResourceLogs": true, + "sendSubscriptionLogs": true }, "metricRules": { "filteringTags": [] - }, - "automuting": true + } } } ] } } - } -} + }, + "operationId": "TagRules_List", + "title": "TagRules_List" +} \ No newline at end of file From 23d3875390ca83fc7b308a1ca2bab9f6d951e5fe Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Mon, 28 Apr 2025 18:10:52 +0800 Subject: [PATCH 03/32] Update models.tsp --- specification/datadog/Datadog.Management/models.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index b39e036ad83a..8c51730721a9 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -819,7 +819,7 @@ model MonitoredSubscription { /** * The subscriptionId to be monitored. */ - subscriptionId?: string; + subscriptionId: string; /** * The state of monitoring. From 5386953991d0290e68f1db3789b983c58f93947c Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Mon, 28 Apr 2025 18:20:17 +0800 Subject: [PATCH 04/32] update --- .../datadog/Datadog.Management/DatadogMonitorResource.tsp | 2 ++ .../Datadog.Management/DatadogSingleSignOnResource.tsp | 1 + .../datadog/Datadog.Management/MonitoringTagRules.tsp | 1 + specification/datadog/Datadog.Management/models.tsp | 3 +++ .../Microsoft.Datadog/stable/2023-10-20/datadog.json | 5 ++++- 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 872330600837..be21e773a394 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -19,8 +19,10 @@ model DatadogMonitorResource SegmentName = "monitors", NamePattern = "" >; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" sku?: ResourceSku; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" identity?: IdentityProperties; } diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index 2eea592e5b00..94c4f03695cd 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -23,6 +23,7 @@ model DatadogSingleSignOnResource >; } +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" @armResourceOperations interface DatadogSingleSignOnResources { /** diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp index dcc7c6cfa5dd..21f48fce162b 100644 --- a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -25,6 +25,7 @@ model MonitoringTagRules >; } +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" @armResourceOperations interface TagRules { /** diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 8c51730721a9..786deb875265 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -571,6 +571,7 @@ model IdentityProperties { /** * The parameters for a PATCH request to a monitor resource. */ +#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "" model DatadogMonitorResourceUpdateParameters { /** * The set of properties that can be update in a PATCH request to a monitor resource. @@ -620,6 +621,7 @@ model BillingInfoResponse { /** * Marketplace SAAS Info of the resource. */ +#suppress "@azure-tools/typespec-azure-core/casing-style" "" model MarketplaceSaaSInfo { /** * Marketplace Subscription Id. This is a GUID-formatted string. @@ -809,6 +811,7 @@ model SubscriptionList { /** * List of subscriptions and the state of the monitoring. */ + #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "" monitoredSubscriptionList?: MonitoredSubscription[]; } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 5d147d898f55..d98e0c926343 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -2520,7 +2520,10 @@ "$ref": "#/definitions/MonitoringTagRulesProperties", "description": "Definition of the properties for a TagRules resource." } - } + }, + "required": [ + "subscriptionId" + ] }, "MonitoredSubscriptionProperties": { "type": "object", From 3fb269147d0e6bb044d7eb06c77eacf8e3bfec2b Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 9 May 2025 14:57:57 +0800 Subject: [PATCH 05/32] Update tspconfig.yaml --- .../datadog/Datadog.Management/tspconfig.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index 138159e97b8b..7f4e88ee77df 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -1,3 +1,6 @@ +parameters: + "service-dir": + default: "sdk/datadog" emit: - "@azure-tools/typespec-autorest" options: @@ -7,6 +10,41 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" examples-dir: "{project-root}/examples" + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.Datadog" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-datadog" + namespace: "azure.mgmt.datadog" + generate-test: true + generate-sample: true + flavor: "azure" + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-datadog" + namespace: "com.microsoft.azure.management.datadog" + service-name: "Datadog" # human-readable service name, whitespace allowed + flavor: azure + "@azure-tools/typespec-ts": + service-dir: sdk/datadog + package-dir: "arm-datadog" + is-modular-library: true + flavor: "azure" + experimental-extensible-enums: true + package-details: + name: "@azure/arm-datadog" + "@azure-tools/typespec-go": + service-dir: "sdk/resourcemanager/datadog" + package-dir: "armdatadog" + module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}" + fix-const-stuttering: true + flavor: "azure" + generate-samples: true + generate-fakes: true + head-as-boolean: true + inject-spans: true linter: extends: - "@azure-tools/typespec-azure-rulesets/resource-manager" From 4e3042496ca1d86f2ee37b405df2e2fb15a26f33 Mon Sep 17 00:00:00 2001 From: Pan Shao Date: Fri, 9 May 2025 15:34:21 +0800 Subject: [PATCH 06/32] update --- .../datadog/Datadog.Management/models.tsp | 4 ++++ .../stable/2023-10-20/datadog.json | 16 ++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 786deb875265..77b1fc108a03 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -487,12 +487,14 @@ model DatadogOrganizationProperties { * The auth code used to linking to an existing Datadog organization. */ @visibility(Lifecycle.Create) + @secret linkingAuthCode?: string; /** * The client_id from an existing in exchange for an auth token to link organization. */ @visibility(Lifecycle.Create) + @secret linkingClientId?: string; /** @@ -505,12 +507,14 @@ model DatadogOrganizationProperties { * Api key associated to the Datadog organization. */ @visibility(Lifecycle.Create) + @secret apiKey?: string; /** * Application key associated to the Datadog organization. */ @visibility(Lifecycle.Create) + @secret applicationKey?: string; /** diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index d98e0c926343..d807afcf76ac 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -2040,17 +2040,21 @@ }, "linkingAuthCode": { "type": "string", + "format": "password", "description": "The auth code used to linking to an existing Datadog organization.", "x-ms-mutability": [ "create" - ] + ], + "x-ms-secret": true }, "linkingClientId": { "type": "string", + "format": "password", "description": "The client_id from an existing in exchange for an auth token to link organization.", "x-ms-mutability": [ "create" - ] + ], + "x-ms-secret": true }, "redirectUri": { "type": "string", @@ -2061,17 +2065,21 @@ }, "apiKey": { "type": "string", + "format": "password", "description": "Api key associated to the Datadog organization.", "x-ms-mutability": [ "create" - ] + ], + "x-ms-secret": true }, "applicationKey": { "type": "string", + "format": "password", "description": "Application key associated to the Datadog organization.", "x-ms-mutability": [ "create" - ] + ], + "x-ms-secret": true }, "enterpriseAppId": { "type": "string", From e9ddc498ad4182440bfa8e6aae15efa85e08f740 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 9 May 2025 16:55:38 +0800 Subject: [PATCH 07/32] update --- .../DatadogMonitorResource.tsp | 17 ++++++++++------- .../datadog/Datadog.Management/main.tsp | 6 +----- .../datadog/Datadog.Management/models.tsp | 1 - .../datadog/Datadog.Management/routes.tsp | 2 -- .../stable/2023-10-20/datadog.json | 18 ++++++++---------- 5 files changed, 19 insertions(+), 25 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index be21e773a394..e95f8f9516ce 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -8,11 +8,12 @@ using TypeSpec.Rest; using Azure.ResourceManager; using TypeSpec.Http; using TypeSpec.OpenAPI; - namespace Microsoft.Datadog; +@Azure.ResourceManager.Private.armResourceInternal(IdentityProperties) +@TypeSpec.Http.Private.includeInapplicableMetadataInPayload(false) model DatadogMonitorResource - is Azure.ResourceManager.TrackedResource { + extends Azure.ResourceManager.Foundations.TrackedResource { ...ResourceNameParameter< Resource = DatadogMonitorResource, KeyName = "monitorName", @@ -22,6 +23,11 @@ model DatadogMonitorResource #suppress "@azure-tools/typespec-azure-core/documentation-required" "" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" sku?: ResourceSku; + + @Azure.ResourceManager.Private.conditionalClientFlatten + @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) + properties?: MonitorProperties; + #suppress "@azure-tools/typespec-azure-core/documentation-required" "" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" identity?: IdentityProperties; @@ -52,11 +58,8 @@ interface DatadogMonitorResources { update is ArmCustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, - Response = ArmResponse | ArmResourceCreatedResponse< - DatadogMonitorResource, - LroHeaders = ArmAsyncOperationHeader & - Azure.Core.Foundations.RetryAfterHeader - > + Response = ArmResponse | (ArmResourceCreatedResponse & + ArmLroLocationHeader) >; /** diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index 97801e63e3ba..50d388d8bf81 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -27,13 +27,9 @@ using Azure.ResourceManager; using TypeSpec.Versioning; using Azure.ResourceManager.Private; -/** - * // FIXME: (missing-service-description) Add service description - */ @armProviderNamespace -@service(#{ title: "Microsoft Datadog Client" }) +@service(#{ title: "Microsoft.Datadog" }) @versioned(Versions) -// FIXME: Common type version v1 is not supported for now. Set to v3. @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3) namespace Microsoft.Datadog; diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 77b1fc108a03..6fb224cbf718 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -208,7 +208,6 @@ model DatadogAgreementProperties { /** * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. */ - // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. retrieveDatetime?: utcDateTime; /** diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index f2c4ada8c961..07adf8d1150b 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -1,5 +1,3 @@ -// FIXME: Operations in this file are not detected as a resource operation, please confirm the conversion result manually - import "@azure-tools/typespec-azure-core"; import "@typespec/rest"; import "./models.tsp"; diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index d807afcf76ac..13a52ef5ec7c 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -1,9 +1,8 @@ { "swagger": "2.0", "info": { - "title": "Microsoft Datadog Client", + "title": "Microsoft.Datadog", "version": "2023-10-20", - "description": "// FIXME: (missing-service-description) Add service description", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" @@ -498,14 +497,14 @@ } }, "201": { - "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/DatadogMonitorResource" }, "headers": { - "Azure-AsyncOperation": { + "Location": { "type": "string", - "description": "A link to the status monitor" + "description": "The Location header contains the URL where the status of the long running operation can be checked." }, "Retry-After": { "type": "integer", @@ -527,7 +526,7 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true }, @@ -1958,15 +1957,14 @@ }, "DatadogMonitorResource": { "type": "object", - "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", "properties": { + "sku": { + "$ref": "#/definitions/ResourceSku" + }, "properties": { "$ref": "#/definitions/MonitorProperties", "description": "Properties specific to the monitor resource." }, - "sku": { - "$ref": "#/definitions/ResourceSku" - }, "identity": { "$ref": "#/definitions/IdentityProperties" } From 2a21db906ee60d3dfef4e1b833c0c555b28af8c3 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 9 May 2025 17:27:42 +0800 Subject: [PATCH 08/32] update --- .../datadog/Datadog.Management/DatadogMonitorResource.tsp | 4 ++++ .../datadog/Datadog.Management/back-compatible.tsp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index e95f8f9516ce..8daca7f242df 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -10,6 +10,9 @@ using TypeSpec.Http; using TypeSpec.OpenAPI; namespace Microsoft.Datadog; +#suppress "@azure-tools/typespec-azure-core/documentation-required" "" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "" @Azure.ResourceManager.Private.armResourceInternal(IdentityProperties) @TypeSpec.Http.Private.includeInapplicableMetadataInPayload(false) model DatadogMonitorResource @@ -24,6 +27,7 @@ model DatadogMonitorResource #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" sku?: ResourceSku; + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "" @Azure.ResourceManager.Private.conditionalClientFlatten @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) properties?: MonitorProperties; diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp index 565d9dea861c..955e5ea5663d 100644 --- a/specification/datadog/Datadog.Management/back-compatible.tsp +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -16,3 +16,9 @@ using Microsoft.Datadog; "body" ); @@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); + +@@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); +@@clientName(CreateResourceSupportedResponse, + "CreateResourceSupportedResult", + "csharp" +); From f4105f7f3b7cbe9f076e3e99fa61a56ebce1b9c4 Mon Sep 17 00:00:00 2001 From: Pan Shao Date: Wed, 14 May 2025 17:04:16 +0800 Subject: [PATCH 09/32] update --- .../Datadog.Management/MonitoredSubscriptionProperties.tsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index 47f01e46d6e1..3046d1dd8112 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -40,7 +40,8 @@ interface MonitoredSubscriptions { MonitoredSubscriptionProperties, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< MonitoredSubscriptionProperties, - ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader + ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader > | ArmAcceptedLroResponse >; From bb7b1922301a48101a00ae241fdd8a51b6b57e5a Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 23 May 2025 17:20:15 +0800 Subject: [PATCH 10/32] Fix optional body issues --- .../DatadogMonitorResource.tsp | 35 +++++++++++++--- .../DatadogSingleSignOnResource.tsp | 35 +++++++++++++++- .../MonitoredSubscriptionProperties.tsp | 42 ++++++++++++++++--- .../Datadog.Management/MonitoringTagRules.tsp | 35 ++++++++++++++-- .../Datadog.Management/back-compatible.tsp | 14 ------- .../datadog/Datadog.Management/routes.tsp | 3 +- .../stable/2023-10-20/datadog.json | 14 +++---- 7 files changed, 140 insertions(+), 38 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 8daca7f242df..4a9aa388f4cb 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -37,6 +37,27 @@ model DatadogMonitorResource identity?: IdentityProperties; } +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" +@armResourceOperations +interface DatadogMonitorResourcesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + {}, + ErrorResponse + > {} + @armResourceOperations interface DatadogMonitorResources { /** @@ -51,7 +72,10 @@ interface DatadogMonitorResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("Monitors_Create") - create is ArmResourceCreateOrReplaceAsync; + create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< + DatadogMonitorResource, + OptionalRequestBody = true + >; /** * Update a monitor resource. @@ -59,11 +83,12 @@ interface DatadogMonitorResources { #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @patch(#{ implicitOptionality: false }) @operationId("Monitors_Update") - update is ArmCustomPatchAsync< + update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, Response = ArmResponse | (ArmResourceCreatedResponse & - ArmLroLocationHeader) + ArmLroLocationHeader), + OptionalRequestBody = true >; /** @@ -194,5 +219,5 @@ interface DatadogMonitorResources { @@doc(DatadogMonitorResource.properties, "Properties specific to the monitor resource." ); -@@doc(DatadogMonitorResources.create::parameters.resource, ""); -@@doc(DatadogMonitorResources.update::parameters.properties, ""); +@@doc(DatadogMonitorResources.create::parameters.body, ""); +@@doc(DatadogMonitorResources.update::parameters.body, ""); diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index 94c4f03695cd..a0546c22389a 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -23,6 +23,34 @@ model DatadogSingleSignOnResource >; } +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" +@armResourceOperations +interface DatadogSingleSignOnResourcesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * Configuration name + */ + @path + @segment("singleSignOnConfigurations") + configurationName: string, + }, + ErrorResponse + > {} + #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" @armResourceOperations interface DatadogSingleSignOnResources { @@ -38,7 +66,10 @@ interface DatadogSingleSignOnResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" @operationId("SingleSignOnConfigurations_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync; + createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< + DatadogSingleSignOnResource, + OptionalRequestBody = true + >; /** * List the single sign-on configurations for a given monitor resource. @@ -53,4 +84,4 @@ interface DatadogSingleSignOnResources { @@doc(DatadogSingleSignOnResource.name, "Configuration name"); @@doc(DatadogSingleSignOnResource.properties, ""); -@@doc(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, ""); +@@doc(DatadogSingleSignOnResources.createOrUpdate::parameters.body, ""); diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index 3046d1dd8112..f3f666dbea2e 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -25,6 +25,34 @@ model MonitoredSubscriptionProperties >; } +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" +@armResourceOperations +interface MonitoredSubscriptionsOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * The configuration name. Only 'default' value is supported. + */ + @path + @segment("monitoredSubscriptions") + configurationName: string, + }, + ErrorResponse + > {} + @armResourceOperations interface MonitoredSubscriptions { /** @@ -36,22 +64,24 @@ interface MonitoredSubscriptions { * Add the subscriptions that should be monitored by the Datadog monitor resource. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - createorUpdate is ArmResourceCreateOrReplaceAsync< + createorUpdate is MonitoredSubscriptionsOps.CreateOrUpdateAsync< MonitoredSubscriptionProperties, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< MonitoredSubscriptionProperties, ArmLroLocationHeader & Azure.Core.Foundations.RetryAfterHeader - > | ArmAcceptedLroResponse + > | ArmAcceptedLroResponse, + OptionalRequestBody = true >; /** * Updates the subscriptions that are being monitored by the Datadog monitor resource */ @patch(#{ implicitOptionality: false }) - update is ArmCustomPatchAsync< + update is MonitoredSubscriptionsOps.CustomPatchAsync< MonitoredSubscriptionProperties, - PatchModel = MonitoredSubscriptionProperties + PatchModel = MonitoredSubscriptionProperties, + OptionalRequestBody = true >; /** @@ -78,5 +108,5 @@ interface MonitoredSubscriptions { @@doc(MonitoredSubscriptionProperties.properties, "The request to update subscriptions needed to be monitored by the Datadog monitor resource." ); -@@doc(MonitoredSubscriptions.createorUpdate::parameters.resource, ""); -@@doc(MonitoredSubscriptions.update::parameters.properties, ""); +@@doc(MonitoredSubscriptions.createorUpdate::parameters.body, ""); +@@doc(MonitoredSubscriptions.update::parameters.body, ""); diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp index 21f48fce162b..fe38964b9838 100644 --- a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -25,6 +25,34 @@ model MonitoringTagRules >; } +#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" +@armResourceOperations +interface TagRulesOps + extends Azure.ResourceManager.Legacy.LegacyOperations< + { + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...ResourceGroupParameter, + ...Azure.ResourceManager.Legacy.Provider, + + /** + * Monitor resource name + */ + @path + @segment("monitors") + monitorName: string, + }, + { + /** + * Rule set name + */ + @path + @segment("tagRules") + ruleSetName: string, + }, + ErrorResponse + > {} + #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" @armResourceOperations interface TagRules { @@ -37,9 +65,10 @@ interface TagRules { * Create or update a tag rule set for a given monitor resource. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" - createOrUpdate is ArmResourceCreateOrReplaceSync< + createOrUpdate is TagRulesOps.CreateOrUpdateAsync< MonitoringTagRules, - Response = ArmResourceUpdatedResponse + Response = ArmResourceUpdatedResponse, + OptionalRequestBody = true >; /** @@ -55,4 +84,4 @@ interface TagRules { @@doc(MonitoringTagRules.properties, "Definition of the properties for a TagRules resource." ); -@@doc(TagRules.createOrUpdate::parameters.resource, ""); +@@doc(TagRules.createOrUpdate::parameters.body, ""); diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp index 955e5ea5663d..a29a98c6ec27 100644 --- a/specification/datadog/Datadog.Management/back-compatible.tsp +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -3,20 +3,6 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; using Microsoft.Datadog; -@@clientName(DatadogMonitorResources.create::parameters.resource, "body"); -@@clientName(DatadogMonitorResources.update::parameters.properties, "body"); - -@@clientName(TagRules.createOrUpdate::parameters.resource, "body"); - -@@clientName(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, - "body" -); - -@@clientName(MonitoredSubscriptions.createorUpdate::parameters.resource, - "body" -); -@@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); - @@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); @@clientName(CreateResourceSupportedResponse, "CreateResourceSupportedResult", diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index 07adf8d1150b..7656ded42856 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -40,7 +40,8 @@ interface MarketplaceAgreementsOperationGroup { Request = DatadogAgreementResource, Response = DatadogAgreementResource, Scope = SubscriptionActionScope, - Parameters = {} + Parameters = {}, + OptionalRequestBody = true >; } diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 13a52ef5ec7c..7e9f5d667b82 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -144,7 +144,7 @@ "name": "body", "in": "body", "description": "The request body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/DatadogAgreementResource" } @@ -409,7 +409,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/DatadogMonitorResource" } @@ -483,7 +483,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/DatadogMonitorResourceUpdateParameters" } @@ -1016,7 +1016,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/MonitoredSubscriptionProperties" } @@ -1111,7 +1111,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/MonitoredSubscriptionProperties" } @@ -1457,7 +1457,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/DatadogSingleSignOnResource" } @@ -1640,7 +1640,7 @@ "name": "body", "in": "body", "description": "", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/MonitoringTagRules" } From ecbeb4601dc8d74baadfcd14ab9ad2c95fd729af Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Fri, 6 Jun 2025 14:56:52 +0800 Subject: [PATCH 11/32] Delete conditionalClientFlatten and run prettier check --- .../Datadog.Management/DatadogMonitorResource.tsp | 5 ++--- .../DatadogSingleSignOnResource.tsp | 2 +- .../MonitoredSubscriptionProperties.tsp | 4 ++-- .../Datadog.Management/MonitoringTagRules.tsp | 2 +- .../datadog/Datadog.Management/back-compatible.tsp | 14 ++++++++++++++ .../examples/2023-10-20/ApiKeys_GetDefaultKey.json | 2 +- .../examples/2023-10-20/ApiKeys_List.json | 2 +- .../examples/2023-10-20/ApiKeys_SetDefaultKey.json | 2 +- .../examples/2023-10-20/BillingInfo_Get.json | 2 +- .../examples/2023-10-20/CreationSupported_Get.json | 2 +- .../2023-10-20/CreationSupported_List.json | 2 +- .../examples/2023-10-20/Hosts_List.json | 2 +- .../examples/2023-10-20/LinkedResources_List.json | 2 +- .../2023-10-20/MarketplaceAgreements_Create.json | 2 +- .../2023-10-20/MarketplaceAgreements_List.json | 2 +- .../2023-10-20/MonitoredResources_List.json | 2 +- .../MonitoredSubscriptions_CreateorUpdate.json | 2 +- .../2023-10-20/MonitoredSubscriptions_Delete.json | 2 +- .../2023-10-20/MonitoredSubscriptions_Get.json | 2 +- .../2023-10-20/MonitoredSubscriptions_List.json | 2 +- .../2023-10-20/MonitoredSubscriptions_Update.json | 2 +- .../examples/2023-10-20/Monitors_Create.json | 2 +- .../examples/2023-10-20/Monitors_Delete.json | 2 +- .../examples/2023-10-20/Monitors_Get.json | 2 +- .../examples/2023-10-20/Monitors_List.json | 2 +- .../2023-10-20/Monitors_ListByResourceGroup.json | 2 +- .../examples/2023-10-20/Monitors_Update.json | 2 +- .../examples/2023-10-20/Operations_List.json | 2 +- .../2023-10-20/RefreshSetPassword_Get.json | 2 +- .../SingleSignOnConfigurations_CreateOrUpdate.json | 2 +- .../2023-10-20/SingleSignOnConfigurations_Get.json | 2 +- .../SingleSignOnConfigurations_List.json | 2 +- .../2023-10-20/TagRules_CreateOrUpdate.json | 2 +- .../examples/2023-10-20/TagRules_Get.json | 2 +- .../examples/2023-10-20/TagRules_List.json | 2 +- .../2023-10-20/examples/ApiKeys_GetDefaultKey.json | 2 +- .../stable/2023-10-20/examples/ApiKeys_List.json | 2 +- .../2023-10-20/examples/ApiKeys_SetDefaultKey.json | 2 +- .../2023-10-20/examples/BillingInfo_Get.json | 2 +- .../2023-10-20/examples/CreationSupported_Get.json | 2 +- .../examples/CreationSupported_List.json | 2 +- .../stable/2023-10-20/examples/Hosts_List.json | 2 +- .../2023-10-20/examples/LinkedResources_List.json | 2 +- .../examples/MarketplaceAgreements_Create.json | 2 +- .../examples/MarketplaceAgreements_List.json | 2 +- .../examples/MonitoredResources_List.json | 2 +- .../MonitoredSubscriptions_CreateorUpdate.json | 2 +- .../examples/MonitoredSubscriptions_Delete.json | 2 +- .../examples/MonitoredSubscriptions_Get.json | 2 +- .../examples/MonitoredSubscriptions_List.json | 2 +- .../examples/MonitoredSubscriptions_Update.json | 2 +- .../2023-10-20/examples/Monitors_Create.json | 2 +- .../2023-10-20/examples/Monitors_Delete.json | 2 +- .../stable/2023-10-20/examples/Monitors_Get.json | 2 +- .../stable/2023-10-20/examples/Monitors_List.json | 2 +- .../examples/Monitors_ListByResourceGroup.json | 2 +- .../2023-10-20/examples/Monitors_Update.json | 2 +- .../2023-10-20/examples/Operations_List.json | 2 +- .../examples/RefreshSetPassword_Get.json | 2 +- .../SingleSignOnConfigurations_CreateOrUpdate.json | 2 +- .../examples/SingleSignOnConfigurations_Get.json | 2 +- .../examples/SingleSignOnConfigurations_List.json | 2 +- .../examples/TagRules_CreateOrUpdate.json | 2 +- .../stable/2023-10-20/examples/TagRules_Get.json | 2 +- .../stable/2023-10-20/examples/TagRules_List.json | 2 +- 65 files changed, 80 insertions(+), 67 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 4a9aa388f4cb..aab9bca4fc02 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -28,7 +28,6 @@ model DatadogMonitorResource sku?: ResourceSku; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "" - @Azure.ResourceManager.Private.conditionalClientFlatten @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) properties?: MonitorProperties; @@ -219,5 +218,5 @@ interface DatadogMonitorResources { @@doc(DatadogMonitorResource.properties, "Properties specific to the monitor resource." ); -@@doc(DatadogMonitorResources.create::parameters.body, ""); -@@doc(DatadogMonitorResources.update::parameters.body, ""); +@@doc(DatadogMonitorResources.create::parameters.resource, ""); +@@doc(DatadogMonitorResources.update::parameters.properties, ""); diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index a0546c22389a..c00d48caea63 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -84,4 +84,4 @@ interface DatadogSingleSignOnResources { @@doc(DatadogSingleSignOnResource.name, "Configuration name"); @@doc(DatadogSingleSignOnResource.properties, ""); -@@doc(DatadogSingleSignOnResources.createOrUpdate::parameters.body, ""); +@@doc(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index f3f666dbea2e..afaa2367a178 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -108,5 +108,5 @@ interface MonitoredSubscriptions { @@doc(MonitoredSubscriptionProperties.properties, "The request to update subscriptions needed to be monitored by the Datadog monitor resource." ); -@@doc(MonitoredSubscriptions.createorUpdate::parameters.body, ""); -@@doc(MonitoredSubscriptions.update::parameters.body, ""); +@@doc(MonitoredSubscriptions.createorUpdate::parameters.resource, ""); +@@doc(MonitoredSubscriptions.update::parameters.properties, ""); diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp index fe38964b9838..715fc6987330 100644 --- a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -84,4 +84,4 @@ interface TagRules { @@doc(MonitoringTagRules.properties, "Definition of the properties for a TagRules resource." ); -@@doc(TagRules.createOrUpdate::parameters.body, ""); +@@doc(TagRules.createOrUpdate::parameters.resource, ""); diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp index a29a98c6ec27..955e5ea5663d 100644 --- a/specification/datadog/Datadog.Management/back-compatible.tsp +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -3,6 +3,20 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; using Microsoft.Datadog; +@@clientName(DatadogMonitorResources.create::parameters.resource, "body"); +@@clientName(DatadogMonitorResources.update::parameters.properties, "body"); + +@@clientName(TagRules.createOrUpdate::parameters.resource, "body"); + +@@clientName(DatadogSingleSignOnResources.createOrUpdate::parameters.resource, + "body" +); + +@@clientName(MonitoredSubscriptions.createorUpdate::parameters.resource, + "body" +); +@@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); + @@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); @@clientName(CreateResourceSupportedResponse, "CreateResourceSupportedResult", diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json index d86a274d5bc2..a0a653ae2104 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_GetDefaultKey.json @@ -17,4 +17,4 @@ }, "operationId": "Monitors_GetDefaultKey", "title": "Monitors_GetDefaultKey" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json index b8f32c0361a9..03d9a2932fdc 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_List.json @@ -28,4 +28,4 @@ }, "operationId": "Monitors_ListApiKeys", "title": "Monitors_ListApiKeys" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json index 47708dbae999..dd343240d845 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/ApiKeys_SetDefaultKey.json @@ -13,4 +13,4 @@ }, "operationId": "Monitors_SetDefaultKey", "title": "Monitors_SetDefaultKey" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json index 7db5b2248851..82fa74dcc8f4 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/BillingInfo_Get.json @@ -25,4 +25,4 @@ }, "operationId": "BillingInfo_Get", "title": "BillingInfo_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json index d700744288c8..616ef3ccb642 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_Get.json @@ -16,4 +16,4 @@ }, "operationId": "CreationSupported_Get", "title": "CreationSupported_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json index 2bebc39304aa..e7a8339a82df 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/CreationSupported_List.json @@ -21,4 +21,4 @@ }, "operationId": "CreationSupported_List", "title": "CreationSupported_List" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json index ae261069a225..a44374045838 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Hosts_List.json @@ -60,4 +60,4 @@ }, "operationId": "Monitors_ListHosts", "title": "Monitors_ListHosts" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json index 0681bad97b2b..7fe429c0a7d0 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/LinkedResources_List.json @@ -18,4 +18,4 @@ }, "operationId": "Monitors_ListLinkedResources", "title": "Monitors_ListLinkedResources" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json index fe626d4f8f38..c578df5076e6 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_Create.json @@ -29,4 +29,4 @@ }, "operationId": "MarketplaceAgreements_CreateOrUpdate", "title": "MarketplaceAgreements_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json index 82bf16aee76f..0433ea7477f1 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MarketplaceAgreements_List.json @@ -44,4 +44,4 @@ }, "operationId": "MarketplaceAgreements_List", "title": "MarketplaceAgreements_List" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json index 376b75b2f833..55f60b74f95a 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredResources_List.json @@ -22,4 +22,4 @@ }, "operationId": "Monitors_ListMonitoredResources", "title": "Monitors_ListMonitoredResources" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json index 69cd59d795f4..1887d3d37643 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_CreateorUpdate.json @@ -206,4 +206,4 @@ }, "operationId": "MonitoredSubscriptions_CreateorUpdate", "title": "Monitors_AddMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json index 7a85f7b2c4d6..15a1e06c11c8 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "MonitoredSubscriptions_Delete", "title": "Monitors_DeleteMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json index 7c55a6af4f7e..6b8c9e5cf04b 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Get.json @@ -75,4 +75,4 @@ }, "operationId": "MonitoredSubscriptions_Get", "title": "Monitors_GetMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json index 7c56d77d0bb9..c15fff724ded 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_List.json @@ -78,4 +78,4 @@ }, "operationId": "MonitoredSubscriptions_List", "title": "Monitors_GetMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json index 092d40b182fc..9ec055e49d4a 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/MonitoredSubscriptions_Update.json @@ -141,4 +141,4 @@ }, "operationId": "MonitoredSubscriptions_Update", "title": "Monitors_UpdateMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json index 40cda6bc79bd..62b8fd2a1fb5 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Create.json @@ -85,4 +85,4 @@ }, "operationId": "Monitors_Create", "title": "Monitors_Create" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json index 56570cbd1bd2..df382cb7ee29 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Delete.json @@ -16,4 +16,4 @@ }, "operationId": "Monitors_Delete", "title": "Monitors_Delete" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json index 3e224a1ee2c2..d58714f86882 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Get.json @@ -34,4 +34,4 @@ }, "operationId": "Monitors_Get", "title": "Monitors_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json index d0c5975cf222..abb030a27de4 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_List.json @@ -37,4 +37,4 @@ }, "operationId": "Monitors_List", "title": "Monitors_List" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json index db20b8016368..9db4d603a6a1 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_ListByResourceGroup.json @@ -36,4 +36,4 @@ }, "operationId": "Monitors_ListByResourceGroup", "title": "Monitors_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json index 6a8c6323c80e..9d0d0218b1b1 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Monitors_Update.json @@ -68,4 +68,4 @@ }, "operationId": "Monitors_Update", "title": "Monitors_Update" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json index 13c8916c1df6..86287ce46762 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/Operations_List.json @@ -22,4 +22,4 @@ }, "operationId": "Operations_List", "title": "Operations_List" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json index cedc80e2de38..49452066f46f 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/RefreshSetPassword_Get.json @@ -14,4 +14,4 @@ }, "operationId": "Monitors_RefreshSetPasswordLink", "title": "Monitors_RefreshSetPasswordLink" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json index f0185c1cc185..438d7dd7836e 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_CreateOrUpdate.json @@ -38,4 +38,4 @@ }, "operationId": "SingleSignOnConfigurations_CreateOrUpdate", "title": "SingleSignOnConfigurations_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json index 8721d22a879e..93c8ddb17135 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_Get.json @@ -21,4 +21,4 @@ }, "operationId": "SingleSignOnConfigurations_Get", "title": "SingleSignOnConfigurations_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json index d3ae5524ac05..0f21f413f3f7 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/SingleSignOnConfigurations_List.json @@ -24,4 +24,4 @@ }, "operationId": "SingleSignOnConfigurations_List", "title": "SingleSignOnConfigurations_List" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json index 4bebd07d3c67..afce76c6aaa0 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_CreateOrUpdate.json @@ -65,4 +65,4 @@ }, "operationId": "TagRules_CreateOrUpdate", "title": "TagRules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json index e9e8ca74b252..bf5f1bb0db37 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_Get.json @@ -40,4 +40,4 @@ }, "operationId": "TagRules_Get", "title": "TagRules_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json index 29d7d1624b74..3d7fcf30e39c 100644 --- a/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json +++ b/specification/datadog/Datadog.Management/examples/2023-10-20/TagRules_List.json @@ -43,4 +43,4 @@ }, "operationId": "TagRules_List", "title": "TagRules_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json index d86a274d5bc2..a0a653ae2104 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_GetDefaultKey.json @@ -17,4 +17,4 @@ }, "operationId": "Monitors_GetDefaultKey", "title": "Monitors_GetDefaultKey" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json index b8f32c0361a9..03d9a2932fdc 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_List.json @@ -28,4 +28,4 @@ }, "operationId": "Monitors_ListApiKeys", "title": "Monitors_ListApiKeys" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json index 47708dbae999..dd343240d845 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/ApiKeys_SetDefaultKey.json @@ -13,4 +13,4 @@ }, "operationId": "Monitors_SetDefaultKey", "title": "Monitors_SetDefaultKey" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json index 7db5b2248851..82fa74dcc8f4 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/BillingInfo_Get.json @@ -25,4 +25,4 @@ }, "operationId": "BillingInfo_Get", "title": "BillingInfo_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json index d700744288c8..616ef3ccb642 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_Get.json @@ -16,4 +16,4 @@ }, "operationId": "CreationSupported_Get", "title": "CreationSupported_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json index 2bebc39304aa..e7a8339a82df 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/CreationSupported_List.json @@ -21,4 +21,4 @@ }, "operationId": "CreationSupported_List", "title": "CreationSupported_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json index ae261069a225..a44374045838 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Hosts_List.json @@ -60,4 +60,4 @@ }, "operationId": "Monitors_ListHosts", "title": "Monitors_ListHosts" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json index 0681bad97b2b..7fe429c0a7d0 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/LinkedResources_List.json @@ -18,4 +18,4 @@ }, "operationId": "Monitors_ListLinkedResources", "title": "Monitors_ListLinkedResources" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json index fe626d4f8f38..c578df5076e6 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_Create.json @@ -29,4 +29,4 @@ }, "operationId": "MarketplaceAgreements_CreateOrUpdate", "title": "MarketplaceAgreements_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json index 82bf16aee76f..0433ea7477f1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MarketplaceAgreements_List.json @@ -44,4 +44,4 @@ }, "operationId": "MarketplaceAgreements_List", "title": "MarketplaceAgreements_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json index 376b75b2f833..55f60b74f95a 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredResources_List.json @@ -22,4 +22,4 @@ }, "operationId": "Monitors_ListMonitoredResources", "title": "Monitors_ListMonitoredResources" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json index 69cd59d795f4..1887d3d37643 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_CreateorUpdate.json @@ -206,4 +206,4 @@ }, "operationId": "MonitoredSubscriptions_CreateorUpdate", "title": "Monitors_AddMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json index 7a85f7b2c4d6..15a1e06c11c8 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Delete.json @@ -17,4 +17,4 @@ }, "operationId": "MonitoredSubscriptions_Delete", "title": "Monitors_DeleteMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json index 7c55a6af4f7e..6b8c9e5cf04b 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Get.json @@ -75,4 +75,4 @@ }, "operationId": "MonitoredSubscriptions_Get", "title": "Monitors_GetMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json index 7c56d77d0bb9..c15fff724ded 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_List.json @@ -78,4 +78,4 @@ }, "operationId": "MonitoredSubscriptions_List", "title": "Monitors_GetMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json index 092d40b182fc..9ec055e49d4a 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/MonitoredSubscriptions_Update.json @@ -141,4 +141,4 @@ }, "operationId": "MonitoredSubscriptions_Update", "title": "Monitors_UpdateMonitoredSubscriptions" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json index 40cda6bc79bd..62b8fd2a1fb5 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Create.json @@ -85,4 +85,4 @@ }, "operationId": "Monitors_Create", "title": "Monitors_Create" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json index 56570cbd1bd2..df382cb7ee29 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Delete.json @@ -16,4 +16,4 @@ }, "operationId": "Monitors_Delete", "title": "Monitors_Delete" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json index 3e224a1ee2c2..d58714f86882 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Get.json @@ -34,4 +34,4 @@ }, "operationId": "Monitors_Get", "title": "Monitors_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json index d0c5975cf222..abb030a27de4 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_List.json @@ -37,4 +37,4 @@ }, "operationId": "Monitors_List", "title": "Monitors_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json index db20b8016368..9db4d603a6a1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_ListByResourceGroup.json @@ -36,4 +36,4 @@ }, "operationId": "Monitors_ListByResourceGroup", "title": "Monitors_ListByResourceGroup" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json index 6a8c6323c80e..9d0d0218b1b1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Monitors_Update.json @@ -68,4 +68,4 @@ }, "operationId": "Monitors_Update", "title": "Monitors_Update" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json index 13c8916c1df6..86287ce46762 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/Operations_List.json @@ -22,4 +22,4 @@ }, "operationId": "Operations_List", "title": "Operations_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json index cedc80e2de38..49452066f46f 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/RefreshSetPassword_Get.json @@ -14,4 +14,4 @@ }, "operationId": "Monitors_RefreshSetPasswordLink", "title": "Monitors_RefreshSetPasswordLink" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json index f0185c1cc185..438d7dd7836e 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_CreateOrUpdate.json @@ -38,4 +38,4 @@ }, "operationId": "SingleSignOnConfigurations_CreateOrUpdate", "title": "SingleSignOnConfigurations_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json index 8721d22a879e..93c8ddb17135 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_Get.json @@ -21,4 +21,4 @@ }, "operationId": "SingleSignOnConfigurations_Get", "title": "SingleSignOnConfigurations_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json index d3ae5524ac05..0f21f413f3f7 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/SingleSignOnConfigurations_List.json @@ -24,4 +24,4 @@ }, "operationId": "SingleSignOnConfigurations_List", "title": "SingleSignOnConfigurations_List" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json index 4bebd07d3c67..afce76c6aaa0 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_CreateOrUpdate.json @@ -65,4 +65,4 @@ }, "operationId": "TagRules_CreateOrUpdate", "title": "TagRules_CreateOrUpdate" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json index e9e8ca74b252..bf5f1bb0db37 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_Get.json @@ -40,4 +40,4 @@ }, "operationId": "TagRules_Get", "title": "TagRules_Get" -} \ No newline at end of file +} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json index 29d7d1624b74..3d7fcf30e39c 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/examples/TagRules_List.json @@ -43,4 +43,4 @@ }, "operationId": "TagRules_List", "title": "TagRules_List" -} \ No newline at end of file +} From 846483beac54b03e80639ecd930d15d42cede837 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 24 Jun 2025 10:54:24 +0800 Subject: [PATCH 12/32] FIXME --- .../DatadogMonitorResource.tsp | 47 ++++--- .../DatadogSingleSignOnResource.tsp | 9 +- .../MonitoredSubscriptionProperties.tsp | 5 +- .../Datadog.Management/MonitoringTagRules.tsp | 5 +- .../datadog/Datadog.Management/main.tsp | 4 +- .../datadog/Datadog.Management/models.tsp | 122 +++++++++--------- .../datadog/Datadog.Management/routes.tsp | 12 +- .../stable/2023-10-20/datadog.json | 18 +-- 8 files changed, 106 insertions(+), 116 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index aab9bca4fc02..bbeeb0a5459c 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -10,9 +10,9 @@ using TypeSpec.Http; using TypeSpec.OpenAPI; namespace Microsoft.Datadog; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "" -#suppress "@azure-tools/typespec-azure-core/no-private-usage" "" -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/no-private-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @Azure.ResourceManager.Private.armResourceInternal(IdentityProperties) @TypeSpec.Http.Private.includeInapplicableMetadataInPayload(false) model DatadogMonitorResource @@ -23,20 +23,19 @@ model DatadogMonitorResource SegmentName = "monitors", NamePattern = "" >; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "" - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" sku?: ResourceSku; - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) properties?: MonitorProperties; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "" - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" identity?: IdentityProperties; } -#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" @armResourceOperations interface DatadogMonitorResourcesOps extends Azure.ResourceManager.Legacy.LegacyOperations< @@ -62,14 +61,14 @@ interface DatadogMonitorResources { /** * Get the properties of a specific monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_Get") get is ArmResourceRead; /** * Create a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_Create") create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< DatadogMonitorResource, @@ -79,7 +78,7 @@ interface DatadogMonitorResources { /** * Update a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @patch(#{ implicitOptionality: false }) @operationId("Monitors_Update") update is DatadogMonitorResourcesOps.CustomPatchAsync< @@ -93,8 +92,8 @@ interface DatadogMonitorResources { /** * Delete a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_Delete") delete is ArmResourceDeleteWithoutOkAsync< DatadogMonitorResource, @@ -104,7 +103,7 @@ interface DatadogMonitorResources { /** * List all monitors under the specified resource group. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_ListByResourceGroup") listByResourceGroup is ArmResourceListByParent< DatadogMonitorResource, @@ -114,7 +113,7 @@ interface DatadogMonitorResources { /** * List all monitors under the specified subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_List") list is ArmListBySubscription< DatadogMonitorResource, @@ -124,7 +123,7 @@ interface DatadogMonitorResources { /** * List the api keys for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_ListApiKeys") listApiKeys is ArmResourceActionSync< DatadogMonitorResource, @@ -135,7 +134,7 @@ interface DatadogMonitorResources { /** * Get the default api key. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_GetDefaultKey") getDefaultKey is ArmResourceActionSync< DatadogMonitorResource, @@ -146,7 +145,7 @@ interface DatadogMonitorResources { /** * Set the default api key. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_SetDefaultKey") setDefaultKey is ArmResourceActionSync< DatadogMonitorResource, @@ -160,7 +159,7 @@ interface DatadogMonitorResources { /** * List the hosts for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_ListHosts") listHosts is ArmResourceActionSync< DatadogMonitorResource, @@ -171,7 +170,7 @@ interface DatadogMonitorResources { /** * List all Azure resources associated to the same Datadog organization as the target resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_ListLinkedResources") listLinkedResources is ArmResourceActionSync< DatadogMonitorResource, @@ -182,7 +181,7 @@ interface DatadogMonitorResources { /** * List the resources currently being monitored by the Datadog monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_ListMonitoredResources") listMonitoredResources is ArmResourceActionSync< DatadogMonitorResource, @@ -193,7 +192,7 @@ interface DatadogMonitorResources { /** * Refresh the set password link and return a latest one. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("Monitors_RefreshSetPasswordLink") refreshSetPasswordLink is ArmResourceActionSync< DatadogMonitorResource, @@ -204,7 +203,7 @@ interface DatadogMonitorResources { /** * Get marketplace and organization info mapped to the given monitor. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @action("getBillingInfo") @operationId("BillingInfo_Get") billingInfoGet is ArmResourceActionSync< diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index c00d48caea63..0a4e7585b9cf 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -23,7 +23,6 @@ model DatadogSingleSignOnResource >; } -#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" @armResourceOperations interface DatadogSingleSignOnResourcesOps extends Azure.ResourceManager.Legacy.LegacyOperations< @@ -51,20 +50,20 @@ interface DatadogSingleSignOnResourcesOps ErrorResponse > {} -#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @armResourceOperations interface DatadogSingleSignOnResources { /** * Gets the datadog single sign-on resource for the given Monitor. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("SingleSignOnConfigurations_Get") get is ArmResourceRead; /** * Configures single-sign-on for this resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("SingleSignOnConfigurations_CreateOrUpdate") createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< DatadogSingleSignOnResource, @@ -74,7 +73,7 @@ interface DatadogSingleSignOnResources { /** * List the single sign-on configurations for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @operationId("SingleSignOnConfigurations_List") list is ArmResourceListByParent< DatadogSingleSignOnResource, diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index afaa2367a178..65a27ec65eda 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -25,7 +25,6 @@ model MonitoredSubscriptionProperties >; } -#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" @armResourceOperations interface MonitoredSubscriptionsOps extends Azure.ResourceManager.Legacy.LegacyOperations< @@ -63,7 +62,7 @@ interface MonitoredSubscriptions { /** * Add the subscriptions that should be monitored by the Datadog monitor resource. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" createorUpdate is MonitoredSubscriptionsOps.CreateOrUpdateAsync< MonitoredSubscriptionProperties, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< @@ -87,7 +86,7 @@ interface MonitoredSubscriptions { /** * Updates the subscriptions that are being monitored by the Datadog monitor resource */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" delete is ArmResourceDeleteWithoutOkAsync< MonitoredSubscriptionProperties, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse diff --git a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp index 715fc6987330..ddb048b8da4f 100644 --- a/specification/datadog/Datadog.Management/MonitoringTagRules.tsp +++ b/specification/datadog/Datadog.Management/MonitoringTagRules.tsp @@ -25,7 +25,6 @@ model MonitoringTagRules >; } -#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "Existing usage of legacy type" @armResourceOperations interface TagRulesOps extends Azure.ResourceManager.Legacy.LegacyOperations< @@ -53,7 +52,7 @@ interface TagRulesOps ErrorResponse > {} -#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "" +#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @armResourceOperations interface TagRules { /** @@ -64,7 +63,7 @@ interface TagRules { /** * Create or update a tag rule set for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" createOrUpdate is TagRulesOps.CreateOrUpdateAsync< MonitoringTagRules, Response = ArmResourceUpdatedResponse, diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index 50d388d8bf81..297926f8b7b8 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -53,8 +53,8 @@ enum Versions { * GET "/providers/Microsoft.ContosoProviderHub/operations" */ interface Operations { - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "" - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" + #suppress "@azure-tools/typespec-azure-core/no-private-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @tag("Operations") @autoRoute @armUpdateProviderNamespace diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 6fb224cbf718..afd35d7298a7 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -11,26 +11,26 @@ using Azure.Core; namespace Microsoft.Datadog; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" union ProvisioningState { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Accepted: "Accepted", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Creating: "Creating", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Updating: "Updating", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Deleting: "Deleting", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Succeeded: "Succeeded", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Canceled: "Canceled", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Deleted: "Deleted", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" NotSpecified: "NotSpecified", } @@ -39,9 +39,9 @@ union ProvisioningState { */ union MonitoringStatus { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Enabled: "Enabled", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Disabled: "Disabled", } @@ -50,22 +50,22 @@ union MonitoringStatus { */ union MarketplaceSubscriptionStatus { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Provisioning: "Provisioning", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Active: "Active", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Suspended: "Suspended", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Unsubscribed: "Unsubscribed", } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" union LiftrResourceCategories { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Unknown: "Unknown", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" MonitorLogs: "MonitorLogs", } @@ -74,9 +74,9 @@ union LiftrResourceCategories { */ union ManagedIdentityTypes { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" SystemAssigned: "SystemAssigned", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" UserAssigned: "UserAssigned", } @@ -85,9 +85,9 @@ union ManagedIdentityTypes { */ union TagAction { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Include: "Include", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Exclude: "Exclude", } @@ -96,13 +96,13 @@ union TagAction { */ union SingleSignOnStates { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Initial: "Initial", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Enable: "Enable", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Disable: "Disable", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Existing: "Existing", } @@ -111,15 +111,15 @@ union SingleSignOnStates { */ union Operation { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AddBegin: "AddBegin", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" AddComplete: "AddComplete", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" DeleteBegin: "DeleteBegin", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" DeleteComplete: "DeleteComplete", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Active: "Active", } @@ -128,13 +128,13 @@ union Operation { */ union Status { string, - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" InProgress: "InProgress", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Active: "Active", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Failed: "Failed", - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" Deleting: "Deleting", } @@ -144,7 +144,7 @@ union Status { model DatadogAgreementResourceListResponse is Azure.Core.Page; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogAgreementResource { /** * ARM id of the resource. @@ -221,7 +221,7 @@ model DatadogAgreementProperties { accepted?: boolean; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model CreateResourceSupportedResponseList is Azure.Core.Page; @@ -257,7 +257,7 @@ model CreateResourceSupportedProperties { */ model DatadogApiKeyListResponse is Azure.Core.Page; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogApiKey { /** * The user that created the API key. @@ -285,7 +285,7 @@ model DatadogApiKey { */ model DatadogHostListResponse is Azure.Core.Page; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogHost { /** * The name of the host. @@ -302,24 +302,24 @@ model DatadogHost { */ apps?: string[]; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" meta?: DatadogHostMetadata; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogHostMetadata { /** * The agent version. */ agentVersion?: string; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" installMethod?: DatadogInstallMethod; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" logsAgent?: DatadogLogsAgent; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogInstallMethod { /** * The tool. @@ -337,7 +337,7 @@ model DatadogInstallMethod { installerVersion?: string; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogLogsAgent { /** * The transport. @@ -430,7 +430,7 @@ model DatadogMonitorResourceListResponse * Properties specific to the monitor resource. */ model MonitorProperties { - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @@ -455,7 +455,7 @@ model MonitorProperties { */ userInfo?: UserInfo; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) liftrResourceCategory?: LiftrResourceCategories; @@ -551,7 +551,7 @@ model UserInfo { phoneNumber?: string; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model IdentityProperties { /** * The identity ID. @@ -574,7 +574,7 @@ model IdentityProperties { /** * The parameters for a PATCH request to a monitor resource. */ -#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "" +#suppress "@azure-tools/typespec-azure-resource-manager/patch-envelope" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogMonitorResourceUpdateParameters { /** * The set of properties that can be update in a PATCH request to a monitor resource. @@ -584,10 +584,10 @@ model DatadogMonitorResourceUpdateParameters { /** * The new tags of the monitor resource. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" tags?: Record; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" sku?: ResourceSku; } @@ -624,7 +624,7 @@ model BillingInfoResponse { /** * Marketplace SAAS Info of the resource. */ -#suppress "@azure-tools/typespec-azure-core/casing-style" "" +#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model MarketplaceSaaSInfo { /** * Marketplace Subscription Id. This is a GUID-formatted string. @@ -672,9 +672,9 @@ model PartnerBillingEntity { partnerEntityUri?: string; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogSetPasswordLink { - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" setPasswordLink?: string; } @@ -687,7 +687,7 @@ model MonitoringTagRulesListResponse is Azure.Core.Page; * Definition of the properties for a TagRules resource. */ model MonitoringTagRulesProperties { - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @@ -773,9 +773,9 @@ model MetricRules { model DatadogSingleSignOnResourceListResponse is Azure.Core.Page; -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model DatadogSingleSignOnProperties { - #suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @@ -796,14 +796,14 @@ model DatadogSingleSignOnProperties { singleSignOnUrl?: string; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model MonitoredSubscriptionPropertiesList is Azure.Core.Page; /** * The request to update subscriptions needed to be monitored by the Datadog monitor resource. */ -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" model SubscriptionList { /** * The operation for the patch on the resource. @@ -814,7 +814,7 @@ model SubscriptionList { /** * List of subscriptions and the state of the monitoring. */ - #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "" + @OpenAPI.extension("x-ms-identifiers", #[]) monitoredSubscriptionList?: MonitoredSubscription[]; } diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index 7656ded42856..ff65d1453d36 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -11,12 +11,12 @@ using TypeSpec.OpenAPI; namespace Microsoft.Datadog; -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface MarketplaceAgreementsOperationGroup { /** * List Datadog marketplace agreements in the subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("List Datadog marketplace agreements in the subscription.") @operationId("MarketplaceAgreements_List") @autoRoute @@ -30,7 +30,7 @@ interface MarketplaceAgreementsOperationGroup { /** * Create Datadog marketplace agreement in the subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Create Datadog marketplace agreement in the subscription.") @operationId("MarketplaceAgreements_CreateOrUpdate") @autoRoute @@ -45,12 +45,12 @@ interface MarketplaceAgreementsOperationGroup { >; } -#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility" +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" interface CreationSupportedOperationGroup { /** * Informs if the current subscription is being already monitored for selected Datadog organization. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") @operationId("CreationSupported_List") @autoRoute @@ -70,7 +70,7 @@ interface CreationSupportedOperationGroup { /** * Informs if the current subscription is being already monitored for selected Datadog organization. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" + #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") @operationId("CreationSupported_Get") @autoRoute diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 7e9f5d667b82..87ca5b3e4991 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -1718,8 +1718,7 @@ "description": "The CreateResourceSupportedResponse items on this page", "items": { "$ref": "#/definitions/CreateResourceSupportedResponse" - }, - "x-ms-identifiers": [] + } }, "nextLink": { "type": "string", @@ -1853,8 +1852,7 @@ "description": "The DatadogApiKey items on this page", "items": { "$ref": "#/definitions/DatadogApiKey" - }, - "x-ms-identifiers": [] + } }, "nextLink": { "type": "string", @@ -1901,8 +1899,7 @@ "description": "The DatadogHost items on this page", "items": { "$ref": "#/definitions/DatadogHost" - }, - "x-ms-identifiers": [] + } }, "nextLink": { "type": "string", @@ -2271,8 +2268,7 @@ "description": "List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs 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.", "items": { "$ref": "#/definitions/FilteringTag" - }, - "x-ms-identifiers": [] + } } } }, @@ -2365,8 +2361,7 @@ "description": "List of filtering tags to be used for capturing metrics. 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.", "items": { "$ref": "#/definitions/FilteringTag" - }, - "x-ms-identifiers": [] + } } } }, @@ -2697,8 +2692,7 @@ "description": "The list of operations.", "items": { "$ref": "#/definitions/OperationResult" - }, - "x-ms-identifiers": [] + } }, "nextLink": { "type": "string", From 04b728780438f55e8182d42883449a3c3a25590c Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 3 Jul 2025 15:38:43 +0800 Subject: [PATCH 13/32] update --- .../DatadogMonitorResource.tsp | 14 --- .../DatadogSingleSignOnResource.tsp | 3 - .../Datadog.Management/back-compatible.tsp | 90 +++++++++++++++++++ .../datadog/Datadog.Management/routes.tsp | 4 - 4 files changed, 90 insertions(+), 21 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index bbeeb0a5459c..71eb531bff42 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -62,14 +62,12 @@ interface DatadogMonitorResources { * Get the properties of a specific monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_Get") get is ArmResourceRead; /** * Create a monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_Create") create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< DatadogMonitorResource, OptionalRequestBody = true @@ -80,7 +78,6 @@ interface DatadogMonitorResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @patch(#{ implicitOptionality: false }) - @operationId("Monitors_Update") update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, @@ -94,7 +91,6 @@ interface DatadogMonitorResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_Delete") delete is ArmResourceDeleteWithoutOkAsync< DatadogMonitorResource, Response = ArmDeletedResponse | ArmDeleteAcceptedLroResponse | ArmDeletedNoContentResponse @@ -104,7 +100,6 @@ interface DatadogMonitorResources { * List all monitors under the specified resource group. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_ListByResourceGroup") listByResourceGroup is ArmResourceListByParent< DatadogMonitorResource, Response = ArmResponse @@ -114,7 +109,6 @@ interface DatadogMonitorResources { * List all monitors under the specified subscription. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_List") list is ArmListBySubscription< DatadogMonitorResource, Response = ArmResponse @@ -124,7 +118,6 @@ interface DatadogMonitorResources { * List the api keys for a given monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_ListApiKeys") listApiKeys is ArmResourceActionSync< DatadogMonitorResource, void, @@ -135,7 +128,6 @@ interface DatadogMonitorResources { * Get the default api key. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_GetDefaultKey") getDefaultKey is ArmResourceActionSync< DatadogMonitorResource, void, @@ -146,7 +138,6 @@ interface DatadogMonitorResources { * Set the default api key. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_SetDefaultKey") setDefaultKey is ArmResourceActionSync< DatadogMonitorResource, { @@ -160,7 +151,6 @@ interface DatadogMonitorResources { * List the hosts for a given monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_ListHosts") listHosts is ArmResourceActionSync< DatadogMonitorResource, void, @@ -171,7 +161,6 @@ interface DatadogMonitorResources { * List all Azure resources associated to the same Datadog organization as the target resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_ListLinkedResources") listLinkedResources is ArmResourceActionSync< DatadogMonitorResource, void, @@ -182,7 +171,6 @@ interface DatadogMonitorResources { * List the resources currently being monitored by the Datadog monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_ListMonitoredResources") listMonitoredResources is ArmResourceActionSync< DatadogMonitorResource, void, @@ -193,7 +181,6 @@ interface DatadogMonitorResources { * Refresh the set password link and return a latest one. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("Monitors_RefreshSetPasswordLink") refreshSetPasswordLink is ArmResourceActionSync< DatadogMonitorResource, void, @@ -205,7 +192,6 @@ interface DatadogMonitorResources { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @action("getBillingInfo") - @operationId("BillingInfo_Get") billingInfoGet is ArmResourceActionSync< DatadogMonitorResource, void, diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index 0a4e7585b9cf..fd0e499f9058 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -57,14 +57,12 @@ interface DatadogSingleSignOnResources { * Gets the datadog single sign-on resource for the given Monitor. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("SingleSignOnConfigurations_Get") get is ArmResourceRead; /** * Configures single-sign-on for this resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("SingleSignOnConfigurations_CreateOrUpdate") createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< DatadogSingleSignOnResource, OptionalRequestBody = true @@ -74,7 +72,6 @@ interface DatadogSingleSignOnResources { * List the single sign-on configurations for a given monitor resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @operationId("SingleSignOnConfigurations_List") list is ArmResourceListByParent< DatadogSingleSignOnResource, Response = ArmResponse diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp index 955e5ea5663d..ebb9b4abc384 100644 --- a/specification/datadog/Datadog.Management/back-compatible.tsp +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -3,6 +3,96 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; using Microsoft.Datadog; +// Client decorators for operations (migrated from @operationId) + +// DatadogMonitorResources operations +@@clientLocation(DatadogMonitorResources.get, "Monitors"); +@@clientName(DatadogMonitorResources.get, "Get"); + +@@clientLocation(DatadogMonitorResources.create, "Monitors"); +@@clientName(DatadogMonitorResources.create, "Create"); + +@@clientLocation(DatadogMonitorResources.update, "Monitors"); +@@clientName(DatadogMonitorResources.update, "Update"); + +@@clientLocation(DatadogMonitorResources.delete, "Monitors"); +@@clientName(DatadogMonitorResources.delete, "Delete"); + +@@clientLocation(DatadogMonitorResources.listByResourceGroup, "Monitors"); +@@clientName(DatadogMonitorResources.listByResourceGroup, + "ListByResourceGroup" +); + +@@clientLocation(DatadogMonitorResources.list, "Monitors"); +@@clientName(DatadogMonitorResources.list, "List"); + +@@clientLocation(DatadogMonitorResources.listApiKeys, "Monitors"); +@@clientName(DatadogMonitorResources.listApiKeys, "ListApiKeys"); + +@@clientLocation(DatadogMonitorResources.getDefaultKey, "Monitors"); +@@clientName(DatadogMonitorResources.getDefaultKey, "GetDefaultKey"); + +@@clientLocation(DatadogMonitorResources.setDefaultKey, "Monitors"); +@@clientName(DatadogMonitorResources.setDefaultKey, "SetDefaultKey"); + +@@clientLocation(DatadogMonitorResources.listHosts, "Monitors"); +@@clientName(DatadogMonitorResources.listHosts, "ListHosts"); + +@@clientLocation(DatadogMonitorResources.listLinkedResources, "Monitors"); +@@clientName(DatadogMonitorResources.listLinkedResources, + "ListLinkedResources" +); + +@@clientLocation(DatadogMonitorResources.listMonitoredResources, "Monitors"); +@@clientName(DatadogMonitorResources.listMonitoredResources, + "ListMonitoredResources" +); + +@@clientLocation(DatadogMonitorResources.refreshSetPasswordLink, "Monitors"); +@@clientName(DatadogMonitorResources.refreshSetPasswordLink, + "RefreshSetPasswordLink" +); + +@@clientLocation(DatadogMonitorResources.billingInfoGet, "BillingInfo"); +@@clientName(DatadogMonitorResources.billingInfoGet, "Get"); + +// DatadogSingleSignOnResources operations +@@clientLocation(DatadogSingleSignOnResources.get, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.get, "Get"); + +@@clientLocation(DatadogSingleSignOnResources.createOrUpdate, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.createOrUpdate, "CreateOrUpdate"); + +@@clientLocation(DatadogSingleSignOnResources.list, + "SingleSignOnConfigurations" +); +@@clientName(DatadogSingleSignOnResources.list, "List"); + +// MarketplaceAgreementsOperationGroup operations +@@clientLocation(MarketplaceAgreementsOperationGroup.list, + "MarketplaceAgreements" +); +@@clientName(MarketplaceAgreementsOperationGroup.list, "List"); + +@@clientLocation(MarketplaceAgreementsOperationGroup.createOrUpdate, + "MarketplaceAgreements" +); +@@clientName(MarketplaceAgreementsOperationGroup.createOrUpdate, + "CreateOrUpdate" +); + +// CreationSupportedOperationGroup operations +@@clientLocation(CreationSupportedOperationGroup.list, "CreationSupported"); +@@clientName(CreationSupportedOperationGroup.list, "List"); + +@@clientLocation(CreationSupportedOperationGroup.get, "CreationSupported"); +@@clientName(CreationSupportedOperationGroup.get, "Get"); + +// Existing client decorators for parameters and models @@clientName(DatadogMonitorResources.create::parameters.resource, "body"); @@clientName(DatadogMonitorResources.update::parameters.properties, "body"); diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index ff65d1453d36..b3dda49a1198 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -18,7 +18,6 @@ interface MarketplaceAgreementsOperationGroup { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("List Datadog marketplace agreements in the subscription.") - @operationId("MarketplaceAgreements_List") @autoRoute @get @action("agreements") @@ -32,7 +31,6 @@ interface MarketplaceAgreementsOperationGroup { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Create Datadog marketplace agreement in the subscription.") - @operationId("MarketplaceAgreements_CreateOrUpdate") @autoRoute @put @action("agreements/default") @@ -52,7 +50,6 @@ interface CreationSupportedOperationGroup { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") - @operationId("CreationSupported_List") @autoRoute @get @action("subscriptionStatuses") @@ -72,7 +69,6 @@ interface CreationSupportedOperationGroup { */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") - @operationId("CreationSupported_Get") @autoRoute @get @action("subscriptionStatuses/default") From fa7b056e44b03abdb45190f9451802b6a1a54c8f Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 3 Jul 2025 17:47:00 +0800 Subject: [PATCH 14/32] update --- .../Datadog.Management/DatadogMonitorResource.tsp | 14 -------------- .../DatadogSingleSignOnResource.tsp | 3 --- .../datadog/Datadog.Management/routes.tsp | 4 ---- 3 files changed, 21 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 71eb531bff42..a37a86aa5c37 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -61,13 +61,11 @@ interface DatadogMonitorResources { /** * Get the properties of a specific monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" get is ArmResourceRead; /** * Create a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< DatadogMonitorResource, OptionalRequestBody = true @@ -76,7 +74,6 @@ interface DatadogMonitorResources { /** * Update a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @patch(#{ implicitOptionality: false }) update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, @@ -89,7 +86,6 @@ interface DatadogMonitorResources { /** * Delete a monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" delete is ArmResourceDeleteWithoutOkAsync< DatadogMonitorResource, @@ -99,7 +95,6 @@ interface DatadogMonitorResources { /** * List all monitors under the specified resource group. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" listByResourceGroup is ArmResourceListByParent< DatadogMonitorResource, Response = ArmResponse @@ -108,7 +103,6 @@ interface DatadogMonitorResources { /** * List all monitors under the specified subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" list is ArmListBySubscription< DatadogMonitorResource, Response = ArmResponse @@ -117,7 +111,6 @@ interface DatadogMonitorResources { /** * List the api keys for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" listApiKeys is ArmResourceActionSync< DatadogMonitorResource, void, @@ -127,7 +120,6 @@ interface DatadogMonitorResources { /** * Get the default api key. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" getDefaultKey is ArmResourceActionSync< DatadogMonitorResource, void, @@ -137,7 +129,6 @@ interface DatadogMonitorResources { /** * Set the default api key. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" setDefaultKey is ArmResourceActionSync< DatadogMonitorResource, { @@ -150,7 +141,6 @@ interface DatadogMonitorResources { /** * List the hosts for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" listHosts is ArmResourceActionSync< DatadogMonitorResource, void, @@ -160,7 +150,6 @@ interface DatadogMonitorResources { /** * List all Azure resources associated to the same Datadog organization as the target resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" listLinkedResources is ArmResourceActionSync< DatadogMonitorResource, void, @@ -170,7 +159,6 @@ interface DatadogMonitorResources { /** * List the resources currently being monitored by the Datadog monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" listMonitoredResources is ArmResourceActionSync< DatadogMonitorResource, void, @@ -180,7 +168,6 @@ interface DatadogMonitorResources { /** * Refresh the set password link and return a latest one. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" refreshSetPasswordLink is ArmResourceActionSync< DatadogMonitorResource, void, @@ -190,7 +177,6 @@ interface DatadogMonitorResources { /** * Get marketplace and organization info mapped to the given monitor. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @action("getBillingInfo") billingInfoGet is ArmResourceActionSync< DatadogMonitorResource, diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index fd0e499f9058..17055833abc1 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -56,13 +56,11 @@ interface DatadogSingleSignOnResources { /** * Gets the datadog single sign-on resource for the given Monitor. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" get is ArmResourceRead; /** * Configures single-sign-on for this resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< DatadogSingleSignOnResource, OptionalRequestBody = true @@ -71,7 +69,6 @@ interface DatadogSingleSignOnResources { /** * List the single sign-on configurations for a given monitor resource. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" list is ArmResourceListByParent< DatadogSingleSignOnResource, Response = ArmResponse diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index b3dda49a1198..102f3d1b004c 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -16,7 +16,6 @@ interface MarketplaceAgreementsOperationGroup { /** * List Datadog marketplace agreements in the subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("List Datadog marketplace agreements in the subscription.") @autoRoute @get @@ -29,7 +28,6 @@ interface MarketplaceAgreementsOperationGroup { /** * Create Datadog marketplace agreement in the subscription. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Create Datadog marketplace agreement in the subscription.") @autoRoute @put @@ -48,7 +46,6 @@ interface CreationSupportedOperationGroup { /** * Informs if the current subscription is being already monitored for selected Datadog organization. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") @autoRoute @get @@ -67,7 +64,6 @@ interface CreationSupportedOperationGroup { /** * Informs if the current subscription is being already monitored for selected Datadog organization. */ - #suppress "@azure-tools/typespec-azure-core/no-openapi" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") @autoRoute @get From 5fbf01cfb2b43a1793d76df702a770dcb8cee34c Mon Sep 17 00:00:00 2001 From: mcgallan <1186003288@qq.com> Date: Thu, 3 Jul 2025 17:55:42 +0800 Subject: [PATCH 15/32] update --- specification/datadog/Datadog.Management/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index 7f4e88ee77df..ef4732765abe 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -24,7 +24,7 @@ options: flavor: "azure" "@azure-tools/typespec-java": package-dir: "azure-resourcemanager-datadog" - namespace: "com.microsoft.azure.management.datadog" + namespace: "com.azure.resourcemanager.datadog" service-name: "Datadog" # human-readable service name, whitespace allowed flavor: azure "@azure-tools/typespec-ts": From 9ee2977930e23ecdd5536aab36438e1eac43e654 Mon Sep 17 00:00:00 2001 From: melina5656 <140602263+melina5656@users.noreply.github.com> Date: Tue, 15 Jul 2025 09:53:03 +0800 Subject: [PATCH 16/32] Remove Bodyboot Decorator --- .../Datadog.Management/DatadogMonitorResource.tsp | 9 ++++----- .../Microsoft.Datadog/stable/2023-10-20/datadog.json | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index a37a86aa5c37..a642ff159f80 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -131,11 +131,9 @@ interface DatadogMonitorResources { */ setDefaultKey is ArmResourceActionSync< DatadogMonitorResource, - { - @bodyRoot - body?: DatadogApiKey; - }, - OkResponse + DatadogApiKey, + OkResponse, + OptionalRequestBody = true >; /** @@ -191,3 +189,4 @@ interface DatadogMonitorResources { ); @@doc(DatadogMonitorResources.create::parameters.resource, ""); @@doc(DatadogMonitorResources.update::parameters.properties, ""); +@@doc(DatadogMonitorResources.setDefaultKey::parameters.body, ""); diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 87ca5b3e4991..ad79001bca49 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -1298,6 +1298,7 @@ { "name": "body", "in": "body", + "description": "", "required": false, "schema": { "$ref": "#/definitions/DatadogApiKey" From d26919a7d09d1ba0f8dde6285d69a1ba27880fe5 Mon Sep 17 00:00:00 2001 From: "Jiao Di (MSFT)" <80496810+v-jiaodi@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:19:15 +0800 Subject: [PATCH 17/32] resolve breaking --- specification/datadog/Datadog.Management/client.tsp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 specification/datadog/Datadog.Management/client.tsp diff --git a/specification/datadog/Datadog.Management/client.tsp b/specification/datadog/Datadog.Management/client.tsp new file mode 100644 index 000000000000..34e81eda7fdc --- /dev/null +++ b/specification/datadog/Datadog.Management/client.tsp @@ -0,0 +1,5 @@ +import "@azure-tools/typespec-client-generator-core"; +import "./main.tsp"; +using Azure.ClientGenerator.Core; + +@@clientName(Microsoft.Datadog, "MicrosoftDatadogClient", "javascript"); From c21e5506ccd8332bdc53aa8874e74c207760525a Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 18 Jul 2025 14:58:15 +0800 Subject: [PATCH 18/32] Update ArmLroLocationHeader type in monitor resource Changed the Response type to use ArmLroLocationHeader with FinalResult set to DatadogMonitorResource for improved type specificity in DatadogMonitorResources interface. --- .../datadog/Datadog.Management/DatadogMonitorResource.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index a642ff159f80..4a32341d1249 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -79,7 +79,7 @@ interface DatadogMonitorResources { DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, Response = ArmResponse | (ArmResourceCreatedResponse & - ArmLroLocationHeader), + ArmLroLocationHeader), OptionalRequestBody = true >; From 40921b4940cac4a67e97def32ac1a06af21b2c63 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 22 Jul 2025 15:15:48 +0800 Subject: [PATCH 19/32] fix for subscriptionId to be optional --- specification/datadog/Datadog.Management/models.tsp | 2 +- .../Microsoft.Datadog/stable/2023-10-20/datadog.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index afd35d7298a7..01f33ff04161 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -825,7 +825,7 @@ model MonitoredSubscription { /** * The subscriptionId to be monitored. */ - subscriptionId: string; + subscriptionId?: string; /** * The state of monitoring. diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index ad79001bca49..3be7f8a0fa39 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -2522,10 +2522,7 @@ "$ref": "#/definitions/MonitoringTagRulesProperties", "description": "Definition of the properties for a TagRules resource." } - }, - "required": [ - "subscriptionId" - ] + } }, "MonitoredSubscriptionProperties": { "type": "object", From 3dbc32a8a6dd0725adb7c12ee4ceb466986e91f0 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Wed, 23 Jul 2025 14:46:06 +0800 Subject: [PATCH 20/32] Update tspconfig.yaml --- specification/datadog/Datadog.Management/tspconfig.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index ef4732765abe..a4b784034275 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -10,12 +10,6 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" examples-dir: "{project-root}/examples" - "@azure-tools/typespec-csharp": - flavor: azure - package-dir: "Azure.ResourceManager.Datadog" - clear-output-folder: true - model-namespace: true - namespace: "{package-dir}" "@azure-tools/typespec-python": package-dir: "azure-mgmt-datadog" namespace: "azure.mgmt.datadog" From 0d3f8aa35b4780a0de202390eee65396a8201f25 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Wed, 30 Jul 2025 14:44:10 +0800 Subject: [PATCH 21/32] remove private things --- .../DatadogMonitorResource.tsp | 11 +-------- .../datadog/Datadog.Management/main.tsp | 24 ++++--------------- .../stable/2023-10-20/datadog.json | 7 +++--- 3 files changed, 10 insertions(+), 32 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 4a32341d1249..92612e9a0a7b 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -11,12 +11,8 @@ using TypeSpec.OpenAPI; namespace Microsoft.Datadog; #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" -#suppress "@azure-tools/typespec-azure-core/no-private-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" -#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" -@Azure.ResourceManager.Private.armResourceInternal(IdentityProperties) -@TypeSpec.Http.Private.includeInapplicableMetadataInPayload(false) model DatadogMonitorResource - extends Azure.ResourceManager.Foundations.TrackedResource { + is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = DatadogMonitorResource, KeyName = "monitorName", @@ -26,11 +22,6 @@ model DatadogMonitorResource #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" sku?: ResourceSku; - - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @Azure.ResourceManager.Private.armResourcePropertiesOptionality(true) - properties?: MonitorProperties; - #suppress "@azure-tools/typespec-azure-core/documentation-required" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" identity?: IdentityProperties; diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index 297926f8b7b8..a415bf97f16c 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -25,7 +25,6 @@ using Azure.ResourceManager.Foundations; using Azure.Core; using Azure.ResourceManager; using TypeSpec.Versioning; -using Azure.ResourceManager.Private; @armProviderNamespace @service(#{ title: "Microsoft.Datadog" }) @@ -52,21 +51,8 @@ enum Versions { * Azure Resource Manager service. It implements * GET "/providers/Microsoft.ContosoProviderHub/operations" */ -interface Operations { - #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - #suppress "@azure-tools/typespec-azure-core/no-private-usage" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" - @tag("Operations") - @autoRoute - @armUpdateProviderNamespace - @doc("List the operations for the provider") - @segment("operations") - @get - list( - ...ApiVersionParameter, - - @path - @segment("providers") - @doc("The provider namespace (this parameter will not show up in operations).") - provider: "Microsoft.ThisWillBeReplaced", - ): ArmResponse | ErrorResponse; -} +interface Operations + extends Azure.ResourceManager.Legacy.Operations< + ArmResponse, + ErrorResponse + > {} diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 3be7f8a0fa39..0b0a3ebec2dc 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -1955,14 +1955,15 @@ }, "DatadogMonitorResource": { "type": "object", + "description": "Concrete tracked resource types can be created by aliasing this type using a specific property type.", "properties": { - "sku": { - "$ref": "#/definitions/ResourceSku" - }, "properties": { "$ref": "#/definitions/MonitorProperties", "description": "Properties specific to the monitor resource." }, + "sku": { + "$ref": "#/definitions/ResourceSku" + }, "identity": { "$ref": "#/definitions/IdentityProperties" } From 5e357c540562d8266ff020f45b8d6b50d3ac7047 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Wed, 30 Jul 2025 14:52:07 +0800 Subject: [PATCH 22/32] Update main.tsp --- specification/datadog/Datadog.Management/main.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index a415bf97f16c..2722ccdf0308 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -44,7 +44,6 @@ enum Versions { v2023_10_20: "2023-10-20", } -// interface Operations extends Azure.ResourceManager.Operations {} /** * This is the interface that implements the standard Azure Resource Manager operation that returns * all supported RP operations. You should have exactly one declaration for each From 2756877693c1ab948c64d59ce54daef40d0c2f33 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 1 Aug 2025 16:14:15 +0800 Subject: [PATCH 23/32] Update tspconfig.yaml --- specification/datadog/Datadog.Management/tspconfig.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index a4b784034275..ef4732765abe 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -10,6 +10,12 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" examples-dir: "{project-root}/examples" + "@azure-tools/typespec-csharp": + flavor: azure + package-dir: "Azure.ResourceManager.Datadog" + clear-output-folder: true + model-namespace: true + namespace: "{package-dir}" "@azure-tools/typespec-python": package-dir: "azure-mgmt-datadog" namespace: "azure.mgmt.datadog" From d5c8748906d8c0387df00863b47b9aab86e5c13b Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 5 Aug 2025 14:14:26 +0800 Subject: [PATCH 24/32] fix for as description and migration language scop decorator to client.tsp System.ArgumentException: 'An item with the same key has already been added. Key: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' --- .../datadog/Datadog.Management/back-compatible.tsp | 12 +++--------- specification/datadog/Datadog.Management/client.tsp | 5 +++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/specification/datadog/Datadog.Management/back-compatible.tsp b/specification/datadog/Datadog.Management/back-compatible.tsp index ebb9b4abc384..97d91e8c7281 100644 --- a/specification/datadog/Datadog.Management/back-compatible.tsp +++ b/specification/datadog/Datadog.Management/back-compatible.tsp @@ -6,7 +6,7 @@ using Microsoft.Datadog; // Client decorators for operations (migrated from @operationId) // DatadogMonitorResources operations -@@clientLocation(DatadogMonitorResources.get, "Monitors"); +@@clientLocation(DatadogMonitorResources.get, "Monitors", "!csharp"); @@clientName(DatadogMonitorResources.get, "Get"); @@clientLocation(DatadogMonitorResources.create, "Monitors"); @@ -23,8 +23,8 @@ using Microsoft.Datadog; "ListByResourceGroup" ); -@@clientLocation(DatadogMonitorResources.list, "Monitors"); -@@clientName(DatadogMonitorResources.list, "List"); +@@clientLocation(DatadogMonitorResources.list, "Monitors", "!csharp"); +@@clientName(DatadogMonitorResources.list, "List", "!csharp"); @@clientLocation(DatadogMonitorResources.listApiKeys, "Monitors"); @@clientName(DatadogMonitorResources.listApiKeys, "ListApiKeys"); @@ -106,9 +106,3 @@ using Microsoft.Datadog; "body" ); @@clientName(MonitoredSubscriptions.update::parameters.properties, "body"); - -@@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); -@@clientName(CreateResourceSupportedResponse, - "CreateResourceSupportedResult", - "csharp" -); diff --git a/specification/datadog/Datadog.Management/client.tsp b/specification/datadog/Datadog.Management/client.tsp index 34e81eda7fdc..9df2e67f333c 100644 --- a/specification/datadog/Datadog.Management/client.tsp +++ b/specification/datadog/Datadog.Management/client.tsp @@ -3,3 +3,8 @@ import "./main.tsp"; using Azure.ClientGenerator.Core; @@clientName(Microsoft.Datadog, "MicrosoftDatadogClient", "javascript"); +@@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); +@@clientName(CreateResourceSupportedResponse, + "CreateResourceSupportedResult", + "csharp" +); From ac9cc3e3922e935e70258e3ed1df6c072b7547e8 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 5 Aug 2025 14:24:51 +0800 Subject: [PATCH 25/32] Update client.tsp --- specification/datadog/Datadog.Management/client.tsp | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/datadog/Datadog.Management/client.tsp b/specification/datadog/Datadog.Management/client.tsp index 9df2e67f333c..d0f58308bc5f 100644 --- a/specification/datadog/Datadog.Management/client.tsp +++ b/specification/datadog/Datadog.Management/client.tsp @@ -1,6 +1,7 @@ import "@azure-tools/typespec-client-generator-core"; import "./main.tsp"; using Azure.ClientGenerator.Core; +using Microsoft.Datadog; @@clientName(Microsoft.Datadog, "MicrosoftDatadogClient", "javascript"); @@clientName(BillingInfoResponse, "BillingInfoResult", "csharp"); From 80be29c216cefde5d8c8a7f243c0945e8c73c326 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 5 Aug 2025 14:57:14 +0800 Subject: [PATCH 26/32] fix for typespec migration validation Comparing finished. | Type | Level | Message | | ---- | ----- | ------- | | finalresult | error | The finalresult of operation "Monitors_Create" changed: "DatadogMonitorResource" -> undefined | | finalresult | error | The finalresult of operation "Monitors_Update" changed: "DatadogMonitorResource" -> undefined | | finalresult | error | The finalresult of operation "SingleSignOnConfigurations_CreateOrUpdate" changed: "DatadogSingleSignOnResource" -> undefined | | finalresult | error | The finalresult of operation "MonitoredSubscriptions_CreateorUpdate" changed: "MonitoredSubscriptionProperties" -> undefined | | finalresult | error | The finalresult of operation "MonitoredSubscriptions_Update" changed: "MonitoredSubscriptionProperties" -> undefined | --- .../Datadog.Management/DatadogMonitorResource.tsp | 9 +++++++-- .../Datadog.Management/DatadogSingleSignOnResource.tsp | 2 ++ .../MonitoredSubscriptionProperties.tsp | 4 ++++ .../Microsoft.Datadog/stable/2023-10-20/datadog.json | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 92612e9a0a7b..e5a551faab08 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -59,6 +59,8 @@ interface DatadogMonitorResources { */ create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< DatadogMonitorResource, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; @@ -69,8 +71,11 @@ interface DatadogMonitorResources { update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, - Response = ArmResponse | (ArmResourceCreatedResponse & - ArmLroLocationHeader), + Response = ArmResponse | ArmResourceCreatedResponse< + DatadogMonitorResource, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >, OptionalRequestBody = true >; diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index 17055833abc1..eebaed7193d4 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -63,6 +63,8 @@ interface DatadogSingleSignOnResources { */ createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< DatadogSingleSignOnResource, + LroHeaders = ArmAsyncOperationHeader & + Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index 65a27ec65eda..320a711c1f99 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -65,6 +65,8 @@ interface MonitoredSubscriptions { #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" createorUpdate is MonitoredSubscriptionsOps.CreateOrUpdateAsync< MonitoredSubscriptionProperties, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< MonitoredSubscriptionProperties, ArmLroLocationHeader & @@ -80,6 +82,8 @@ interface MonitoredSubscriptions { update is MonitoredSubscriptionsOps.CustomPatchAsync< MonitoredSubscriptionProperties, PatchModel = MonitoredSubscriptionProperties, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 0b0a3ebec2dc..155ee3dcb6f1 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -497,7 +497,7 @@ } }, "201": { - "description": "The request has succeeded and a new resource has been created as a result.", + "description": "Resource 'DatadogMonitorResource' create operation succeeded", "schema": { "$ref": "#/definitions/DatadogMonitorResource" }, From 5f8f3dc5ff27e5a53bf223bc05a1dd4d172edff0 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 5 Aug 2025 15:18:43 +0800 Subject: [PATCH 27/32] Revert "fix for typespec migration validation" This reverts commit 80be29c216cefde5d8c8a7f243c0945e8c73c326. --- .../Datadog.Management/DatadogMonitorResource.tsp | 9 ++------- .../Datadog.Management/DatadogSingleSignOnResource.tsp | 2 -- .../MonitoredSubscriptionProperties.tsp | 4 ---- .../Microsoft.Datadog/stable/2023-10-20/datadog.json | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index e5a551faab08..92612e9a0a7b 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -59,8 +59,6 @@ interface DatadogMonitorResources { */ create is DatadogMonitorResourcesOps.CreateOrUpdateAsync< DatadogMonitorResource, - LroHeaders = ArmAsyncOperationHeader & - Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; @@ -71,11 +69,8 @@ interface DatadogMonitorResources { update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, - Response = ArmResponse | ArmResourceCreatedResponse< - DatadogMonitorResource, - LroHeaders = ArmLroLocationHeader & - Azure.Core.Foundations.RetryAfterHeader - >, + Response = ArmResponse | (ArmResourceCreatedResponse & + ArmLroLocationHeader), OptionalRequestBody = true >; diff --git a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp index eebaed7193d4..17055833abc1 100644 --- a/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogSingleSignOnResource.tsp @@ -63,8 +63,6 @@ interface DatadogSingleSignOnResources { */ createOrUpdate is DatadogSingleSignOnResourcesOps.CreateOrUpdateAsync< DatadogSingleSignOnResource, - LroHeaders = ArmAsyncOperationHeader & - Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; diff --git a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp index 320a711c1f99..65a27ec65eda 100644 --- a/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp +++ b/specification/datadog/Datadog.Management/MonitoredSubscriptionProperties.tsp @@ -65,8 +65,6 @@ interface MonitoredSubscriptions { #suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" createorUpdate is MonitoredSubscriptionsOps.CreateOrUpdateAsync< MonitoredSubscriptionProperties, - LroHeaders = ArmLroLocationHeader & - Azure.Core.Foundations.RetryAfterHeader, Response = ArmResourceUpdatedResponse | ArmResourceCreatedResponse< MonitoredSubscriptionProperties, ArmLroLocationHeader & @@ -82,8 +80,6 @@ interface MonitoredSubscriptions { update is MonitoredSubscriptionsOps.CustomPatchAsync< MonitoredSubscriptionProperties, PatchModel = MonitoredSubscriptionProperties, - LroHeaders = ArmLroLocationHeader & - Azure.Core.Foundations.RetryAfterHeader, OptionalRequestBody = true >; diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 155ee3dcb6f1..0b0a3ebec2dc 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -497,7 +497,7 @@ } }, "201": { - "description": "Resource 'DatadogMonitorResource' create operation succeeded", + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/DatadogMonitorResource" }, From e1d953d7a7e7f99b578063696e3fc32267ecae19 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Tue, 5 Aug 2025 15:22:41 +0800 Subject: [PATCH 28/32] update --- .../DatadogMonitorResource.tsp | 7 +++++-- .../datadog/Datadog.Management/tspconfig.yaml | 1 + .../stable/2023-10-20/datadog.json | 17 +++++++++++------ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 92612e9a0a7b..9ad6a0523457 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -69,8 +69,11 @@ interface DatadogMonitorResources { update is DatadogMonitorResourcesOps.CustomPatchAsync< DatadogMonitorResource, PatchModel = DatadogMonitorResourceUpdateParameters, - Response = ArmResponse | (ArmResourceCreatedResponse & - ArmLroLocationHeader), + Response = ArmResponse | ArmResourceCreatedResponse< + DatadogMonitorResource, + LroHeaders = ArmLroLocationHeader & + Azure.Core.Foundations.RetryAfterHeader + >, OptionalRequestBody = true >; diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index ef4732765abe..01e8576b8ca3 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -10,6 +10,7 @@ options: azure-resource-provider-folder: "resource-manager" output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/datadog.json" examples-dir: "{project-root}/examples" + emit-lro-options: "all" "@azure-tools/typespec-csharp": flavor: azure package-dir: "Azure.ResourceManager.Datadog" diff --git a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json index 0b0a3ebec2dc..3001e4d0da47 100644 --- a/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json +++ b/specification/datadog/resource-manager/Microsoft.Datadog/stable/2023-10-20/datadog.json @@ -452,7 +452,8 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DatadogMonitorResource" }, "x-ms-long-running-operation": true }, @@ -497,7 +498,7 @@ } }, "201": { - "description": "The request has succeeded and a new resource has been created as a result.", + "description": "Resource 'DatadogMonitorResource' create operation succeeded", "schema": { "$ref": "#/definitions/DatadogMonitorResource" }, @@ -526,7 +527,8 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "location", + "final-state-schema": "#/definitions/DatadogMonitorResource" }, "x-ms-long-running-operation": true }, @@ -1073,7 +1075,8 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "location", + "final-state-schema": "#/definitions/MonitoredSubscriptionProperties" }, "x-ms-long-running-operation": true }, @@ -1151,7 +1154,8 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "location", + "final-state-schema": "#/definitions/MonitoredSubscriptionProperties" }, "x-ms-long-running-operation": true }, @@ -1501,7 +1505,8 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "azure-async-operation", + "final-state-schema": "#/definitions/DatadogSingleSignOnResource" }, "x-ms-long-running-operation": true } From bf65c027e2c8d626629c6e3fbe0a6132bb2152df Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Fri, 22 Aug 2025 13:24:15 +0800 Subject: [PATCH 29/32] fix: for @pagedItems --- .../datadog/Datadog.Management/DatadogMonitorResource.tsp | 4 ++++ specification/datadog/Datadog.Management/models.tsp | 3 +-- specification/datadog/Datadog.Management/routes.tsp | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 9ad6a0523457..3cccd394379f 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -105,6 +105,7 @@ interface DatadogMonitorResources { /** * List the api keys for a given monitor resource. */ + @list listApiKeys is ArmResourceActionSync< DatadogMonitorResource, void, @@ -133,6 +134,7 @@ interface DatadogMonitorResources { /** * List the hosts for a given monitor resource. */ + @list listHosts is ArmResourceActionSync< DatadogMonitorResource, void, @@ -142,6 +144,7 @@ interface DatadogMonitorResources { /** * List all Azure resources associated to the same Datadog organization as the target resource. */ + @list listLinkedResources is ArmResourceActionSync< DatadogMonitorResource, void, @@ -151,6 +154,7 @@ interface DatadogMonitorResources { /** * List the resources currently being monitored by the Datadog monitor resource. */ + @list listMonitoredResources is ArmResourceActionSync< DatadogMonitorResource, void, diff --git a/specification/datadog/Datadog.Management/models.tsp b/specification/datadog/Datadog.Management/models.tsp index 01f33ff04161..c8b9f11a68fc 100644 --- a/specification/datadog/Datadog.Management/models.tsp +++ b/specification/datadog/Datadog.Management/models.tsp @@ -880,12 +880,11 @@ model OperationDisplay { /** * Represents a paginated list of operation results. */ -@pagedResult model OperationListResult { /** * The list of operations. */ - @items + @pageItems value: OperationResult[]; /** diff --git a/specification/datadog/Datadog.Management/routes.tsp b/specification/datadog/Datadog.Management/routes.tsp index 102f3d1b004c..f71bd6464de8 100644 --- a/specification/datadog/Datadog.Management/routes.tsp +++ b/specification/datadog/Datadog.Management/routes.tsp @@ -19,6 +19,7 @@ interface MarketplaceAgreementsOperationGroup { @summary("List Datadog marketplace agreements in the subscription.") @autoRoute @get + @list @action("agreements") list is ArmProviderActionSync< Response = DatadogAgreementResourceListResponse, @@ -49,6 +50,7 @@ interface CreationSupportedOperationGroup { @summary("Informs if the current subscription is being already monitored for selected Datadog organization.") @autoRoute @get + @list @action("subscriptionStatuses") list is ArmProviderActionSync< Response = CreateResourceSupportedResponseList, From 397b66da724dc900403f98920fc92fd3bcf599e7 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Mon, 25 Aug 2025 15:55:36 +0800 Subject: [PATCH 30/32] Update DatadogMonitorResource.tsp --- .../datadog/Datadog.Management/DatadogMonitorResource.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp index 3cccd394379f..43ac3f9fdb71 100644 --- a/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp +++ b/specification/datadog/Datadog.Management/DatadogMonitorResource.tsp @@ -35,7 +35,8 @@ interface DatadogMonitorResourcesOps ...SubscriptionIdParameter, ...ResourceGroupParameter, ...Azure.ResourceManager.Legacy.Provider, - + }, + { /** * Monitor resource name */ @@ -43,7 +44,6 @@ interface DatadogMonitorResourcesOps @segment("monitors") monitorName: string, }, - {}, ErrorResponse > {} From c37407dc4b8c49dd01fe73d9278e5c21beea169c Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Tue, 26 Aug 2025 15:01:58 +0800 Subject: [PATCH 31/32] compability for java --- specification/datadog/Datadog.Management/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/datadog/Datadog.Management/tspconfig.yaml b/specification/datadog/Datadog.Management/tspconfig.yaml index 01e8576b8ca3..348b1c557dbd 100644 --- a/specification/datadog/Datadog.Management/tspconfig.yaml +++ b/specification/datadog/Datadog.Management/tspconfig.yaml @@ -26,7 +26,7 @@ options: "@azure-tools/typespec-java": package-dir: "azure-resourcemanager-datadog" namespace: "com.azure.resourcemanager.datadog" - service-name: "Datadog" # human-readable service name, whitespace allowed + service-name: "Microsoft Datadog" flavor: azure "@azure-tools/typespec-ts": service-dir: sdk/datadog From 13ea7d05b1e6eb5df2ee49fa58efae8289fa35a6 Mon Sep 17 00:00:00 2001 From: Wenming Liu Date: Sat, 11 Oct 2025 08:23:41 +0800 Subject: [PATCH 32/32] Update main.tsp --- specification/datadog/Datadog.Management/main.tsp | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/datadog/Datadog.Management/main.tsp b/specification/datadog/Datadog.Management/main.tsp index 2722ccdf0308..fc7e616e7b20 100644 --- a/specification/datadog/Datadog.Management/main.tsp +++ b/specification/datadog/Datadog.Management/main.tsp @@ -39,8 +39,6 @@ enum Versions { /** * The 2023-10-20 API version. */ - @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - @useDependency(Azure.Core.Versions.v1_0_Preview_1) v2023_10_20: "2023-10-20", }