From 9934e42b2acd45be6a337ee0e749d820bbdb0429 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 24 Sep 2026 12:59:45 +0000 Subject: [PATCH] Regenerate client from commit fd55db6 of spec repo --- .generator/schemas/v1/openapi.yaml | 2 + .generator/schemas/v2/openapi.yaml | 204 ++++++++++++++++++ .../v1/aws-integration/CreateAWSAccount.rb | 3 + .../CreateAWSEventBridgeSource.rb | 3 + .../v1/aws-integration/CreateAWSTagFilter.rb | 3 + .../aws-integration/CreateNewAWSExternalID.rb | 3 + .../v1/aws-integration/DeleteAWSAccount.rb | 3 + .../DeleteAWSEventBridgeSource.rb | 3 + .../v1/aws-integration/DeleteAWSTagFilter.rb | 3 + .../v1/aws-integration/ListAWSAccounts.rb | 3 + .../ListAWSEventBridgeSources.rb | 3 + .../v1/aws-integration/ListAWSTagFilters.rb | 3 + .../ListAvailableAWSNamespaces.rb | 3 + .../v1/aws-integration/UpdateAWSAccount.rb | 3 + .../CheckAWSLogsLambdaAsync.rb | 3 + .../CheckAWSLogsServicesAsync.rb | 3 + .../CreateAWSLambdaARN.rb | 3 + .../DeleteAWSLambdaARN.rb | 3 + .../EnableAWSLogServices.rb | 3 + .../ListAWSLogsIntegrations.rb | 3 + .../ListAWSLogsServices.rb | 3 + .../CreateAzureIntegration.rb | 3 + .../DeleteAzureIntegration.rb | 3 + .../azure-integration/ListAzureIntegration.rb | 3 + .../UpdateAzureHostFilters.rb | 3 + .../UpdateAzureIntegration.rb | 3 + .../v1/dashboard-lists/CreateDashboardList.rb | 3 + .../v1/dashboard-lists/DeleteDashboardList.rb | 3 + .../v1/dashboard-lists/GetDashboardList.rb | 3 + .../v1/dashboard-lists/ListDashboardLists.rb | 3 + .../v1/dashboard-lists/UpdateDashboardList.rb | 3 + examples/v1/dashboards/CreateDashboard.rb | 3 + .../dashboards/CreateDashboard_1024858348.rb | 3 + .../dashboards/CreateDashboard_1039800684.rb | 3 + .../dashboards/CreateDashboard_1093147852.rb | 3 + .../dashboards/CreateDashboard_109450134.rb | 3 + .../dashboards/CreateDashboard_1094917386.rb | 3 + .../dashboards/CreateDashboard_1177423752.rb | 3 + .../dashboards/CreateDashboard_1200099236.rb | 3 + .../dashboards/CreateDashboard_1213075383.rb | 3 + .../dashboards/CreateDashboard_1259346254.rb | 3 + .../dashboards/CreateDashboard_1284514532.rb | 3 + .../dashboards/CreateDashboard_1307120899.rb | 3 + .../dashboards/CreateDashboard_1413226400.rb | 3 + .../dashboards/CreateDashboard_1423904722.rb | 3 + .../dashboards/CreateDashboard_1433408735.rb | 3 + .../dashboards/CreateDashboard_1442588603.rb | 3 + .../dashboards/CreateDashboard_145494973.rb | 3 + .../dashboards/CreateDashboard_1490099434.rb | 3 + .../dashboards/CreateDashboard_153558925.rb | 3 + .../dashboards/CreateDashboard_1617893815.rb | 3 + .../dashboards/CreateDashboard_1705253330.rb | 3 + .../dashboards/CreateDashboard_1712853070.rb | 3 + .../dashboards/CreateDashboard_173805046.rb | 3 + .../dashboards/CreateDashboard_1738608750.rb | 3 + .../dashboards/CreateDashboard_1751391372.rb | 3 + .../dashboards/CreateDashboard_1754992756.rb | 3 + .../dashboards/CreateDashboard_1877023900.rb | 3 + .../dashboards/CreateDashboard_2029850837.rb | 3 + .../dashboards/CreateDashboard_2034634967.rb | 3 + .../dashboards/CreateDashboard_2049446128.rb | 3 + .../dashboards/CreateDashboard_2064651578.rb | 3 + .../dashboards/CreateDashboard_2104498738.rb | 3 + .../dashboards/CreateDashboard_2252738813.rb | 3 + .../dashboards/CreateDashboard_2261785072.rb | 3 + .../dashboards/CreateDashboard_2278756614.rb | 3 + .../dashboards/CreateDashboard_2308247857.rb | 3 + .../dashboards/CreateDashboard_2316374332.rb | 3 + .../dashboards/CreateDashboard_2336428357.rb | 3 + .../dashboards/CreateDashboard_2338918735.rb | 3 + .../dashboards/CreateDashboard_2342457693.rb | 3 + .../dashboards/CreateDashboard_2345541687.rb | 3 + .../dashboards/CreateDashboard_2349863258.rb | 3 + .../dashboards/CreateDashboard_2361531620.rb | 3 + .../dashboards/CreateDashboard_2432046716.rb | 3 + .../dashboards/CreateDashboard_2490110261.rb | 3 + .../dashboards/CreateDashboard_252716965.rb | 3 + .../dashboards/CreateDashboard_2563642929.rb | 3 + .../dashboards/CreateDashboard_258152475.rb | 3 + .../dashboards/CreateDashboard_2607944105.rb | 3 + .../dashboards/CreateDashboard_2610827685.rb | 3 + .../dashboards/CreateDashboard_2617251399.rb | 3 + .../dashboards/CreateDashboard_2618036642.rb | 3 + .../dashboards/CreateDashboard_2634813877.rb | 3 + .../dashboards/CreateDashboard_2644712913.rb | 3 + .../dashboards/CreateDashboard_2652180930.rb | 3 + .../dashboards/CreateDashboard_2705593938.rb | 3 + .../dashboards/CreateDashboard_2780500284.rb | 3 + .../dashboards/CreateDashboard_2800096921.rb | 3 + .../dashboards/CreateDashboard_2815497946.rb | 3 + .../dashboards/CreateDashboard_2823363212.rb | 3 + .../dashboards/CreateDashboard_2843286292.rb | 3 + .../dashboards/CreateDashboard_2844071429.rb | 3 + .../dashboards/CreateDashboard_2850365602.rb | 3 + .../dashboards/CreateDashboard_2882802132.rb | 3 + .../dashboards/CreateDashboard_2917274132.rb | 3 + .../dashboards/CreateDashboard_2921337351.rb | 3 + .../dashboards/CreateDashboard_3066042014.rb | 3 + .../dashboards/CreateDashboard_3117424216.rb | 3 + .../dashboards/CreateDashboard_3195475781.rb | 3 + .../dashboards/CreateDashboard_3250131584.rb | 3 + .../dashboards/CreateDashboard_3298564989.rb | 3 + .../dashboards/CreateDashboard_3451918078.rb | 3 + .../dashboards/CreateDashboard_3513586382.rb | 3 + .../dashboards/CreateDashboard_3520534424.rb | 3 + .../dashboards/CreateDashboard_3562282606.rb | 3 + .../dashboards/CreateDashboard_3631423980.rb | 3 + .../dashboards/CreateDashboard_3669695268.rb | 3 + .../dashboards/CreateDashboard_3685886950.rb | 3 + .../dashboards/CreateDashboard_373890042.rb | 3 + .../dashboards/CreateDashboard_3767278442.rb | 3 + .../dashboards/CreateDashboard_3777304439.rb | 3 + .../dashboards/CreateDashboard_3882428227.rb | 3 + .../dashboards/CreateDashboard_3982498788.rb | 3 + .../dashboards/CreateDashboard_4018282928.rb | 3 + .../dashboards/CreateDashboard_4026341408.rb | 3 + .../dashboards/CreateDashboard_4032568083.rb | 3 + .../dashboards/CreateDashboard_4076476470.rb | 3 + .../v1/dashboards/CreateDashboard_41622531.rb | 3 + .../dashboards/CreateDashboard_416487533.rb | 3 + .../dashboards/CreateDashboard_417992286.rb | 3 + .../dashboards/CreateDashboard_4262729673.rb | 3 + .../dashboards/CreateDashboard_578885732.rb | 3 + .../dashboards/CreateDashboard_607525069.rb | 3 + .../dashboards/CreateDashboard_651038379.rb | 3 + .../dashboards/CreateDashboard_732700533.rb | 3 + .../dashboards/CreateDashboard_765140092.rb | 3 + .../dashboards/CreateDashboard_794302680.rb | 3 + .../dashboards/CreateDashboard_798168180.rb | 3 + .../dashboards/CreateDashboard_803346562.rb | 3 + .../dashboards/CreateDashboard_858397694.rb | 3 + .../dashboards/CreateDashboard_865807520.rb | 3 + .../dashboards/CreateDashboard_913313564.rb | 3 + .../dashboards/CreateDashboard_915214113.rb | 3 + .../dashboards/CreateDashboard_927141680.rb | 3 + .../v1/dashboards/CreateDashboard_9836563.rb | 3 + .../dashboards/CreateDashboard_985012506.rb | 3 + .../v1/dashboards/CreatePublicDashboard.rb | 3 + .../CreatePublicDashboard_1668947073.rb | 3 + examples/v1/dashboards/DeleteDashboard.rb | 3 + examples/v1/dashboards/DeleteDashboards.rb | 3 + .../v1/dashboards/DeletePublicDashboard.rb | 3 + .../DeletePublicDashboardInvitation.rb | 3 + examples/v1/dashboards/GetDashboard.rb | 3 + .../v1/dashboards/GetDashboard_4262333854.rb | 3 + examples/v1/dashboards/GetPublicDashboard.rb | 3 + .../GetPublicDashboardInvitations.rb | 3 + examples/v1/dashboards/ListDashboards.rb | 3 + .../dashboards/ListDashboards_1062671515.rb | 3 + .../dashboards/ListDashboards_1773932563.rb | 3 + examples/v1/dashboards/RestoreDashboards.rb | 3 + .../SendPublicDashboardInvitation.rb | 3 + ...endPublicDashboardInvitation_3435926116.rb | 3 + examples/v1/dashboards/UpdateDashboard.rb | 3 + .../dashboards/UpdateDashboard_3454865944.rb | 3 + .../v1/dashboards/UpdatePublicDashboard.rb | 3 + .../UpdatePublicDashboard_1708268778.rb | 3 + examples/v1/downtimes/CancelDowntime.rb | 3 + .../v1/downtimes/CancelDowntimesByScope.rb | 3 + examples/v1/downtimes/CreateDowntime.rb | 3 + .../v1/downtimes/CreateDowntime_1393233946.rb | 3 + .../v1/downtimes/CreateDowntime_2908359488.rb | 3 + .../v1/downtimes/CreateDowntime_3059354445.rb | 3 + .../v1/downtimes/CreateDowntime_3355644446.rb | 3 + examples/v1/downtimes/GetDowntime.rb | 3 + examples/v1/downtimes/ListDowntimes.rb | 3 + examples/v1/downtimes/ListMonitorDowntimes.rb | 3 + examples/v1/downtimes/UpdateDowntime.rb | 3 + examples/v1/events/GetEvent.rb | 3 + examples/v1/events/ListEvents.rb | 3 + .../gcp-integration/CreateGCPIntegration.rb | 3 + .../gcp-integration/DeleteGCPIntegration.rb | 3 + .../v1/gcp-integration/ListGCPIntegration.rb | 3 + .../gcp-integration/UpdateGCPIntegration.rb | 3 + .../UpdateGCPIntegration_3544259255.rb | 3 + examples/v1/hosts/GetHostTotals.rb | 3 + examples/v1/hosts/ListHosts.rb | 3 + examples/v1/hosts/ListHosts_2975406675.rb | 3 + examples/v1/hosts/ListHosts_347346033.rb | 3 + examples/v1/hosts/MuteHost.rb | 3 + examples/v1/hosts/UnmuteHost.rb | 3 + examples/v1/key-management/CreateAPIKey.rb | 3 + .../v1/key-management/CreateApplicationKey.rb | 3 + examples/v1/key-management/DeleteAPIKey.rb | 3 + .../v1/key-management/DeleteApplicationKey.rb | 3 + examples/v1/key-management/GetAPIKey.rb | 3 + .../v1/key-management/GetApplicationKey.rb | 3 + examples/v1/key-management/ListAPIKeys.rb | 3 + .../v1/key-management/ListApplicationKeys.rb | 3 + examples/v1/key-management/UpdateAPIKey.rb | 3 + .../v1/key-management/UpdateApplicationKey.rb | 3 + examples/v1/logs-indexes/CreateLogsIndex.rb | 3 + examples/v1/logs-indexes/DeleteLogsIndex.rb | 3 + examples/v1/logs-indexes/GetLogsIndex.rb | 3 + examples/v1/logs-indexes/GetLogsIndexOrder.rb | 3 + examples/v1/logs-indexes/ListLogIndexes.rb | 3 + examples/v1/logs-indexes/UpdateLogsIndex.rb | 3 + .../v1/logs-indexes/UpdateLogsIndexOrder.rb | 3 + .../v1/logs-pipelines/CreateLogsPipeline.rb | 3 + .../CreateLogsPipeline_104735144.rb | 3 + .../CreateLogsPipeline_1185292896.rb | 3 + .../CreateLogsPipeline_1248402480.rb | 3 + .../CreateLogsPipeline_1267211320.rb | 3 + .../CreateLogsPipeline_1271012410.rb | 3 + .../CreateLogsPipeline_1745625064.rb | 3 + .../CreateLogsPipeline_2256674867.rb | 3 + .../CreateLogsPipeline_2402034476.rb | 3 + .../CreateLogsPipeline_2595757342.rb | 3 + .../CreateLogsPipeline_2599033345.rb | 3 + .../CreateLogsPipeline_2707101123.rb | 3 + .../CreateLogsPipeline_3314493032.rb | 3 + .../CreateLogsPipeline_3336967838.rb | 3 + .../CreateLogsPipeline_3934594739.rb | 3 + .../CreateLogsPipeline_3996915493.rb | 3 + .../CreateLogsPipeline_4041812833.rb | 3 + .../CreateLogsPipeline_501419705.rb | 3 + .../v1/logs-pipelines/DeleteLogsPipeline.rb | 3 + examples/v1/logs-pipelines/GetLogsPipeline.rb | 3 + .../v1/logs-pipelines/GetLogsPipelineOrder.rb | 3 + .../v1/logs-pipelines/ListLogsPipelines.rb | 3 + .../v1/logs-pipelines/UpdateLogsPipeline.rb | 3 + .../logs-pipelines/UpdateLogsPipelineOrder.rb | 3 + examples/v1/logs/ListLogs.rb | 3 + examples/v1/logs/ListLogs_235998668.rb | 3 + examples/v1/metrics/GetMetricMetadata.rb | 3 + examples/v1/metrics/ListActiveMetrics.rb | 3 + examples/v1/metrics/ListMetrics.rb | 3 + examples/v1/metrics/QueryMetrics.rb | 3 + examples/v1/metrics/UpdateMetricMetadata.rb | 3 + examples/v1/monitors/CheckCanDeleteMonitor.rb | 3 + examples/v1/monitors/CreateMonitor.rb | 3 + .../v1/monitors/CreateMonitor_1303514967.rb | 3 + .../v1/monitors/CreateMonitor_1348801712.rb | 3 + .../v1/monitors/CreateMonitor_1532893480.rb | 3 + .../v1/monitors/CreateMonitor_1539578087.rb | 3 + .../v1/monitors/CreateMonitor_1553931399.rb | 3 + .../v1/monitors/CreateMonitor_1969035628.rb | 3 + .../v1/monitors/CreateMonitor_2012680290.rb | 3 + .../v1/monitors/CreateMonitor_2082938111.rb | 3 + .../v1/monitors/CreateMonitor_2520912138.rb | 3 + .../v1/monitors/CreateMonitor_2589528326.rb | 3 + .../v1/monitors/CreateMonitor_2608995690.rb | 3 + .../v1/monitors/CreateMonitor_2986418353.rb | 3 + .../v1/monitors/CreateMonitor_3541766733.rb | 3 + .../v1/monitors/CreateMonitor_3626832481.rb | 3 + .../v1/monitors/CreateMonitor_3790803616.rb | 3 + .../v1/monitors/CreateMonitor_3824294658.rb | 3 + .../v1/monitors/CreateMonitor_3883669300.rb | 3 + .../v1/monitors/CreateMonitor_440013737.rb | 3 + examples/v1/monitors/DeleteMonitor.rb | 3 + examples/v1/monitors/GetMonitor.rb | 3 + examples/v1/monitors/GetMonitor_2200114573.rb | 3 + examples/v1/monitors/GetMonitor_3691711704.rb | 3 + examples/v1/monitors/ListMonitors.rb | 3 + .../v1/monitors/ListMonitors_2154432960.rb | 3 + .../v1/monitors/ListMonitors_463213563.rb | 3 + examples/v1/monitors/SearchMonitorGroups.rb | 3 + examples/v1/monitors/SearchMonitors.rb | 3 + examples/v1/monitors/UpdateMonitor.rb | 3 + .../v1/monitors/ValidateExistingMonitor.rb | 3 + examples/v1/monitors/ValidateMonitor.rb | 3 + .../v1/monitors/ValidateMonitor_4247196452.rb | 3 + examples/v1/notebooks/CreateNotebook.rb | 3 + examples/v1/notebooks/DeleteNotebook.rb | 3 + examples/v1/notebooks/GetNotebook.rb | 3 + examples/v1/notebooks/ListNotebooks.rb | 3 + .../v1/notebooks/ListNotebooks_788665428.rb | 3 + examples/v1/notebooks/UpdateNotebook.rb | 3 + examples/v1/organizations/CreateChildOrg.rb | 3 + examples/v1/organizations/DowngradeOrg.rb | 3 + examples/v1/organizations/GetOrg.rb | 3 + examples/v1/organizations/ListOrgs.rb | 3 + examples/v1/organizations/UpdateOrg.rb | 3 + examples/v1/organizations/UploadIdPForOrg.rb | 3 + .../CreatePagerDutyIntegrationService.rb | 3 + .../DeletePagerDutyIntegrationService.rb | 3 + .../GetPagerDutyIntegrationService.rb | 3 + .../UpdatePagerDutyIntegrationService.rb | 3 + .../AddSecurityMonitoringSignalToIncident.rb | 3 + .../EditSecurityMonitoringSignalAssignee.rb | 3 + .../EditSecurityMonitoringSignalState.rb | 3 + .../CreateSLOCorrection.rb | 3 + .../CreateSLOCorrection_1326388368.rb | 3 + .../CreateSLOCorrection_2888963657.rb | 3 + .../DeleteSLOCorrection.rb | 3 + .../GetSLOCorrection.rb | 3 + .../ListSLOCorrection.rb | 3 + .../ListSLOCorrection_2647266873.rb | 3 + .../UpdateSLOCorrection.rb | 3 + .../UpdateSLOCorrection_2949191256.rb | 3 + .../CheckCanDeleteSLO.rb | 3 + .../v1/service-level-objectives/CreateSLO.rb | 3 + .../CreateSLO_3765703239.rb | 3 + .../CreateSLO_512760759.rb | 3 + .../CreateSLO_707861409.rb | 3 + .../v1/service-level-objectives/DeleteSLO.rb | 3 + .../DeleteSLOTimeframeInBulk.rb | 3 + .../v1/service-level-objectives/GetSLO.rb | 3 + .../GetSLOCorrections.rb | 3 + .../service-level-objectives/GetSLOHistory.rb | 3 + .../v1/service-level-objectives/ListSLOs.rb | 3 + .../ListSLOs_3036942817.rb | 3 + .../v1/service-level-objectives/SearchSLO.rb | 3 + .../v1/service-level-objectives/UpdateSLO.rb | 3 + .../CreateSlackIntegrationChannel.rb | 3 + .../GetSlackIntegrationChannel.rb | 3 + .../GetSlackIntegrationChannels.rb | 3 + .../RemoveSlackIntegrationChannel.rb | 3 + .../UpdateSlackIntegrationChannel.rb | 3 + examples/v1/snapshots/GetGraphSnapshot.rb | 3 + .../v1/synthetics/CreateGlobalVariable.rb | 3 + .../CreateGlobalVariable_1068962881.rb | 3 + .../CreateGlobalVariable_3298562511.rb | 3 + .../CreateGlobalVariable_3397718516.rb | 3 + .../v1/synthetics/CreatePrivateLocation.rb | 3 + .../v1/synthetics/CreateSyntheticsAPITest.rb | 3 + .../CreateSyntheticsAPITest_1072503741.rb | 3 + .../CreateSyntheticsAPITest_1241981394.rb | 3 + .../CreateSyntheticsAPITest_1279271422.rb | 3 + .../CreateSyntheticsAPITest_1402674167.rb | 3 + .../CreateSyntheticsAPITest_1487281163.rb | 3 + .../CreateSyntheticsAPITest_1717840259.rb | 3 + .../CreateSyntheticsAPITest_1987645492.rb | 3 + .../CreateSyntheticsAPITest_2106135939.rb | 3 + .../CreateSyntheticsAPITest_2472747642.rb | 3 + .../CreateSyntheticsAPITest_2547523542.rb | 3 + .../CreateSyntheticsAPITest_3829801148.rb | 3 + .../CreateSyntheticsAPITest_960766374.rb | 3 + .../synthetics/CreateSyntheticsBrowserTest.rb | 3 + .../CreateSyntheticsBrowserTest_2932742688.rb | 3 + .../CreateSyntheticsBrowserTest_397420811.rb | 3 + .../synthetics/CreateSyntheticsMobileTest.rb | 3 + .../v1/synthetics/DeleteGlobalVariable.rb | 3 + .../v1/synthetics/DeletePrivateLocation.rb | 3 + examples/v1/synthetics/DeleteTests.rb | 3 + examples/v1/synthetics/EditGlobalVariable.rb | 3 + examples/v1/synthetics/FetchUptimes.rb | 3 + examples/v1/synthetics/GetAPITest.rb | 3 + .../v1/synthetics/GetAPITestLatestResults.rb | 3 + examples/v1/synthetics/GetAPITestResult.rb | 3 + .../synthetics/GetAPITestResult_1321866518.rb | 3 + examples/v1/synthetics/GetBrowserTest.rb | 3 + .../synthetics/GetBrowserTestLatestResults.rb | 3 + .../v1/synthetics/GetBrowserTestResult.rb | 3 + examples/v1/synthetics/GetGlobalVariable.rb | 3 + examples/v1/synthetics/GetMobileTest.rb | 3 + .../v1/synthetics/GetMobileTest_212471226.rb | 3 + examples/v1/synthetics/GetPrivateLocation.rb | 3 + .../v1/synthetics/GetSyntheticsCIBatch.rb | 3 + .../GetSyntheticsDefaultLocations.rb | 3 + ...GetSyntheticsDefaultLocations_746853380.rb | 3 + examples/v1/synthetics/GetTest.rb | 3 + examples/v1/synthetics/ListGlobalVariables.rb | 3 + examples/v1/synthetics/ListLocations.rb | 3 + examples/v1/synthetics/ListTests.rb | 3 + .../v1/synthetics/ListTests_1938827783.rb | 3 + .../v1/synthetics/ListTests_2779190961.rb | 3 + examples/v1/synthetics/PatchTest.rb | 3 + examples/v1/synthetics/SearchTests.rb | 3 + examples/v1/synthetics/TriggerCITests.rb | 3 + examples/v1/synthetics/TriggerTests.rb | 3 + examples/v1/synthetics/UpdateAPITest.rb | 3 + examples/v1/synthetics/UpdateBrowserTest.rb | 3 + examples/v1/synthetics/UpdateMobileTest.rb | 3 + .../synthetics/UpdateMobileTest_477498912.rb | 3 + .../v1/synthetics/UpdatePrivateLocation.rb | 3 + .../v1/synthetics/UpdateTestPauseStatus.rb | 3 + examples/v1/tags/CreateHostTags.rb | 3 + examples/v1/tags/DeleteHostTags.rb | 3 + examples/v1/tags/GetHostTags.rb | 3 + examples/v1/tags/ListHostTags.rb | 3 + examples/v1/tags/UpdateHostTags.rb | 3 + .../usage-metering/GetDailyCustomReports.rb | 3 + .../GetHourlyUsageAttribution.rb | 3 + .../usage-metering/GetIncidentManagement.rb | 3 + .../v1/usage-metering/GetIngestedSpans.rb | 3 + .../usage-metering/GetMonthlyCustomReports.rb | 3 + .../GetMonthlyUsageAttribution.rb | 3 + .../GetMonthlyUsageAttribution_3849653599.rb | 3 + .../GetSpecifiedDailyCustomReports.rb | 3 + .../GetSpecifiedMonthlyCustomReports.rb | 3 + .../v1/usage-metering/GetUsageAnalyzedLogs.rb | 3 + .../v1/usage-metering/GetUsageAuditLogs.rb | 3 + .../usage-metering/GetUsageBillableSummary.rb | 3 + examples/v1/usage-metering/GetUsageCIApp.rb | 3 + examples/v1/usage-metering/GetUsageCWS.rb | 3 + .../GetUsageCloudSecurityPostureManagement.rb | 3 + examples/v1/usage-metering/GetUsageDBM.rb | 3 + .../usage-metering/GetUsageDBM_3446806203.rb | 3 + examples/v1/usage-metering/GetUsageFargate.rb | 3 + examples/v1/usage-metering/GetUsageHosts.rb | 3 + .../v1/usage-metering/GetUsageIndexedSpans.rb | 3 + .../GetUsageInternetOfThings.rb | 3 + examples/v1/usage-metering/GetUsageLambda.rb | 3 + examples/v1/usage-metering/GetUsageLogs.rb | 3 + .../v1/usage-metering/GetUsageLogsByIndex.rb | 3 + .../GetUsageLogsByIndex_1025184776.rb | 3 + .../usage-metering/GetUsageLogsByRetention.rb | 3 + .../usage-metering/GetUsageLogs_2562396405.rb | 3 + .../v1/usage-metering/GetUsageNetworkFlows.rb | 3 + .../GetUsageNetworkFlows_1239422069.rb | 3 + .../v1/usage-metering/GetUsageNetworkHosts.rb | 3 + .../GetUsageNetworkHosts_1249907835.rb | 3 + .../usage-metering/GetUsageOnlineArchive.rb | 3 + .../GetUsageOnlineArchive_1501172903.rb | 3 + .../v1/usage-metering/GetUsageProfiling.rb | 3 + .../v1/usage-metering/GetUsageRumSessions.rb | 3 + .../GetUsageRumSessions_3271366243.rb | 3 + .../GetUsageRumSessions_714937291.rb | 3 + .../v1/usage-metering/GetUsageRumUnits.rb | 3 + .../GetUsageRumUnits_3959755399.rb | 3 + examples/v1/usage-metering/GetUsageSDS.rb | 3 + .../usage-metering/GetUsageSDS_271128478.rb | 3 + examples/v1/usage-metering/GetUsageSNMP.rb | 3 + examples/v1/usage-metering/GetUsageSummary.rb | 3 + .../v1/usage-metering/GetUsageSynthetics.rb | 3 + .../usage-metering/GetUsageSyntheticsAPI.rb | 3 + .../GetUsageSyntheticsAPI_4048033529.rb | 3 + .../GetUsageSyntheticsBrowser.rb | 3 + .../GetUsageSyntheticsBrowser_1704663299.rb | 3 + .../v1/usage-metering/GetUsageTimeseries.rb | 3 + .../usage-metering/GetUsageTopAvgMetrics.rb | 3 + examples/v1/users/CreateUser.rb | 3 + examples/v1/users/CreateUser_266604071.rb | 3 + examples/v1/users/DisableUser.rb | 3 + examples/v1/users/GetUser.rb | 3 + examples/v1/users/ListUsers.rb | 3 + examples/v1/users/UpdateUser.rb | 3 + .../CreateWebhooksIntegration.rb | 3 + ...CreateWebhooksIntegrationCustomVariable.rb | 3 + .../DeleteWebhooksIntegration.rb | 3 + ...DeleteWebhooksIntegrationCustomVariable.rb | 3 + .../GetWebhooksIntegration.rb | 3 + .../GetWebhooksIntegrationCustomVariable.rb | 3 + .../UpdateWebhooksIntegration.rb | 3 + ...UpdateWebhooksIntegrationCustomVariable.rb | 3 + .../CreateActionConnection.rb | 3 + .../DeleteActionConnection.rb | 3 + .../action-connection/GetActionConnection.rb | 3 + .../GetAppKeyRegistration.rb | 3 + .../ListAppKeyRegistrations.rb | 3 + .../v2/action-connection/RegisterAppKey.rb | 3 + .../v2/action-connection/UnregisterAppKey.rb | 3 + .../UpdateActionConnection.rb | 3 + .../BulkDeleteDatastoreItems.rb | 3 + .../BulkWriteDatastoreItems.rb | 3 + .../v2/actions-datastores/CreateDatastore.rb | 3 + .../v2/actions-datastores/DeleteDatastore.rb | 3 + .../actions-datastores/DeleteDatastoreItem.rb | 3 + .../v2/actions-datastores/GetDatastore.rb | 3 + .../actions-datastores/ListDatastoreItems.rb | 3 + .../v2/actions-datastores/ListDatastores.rb | 3 + .../v2/actions-datastores/UpdateDatastore.rb | 3 + .../actions-datastores/UpdateDatastoreItem.rb | 3 + .../AggregateLLMObsExperimentation.rb | 1 + .../BatchUpdateLLMObsDataset.rb | 1 + .../agent-observability/CloneLLMObsDataset.rb | 1 + .../CreateLLMObsAnnotationQueue.rb | 1 + ...CreateLLMObsAnnotationQueueInteractions.rb | 1 + ...sAnnotationQueueInteractions_2021594537.rb | 1 + .../CreateLLMObsDataset.rb | 1 + .../CreateLLMObsDatasetRecords.rb | 1 + .../CreateLLMObsExperiment.rb | 1 + .../CreateLLMObsExperimentEvents.rb | 1 + .../CreateLLMObsIntegrationInference.rb | 1 + .../CreateLLMObsProject.rb | 1 + .../agent-observability/CreateLLMObsPrompt.rb | 1 + .../CreateLLMObsPromptVersion.rb | 1 + .../DeleteLLMObsAnnotationQueue.rb | 1 + ...DeleteLLMObsAnnotationQueueInteractions.rb | 1 + .../DeleteLLMObsAnnotations.rb | 1 + .../DeleteLLMObsCustomEvalConfig.rb | 1 + .../DeleteLLMObsDatasetRecords.rb | 1 + .../DeleteLLMObsDatasets.rb | 1 + .../DeleteLLMObsExperiments.rb | 1 + .../DeleteLLMObsPatternsConfig.rb | 1 + .../DeleteLLMObsProjects.rb | 1 + .../agent-observability/DeleteLLMObsPrompt.rb | 1 + .../ExportLLMObsDataset.rb | 1 + .../GetLLMObsAnnotatedInteraction.rb | 1 + ...etLLMObsAnnotatedInteraction_3394378457.rb | 1 + .../GetLLMObsAnnotatedInteractions.rb | 1 + ...etLLMObsAnnotatedInteractionsByTraceIDs.rb | 1 + .../GetLLMObsAnnotationQueueLabelSchema.rb | 1 + .../GetLLMObsCustomEvalConfig.rb | 1 + .../GetLLMObsDatasetDraftState.rb | 1 + .../GetLLMObsPatternsConfig.rb | 1 + .../GetLLMObsPatternsRunStatus.rb | 1 + .../v2/agent-observability/GetLLMObsPrompt.rb | 1 + .../GetLLMObsPromptVersion.rb | 1 + .../ListLLMObsAnnotationQueues.rb | 1 + .../ListLLMObsCustomEvalConfigs.rb | 1 + .../ListLLMObsDatasetRecords.rb | 1 + .../ListLLMObsDatasetVersions.rb | 1 + .../agent-observability/ListLLMObsDatasets.rb | 1 + .../ListLLMObsExperimentEvents.rb | 1 + .../ListLLMObsExperimentEventsV1.rb | 1 + .../ListLLMObsExperimentEventsV2.rb | 1 + .../ListLLMObsExperiments.rb | 1 + .../ListLLMObsIntegrationAccounts.rb | 1 + .../ListLLMObsIntegrationModels.rb | 1 + .../ListLLMObsPatternsClusteredPoints.rb | 1 + .../ListLLMObsPatternsConfigs.rb | 1 + .../ListLLMObsPatternsRuns.rb | 1 + .../ListLLMObsPatternsTopics.rb | 1 + ...LLMObsPatternsTopicsWithClusteredPoints.rb | 1 + .../agent-observability/ListLLMObsProjects.rb | 1 + .../ListLLMObsPromptVersions.rb | 1 + .../agent-observability/ListLLMObsPrompts.rb | 1 + .../v2/agent-observability/ListLLMObsSpans.rb | 1 + .../LockLLMObsDatasetDraftState.rb | 1 + .../RestoreLLMObsDatasetVersion.rb | 1 + .../SearchLLMObsExperimentation.rb | 1 + .../agent-observability/SearchLLMObsSpans.rb | 1 + .../SimpleSearchLLMObsExperimentation.rb | 1 + .../TriggerLLMObsPatterns.rb | 1 + .../UnlockLLMObsDatasetDraftState.rb | 1 + .../UpdateLLMObsAnnotationQueue.rb | 1 + .../UpdateLLMObsAnnotationQueueLabelSchema.rb | 1 + .../UpdateLLMObsCustomEvalConfig.rb | 1 + .../UpdateLLMObsDataset.rb | 1 + .../UpdateLLMObsDatasetRecords.rb | 1 + .../UpdateLLMObsExperiment.rb | 1 + .../UpdateLLMObsProject.rb | 1 + .../agent-observability/UpdateLLMObsPrompt.rb | 1 + .../UpdateLLMObsPromptVersion.rb | 1 + .../UploadLLMObsDatasetRecordsFile.rb | 1 + .../UpsertLLMObsAnnotations.rb | 1 + .../UpsertLLMObsPatternsConfig.rb | 1 + .../CreateAwsOnDemandTask.rb | 3 + .../CreateAwsScanOptions.rb | 3 + .../CreateAzureScanOptions.rb | 3 + .../CreateGcpScanOptions.rb | 3 + .../DeleteAwsScanOptions.rb | 3 + .../DeleteAzureScanOptions.rb | 3 + .../DeleteGcpScanOptions.rb | 3 + .../agentless-scanning/GetAwsOnDemandTask.rb | 3 + .../agentless-scanning/GetAwsScanOptions.rb | 3 + .../agentless-scanning/GetAzureScanOptions.rb | 3 + .../agentless-scanning/GetGcpScanOptions.rb | 3 + .../ListAwsOnDemandTasks.rb | 3 + .../agentless-scanning/ListAwsScanOptions.rb | 3 + .../ListAzureScanOptions.rb | 3 + .../agentless-scanning/ListGcpScanOptions.rb | 3 + .../UpdateAwsScanOptions.rb | 3 + .../UpdateAzureScanOptions.rb | 3 + .../UpdateGcpScanOptions.rb | 3 + examples/v2/annotations/CreateAnnotation.rb | 1 + examples/v2/annotations/DeleteAnnotation.rb | 1 + examples/v2/annotations/GetPageAnnotations.rb | 1 + examples/v2/annotations/ListAnnotations.rb | 1 + examples/v2/annotations/UpdateAnnotation.rb | 1 + examples/v2/api-management/CreateOpenAPI.rb | 1 + examples/v2/api-management/DeleteOpenAPI.rb | 1 + examples/v2/api-management/GetOpenAPI.rb | 1 + examples/v2/api-management/ListAPIs.rb | 1 + examples/v2/api-management/UpdateOpenAPI.rb | 1 + .../CreateApmRetentionFilter.rb | 3 + .../CreateApmRetentionFilter_3853850379.rb | 3 + .../DeleteApmRetentionFilter.rb | 3 + .../GetApmRetentionFilter.rb | 3 + .../ListApmRetentionFilters.rb | 3 + .../ReorderApmRetentionFilters.rb | 3 + .../UpdateApmRetentionFilter.rb | 3 + .../UpdateApmRetentionFilter_3916044058.rb | 3 + examples/v2/apm-trace/GetPrunedTraceByID.rb | 1 + examples/v2/apm-trace/GetTraceByID.rb | 1 + examples/v2/apm/GetServiceList.rb | 3 + examples/v2/app-builder/CreateApp.rb | 3 + .../v2/app-builder/CreatePublishRequest.rb | 3 + examples/v2/app-builder/DeleteApp.rb | 3 + examples/v2/app-builder/DeleteApps.rb | 3 + examples/v2/app-builder/GetApp.rb | 3 + examples/v2/app-builder/GetBlueprint.rb | 3 + .../GetBlueprintsByIntegrationId.rb | 3 + .../v2/app-builder/GetBlueprintsBySlugs.rb | 3 + examples/v2/app-builder/ListAppVersions.rb | 3 + examples/v2/app-builder/ListApps.rb | 3 + examples/v2/app-builder/ListBlueprints.rb | 3 + examples/v2/app-builder/ListTags.rb | 3 + examples/v2/app-builder/PublishApp.rb | 3 + examples/v2/app-builder/RevertApp.rb | 3 + examples/v2/app-builder/UnpublishApp.rb | 3 + examples/v2/app-builder/UpdateApp.rb | 3 + examples/v2/app-builder/UpdateAppFavorite.rb | 3 + .../v2/app-builder/UpdateAppSelfService.rb | 3 + examples/v2/app-builder/UpdateAppTags.rb | 3 + .../v2/app-builder/UpdateAppVersionName.rb | 3 + .../v2/app-builder/UpdateProtectionLevel.rb | 3 + .../CreateApplicationSecurityWafCustomRule.rb | 3 + ...teApplicationSecurityWafExclusionFilter.rb | 3 + .../CreateApplicationSecurityWafPolicy.rb | 3 + .../DeleteApplicationSecurityWafCustomRule.rb | 3 + ...teApplicationSecurityWafExclusionFilter.rb | 3 + .../DeleteApplicationSecurityWafPolicy.rb | 3 + .../GetApplicationSecurityWafCustomRule.rb | 3 + ...etApplicationSecurityWafExclusionFilter.rb | 3 + .../GetApplicationSecurityWafPolicy.rb | 3 + .../GetAsmServiceByName.rb | 1 + .../ListApplicationSecurityWAFCustomRules.rb | 3 + .../ListApplicationSecurityWAFPolicies.rb | 3 + ...tApplicationSecurityWafExclusionFilters.rb | 3 + .../UpdateApplicationSecurityWafCustomRule.rb | 3 + ...teApplicationSecurityWafExclusionFilter.rb | 3 + .../UpdateApplicationSecurityWafPolicy.rb | 3 + examples/v2/audit/ListAuditLogs.rb | 3 + examples/v2/audit/ListAuditLogs_1275402458.rb | 3 + examples/v2/audit/SearchAuditLogs.rb | 3 + .../v2/audit/SearchAuditLogs_3215529662.rb | 3 + .../v2/authn-mappings/CreateAuthNMapping.rb | 3 + .../v2/authn-mappings/DeleteAuthNMapping.rb | 3 + examples/v2/authn-mappings/GetAuthNMapping.rb | 3 + .../v2/authn-mappings/ListAuthNMappings.rb | 3 + .../v2/authn-mappings/UpdateAuthNMapping.rb | 3 + .../v2/aws-integration/CreateAWSAccount.rb | 3 + .../CreateAWSAccountCCMConfig.rb | 1 + .../CreateAWSAccount_1716720881.rb | 3 + .../CreateAWSEventBridgeSource.rb | 3 + .../aws-integration/CreateNewAWSExternalID.rb | 3 + .../CreateNewAWSExternalID_364713854.rb | 3 + .../v2/aws-integration/DeleteAWSAccount.rb | 3 + .../DeleteAWSAccountCCMConfig.rb | 1 + .../DeleteAWSEventBridgeSource.rb | 3 + examples/v2/aws-integration/GetAWSAccount.rb | 3 + .../aws-integration/GetAWSAccountCCMConfig.rb | 1 + .../GetAWSIntegrationIAMPermissions.rb | 3 + ...grationIAMPermissionsResourceCollection.rb | 3 + ...ermissionsResourceCollection_1008672547.rb | 3 + ...GetAWSIntegrationIAMPermissionsStandard.rb | 3 + ...rationIAMPermissionsStandard_3136299151.rb | 3 + .../GetAWSMetricNameFilterPreview.rb | 1 + .../v2/aws-integration/ListAWSAccounts.rb | 3 + .../ListAWSEventBridgeSources.rb | 3 + .../v2/aws-integration/ListAWSNamespaces.rb | 3 + .../ListAWSNamespaces_3031307873.rb | 3 + .../PreviewAWSMetricNameFilter.rb | 1 + .../v2/aws-integration/UpdateAWSAccount.rb | 3 + .../UpdateAWSAccountCCMConfig.rb | 1 + .../aws-integration/ValidateAWSCCMConfig.rb | 1 + .../ListAWSLogsServices.rb | 3 + examples/v2/bits-ai/GetInvestigation.rb | 1 + examples/v2/bits-ai/ListInvestigations.rb | 1 + .../bits-ai/ListInvestigations_130750454.rb | 1 + examples/v2/bits-ai/TriggerInvestigation.rb | 1 + .../CreateCustomAttributeConfig.rb | 3 + .../DeleteCustomAttributeConfig.rb | 3 + .../GetAllCustomAttributeConfigsByCaseType.rb | 3 + .../GetAllCustomAttributes.rb | 3 + .../UpdateCustomAttributeConfig.rb | 3 + .../v2/case-management-type/CreateCaseType.rb | 3 + .../v2/case-management-type/DeleteCaseType.rb | 3 + .../DeleteCaseType_2790986149.rb | 3 + .../case-management-type/GetAllCaseTypes.rb | 3 + .../v2/case-management-type/UpdateCaseType.rb | 3 + .../v2/case-management/AddCaseInsights.rb | 3 + examples/v2/case-management/AggregateCases.rb | 3 + examples/v2/case-management/ArchiveCase.rb | 3 + examples/v2/case-management/AssignCase.rb | 3 + .../v2/case-management/BulkUpdateCases.rb | 3 + examples/v2/case-management/CommentCase.rb | 3 + examples/v2/case-management/CountCases.rb | 3 + examples/v2/case-management/CreateCase.rb | 3 + .../CreateCaseAutomationRule.rb | 3 + .../v2/case-management/CreateCaseJiraIssue.rb | 3 + examples/v2/case-management/CreateCaseLink.rb | 3 + .../v2/case-management/CreateCaseNotebook.rb | 3 + .../CreateCaseServiceNowTicket.rb | 3 + examples/v2/case-management/CreateCaseView.rb | 3 + .../CreateMaintenanceWindow.rb | 3 + examples/v2/case-management/CreateProject.rb | 3 + .../CreateProjectNotificationRule.rb | 3 + .../DeleteCaseAutomationRule.rb | 3 + .../v2/case-management/DeleteCaseComment.rb | 3 + .../DeleteCaseCustomAttribute.rb | 3 + examples/v2/case-management/DeleteCaseLink.rb | 3 + examples/v2/case-management/DeleteCaseView.rb | 3 + .../DeleteMaintenanceWindow.rb | 3 + examples/v2/case-management/DeleteProject.rb | 3 + .../DeleteProjectNotificationRule.rb | 3 + .../DisableCaseAutomationRule.rb | 3 + .../EnableCaseAutomationRule.rb | 3 + .../v2/case-management/FavoriteCaseProject.rb | 3 + examples/v2/case-management/GetCase.rb | 3 + .../case-management/GetCaseAutomationRule.rb | 3 + examples/v2/case-management/GetCaseView.rb | 3 + examples/v2/case-management/GetProject.rb | 3 + .../GetProjectNotificationRules.rb | 3 + examples/v2/case-management/GetProjects.rb | 3 + examples/v2/case-management/LinkIncident.rb | 3 + .../v2/case-management/LinkJiraIssueToCase.rb | 3 + .../ListCaseAutomationRules.rb | 3 + examples/v2/case-management/ListCaseLinks.rb | 3 + .../v2/case-management/ListCaseTimeline.rb | 3 + examples/v2/case-management/ListCaseViews.rb | 3 + .../v2/case-management/ListCaseWatchers.rb | 3 + .../case-management/ListMaintenanceWindows.rb | 3 + .../ListUserCaseProjectFavorites.rb | 3 + .../v2/case-management/MoveCaseToProject.rb | 3 + .../v2/case-management/RemoveCaseInsights.rb | 3 + examples/v2/case-management/SearchCases.rb | 3 + .../case-management/SearchCases_3433960044.rb | 3 + examples/v2/case-management/UnarchiveCase.rb | 3 + examples/v2/case-management/UnassignCase.rb | 3 + .../case-management/UnfavoriteCaseProject.rb | 3 + .../v2/case-management/UnlinkJiraIssue.rb | 3 + examples/v2/case-management/UnwatchCase.rb | 3 + .../v2/case-management/UpdateAttributes.rb | 3 + .../UpdateCaseAutomationRule.rb | 3 + .../v2/case-management/UpdateCaseComment.rb | 3 + .../UpdateCaseCustomAttribute.rb | 3 + .../case-management/UpdateCaseDescription.rb | 3 + .../v2/case-management/UpdateCaseDueDate.rb | 3 + .../UpdateCaseResolvedReason.rb | 3 + .../v2/case-management/UpdateCaseTitle.rb | 3 + examples/v2/case-management/UpdateCaseView.rb | 3 + .../UpdateMaintenanceWindow.rb | 3 + examples/v2/case-management/UpdatePriority.rb | 3 + examples/v2/case-management/UpdateProject.rb | 3 + .../UpdateProjectNotificationRule.rb | 3 + examples/v2/case-management/UpdateStatus.rb | 3 + examples/v2/case-management/WatchCase.rb | 3 + .../change-management/CreateChangeRequest.rb | 1 + .../CreateChangeRequestBranch.rb | 1 + .../DeleteChangeRequestDecision.rb | 1 + .../v2/change-management/GetChangeRequest.rb | 1 + .../change-management/UpdateChangeRequest.rb | 1 + .../UpdateChangeRequestDecision.rb | 1 + .../ListCIAppGitHubAccounts.rb | 3 + .../UpdateCIAppGitHubAccount.rb | 3 + .../AggregateCIAppPipelineEvents.rb | 3 + .../ListCIAppPipelineEvents.rb | 3 + .../ListCIAppPipelineEvents_1270618359.rb | 3 + .../SearchCIAppPipelineEvents.rb | 3 + .../SearchCIAppPipelineEvents_3246135003.rb | 3 + .../AggregateCIAppTestEvents.rb | 3 + .../ListCIAppTestEvents.rb | 3 + .../ListCIAppTestEvents_3852605281.rb | 3 + .../SearchCIAppTestEvents.rb | 3 + .../SearchCIAppTestEvents_1675695429.rb | 3 + .../CreateAWSCloudAuthPersonaMapping.rb | 1 + .../DeleteAWSCloudAuthPersonaMapping.rb | 1 + .../GetAWSCloudAuthPersonaMapping.rb | 1 + .../ListAWSCloudAuthPersonaMappings.rb | 1 + .../CreateCostAWSCURConfig.rb | 3 + .../CreateCostAzureUCConfigs.rb | 3 + .../CreateCostGCPUsageCostConfig.rb | 3 + .../CreateCustomAllocationRule.rb | 3 + .../CreateTagPipelinesRuleset.rb | 3 + .../CreateTagPipelinesRuleset_1897535856.rb | 3 + .../cloud-cost-management/CreateUnitCost.rb | 1 + .../v2/cloud-cost-management/DeleteBudget.rb | 3 + .../DeleteCostAWSCURConfig.rb | 3 + .../DeleteCostAzureUCConfig.rb | 3 + .../DeleteCostGCPUsageCostConfig.rb | 3 + .../DeleteCostTagDescriptionByKey.rb | 3 + .../DeleteCustomAllocationRule.rb | 3 + .../DeleteCustomCostsFile.rb | 3 + .../DeleteCustomCostsFile_372970393.rb | 3 + .../DeleteCustomForecast.rb | 3 + .../DeleteTagPipelinesRuleset.rb | 3 + .../cloud-cost-management/DeleteUnitCost.rb | 1 + .../GenerateCostTagDescriptionByKey.rb | 3 + .../v2/cloud-cost-management/GetBudget.rb | 3 + .../GetCommitmentsCommitmentList.rb | 1 + .../GetCommitmentsCoverageScalar.rb | 1 + .../GetCommitmentsCoverageTimeseries.rb | 1 + .../GetCommitmentsOnDemandHotspotsScalar.rb | 1 + .../GetCommitmentsSavingsScalar.rb | 1 + .../GetCommitmentsSavingsTimeseries.rb | 1 + .../GetCommitmentsUtilizationScalar.rb | 1 + .../GetCommitmentsUtilizationTimeseries.rb | 1 + .../GetCostAWSCURConfig.rb | 3 + .../GetCostAccountFilters.rb | 3 + .../cloud-cost-management/GetCostAnomaly.rb | 1 + .../GetCostAzureUCConfig.rb | 3 + .../GetCostGCPUsageCostConfig.rb | 3 + .../GetCostTagDescriptionByKey.rb | 3 + .../v2/cloud-cost-management/GetCostTagKey.rb | 3 + .../GetCostTagMetadataCurrency.rb | 1 + .../GetCustomAllocationRule.rb | 3 + .../GetCustomCostsFile.rb | 3 + .../GetCustomCostsFile_1307381576.rb | 3 + .../GetCustomForecast.rb | 3 + .../GetTagPipelinesRuleset.rb | 3 + .../v2/cloud-cost-management/GetUnitCost.rb | 1 + .../v2/cloud-cost-management/ListBudgets.rb | 3 + .../ListCostAWSCURConfigs.rb | 3 + .../ListCostAnomalies.rb | 1 + .../ListCostAzureUCConfigs.rb | 3 + .../ListCostGCPUsageCostConfigs.rb | 3 + .../ListCostOCIConfigs.rb | 3 + .../ListCostTagDescriptions.rb | 3 + .../ListCostTagKeySources.rb | 1 + .../cloud-cost-management/ListCostTagKeys.rb | 3 + .../ListCostTagMetadata.rb | 1 + .../ListCostTagMetadataMetrics.rb | 1 + .../ListCostTagMetadataMonths.rb | 1 + .../ListCostTagMetadataOrchestrators.rb | 1 + .../v2/cloud-cost-management/ListCostTags.rb | 3 + .../ListCustomAllocationRules.rb | 3 + .../ListCustomAllocationRulesStatus.rb | 3 + .../ListCustomCostsFiles.rb | 3 + .../ListCustomCostsFiles_1968771127.rb | 3 + .../ListTagPipelinesRulesets.rb | 3 + .../ListTagPipelinesRulesetsStatus.rb | 3 + .../v2/cloud-cost-management/ListUnitCosts.rb | 1 + .../ReorderCustomAllocationRules.rb | 3 + .../ReorderTagPipelinesRulesets.rb | 3 + .../SearchCostRecommendations.rb | 1 + .../UpdateCostAWSCURConfig.rb | 3 + .../UpdateCostAccountFilters.rb | 3 + .../UpdateCostAzureUCConfigs.rb | 3 + .../UpdateCostGCPUsageCostConfig.rb | 3 + .../UpdateCustomAllocationRule.rb | 3 + .../UpdateTagPipelinesRuleset.rb | 3 + .../UpdateTagPipelinesRuleset_1964644735.rb | 3 + .../cloud-cost-management/UpdateUnitCost.rb | 1 + .../UploadCustomCostsFile.rb | 3 + .../UploadCustomCostsFile_4125168396.rb | 3 + .../v2/cloud-cost-management/UpsertBudget.rb | 3 + .../UpsertCostTagDescriptionByKey.rb | 3 + .../UpsertCustomForecast.rb | 3 + .../cloud-cost-management/ValidateBudget.rb | 3 + .../v2/cloud-cost-management/ValidateQuery.rb | 3 + .../GetAggregatedConnections.rb | 3 + .../GetAggregatedConnections_3059356111.rb | 3 + .../GetAggregatedDns.rb | 3 + .../CreateCloudflareAccount.rb | 3 + .../DeleteCloudflareAccount.rb | 3 + .../GetCloudflareAccount.rb | 3 + .../ListCloudflareAccounts.rb | 3 + .../UpdateCloudflareAccount.rb | 3 + .../GetCodeCoverageBranchSummary.rb | 3 + ...GetCodeCoverageBranchSummary_2532383345.rb | 1 + .../GetCodeCoverageCommitSummary.rb | 3 + ...GetCodeCoverageCommitSummary_2575243916.rb | 1 + .../v2/code-coverage/GetCodeCoverageFiles.rb | 3 + .../code-coverage/GetCodeCoveragePRSummary.rb | 3 + examples/v2/compliance/GetRuleBasedView.rb | 1 + .../confluent-cloud/CreateConfluentAccount.rb | 3 + .../CreateConfluentResource.rb | 3 + .../confluent-cloud/DeleteConfluentAccount.rb | 3 + .../DeleteConfluentResource.rb | 3 + .../v2/confluent-cloud/GetConfluentAccount.rb | 3 + .../confluent-cloud/GetConfluentResource.rb | 3 + .../confluent-cloud/ListConfluentAccount.rb | 3 + .../confluent-cloud/ListConfluentResource.rb | 3 + .../confluent-cloud/UpdateConfluentAccount.rb | 3 + .../UpdateConfluentResource.rb | 3 + .../container-images/ListContainerImages.rb | 3 + .../ListContainerImages_3088586393.rb | 3 + .../ListContainerImages_3974828736.rb | 3 + examples/v2/containers/ListContainers.rb | 3 + .../containers/ListContainers_2175733917.rb | 3 + .../v2/containers/ListContainers_931009654.rb | 3 + examples/v2/csm-agents/ListAllCSMAgents.rb | 3 + .../csm-agents/ListAllCSMServerlessAgents.rb | 3 + .../GetCSMCloudAccountsCoverageAnalysis.rb | 3 + ...etCSMHostsAndContainersCoverageAnalysis.rb | 3 + .../GetCSMServerlessCoverageAnalysis.rb | 3 + .../csm-ownership/CreateOwnershipFeedback.rb | 1 + .../v2/csm-ownership/GetOwnershipEvidence.rb | 1 + .../v2/csm-ownership/GetOwnershipInference.rb | 1 + .../v2/csm-ownership/GetOwnershipSettings.rb | 1 + .../GetOwnershipUntaggedFindings.rb | 1 + .../v2/csm-ownership/ListOwnershipHistory.rb | 1 + .../ListOwnershipHistoryByOwnerType.rb | 1 + .../csm-ownership/ListOwnershipInferences.rb | 1 + .../v2/csm-ownership/PostOwnershipSettings.rb | 1 + .../GetCSMAgentlessHostFacetInfo.rb | 1 + .../GetCSMUnifiedHostFacetInfo.rb | 1 + .../ListCSMAgentlessHostFacets.rb | 1 + .../v2/csm-settings/ListCSMAgentlessHosts.rb | 1 + .../csm-settings/ListCSMUnifiedHostFacets.rb | 1 + .../v2/csm-settings/ListCSMUnifiedHosts.rb | 1 + .../CreateCSMThreatsAgentPolicy.rb | 3 + .../csm-threats/CreateCSMThreatsAgentRule.rb | 3 + .../CreateCSMThreatsAgentRule_1295653933.rb | 3 + .../CreateCSMThreatsAgentRule_1363354233.rb | 3 + .../CreateCloudWorkloadSecurityAgentRule.rb | 3 + .../DeleteCSMThreatsAgentPolicy.rb | 3 + .../csm-threats/DeleteCSMThreatsAgentRule.rb | 3 + .../DeleteCloudWorkloadSecurityAgentRule.rb | 3 + .../csm-threats/DownloadCSMThreatsPolicy.rb | 3 + .../DownloadCloudWorkloadPolicyFile.rb | 3 + .../csm-threats/GetCSMThreatsAgentPolicy.rb | 3 + .../v2/csm-threats/GetCSMThreatsAgentRule.rb | 3 + .../GetCloudWorkloadSecurityAgentRule.rb | 3 + .../ListCSMThreatsAgentPolicies.rb | 3 + .../csm-threats/ListCSMThreatsAgentRules.rb | 3 + .../ListCloudWorkloadSecurityAgentRules.rb | 3 + .../UpdateCSMThreatsAgentPolicy.rb | 3 + .../csm-threats/UpdateCSMThreatsAgentRule.rb | 3 + .../UpdateCloudWorkloadSecurityAgentRule.rb | 3 + .../v2/customer-org/DisableCustomerOrg.rb | 1 + .../CreateDashboardListItems.rb | 3 + .../CreateDashboardListItems_3995409989.rb | 3 + .../CreateDashboardListItems_825696022.rb | 3 + .../DeleteDashboardListItems.rb | 3 + .../DeleteDashboardListItems_2656706656.rb | 3 + .../DeleteDashboardListItems_3851624753.rb | 3 + .../dashboard-lists/GetDashboardListItems.rb | 3 + .../UpdateDashboardListItems.rb | 3 + .../CreateDashboardSecureEmbed.rb | 1 + .../DeleteDashboardSecureEmbed.rb | 1 + .../GetDashboardSecureEmbed.rb | 1 + .../UpdateDashboardSecureEmbed.rb | 1 + .../ListSharedDashboardsByDashboardId.rb | 1 + examples/v2/dashboards/GetDashboardUsage.rb | 1 + examples/v2/dashboards/ListDashboardsUsage.rb | 1 + .../ListDashboardsUsage_3152353926.rb | 1 + .../ListDashboardsUsage_3889372739.rb | 1 + .../ListDashboardsUsage_3946782296.rb | 1 + .../ListDashboardsUsage_4183300898.rb | 1 + .../CancelDataDeletionRequest.rb | 3 + .../CreateDataDeletionRequest.rb | 3 + .../data-deletion/GetDataDeletionRequests.rb | 3 + .../CreateDatabricksIntegrationAccount.rb | 1 + .../DeleteDatabricksIntegrationAccount.rb | 1 + .../GetDatabricksIntegrationAccount.rb | 1 + .../ListDatabricksIntegrationAccounts.rb | 1 + .../UpdateDatabricksIntegrationAccount.rb | 1 + examples/v2/datasets/CreateDataset.rb | 1 + examples/v2/datasets/DeleteDataset.rb | 1 + examples/v2/datasets/GetAllDatasets.rb | 1 + examples/v2/datasets/GetDataset.rb | 1 + examples/v2/datasets/UpdateDataset.rb | 1 + .../v2/dem/BatchGetJourneysByTestSuiteIDs.rb | 3 + examples/v2/dem/CreateJourney.rb | 3 + examples/v2/dem/CreateJourneyVariant.rb | 3 + examples/v2/dem/CreateTestSuiteForJourney.rb | 3 + .../v2/dem/DeleteIgnoredInferredJourney.rb | 3 + examples/v2/dem/DeleteJourney.rb | 3 + examples/v2/dem/DeleteJourneyVariant.rb | 3 + examples/v2/dem/GetJourney.rb | 3 + examples/v2/dem/GetJourneyRecommendedTests.rb | 3 + examples/v2/dem/IgnoreInferredJourney.rb | 3 + examples/v2/dem/SearchInferredJourneys.rb | 3 + examples/v2/dem/SearchJourneys.rb | 3 + examples/v2/dem/UpdateJourney.rb | 3 + examples/v2/dem/UpdateJourneyVariant.rb | 3 + .../deployment-gates/CreateDeploymentGate.rb | 1 + .../deployment-gates/CreateDeploymentRule.rb | 1 + .../CreateDeploymentRule_2423265690.rb | 1 + .../CreateDeploymentRule_4286388136.rb | 1 + .../deployment-gates/DeleteDeploymentGate.rb | 1 + .../deployment-gates/DeleteDeploymentRule.rb | 1 + .../v2/deployment-gates/GetDeploymentGate.rb | 1 + .../GetDeploymentGateRules.rb | 1 + .../GetDeploymentGatesEvaluationResult.rb | 1 + ...loymentGatesEvaluationResult_3594131214.rb | 1 + .../v2/deployment-gates/GetDeploymentRule.rb | 1 + .../deployment-gates/ListDeploymentGates.rb | 1 + .../TriggerDeploymentGatesEvaluation.rb | 1 + ...ggerDeploymentGatesEvaluation_691804290.rb | 1 + .../deployment-gates/UpdateDeploymentGate.rb | 1 + .../deployment-gates/UpdateDeploymentRule.rb | 1 + .../v2/domain-allowlist/GetDomainAllowlist.rb | 3 + .../domain-allowlist/PatchDomainAllowlist.rb | 3 + .../v2/dora-metrics/DeleteDORADeployment.rb | 3 + examples/v2/dora-metrics/DeleteDORAFailure.rb | 3 + .../DeleteDORAFailure_3462074974.rb | 3 + examples/v2/dora-metrics/GetDORADeployment.rb | 3 + examples/v2/dora-metrics/GetDORAFailure.rb | 3 + .../v2/dora-metrics/ListDORADeployments.rb | 3 + .../ListDORADeployments_1654201709.rb | 3 + examples/v2/dora-metrics/ListDORAFailures.rb | 3 + .../ListDORAFailures_3269988848.rb | 3 + .../v2/dora-metrics/PatchDORADeployment.rb | 3 + .../PatchDORADeploymentByVersion.rb | 1 + examples/v2/downtimes/CancelDowntime.rb | 3 + examples/v2/downtimes/CreateDowntime.rb | 3 + examples/v2/downtimes/GetDowntime.rb | 3 + examples/v2/downtimes/ListDowntimes.rb | 3 + .../v2/downtimes/ListDowntimes_805770330.rb | 3 + examples/v2/downtimes/ListMonitorDowntimes.rb | 3 + .../ListMonitorDowntimes_3316718253.rb | 3 + examples/v2/downtimes/UpdateDowntime.rb | 3 + .../CreateElasticCloudIntegrationAccount.rb | 1 + .../DeleteElasticCloudIntegrationAccount.rb | 1 + .../GetElasticCloudIntegrationAccount.rb | 1 + .../ListElasticCloudIntegrationAccounts.rb | 1 + .../UpdateElasticCloudIntegrationAccount.rb | 1 + .../DeleteEntityIntegrationConfig.rb | 1 + .../GetEntityIntegrationConfig.rb | 1 + .../UpdateEntityIntegrationConfig.rb | 1 + .../entity-risk-scores/GetEntityRiskScore.rb | 1 + .../ListEntityRiskScores.rb | 1 + .../v2/error-tracking/DeleteIssueAssignee.rb | 3 + examples/v2/error-tracking/GetIssue.rb | 3 + examples/v2/error-tracking/SearchIssues.rb | 3 + .../v2/error-tracking/UpdateIssueAssignee.rb | 3 + .../v2/error-tracking/UpdateIssueState.rb | 3 + examples/v2/events/CreateEvent.rb | 3 + examples/v2/events/GetEvent.rb | 3 + examples/v2/events/ListEvents.rb | 3 + examples/v2/events/ListEvents_1527584014.rb | 3 + examples/v2/events/ListEvents_2663715109.rb | 3 + examples/v2/events/SearchEvents.rb | 3 + examples/v2/events/SearchEvents_3856995058.rb | 3 + .../execution-policy/CreateExecutionPolicy.rb | 1 + .../CreateExecutionPolicy_1075977289.rb | 1 + .../execution-policy/DeleteExecutionPolicy.rb | 1 + .../v2/execution-policy/GetExecutionPolicy.rb | 1 + .../execution-policy/ListExecutionPolicies.rb | 1 + .../ListExecutionPolicies_1745885519.rb | 1 + .../execution-policy/UpdateExecutionPolicy.rb | 1 + .../fastly-integration/CreateFastlyAccount.rb | 3 + .../fastly-integration/CreateFastlyService.rb | 3 + .../fastly-integration/DeleteFastlyAccount.rb | 3 + .../fastly-integration/DeleteFastlyService.rb | 3 + .../v2/fastly-integration/GetFastlyAccount.rb | 3 + .../v2/fastly-integration/GetFastlyService.rb | 3 + .../fastly-integration/ListFastlyAccounts.rb | 3 + .../fastly-integration/ListFastlyServices.rb | 3 + .../fastly-integration/UpdateFastlyAccount.rb | 3 + .../fastly-integration/UpdateFastlyService.rb | 3 + .../v2/feature-flags/ArchiveFeatureFlag.rb | 3 + ...eAllocationsForFeatureFlagInEnvironment.rb | 3 + ...sForFeatureFlagInEnvironment_3662093014.rb | 3 + .../v2/feature-flags/CreateFeatureFlag.rb | 3 + .../CreateFeatureFlagsEnvironment.rb | 3 + .../CreateVariantForFeatureFlag.rb | 3 + .../DeleteFeatureFlagsEnvironment.rb | 3 + .../DeleteVariantFromFeatureFlag.rb | 3 + .../DisableFeatureFlagEnvironment.rb | 3 + .../EnableFeatureFlagEnvironment.rb | 3 + examples/v2/feature-flags/GetFeatureFlag.rb | 3 + .../GetFeatureFlagsEnvironment.rb | 3 + examples/v2/feature-flags/ListFeatureFlags.rb | 3 + .../ListFeatureFlagsEnvironments.rb | 3 + .../v2/feature-flags/PauseExposureSchedule.rb | 3 + .../feature-flags/ResumeExposureSchedule.rb | 3 + .../v2/feature-flags/StartExposureSchedule.rb | 3 + .../v2/feature-flags/StopExposureSchedule.rb | 3 + .../v2/feature-flags/UnarchiveFeatureFlag.rb | 3 + ...eAllocationsForFeatureFlagInEnvironment.rb | 3 + ...sForFeatureFlagInEnvironment_3789036209.rb | 3 + .../v2/feature-flags/UpdateFeatureFlag.rb | 3 + .../UpdateFeatureFlagsEnvironment.rb | 3 + .../UpdateVariantForFeatureFlag.rb | 3 + .../CancelFleetDeploymentV2.rb | 3 + .../CreateFleetDeploymentConfigureV2.rb | 3 + .../CreateFleetDeploymentUpgradeV2.rb | 3 + .../fleet-automation/CreateFleetSchedule.rb | 1 + .../fleet-automation/DeleteFleetSchedule.rb | 1 + .../fleet-automation/GetFleetAgentDetailV2.rb | 3 + .../fleet-automation/GetFleetDeploymentV2.rb | 3 + .../v2/fleet-automation/GetFleetScheduleV2.rb | 3 + .../fleet-automation/ListFleetAgentTracers.rb | 1 + .../ListFleetAgentVersionsV2.rb | 3 + .../v2/fleet-automation/ListFleetAgentsV2.rb | 3 + .../ListFleetDeploymentsV2.rb | 3 + .../fleet-automation/ListFleetSchedulesV2.rb | 3 + .../v2/fleet-automation/ListFleetTracers.rb | 1 + .../fleet-automation/TriggerFleetSchedule.rb | 1 + .../fleet-automation/UpdateFleetSchedule.rb | 1 + examples/v2/forms/CloneForm.rb | 1 + examples/v2/forms/CreateAndPublishForm.rb | 1 + examples/v2/forms/CreateForm.rb | 1 + examples/v2/forms/DeleteForm.rb | 1 + examples/v2/forms/GetForm.rb | 1 + examples/v2/forms/ListForms.rb | 1 + examples/v2/forms/PublishForm.rb | 1 + examples/v2/forms/UpdateForm.rb | 1 + .../v2/forms/UpsertAndPublishFormVersion.rb | 1 + examples/v2/forms/UpsertFormVersion.rb | 1 + .../v2/gcp-integration/CreateGCPSTSAccount.rb | 3 + .../CreateGCPSTSAccount_109518525.rb | 3 + .../CreateGCPSTSAccount_130557025.rb | 3 + .../CreateGCPSTSAccount_194782945.rb | 3 + .../CreateGCPSTSAccount_2597004741.rb | 3 + .../CreateGCPSTSAccount_2882283621.rb | 3 + .../CreateGCPSTSAccount_4235664992.rb | 3 + .../v2/gcp-integration/DeleteGCPSTSAccount.rb | 3 + .../v2/gcp-integration/GetGCPSTSDelegate.rb | 3 + .../v2/gcp-integration/ListGCPSTSAccounts.rb | 3 + .../v2/gcp-integration/MakeGCPSTSDelegate.rb | 3 + .../MakeGCPSTSDelegate_962598975.rb | 3 + .../v2/gcp-integration/UpdateGCPSTSAccount.rb | 3 + .../UpdateGCPSTSAccount_2241994060.rb | 3 + .../UpdateGCPSTSAccount_3205636354.rb | 3 + .../UpdateGCPSTSAccount_4285997499.rb | 3 + .../CreateGoogleChatTargetAudience.rb | 3 + .../CreateOrganizationHandle.rb | 3 + .../DeleteGoogleChatDelegatedUser.rb | 3 + .../DeleteGoogleChatOrganization.rb | 3 + .../DeleteGoogleChatTargetAudience.rb | 3 + .../DeleteOrganizationHandle.rb | 3 + .../GetGoogleChatDelegatedUser.rb | 3 + .../GetGoogleChatOrganization.rb | 3 + .../GetGoogleChatTargetAudience.rb | 3 + .../GetOrganizationHandle.rb | 3 + .../GetSpaceByDisplayName.rb | 3 + .../ListGoogleChatOrganizations.rb | 3 + .../ListGoogleChatTargetAudiences.rb | 3 + .../ListOrganizationHandles.rb | 3 + .../UpdateGoogleChatTargetAudience.rb | 3 + .../UpdateOrganizationHandle.rb | 3 + .../governance-console/GetGovernanceConfig.rb | 1 + .../GetGovernanceControl.rb | 1 + ...etGovernanceControlNotificationSettings.rb | 1 + .../GetGovernanceDetection.rb | 1 + .../GetGovernanceNotificationSettings.rb | 1 + .../ListGovernanceControlDetections.rb | 1 + .../ListGovernanceControls.rb | 1 + .../ListGovernanceInsights.rb | 1 + .../MitigateGovernanceDetections.rb | 1 + .../UpdateGovernanceControl.rb | 1 + ...teGovernanceControlNotificationSettings.rb | 1 + .../UpdateGovernanceDetection.rb | 1 + .../UpdateGovernanceNotificationSettings.rb | 1 + .../CreateHamrOrgConnection.rb | 1 + .../GetHamrOrgConnection.rb | 1 + .../ListIdentityProviderUsers.rb | 3 + .../ListIdentityProviderUsers_486416181.rb | 3 + .../ListIdentityProviders.rb | 3 + .../UpdateIdentityProvider.rb | 3 + .../incidents/CreateGlobalIncidentHandle.rb | 1 + examples/v2/incidents/CreateIncident.rb | 1 + .../v2/incidents/CreateIncidentAttachment.rb | 1 + examples/v2/incidents/CreateIncidentImpact.rb | 1 + .../v2/incidents/CreateIncidentIntegration.rb | 1 + .../CreateIncidentNotificationRule.rb | 1 + ...eateIncidentNotificationRule_3029800608.rb | 1 + .../CreateIncidentNotificationTemplate.rb | 1 + .../CreateIncidentPostmortemAttachment.rb | 1 + .../CreateIncidentPostmortemTemplate.rb | 1 + examples/v2/incidents/CreateIncidentTodo.rb | 1 + examples/v2/incidents/CreateIncidentType.rb | 1 + .../CreateIncidentUserDefinedField.rb | 1 + .../CreateIncidentUserDefinedRole.rb | 1 + .../incidents/DeleteGlobalIncidentHandle.rb | 1 + examples/v2/incidents/DeleteIncident.rb | 1 + .../v2/incidents/DeleteIncidentAttachment.rb | 1 + examples/v2/incidents/DeleteIncidentImpact.rb | 1 + .../v2/incidents/DeleteIncidentIntegration.rb | 1 + .../DeleteIncidentNotificationRule.rb | 1 + ...leteIncidentNotificationRule_4148107167.rb | 1 + .../DeleteIncidentNotificationTemplate.rb | 1 + ...IncidentNotificationTemplate_1602689347.rb | 1 + .../DeleteIncidentPostmortemTemplate.rb | 1 + examples/v2/incidents/DeleteIncidentTodo.rb | 1 + examples/v2/incidents/DeleteIncidentType.rb | 1 + .../DeleteIncidentUserDefinedField.rb | 1 + .../DeleteIncidentUserDefinedRole.rb | 1 + .../v2/incidents/GetGlobalIncidentSettings.rb | 1 + examples/v2/incidents/GetIncident.rb | 1 + .../v2/incidents/GetIncidentIntegration.rb | 1 + .../incidents/GetIncidentNotificationRule.rb | 1 + .../GetIncidentNotificationRule_67441486.rb | 1 + .../GetIncidentNotificationTemplate.rb | 1 + .../GetIncidentPostmortemTemplate.rb | 1 + examples/v2/incidents/GetIncidentTodo.rb | 1 + examples/v2/incidents/GetIncidentType.rb | 1 + .../incidents/GetIncidentUserDefinedField.rb | 1 + .../incidents/GetIncidentUserDefinedRole.rb | 1 + examples/v2/incidents/ImportIncident.rb | 1 + .../v2/incidents/ListGlobalIncidentHandles.rb | 1 + .../v2/incidents/ListIncidentAttachments.rb | 1 + examples/v2/incidents/ListIncidentImpacts.rb | 1 + .../v2/incidents/ListIncidentIntegrations.rb | 1 + .../ListIncidentNotificationRules.rb | 1 + .../ListIncidentNotificationTemplates.rb | 1 + .../ListIncidentPostmortemTemplates.rb | 1 + examples/v2/incidents/ListIncidentTodos.rb | 1 + examples/v2/incidents/ListIncidentTypes.rb | 1 + .../ListIncidentUserDefinedFields.rb | 1 + .../incidents/ListIncidentUserDefinedRoles.rb | 1 + examples/v2/incidents/ListIncidents.rb | 1 + .../v2/incidents/ListIncidents_2665616954.rb | 1 + examples/v2/incidents/PatchIncidentImpact.rb | 1 + examples/v2/incidents/SearchIncidents.rb | 1 + .../incidents/SearchIncidents_1931679109.rb | 1 + .../incidents/UpdateGlobalIncidentHandle.rb | 1 + .../incidents/UpdateGlobalIncidentSettings.rb | 1 + examples/v2/incidents/UpdateIncident.rb | 1 + .../v2/incidents/UpdateIncidentAttachment.rb | 1 + .../v2/incidents/UpdateIncidentIntegration.rb | 1 + .../UpdateIncidentNotificationRule.rb | 1 + ...dateIncidentNotificationRule_1207309457.rb | 1 + .../UpdateIncidentNotificationTemplate.rb | 1 + .../UpdateIncidentPostmortemTemplate.rb | 1 + examples/v2/incidents/UpdateIncidentTodo.rb | 1 + examples/v2/incidents/UpdateIncidentType.rb | 1 + .../UpdateIncidentUserDefinedField.rb | 1 + .../UpdateIncidentUserDefinedRole.rb | 1 + .../v2/incidents/UpdateIncident_1009194038.rb | 1 + .../v2/incidents/UpdateIncident_3369341440.rb | 1 + examples/v2/integrations/ListIntegrations.rb | 3 + examples/v2/ip-allowlist/GetIPAllowlist.rb | 3 + examples/v2/ip-allowlist/UpdateIPAllowlist.rb | 3 + .../CreateJiraIssueTemplate.rb | 1 + .../v2/jira-integration/DeleteJiraAccount.rb | 1 + .../DeleteJiraIssueTemplate.rb | 1 + .../jira-integration/GetJiraIssueTemplate.rb | 1 + .../v2/jira-integration/ListJiraAccounts.rb | 1 + .../ListJiraIssueTemplates.rb | 1 + .../UpdateJiraIssueTemplate.rb | 1 + examples/v2/key-management/CreateAPIKey.rb | 3 + .../CreateCurrentUserApplicationKey.rb | 3 + ...ateCurrentUserApplicationKey_3383369233.rb | 3 + .../CreatePersonalAccessToken.rb | 3 + examples/v2/key-management/DeleteAPIKey.rb | 3 + .../v2/key-management/DeleteApplicationKey.rb | 3 + .../DeleteCurrentUserApplicationKey.rb | 3 + examples/v2/key-management/GetAPIKey.rb | 3 + .../v2/key-management/GetApplicationKey.rb | 3 + .../GetCurrentUserApplicationKey.rb | 3 + .../key-management/GetPersonalAccessToken.rb | 3 + examples/v2/key-management/ListAPIKeys.rb | 3 + .../v2/key-management/ListApplicationKeys.rb | 3 + .../ListCurrentUserApplicationKeys.rb | 3 + .../ListPersonalAccessTokens.rb | 3 + .../ListPersonalAccessTokens_4153414404.rb | 3 + .../RevokePersonalAccessToken.rb | 3 + examples/v2/key-management/UpdateAPIKey.rb | 3 + .../v2/key-management/UpdateApplicationKey.rb | 3 + .../UpdateCurrentUserApplicationKey.rb | 3 + .../UpdatePersonalAccessToken.rb | 3 + examples/v2/key-management/ValidateAPIKey.rb | 3 + .../v2/logs-archives/AddReadRoleToArchive.rb | 3 + .../v2/logs-archives/CreateLogsArchive.rb | 3 + .../v2/logs-archives/DeleteLogsArchive.rb | 3 + examples/v2/logs-archives/GetLogsArchive.rb | 3 + .../v2/logs-archives/GetLogsArchiveOrder.rb | 3 + .../v2/logs-archives/ListArchiveReadRoles.rb | 3 + examples/v2/logs-archives/ListLogsArchives.rb | 3 + .../v2/logs-archives/RemoveRoleFromArchive.rb | 3 + .../v2/logs-archives/UpdateLogsArchive.rb | 3 + .../logs-archives/UpdateLogsArchiveOrder.rb | 3 + .../CreateLogsCustomDestination.rb | 3 + .../CreateLogsCustomDestination_1091442807.rb | 3 + .../CreateLogsCustomDestination_1288180912.rb | 3 + .../CreateLogsCustomDestination_140188544.rb | 3 + .../CreateLogsCustomDestination_141236188.rb | 3 + .../CreateLogsCustomDestination_1718754520.rb | 3 + .../CreateLogsCustomDestination_1735989579.rb | 3 + .../CreateLogsCustomDestination_2184123765.rb | 3 + .../CreateLogsCustomDestination_2534546779.rb | 3 + .../CreateLogsCustomDestination_3120242932.rb | 3 + .../DeleteLogsCustomDestination.rb | 3 + .../GetLogsCustomDestination.rb | 3 + .../ListLogsCustomDestinations.rb | 3 + .../UpdateLogsCustomDestination.rb | 3 + .../UpdateLogsCustomDestination_2034509257.rb | 3 + .../UpdateLogsCustomDestination_213195663.rb | 3 + .../UpdateLogsCustomDestination_2612469098.rb | 3 + .../UpdateLogsCustomDestination_2701272624.rb | 3 + .../UpdateLogsCustomDestination_3227001838.rb | 3 + examples/v2/logs-metrics/CreateLogsMetric.rb | 3 + examples/v2/logs-metrics/DeleteLogsMetric.rb | 3 + examples/v2/logs-metrics/GetLogsMetric.rb | 3 + examples/v2/logs-metrics/ListLogsMetrics.rb | 3 + examples/v2/logs-metrics/UpdateLogsMetric.rb | 3 + .../UpdateLogsMetric_1901534424.rb | 3 + .../AddRoleToRestrictionQuery.rb | 1 + .../CreateRestrictionQuery.rb | 1 + .../DeleteRestrictionQuery.rb | 1 + .../GetRestrictionQuery.rb | 1 + .../GetRoleRestrictionQuery.rb | 1 + .../ListRestrictionQueries.rb | 1 + .../ListRestrictionQueryRoles.rb | 1 + .../ListUserRestrictionQueries.rb | 1 + .../RemoveRoleFromRestrictionQuery.rb | 1 + .../ReplaceRestrictionQuery.rb | 1 + .../UpdateRestrictionQuery.rb | 1 + examples/v2/logs/AggregateLogs.rb | 3 + examples/v2/logs/AggregateLogs_2527007002.rb | 3 + examples/v2/logs/AggregateLogs_2955613758.rb | 3 + examples/v2/logs/ListLogs.rb | 3 + examples/v2/logs/ListLogsGet.rb | 3 + examples/v2/logs/ListLogsGet_175182691.rb | 3 + examples/v2/logs/ListLogsGet_2034110533.rb | 3 + examples/v2/logs/ListLogsGet_738202670.rb | 3 + examples/v2/logs/ListLogs_3138392594.rb | 3 + examples/v2/logs/ListLogs_3400928236.rb | 3 + examples/v2/logs/ListLogs_534975433.rb | 3 + .../CreateBulkTagsMetricsConfiguration.rb | 3 + .../CreateHistoricalMetricsConfiguration.rb | 1 + examples/v2/metrics/CreateTagConfiguration.rb | 3 + examples/v2/metrics/CreateTagIndexingRule.rb | 1 + .../metrics/CreateTagIndexingRuleExemption.rb | 1 + .../CreateTagIndexingRule_2435129406.rb | 1 + .../DeleteBulkTagsMetricsConfiguration.rb | 3 + .../DeleteHistoricalMetricsConfiguration.rb | 1 + examples/v2/metrics/DeleteTagConfiguration.rb | 3 + examples/v2/metrics/DeleteTagIndexingRule.rb | 1 + .../metrics/DeleteTagIndexingRuleExemption.rb | 1 + .../v2/metrics/EstimateMetricsOutputSeries.rb | 3 + .../GetHistoricalMetricsConfiguration.rb | 1 + .../metrics/GetMetricTagCardinalityDetails.rb | 3 + examples/v2/metrics/GetTagIndexingRule.rb | 1 + .../v2/metrics/GetTagIndexingRuleExemption.rb | 1 + .../metrics/ListActiveMetricConfigurations.rb | 3 + examples/v2/metrics/ListMetricAssets.rb | 3 + .../v2/metrics/ListTagConfigurationByName.rb | 3 + examples/v2/metrics/ListTagConfigurations.rb | 3 + .../ListTagConfigurations_265033704.rb | 3 + .../ListTagConfigurations_2739018321.rb | 3 + .../ListTagConfigurations_3969783727.rb | 3 + examples/v2/metrics/ListTagIndexingRules.rb | 1 + .../metrics/ListTagIndexingRulesForMetric.rb | 1 + examples/v2/metrics/ListTagsByMetricName.rb | 3 + .../v2/metrics/ListVolumesByMetricName.rb | 3 + examples/v2/metrics/QueryScalarData.rb | 3 + .../v2/metrics/QueryScalarData_1479548882.rb | 3 + .../v2/metrics/QueryScalarData_1904811219.rb | 3 + .../v2/metrics/QueryScalarData_2086017331.rb | 3 + .../v2/metrics/QueryScalarData_2298288525.rb | 3 + .../v2/metrics/QueryScalarData_2398494003.rb | 3 + .../v2/metrics/QueryScalarData_2533499017.rb | 3 + .../v2/metrics/QueryScalarData_2757564916.rb | 3 + .../v2/metrics/QueryScalarData_3112571352.rb | 3 + .../v2/metrics/QueryScalarData_3210877526.rb | 3 + .../v2/metrics/QueryScalarData_3246660196.rb | 3 + .../v2/metrics/QueryScalarData_3470073355.rb | 3 + .../v2/metrics/QueryScalarData_3740015316.rb | 3 + .../v2/metrics/QueryScalarData_394862343.rb | 3 + .../v2/metrics/QueryScalarData_397220765.rb | 3 + .../v2/metrics/QueryScalarData_420944803.rb | 3 + .../v2/metrics/QueryScalarData_4230617918.rb | 3 + .../v2/metrics/QueryScalarData_4257291081.rb | 3 + .../v2/metrics/QueryScalarData_779493885.rb | 3 + .../v2/metrics/QueryScalarData_891952130.rb | 3 + .../v2/metrics/QueryScalarData_922754919.rb | 3 + examples/v2/metrics/QueryTimeseriesData.rb | 3 + .../metrics/QueryTimeseriesData_1080761370.rb | 3 + .../metrics/QueryTimeseriesData_108927825.rb | 3 + .../metrics/QueryTimeseriesData_1116544040.rb | 3 + .../metrics/QueryTimeseriesData_1606557647.rb | 3 + .../metrics/QueryTimeseriesData_1639521432.rb | 3 + .../metrics/QueryTimeseriesData_2159746306.rb | 3 + .../metrics/QueryTimeseriesData_2186419469.rb | 3 + .../metrics/QueryTimeseriesData_2649955681.rb | 3 + .../metrics/QueryTimeseriesData_2673679719.rb | 3 + .../metrics/QueryTimeseriesData_2884575435.rb | 3 + .../metrics/QueryTimeseriesData_301142940.rb | 3 + .../metrics/QueryTimeseriesData_3174309318.rb | 3 + .../metrics/QueryTimeseriesData_3442090283.rb | 3 + .../metrics/QueryTimeseriesData_3535807425.rb | 3 + .../metrics/QueryTimeseriesData_4028506518.rb | 3 + .../metrics/QueryTimeseriesData_4190640887.rb | 3 + .../metrics/QueryTimeseriesData_4246412951.rb | 3 + .../metrics/QueryTimeseriesData_475733751.rb | 3 + .../metrics/QueryTimeseriesData_597826488.rb | 3 + .../metrics/QueryTimeseriesData_847716941.rb | 3 + .../v2/metrics/ReorderTagIndexingRules.rb | 1 + examples/v2/metrics/UpdateTagConfiguration.rb | 3 + examples/v2/metrics/UpdateTagIndexingRule.rb | 1 + .../UpdateTagIndexingRule_4127399471.rb | 1 + .../CreateTenantBasedHandle.rb | 3 + .../CreateTenantBasedHandle_1540689753.rb | 3 + .../CreateWorkflowsWebhookHandle.rb | 3 + ...CreateWorkflowsWebhookHandle_1716851881.rb | 3 + .../DeleteMSTeamsUserBinding.rb | 3 + .../DeleteTenantBasedHandle.rb | 3 + .../DeleteTenantBasedHandle_377884154.rb | 3 + .../DeleteWorkflowsWebhookHandle.rb | 3 + .../DeleteWorkflowsWebhookHandle_107549514.rb | 3 + .../GetChannelByName.rb | 3 + .../GetTenantBasedHandle.rb | 3 + .../GetTenantBasedHandle_2883785101.rb | 3 + .../GetWorkflowsWebhookHandle.rb | 3 + .../GetWorkflowsWebhookHandle_3421443805.rb | 3 + .../ListTenantBasedHandles.rb | 3 + .../ListTenantBasedHandles_769592979.rb | 3 + .../ListWorkflowsWebhookHandles.rb | 3 + .../ListWorkflowsWebhookHandles_620762083.rb | 3 + .../UpdateTenantBasedHandle.rb | 3 + .../UpdateTenantBasedHandle_419892746.rb | 3 + .../UpdateWorkflowsWebhookHandle.rb | 3 + .../UpdateWorkflowsWebhookHandle_163189594.rb | 3 + .../v2/model-lab-api/DeleteModelLabRun.rb | 1 + .../GetModelLabArtifactContent.rb | 1 + .../GetModelLabArtifactContent_2858422658.rb | 1 + .../v2/model-lab-api/GetModelLabProject.rb | 1 + examples/v2/model-lab-api/GetModelLabRun.rb | 1 + .../ListModelLabProjectArtifacts.rb | 1 + .../ListModelLabProjectFacetKeys.rb | 1 + .../ListModelLabProjectFacetValues.rb | 1 + .../v2/model-lab-api/ListModelLabProjects.rb | 1 + .../model-lab-api/ListModelLabRunArtifacts.rb | 1 + .../model-lab-api/ListModelLabRunFacetKeys.rb | 1 + .../ListModelLabRunFacetValues.rb | 1 + examples/v2/model-lab-api/ListModelLabRuns.rb | 1 + examples/v2/model-lab-api/PinModelLabRun.rb | 1 + .../v2/model-lab-api/StarModelLabProject.rb | 1 + examples/v2/model-lab-api/UnpinModelLabRun.rb | 1 + .../v2/model-lab-api/UnstarModelLabProject.rb | 1 + .../UnstarModelLabProject_931927092.rb | 1 + .../v2/monitors/CreateMonitorConfigPolicy.rb | 3 + .../CreateMonitorConfigPolicy_1934105875.rb | 3 + .../monitors/CreateMonitorNotificationRule.rb | 3 + ...reateMonitorNotificationRule_1181818787.rb | 3 + ...reateMonitorNotificationRule_1379932371.rb | 3 + ...CreateMonitorNotificationRule_678042569.rb | 3 + .../v2/monitors/CreateMonitorUserTemplate.rb | 1 + .../v2/monitors/DeleteMonitorConfigPolicy.rb | 3 + .../monitors/DeleteMonitorNotificationRule.rb | 3 + .../v2/monitors/DeleteMonitorUserTemplate.rb | 1 + .../v2/monitors/GetMonitorConfigPolicy.rb | 3 + .../v2/monitors/GetMonitorNotificationRule.rb | 3 + .../monitors/GetMonitorNotificationRules.rb | 3 + .../v2/monitors/GetMonitorUserTemplate.rb | 1 + .../v2/monitors/ListMonitorConfigPolicies.rb | 3 + .../v2/monitors/ListMonitorUserTemplates.rb | 1 + .../v2/monitors/UpdateMonitorConfigPolicy.rb | 3 + .../monitors/UpdateMonitorNotificationRule.rb | 3 + ...pdateMonitorNotificationRule_1400905713.rb | 3 + ...pdateMonitorNotificationRule_1446058210.rb | 3 + ...UpdateMonitorNotificationRule_752032728.rb | 3 + .../v2/monitors/UpdateMonitorUserTemplate.rb | 1 + .../ValidateExistingMonitorUserTemplate.rb | 1 + .../monitors/ValidateMonitorUserTemplate.rb | 1 + .../v2/network-device-monitoring/GetDevice.rb | 3 + .../GetInterfaces.rb | 3 + .../ListDeviceUserTags.rb | 3 + .../network-device-monitoring/ListDevices.rb | 3 + .../ListDevices_2712868412.rb | 3 + .../ListInterfaceUserTags.rb | 3 + .../UpdateDeviceUserTags.rb | 3 + .../UpdateInterfaceUserTags.rb | 3 + .../ListNetworkHealthInsights.rb | 1 + .../DeleteScopesRestriction.rb | 1 + .../GetScopesRestriction.rb | 1 + .../UpsertScopesRestriction.rb | 1 + .../observability-pipelines/CreatePipeline.rb | 3 + .../CreatePipeline_3363445359.rb | 3 + .../CreatePipeline_581245895.rb | 3 + .../observability-pipelines/DeletePipeline.rb | 3 + .../v2/observability-pipelines/GetPipeline.rb | 3 + .../observability-pipelines/ListPipelines.rb | 3 + .../observability-pipelines/UpdatePipeline.rb | 3 + .../ValidatePipeline.rb | 3 + .../ValidatePipeline_1070998129.rb | 3 + .../ValidatePipeline_1130701356.rb | 3 + .../ValidatePipeline_1238441879.rb | 3 + .../ValidatePipeline_1267410221.rb | 3 + .../ValidatePipeline_1330454428.rb | 3 + .../ValidatePipeline_1785209526.rb | 3 + .../ValidatePipeline_1874470273.rb | 3 + .../ValidatePipeline_253109967.rb | 3 + .../ValidatePipeline_2899320203.rb | 3 + .../ValidatePipeline_2960728933.rb | 3 + .../ValidatePipeline_3024756866.rb | 3 + .../ValidatePipeline_3067748504.rb | 3 + .../ValidatePipeline_3116312807.rb | 3 + .../ValidatePipeline_3345949653.rb | 3 + .../ValidatePipeline_337125830.rb | 3 + .../ValidatePipeline_3565101276.rb | 3 + .../ValidatePipeline_3928499240.rb | 3 + .../ValidatePipeline_620504950.rb | 3 + .../ValidatePipeline_815080644.rb | 3 + .../ValidatePipeline_884022323.rb | 3 + .../ValidatePipeline_99164570.rb | 3 + .../v2/oci-integration/CreateTenancyConfig.rb | 3 + .../v2/oci-integration/DeleteTenancyConfig.rb | 3 + .../v2/oci-integration/GetTenancyConfig.rb | 3 + .../v2/oci-integration/GetTenancyConfigs.rb | 3 + .../v2/oci-integration/ListTenancyProducts.rb | 3 + .../v2/oci-integration/UpdateTenancyConfig.rb | 3 + .../v2/okta-integration/CreateOktaAccount.rb | 3 + .../v2/okta-integration/DeleteOktaAccount.rb | 3 + .../v2/okta-integration/GetOktaAccount.rb | 3 + .../v2/okta-integration/ListOktaAccounts.rb | 3 + .../v2/okta-integration/UpdateOktaAccount.rb | 3 + .../on-call-paging/AcknowledgeOnCallPage.rb | 3 + .../v2/on-call-paging/CreateOnCallPage.rb | 3 + .../v2/on-call-paging/EscalateOnCallPage.rb | 3 + .../v2/on-call-paging/ResolveOnCallPage.rb | 3 + .../on-call/CreateOnCallEscalationPolicy.rb | 3 + examples/v2/on-call/CreateOnCallSchedule.rb | 3 + .../on-call/CreateUserNotificationChannel.rb | 3 + .../v2/on-call/CreateUserNotificationRule.rb | 3 + .../on-call/DeleteOnCallEscalationPolicy.rb | 3 + examples/v2/on-call/DeleteOnCallSchedule.rb | 3 + .../on-call/DeleteUserNotificationChannel.rb | 3 + .../v2/on-call/DeleteUserNotificationRule.rb | 3 + .../v2/on-call/GetOnCallEscalationPolicy.rb | 3 + examples/v2/on-call/GetOnCallSchedule.rb | 3 + .../v2/on-call/GetOnCallTeamRoutingRules.rb | 3 + .../v2/on-call/GetScheduleOnCallResponders.rb | 3 + examples/v2/on-call/GetScheduleOnCallUser.rb | 3 + examples/v2/on-call/GetTeamOnCallUsers.rb | 3 + .../v2/on-call/GetUserNotificationChannel.rb | 3 + .../v2/on-call/GetUserNotificationRule.rb | 3 + examples/v2/on-call/ListOnCallSchedules.rb | 3 + .../on-call/ListOnCallSchedules_2357269993.rb | 3 + .../on-call/ListUserNotificationChannels.rb | 3 + .../v2/on-call/ListUserNotificationRules.rb | 3 + .../v2/on-call/SetOnCallTeamRoutingRules.rb | 3 + .../on-call/UpdateOnCallEscalationPolicy.rb | 3 + examples/v2/on-call/UpdateOnCallSchedule.rb | 3 + .../v2/on-call/UpdateUserNotificationRule.rb | 3 + .../CreateOpsgenieAccount.rb | 3 + .../CreateOpsgenieService.rb | 3 + .../DeleteOpsgenieAccount.rb | 3 + .../DeleteOpsgenieService.rb | 3 + .../GetOpsgenieService.rb | 3 + .../ListOpsgenieAccounts.rb | 3 + .../ListOpsgenieServices.rb | 3 + .../UpdateOpsgenieAccount.rb | 3 + .../UpdateOpsgenieService.rb | 3 + .../DeleteOrgAuthorizedClient.rb | 3 + ...rgAuthorizedClientAllUserAuthorizations.rb | 3 + ...eteOrgAuthorizedClientUserAuthorization.rb | 3 + .../GetOrgAuthorizedClient.rb | 3 + ...stOrgAuthorizedClientUserAuthorizations.rb | 3 + ...rizedClientUserAuthorizations_742202381.rb | 3 + .../ListOrgAuthorizedClients.rb | 3 + .../ListOrgAuthorizedClients_547493980.rb | 3 + .../UpdateOrgAuthorizedClient.rb | 3 + .../org-connections/CreateOrgConnections.rb | 3 + .../org-connections/DeleteOrgConnections.rb | 3 + .../v2/org-connections/ListOrgConnections.rb | 3 + .../org-connections/UpdateOrgConnections.rb | 3 + .../BulkUpdateOrgGroupMemberships.rb | 1 + examples/v2/org-groups/CreateOrgGroup.rb | 1 + .../v2/org-groups/CreateOrgGroupPolicy.rb | 1 + .../CreateOrgGroupPolicyOverride.rb | 1 + examples/v2/org-groups/DeleteOrgGroup.rb | 1 + .../v2/org-groups/DeleteOrgGroupPolicy.rb | 1 + .../DeleteOrgGroupPolicyOverride.rb | 1 + examples/v2/org-groups/GetOrgGroup.rb | 1 + .../v2/org-groups/GetOrgGroupMembership.rb | 1 + examples/v2/org-groups/GetOrgGroupPolicy.rb | 1 + .../org-groups/GetOrgGroupPolicyOverride.rb | 1 + .../v2/org-groups/ListOrgGroupMemberships.rb | 1 + .../v2/org-groups/ListOrgGroupPolicies.rb | 1 + .../org-groups/ListOrgGroupPolicyConfigs.rb | 1 + .../org-groups/ListOrgGroupPolicyOverrides.rb | 1 + .../ListOrgGroupPolicySuggestions.rb | 1 + examples/v2/org-groups/ListOrgGroups.rb | 1 + examples/v2/org-groups/UpdateOrgGroup.rb | 1 + .../v2/org-groups/UpdateOrgGroupMembership.rb | 1 + .../v2/org-groups/UpdateOrgGroupPolicy.rb | 1 + .../UpdateOrgGroupPolicyOverride.rb | 1 + examples/v2/organizations/GetOrgConfig.rb | 3 + .../v2/organizations/GetSAMLConfiguration.rb | 3 + examples/v2/organizations/ListGlobalOrgs.rb | 3 + .../organizations/ListGlobalOrgs_465966063.rb | 3 + examples/v2/organizations/ListOrgConfigs.rb | 3 + examples/v2/organizations/ListOrgs.rb | 3 + .../organizations/ListSAMLConfigurations.rb | 3 + ...UpdateLoginOrgConfigsMaxSessionDuration.rb | 3 + examples/v2/organizations/UpdateOrgConfig.rb | 3 + .../UpdateOrgSamlConfigurations.rb | 1 + .../organizations/UpdateSAMLConfiguration.rb | 3 + .../v2/organizations/UploadIdPMetadata.rb | 3 + examples/v2/powerpack/CreatePowerpack.rb | 3 + examples/v2/powerpack/DeletePowerpack.rb | 3 + examples/v2/powerpack/GetPowerpack.rb | 3 + examples/v2/powerpack/ListPowerpacks.rb | 3 + .../v2/powerpack/ListPowerpacks_1173755071.rb | 3 + examples/v2/powerpack/UpdatePowerpack.rb | 3 + examples/v2/processes/ListProcesses.rb | 3 + .../v2/processes/ListProcesses_797840471.rb | 3 + .../QueryProductAnalyticsJourneyFunnel.rb | 1 + .../QueryProductAnalyticsJourneyList.rb | 1 + .../QueryProductAnalyticsJourneyScalar.rb | 1 + .../QueryProductAnalyticsJourneyTimeseries.rb | 1 + .../QueryProductAnalyticsList.rb | 1 + .../QueryProductAnalyticsRetentionGrid.rb | 1 + .../QueryProductAnalyticsRetentionList.rb | 1 + .../QueryProductAnalyticsRetentionScalar.rb | 1 + ...ueryProductAnalyticsRetentionTimeseries.rb | 1 + .../QueryProductAnalyticsSankey.rb | 1 + .../QueryProductAnalyticsScalar.rb | 3 + .../QueryProductAnalyticsTimeseries.rb | 3 + .../product-catalog/ListProductCatalogSKUs.rb | 1 + .../v2/reference-tables/BatchRowsQuery.rb | 3 + .../reference-tables/CreateReferenceTable.rb | 3 + .../CreateReferenceTableUpload.rb | 3 + .../CreateReferenceTable_3196130987.rb | 3 + examples/v2/reference-tables/DeleteRows.rb | 3 + examples/v2/reference-tables/DeleteTable.rb | 3 + examples/v2/reference-tables/GetRowsByID.rb | 3 + examples/v2/reference-tables/GetTable.rb | 3 + .../ListReferenceTableRows.rb | 3 + examples/v2/reference-tables/ListTables.rb | 3 + .../reference-tables/UpdateReferenceTable.rb | 3 + examples/v2/reference-tables/UpsertRows.rb | 3 + .../report-schedules/CreateReportSchedule.rb | 1 + .../report-schedules/DeleteReportSchedule.rb | 3 + .../v2/report-schedules/GetReportSchedule.rb | 3 + .../GetReportSchedulesForResource.rb | 3 + .../ListDatasetReportSchedules.rb | 3 + .../report-schedules/ListReportSchedules.rb | 3 + .../report-schedules/PatchReportSchedule.rb | 1 + examples/v2/report-schedules/PrintReport.rb | 3 + .../report-schedules/ToggleReportSchedule.rb | 3 + .../reporting-and-sharing/CreateSnapshot.rb | 1 + .../DeleteRestrictionPolicy.rb | 3 + .../GetRestrictionPolicy.rb | 3 + .../UpdateRestrictionPolicy.rb | 3 + examples/v2/roles/AddPermissionToRole.rb | 3 + examples/v2/roles/AddUserToRole.rb | 3 + examples/v2/roles/CloneRole.rb | 3 + examples/v2/roles/CreateRole.rb | 3 + examples/v2/roles/CreateRole_3862893229.rb | 3 + examples/v2/roles/DeleteRole.rb | 3 + examples/v2/roles/GetRole.rb | 3 + examples/v2/roles/ListPermissions.rb | 3 + .../v2/roles/ListPermissions_1350046915.rb | 3 + examples/v2/roles/ListRolePermissions.rb | 3 + examples/v2/roles/ListRoleTemplates.rb | 1 + examples/v2/roles/ListRoleUsers.rb | 3 + examples/v2/roles/ListRoles.rb | 3 + examples/v2/roles/RemovePermissionFromRole.rb | 3 + examples/v2/roles/RemoveUserFromRole.rb | 3 + examples/v2/roles/UpdateRole.rb | 3 + .../CreateConnection.rb | 1 + .../DeleteConnection.rb | 1 + .../GetAccountFacetInfo.rb | 1 + .../v2/rum-audience-management/GetMapping.rb | 1 + .../GetUserFacetInfo.rb | 1 + .../ListConnections.rb | 1 + .../rum-audience-management/QueryAccounts.rb | 1 + .../QueryEventFilteredUsers.rb | 1 + .../v2/rum-audience-management/QueryUsers.rb | 1 + .../UpdateConnection.rb | 1 + examples/v2/rum-config/CreateRumConfig.rb | 1 + examples/v2/rum-config/GetRumConfig.rb | 1 + examples/v2/rum-config/UpdateRumConfig.rb | 1 + .../rum-insights/QueryAggregatedLongTasks.rb | 1 + .../QueryAggregatedSignalsProblems.rb | 1 + .../rum-insights/QueryAggregatedWaterfall.rb | 1 + examples/v2/rum-metrics/CreateRumMetric.rb | 3 + examples/v2/rum-metrics/DeleteRumMetric.rb | 3 + examples/v2/rum-metrics/GetRumMetric.rb | 3 + examples/v2/rum-metrics/ListRumMetrics.rb | 3 + examples/v2/rum-metrics/UpdateRumMetric.rb | 3 + .../v2/rum-operations/CreateRUMOperation.rb | 1 + .../CreateRUMOperationStrongLink.rb | 1 + .../v2/rum-operations/DeleteRUMOperation.rb | 1 + .../DeleteRUMOperationStrongLink.rb | 1 + examples/v2/rum-operations/GetRUMOperation.rb | 1 + .../rum-operations/GetRUMOperationByName.rb | 1 + .../ListRUMOperationStrongLinks.rb | 3 + .../v2/rum-operations/ListRUMOperations.rb | 1 + .../v2/rum-operations/UpdateRUMOperation.rb | 1 + .../UpdateRUMOperationStrongLink.rb | 1 + .../v2/rum-remote-config/GetRumSdkConfig.rb | 1 + .../rum-remote-config/UpdateRumSdkConfig.rb | 1 + .../CreateReplayHeatmapSnapshot.rb | 3 + .../DeleteReplayHeatmapSnapshot.rb | 3 + .../ListReplayHeatmapSnapshots.rb | 3 + .../UpdateReplayHeatmapSnapshot.rb | 3 + .../AddRumReplaySessionToPlaylist.rb | 3 + .../BulkRemoveRumReplayPlaylistSessions.rb | 3 + .../CreateRumReplayPlaylist.rb | 3 + .../DeleteRumReplayPlaylist.rb | 3 + .../GetRumReplayPlaylist.rb | 3 + .../ListRumReplayPlaylistSessions.rb | 3 + .../ListRumReplayPlaylists.rb | 3 + .../RemoveRumReplaySessionFromPlaylist.rb | 3 + .../UpdateRumReplayPlaylist.rb | 3 + .../v2/rum-replay-sessions/GetSegments.rb | 3 + .../CreateRumReplaySessionWatch.rb | 3 + .../DeleteRumReplaySessionWatch.rb | 3 + .../ListRumReplaySessionWatchers.rb | 3 + .../ListRumReplayViewershipHistorySessions.rb | 3 + .../CreateExclusionFilter.rb | 1 + .../CreateRetentionFilter.rb | 3 + .../DeleteExclusionFilter.rb | 1 + .../DeleteRetentionFilter.rb | 3 + .../GetExclusionFilter.rb | 1 + .../GetPermanentRetentionFilter.rb | 3 + .../GetRetentionFilter.rb | 3 + .../ListExclusionFilters.rb | 1 + .../ListPermanentRetentionFilters.rb | 3 + .../ListRetentionFilters.rb | 3 + .../OrderRetentionFilters.rb | 3 + .../UpdateExclusionFilter.rb | 1 + .../UpdatePermanentRetentionFilter.rb | 3 + .../UpdateRetentionFilter.rb | 3 + .../DeleteRumQuotaConfig.rb | 3 + .../rum-retention-quotas/GetRumQuotaConfig.rb | 3 + .../UpsertRumQuotaConfig.rb | 3 + .../CreateTeamsOwnershipMapping.rb | 1 + .../CreateTeamsOwnershipMapping_1881412984.rb | 3 + .../CreateTeamsOwnershipMappingsBatch.rb | 3 + .../DeleteTeamsOwnershipMapping.rb | 3 + .../GetTeamsOwnershipMapping.rb | 3 + .../ListTeamsOwnershipMappings.rb | 3 + .../ListTeamsOwnershipRules.rb | 3 + examples/v2/rum/AggregateRUMEvents.rb | 3 + examples/v2/rum/CreateRUMApplication.rb | 3 + .../v2/rum/CreateRUMApplication_1946294560.rb | 3 + examples/v2/rum/DeleteRUMApplication.rb | 3 + examples/v2/rum/GetRUMApplication.rb | 3 + examples/v2/rum/GetRUMApplications.rb | 3 + examples/v2/rum/ListRUMEvents.rb | 3 + examples/v2/rum/ListRUMEvents_2680821282.rb | 3 + examples/v2/rum/SearchRUMEvents.rb | 3 + examples/v2/rum/SearchRUMEvents_574690310.rb | 3 + examples/v2/rum/UpdateRUMApplication.rb | 3 + .../v2/rum/UpdateRUMApplication_394074053.rb | 3 + .../CreateIncidentTemplate.rb | 3 + .../DeleteIncidentTemplate.rb | 3 + .../DeleteSalesforceOrganization.rb | 3 + .../GetIncidentTemplates.rb | 3 + .../GetSalesforceOrganizations.rb | 3 + .../UpdateIncidentTemplate.rb | 3 + .../v2/scorecards/CreateScorecardCampaign.rb | 3 + .../CreateScorecardOutcomesBatch.rb | 1 + examples/v2/scorecards/CreateScorecardRule.rb | 3 + .../v2/scorecards/DeleteScorecardCampaign.rb | 3 + examples/v2/scorecards/DeleteScorecardRule.rb | 3 + .../v2/scorecards/GetScorecardCampaign.rb | 3 + .../v2/scorecards/ListScorecardCampaigns.rb | 3 + .../v2/scorecards/ListScorecardOutcomes.rb | 3 + .../ListScorecardOutcomes_2663454275.rb | 3 + examples/v2/scorecards/ListScorecardRules.rb | 3 + .../ListScorecardRules_4057666343.rb | 3 + examples/v2/scorecards/ListScorecardScores.rb | 3 + examples/v2/scorecards/ListScorecards.rb | 3 + .../v2/scorecards/UpdateScorecardCampaign.rb | 3 + .../v2/scorecards/UpdateScorecardOutcomes.rb | 3 + .../UpdateScorecardOutcomes_2262047257.rb | 3 + examples/v2/scorecards/UpdateScorecardRule.rb | 3 + .../UpdateScorecardRule_1831541184.rb | 3 + examples/v2/seats/AssignSeatsUser.rb | 3 + examples/v2/seats/GetSeatsUsers.rb | 3 + examples/v2/seats/UnassignSeatsUser.rb | 3 + .../ActivateContentPack.rb | 1 + .../ActivateIntegration.rb | 1 + examples/v2/security-monitoring/AttachCase.rb | 3 + .../AttachCase_897782765.rb | 3 + .../v2/security-monitoring/AttachJiraIssue.rb | 3 + .../AttachJiraIssue_3042842144.rb | 3 + .../security-monitoring/AttachLinearIssue.rb | 3 + .../AttachServiceNowTicket.rb | 3 + ...etSecurityMonitoringDatasetDependencies.rb | 1 + ...kConvertExistingSecurityMonitoringRules.rb | 3 + ...kCreateSampleLogGenerationSubscriptions.rb | 1 + .../BulkDeleteSecurityMonitoringRules.rb | 3 + .../BulkEditSecurityMonitoringSignals.rb | 3 + ...lkEditSecurityMonitoringSignalsAssignee.rb | 3 + .../BulkEditSecurityMonitoringSignalsState.rb | 3 + .../BulkExportSecurityMonitoringRules.rb | 3 + ...ortSecurityMonitoringTerraformResources.rb | 1 + .../CancelHistoricalJob.rb | 1 + .../ConvertExistingSecurityMonitoringRule.rb | 3 + .../ConvertJobResultToSignal.rb | 1 + ...curityMonitoringRuleFromJSONToTerraform.rb | 3 + ...vertSecurityMonitoringTerraformResource.rb | 1 + .../v2/security-monitoring/CreateCases.rb | 3 + .../CreateCases_2385516013.rb | 3 + .../CreateCases_2798851680.rb | 3 + .../CreateCustomFramework.rb | 3 + .../CreateIoCTriageState.rb | 1 + .../security-monitoring/CreateJiraIssues.rb | 3 + .../CreateJiraIssues_379590688.rb | 3 + .../CreateJiraIssues_829823123.rb | 3 + .../security-monitoring/CreateLinearIssues.rb | 3 + .../CreateSampleLogGenerationSubscription.rb | 1 + .../CreateSecurityFilter.rb | 3 + ...teSecurityFindingsAutomationDueDateRule.rb | 1 + ...eateSecurityFindingsAutomationInboxRule.rb | 1 + ...reateSecurityFindingsAutomationMuteRule.rb | 1 + ...yFindingsAutomationSeverityModifierRule.rb | 1 + ...ityFindingsAutomationTicketCreationRule.rb | 1 + .../CreateSecurityMonitoringCriticalAsset.rb | 3 + .../CreateSecurityMonitoringDataset.rb | 1 + ...eateSecurityMonitoringIntegrationConfig.rb | 1 + .../CreateSecurityMonitoringRule.rb | 3 + ...CreateSecurityMonitoringRule_1092490364.rb | 3 + ...CreateSecurityMonitoringRule_1965169892.rb | 3 + ...CreateSecurityMonitoringRule_2323193894.rb | 3 + ...CreateSecurityMonitoringRule_2899714190.rb | 3 + ...CreateSecurityMonitoringRule_3243059428.rb | 3 + ...CreateSecurityMonitoringRule_3355193622.rb | 3 + ...CreateSecurityMonitoringRule_3367706049.rb | 3 + .../CreateSecurityMonitoringRule_461183901.rb | 3 + .../CreateSecurityMonitoringRule_498211763.rb | 3 + .../CreateSecurityMonitoringRule_868881438.rb | 3 + .../CreateSecurityMonitoringSuppression.rb | 3 + ...ecurityMonitoringSuppression_3192265332.rb | 3 + .../CreateServiceNowTickets.rb | 3 + .../CreateSignalNotificationRule.rb | 3 + .../CreateStaticAnalysisAst.rb | 1 + .../CreateStaticAnalysisServerAnalysis.rb | 1 + .../CreateVulnerabilityNotificationRule.rb | 3 + ...ulnerabilityNotificationRule_2417112739.rb | 3 + .../DeactivateContentPack.rb | 1 + .../DeactivateIntegration.rb | 1 + .../DeleteCustomFramework.rb | 3 + .../DeleteHistoricalJob.rb | 1 + .../DeleteSampleLogGenerationSubscription.rb | 1 + .../DeleteSecurityFilter.rb | 3 + .../DeleteSecurityFilter_555029489.rb | 3 + ...teSecurityFindingsAutomationDueDateRule.rb | 1 + ...indingsAutomationDueDateRule_1294276849.rb | 1 + ...leteSecurityFindingsAutomationInboxRule.rb | 1 + ...eleteSecurityFindingsAutomationMuteRule.rb | 1 + ...tyFindingsAutomationMuteRule_4166916016.rb | 1 + ...yFindingsAutomationSeverityModifierRule.rb | 1 + ...tomationSeverityModifierRule_1187257521.rb | 1 + ...ityFindingsAutomationTicketCreationRule.rb | 1 + ...sAutomationTicketCreationRule_476126190.rb | 1 + .../DeleteSecurityMonitoringCriticalAsset.rb | 3 + .../DeleteSecurityMonitoringDataset.rb | 1 + ...leteSecurityMonitoringIntegrationConfig.rb | 1 + .../DeleteSecurityMonitoringRule.rb | 3 + .../DeleteSecurityMonitoringSuppression.rb | 3 + .../DeleteSignalNotificationRule.rb | 3 + .../DeleteVulnerabilityNotificationRule.rb | 3 + examples/v2/security-monitoring/DetachCase.rb | 3 + ...urityFindingsAutomationDefaultInboxRule.rb | 1 + .../EditSecurityMonitoringSignal.rb | 3 + .../EditSecurityMonitoringSignalAssignee.rb | 3 + .../EditSecurityMonitoringSignalIncidents.rb | 3 + .../EditSecurityMonitoringSignalState.rb | 3 + ...urityFindingsAutomationDefaultInboxRule.rb | 1 + ...portSecurityMonitoringTerraformResource.rb | 1 + .../GetContentPacksStates.rb | 1 + .../GetCriticalAssetsAffectingRule.rb | 3 + .../security-monitoring/GetCustomFramework.rb | 3 + .../security-monitoring/GetEntityContext.rb | 1 + .../GetEntraIdAzureAppRegistrations.rb | 1 + examples/v2/security-monitoring/GetFinding.rb | 1 + .../security-monitoring/GetHistoricalJob.rb | 1 + .../GetIndicatorOfCompromise.rb | 1 + ...etInvestigationLogQueriesMatchingSignal.rb | 3 + .../security-monitoring/GetMatchingSignals.rb | 1 + .../GetResourceEvaluationFilters.rb | 3 + .../GetRuleVersionHistory.rb | 1 + .../GetRuleVersionHistory_2467565841.rb | 1 + examples/v2/security-monitoring/GetSBOM.rb | 3 + .../v2/security-monitoring/GetSecretsRules.rb | 1 + .../security-monitoring/GetSecurityFilter.rb | 3 + ...urityFindingsAutomationDefaultInboxRule.rb | 1 + ...etSecurityFindingsAutomationDueDateRule.rb | 1 + .../GetSecurityFindingsAutomationInboxRule.rb | 1 + .../GetSecurityFindingsAutomationMuteRule.rb | 1 + ...yFindingsAutomationSeverityModifierRule.rb | 1 + ...ityFindingsAutomationTicketCreationRule.rb | 1 + .../GetSecurityMonitoringCriticalAsset.rb | 3 + .../GetSecurityMonitoringDataset.rb | 1 + .../GetSecurityMonitoringDatasetByVersion.rb | 1 + ...SecurityMonitoringDatasetVersionHistory.rb | 1 + .../GetSecurityMonitoringHistsignal.rb | 1 + ...GetSecurityMonitoringHistsignalsByJobId.rb | 1 + .../GetSecurityMonitoringIntegrationConfig.rb | 1 + .../GetSecurityMonitoringRule.rb | 3 + .../GetSecurityMonitoringRule_3370522281.rb | 3 + .../GetSecurityMonitoringSignal.rb | 3 + .../GetSecurityMonitoringSuppression.rb | 3 + .../security-monitoring/GetSignalEntities.rb | 1 + .../GetSignalNotificationRule.rb | 3 + .../GetSignalNotificationRules.rb | 3 + .../GetSingleEntityContext.rb | 1 + .../GetStaticAnalysisDefaultRulesets.rb | 1 + .../GetStaticAnalysisNodeTypes.rb | 1 + .../GetStaticAnalysisRuleset.rb | 1 + .../GetStaticAnalysisTreeSitterWasm.rb | 1 + .../GetSuggestedActionsMatchingSignal.rb | 3 + .../GetSuppressionVersionHistory.rb | 3 + .../GetSuppressionsAffectingFutureRule.rb | 3 + .../GetSuppressionsAffectingRule.rb | 3 + .../GetVulnerabilityNotificationRule.rb | 3 + .../GetVulnerabilityNotificationRules.rb | 3 + .../ImportSecurityVulnerabilities.rb | 1 + .../v2/security-monitoring/ListAssetsSBOMs.rb | 3 + .../v2/security-monitoring/ListFindings.rb | 1 + .../ListFindings_1668290866.rb | 1 + .../ListFindings_2932019633.rb | 1 + .../ListFindings_3865842421.rb | 1 + .../security-monitoring/ListHistoricalJobs.rb | 1 + .../ListIndicatorsOfCompromise.rb | 1 + .../ListMultipleRulesets.rb | 1 + .../ListSampleLogGenerationSubscriptions.rb | 1 + .../ListScannedAssetsMetadata.rb | 1 + .../ListSecurityFilterVersions.rb | 3 + .../ListSecurityFilters.rb | 3 + .../ListSecurityFindings.rb | 3 + ...rityFindingsAutomationDefaultInboxRules.rb | 1 + ...tSecurityFindingsAutomationDueDateRules.rb | 1 + ...istSecurityFindingsAutomationInboxRules.rb | 1 + ...ListSecurityFindingsAutomationMuteRules.rb | 1 + ...FindingsAutomationSeverityModifierRules.rb | 1 + ...tyFindingsAutomationTicketCreationRules.rb | 1 + .../ListSecurityFindings_2925663885.rb | 3 + .../ListSecurityMonitoringCriticalAssets.rb | 3 + .../ListSecurityMonitoringDatasets.rb | 1 + .../ListSecurityMonitoringHistsignals.rb | 1 + ...istSecurityMonitoringIntegrationConfigs.rb | 1 + .../ListSecurityMonitoringRules.rb | 3 + .../ListSecurityMonitoringSignals.rb | 3 + ...istSecurityMonitoringSignals_3960412991.rb | 3 + .../ListSecurityMonitoringSuppressions.rb | 3 + ...curityMonitoringSuppressions_1315707136.rb | 3 + ...curityMonitoringSuppressions_1741429096.rb | 3 + ...curityMonitoringSuppressions_3985905558.rb | 3 + .../ListStaticAnalysisCodegenRulesets.rb | 1 + .../ListVulnerabilities.rb | 1 + .../ListVulnerableAssets.rb | 1 + .../MuteSecurityFindings.rb | 3 + .../MuteSecurityFindings_298521544.rb | 3 + .../MuteSecurityFindings_3830190821.rb | 3 + .../PatchSignalNotificationRule.rb | 3 + .../PatchVulnerabilityNotificationRule.rb | 3 + ...rSecurityFindingsAutomationDueDateRules.rb | 1 + ...derSecurityFindingsAutomationInboxRules.rb | 1 + ...rderSecurityFindingsAutomationMuteRules.rb | 1 + ...FindingsAutomationSeverityModifierRules.rb | 1 + ...tyFindingsAutomationTicketCreationRules.rb | 1 + .../RestoreSecurityMonitoringRule.rb | 1 + .../security-monitoring/RunHistoricalJob.rb | 1 + .../SearchSecurityFindings.rb | 3 + .../SearchSecurityFindings_3678541639.rb | 3 + .../SearchSecurityMonitoringHistsignals.rb | 1 + .../SearchSecurityMonitoringSignals.rb | 3 + ...rchSecurityMonitoringSignals_1309350146.rb | 3 + ...ndSecurityMonitoringNotificationPreview.rb | 3 + .../TestExistingSecurityMonitoringRule.rb | 3 + .../TestSecurityMonitoringRule.rb | 3 + .../UpdateCustomFramework.rb | 3 + .../UpdateFindingsAssignee.rb | 1 + .../UpdateResourceEvaluationFilters.rb | 3 + .../UpdateSecurityFilter.rb | 3 + ...teSecurityFindingsAutomationDueDateRule.rb | 1 + ...dateSecurityFindingsAutomationInboxRule.rb | 1 + ...pdateSecurityFindingsAutomationMuteRule.rb | 1 + ...yFindingsAutomationSeverityModifierRule.rb | 1 + ...ityFindingsAutomationTicketCreationRule.rb | 1 + .../UpdateSecurityMonitoringCriticalAsset.rb | 3 + .../UpdateSecurityMonitoringDataset.rb | 1 + ...dateSecurityMonitoringIntegrationConfig.rb | 1 + .../UpdateSecurityMonitoringRule.rb | 3 + .../UpdateSecurityMonitoringRule_428087276.rb | 3 + .../UpdateSecurityMonitoringSuppression.rb | 3 + ...dateSecurityMonitoringIntegrationConfig.rb | 1 + ...ecurityMonitoringIntegrationCredentials.rb | 1 + .../ValidateSecurityMonitoringRule.rb | 3 + ...lidateSecurityMonitoringRule_2609327779.rb | 3 + ...lidateSecurityMonitoringRule_4152369508.rb | 3 + .../ValidateSecurityMonitoringSuppression.rb | 3 + .../CreateScanningGroup.rb | 3 + .../CreateScanningRule.rb | 3 + .../CreateScanningRule_502667299.rb | 3 + .../DeleteScanningGroup.rb | 3 + .../DeleteScanningRule.rb | 3 + .../ListScanningGroups.rb | 3 + .../ListStandardPatterns.rb | 3 + .../ReorderScanningGroups.rb | 3 + .../UpdateScanningGroup.rb | 3 + .../UpdateScanningRule.rb | 3 + .../service-accounts/CreateServiceAccount.rb | 3 + .../CreateServiceAccountAccessToken.rb | 3 + .../CreateServiceAccountApplicationKey.rb | 3 + ...ServiceAccountApplicationKey_3480494373.rb | 3 + .../DeleteServiceAccountApplicationKey.rb | 3 + .../GetServiceAccountAccessToken.rb | 3 + .../GetServiceAccountApplicationKey.rb | 3 + .../ListServiceAccountAccessTokens.rb | 3 + .../ListServiceAccountApplicationKeys.rb | 3 + .../RevokeServiceAccountAccessToken.rb | 3 + .../UpdateServiceAccountAccessToken.rb | 3 + .../UpdateServiceAccountApplicationKey.rb | 3 + .../CreateOrUpdateServiceDefinitions.rb | 3 + ...teOrUpdateServiceDefinitions_1808735248.rb | 3 + ...teOrUpdateServiceDefinitions_2619874414.rb | 3 + ...teOrUpdateServiceDefinitions_2621709423.rb | 3 + .../DeleteServiceDefinition.rb | 3 + .../GetServiceDefinition.rb | 3 + .../ListServiceDefinitions.rb | 3 + .../ListServiceDefinitions_336468013.rb | 3 + .../CreateSLOReportJob.rb | 1 + .../service-level-objectives/GetSLOReport.rb | 1 + .../GetSLOReportJobStatus.rb | 1 + .../service-level-objectives/GetSloStatus.rb | 1 + .../CreateServiceNowTemplate.rb | 3 + .../DeleteServiceNowTemplate.rb | 3 + .../GetServiceNowTemplate.rb | 3 + .../ListServiceNowAssignmentGroups.rb | 3 + .../ListServiceNowBusinessServices.rb | 3 + .../ListServiceNowInstances.rb | 3 + .../ListServiceNowTemplates.rb | 3 + .../ListServiceNowUsers.rb | 3 + .../UpdateServiceNowTemplate.rb | 3 + .../ListSlackUserBindings.rb | 3 + .../CreateSnowflakeIntegrationAccount.rb | 1 + .../DeleteSnowflakeIntegrationAccount.rb | 1 + .../GetSnowflakeIntegrationAccount.rb | 1 + .../ListSnowflakeIntegrationAccounts.rb | 1 + .../UpdateSnowflakeIntegrationAccount.rb | 1 + .../software-catalog/DeleteCatalogEntity.rb | 3 + .../v2/software-catalog/DeleteCatalogKind.rb | 3 + .../v2/software-catalog/ListCatalogEntity.rb | 3 + .../ListCatalogEntity_2305103326.rb | 3 + .../v2/software-catalog/ListCatalogKind.rb | 3 + .../ListCatalogKind_3806205775.rb | 3 + .../software-catalog/ListCatalogRelation.rb | 3 + .../ListCatalogRelation_1311054087.rb | 3 + .../PreviewCatalogEntities.rb | 3 + .../software-catalog/UpsertCatalogEntity.rb | 3 + .../UpsertCatalogEntity_586948155.rb | 3 + .../v2/software-catalog/UpsertCatalogKind.rb | 3 + examples/v2/spa/GetSPARecommendations.rb | 1 + .../v2/spa/GetSPARecommendationsWithShard.rb | 1 + .../v2/spans-metrics/CreateSpansMetric.rb | 3 + .../v2/spans-metrics/DeleteSpansMetric.rb | 3 + examples/v2/spans-metrics/GetSpansMetric.rb | 3 + examples/v2/spans-metrics/ListSpansMetrics.rb | 3 + .../v2/spans-metrics/UpdateSpansMetric.rb | 3 + examples/v2/spans/AggregateSpans.rb | 3 + examples/v2/spans/ListSpans.rb | 3 + examples/v2/spans/ListSpansGet.rb | 3 + examples/v2/spans/ListSpansGet_1130763422.rb | 3 + examples/v2/spans/ListSpans_3495563906.rb | 3 + .../v2/static-analysis/CreateAiCustomRule.rb | 1 + .../CreateAiCustomRuleRevision.rb | 1 + .../static-analysis/CreateAiCustomRuleset.rb | 1 + .../CreateAiMemoryViolationResult.rb | 1 + .../v2/static-analysis/CreateCustomRule.rb | 1 + .../CreateCustomRuleRevision.rb | 1 + .../v2/static-analysis/CreateCustomRuleset.rb | 1 + .../CreateSCAResolveVulnerableSymbols.rb | 1 + .../v2/static-analysis/CreateSCAResult.rb | 1 + examples/v2/static-analysis/CreateSCAScan.rb | 1 + .../v2/static-analysis/DeleteAiCustomRule.rb | 1 + .../static-analysis/DeleteAiCustomRuleset.rb | 1 + .../DeleteAiMemoryViolationResult.rb | 1 + .../v2/static-analysis/DeleteCustomRule.rb | 1 + .../v2/static-analysis/DeleteCustomRuleset.rb | 1 + .../v2/static-analysis/GetAiCustomRule.rb | 1 + .../GetAiCustomRuleRevision.rb | 1 + .../v2/static-analysis/GetAiCustomRuleset.rb | 1 + examples/v2/static-analysis/GetCustomRule.rb | 1 + .../static-analysis/GetCustomRuleRevision.rb | 1 + .../v2/static-analysis/GetCustomRuleset.rb | 1 + examples/v2/static-analysis/GetSCAScan.rb | 1 + .../ListAiCustomRuleRevisions.rb | 1 + .../ListAiCustomRuleRevisions_842014679.rb | 1 + .../static-analysis/ListAiCustomRulesets.rb | 1 + .../ListAiMemoryViolationResults.rb | 1 + examples/v2/static-analysis/ListAiPrompts.rb | 1 + .../ListCustomRuleRevisions.rb | 1 + .../ListCustomRuleRevisions_3739033293.rb | 1 + .../v2/static-analysis/ListCustomRulesets.rb | 1 + .../v2/static-analysis/ListSCALicenses.rb | 1 + .../RevertCustomRuleRevision.rb | 1 + .../static-analysis/UpdateAiCustomRuleset.rb | 1 + .../v2/static-analysis/UpdateCustomRuleset.rb | 1 + .../CreateBackfilledDegradation.rb | 3 + .../CreateBackfilledMaintenance.rb | 3 + examples/v2/status-pages/CreateComponent.rb | 3 + examples/v2/status-pages/CreateDegradation.rb | 3 + .../status-pages/CreateDegradationTemplate.rb | 3 + examples/v2/status-pages/CreateMaintenance.rb | 3 + .../status-pages/CreateMaintenanceTemplate.rb | 3 + .../CreateMaintenance_2202276054.rb | 3 + examples/v2/status-pages/CreateStatusPage.rb | 3 + examples/v2/status-pages/DeleteComponent.rb | 3 + examples/v2/status-pages/DeleteDegradation.rb | 3 + .../status-pages/DeleteDegradationTemplate.rb | 3 + .../status-pages/DeleteMaintenanceTemplate.rb | 3 + examples/v2/status-pages/DeleteStatusPage.rb | 3 + .../v2/status-pages/EditDegradationUpdate.rb | 3 + examples/v2/status-pages/GetComponent.rb | 3 + examples/v2/status-pages/GetDegradation.rb | 3 + .../v2/status-pages/GetDegradationTemplate.rb | 3 + examples/v2/status-pages/GetMaintenance.rb | 3 + .../v2/status-pages/GetMaintenanceTemplate.rb | 3 + examples/v2/status-pages/GetStatusPage.rb | 3 + examples/v2/status-pages/ListComponents.rb | 3 + .../status-pages/ListDegradationTemplates.rb | 3 + examples/v2/status-pages/ListDegradations.rb | 3 + .../status-pages/ListMaintenanceTemplates.rb | 3 + examples/v2/status-pages/ListMaintenances.rb | 3 + examples/v2/status-pages/ListStatusPages.rb | 3 + .../v2/status-pages/PatchMaintenanceUpdate.rb | 3 + examples/v2/status-pages/PublishStatusPage.rb | 3 + .../SoftDeleteDegradationUpdate.rb | 3 + .../v2/status-pages/UnpublishStatusPage.rb | 3 + examples/v2/status-pages/UpdateComponent.rb | 3 + examples/v2/status-pages/UpdateDegradation.rb | 3 + .../status-pages/UpdateDegradationTemplate.rb | 3 + examples/v2/status-pages/UpdateMaintenance.rb | 3 + .../status-pages/UpdateMaintenanceTemplate.rb | 3 + examples/v2/status-pages/UpdateStatusPage.rb | 3 + .../CreateStatuspageAccount.rb | 3 + .../CreateStatuspageUrlSetting.rb | 3 + .../DeleteStatuspageAccount.rb | 3 + .../DeleteStatuspageUrlSetting.rb | 3 + .../GetStatuspageAccount.rb | 3 + .../ListStatuspageUrlSettings.rb | 3 + .../UpdateStatuspageAccount.rb | 3 + .../UpdateStatuspageUrlSetting.rb | 3 + .../stegadography/GetStegadographyWidgets.rb | 3 + .../v2/storage-management/DeleteSyncConfig.rb | 3 + .../v2/storage-management/UpsertSyncConfig.rb | 3 + .../AbortTestFileMultipartUpload.rb | 3 + .../synthetics/AddTestToSyntheticsDowntime.rb | 3 + .../CompleteTestFileMultipartUpload.rb | 3 + .../v2/synthetics/CreateSyntheticsDowntime.rb | 3 + .../synthetics/CreateSyntheticsNetworkTest.rb | 3 + .../v2/synthetics/CreateSyntheticsSuite.rb | 3 + .../v2/synthetics/DeleteSyntheticsDowntime.rb | 3 + .../v2/synthetics/DeleteSyntheticsSuites.rb | 3 + .../v2/synthetics/DeleteSyntheticsTests.rb | 3 + examples/v2/synthetics/EditSyntheticsSuite.rb | 3 + .../GetApiMultistepSubtestParents.rb | 3 + .../v2/synthetics/GetApiMultistepSubtests.rb | 3 + .../synthetics/GetOnDemandConcurrencyCap.rb | 3 + .../GetSyntheticsBrowserTestResult.rb | 3 + .../v2/synthetics/GetSyntheticsDowntime.rb | 3 + .../synthetics/GetSyntheticsFastTestResult.rb | 3 + .../v2/synthetics/GetSyntheticsNetworkTest.rb | 3 + examples/v2/synthetics/GetSyntheticsSuite.rb | 3 + .../v2/synthetics/GetSyntheticsTestResult.rb | 3 + .../v2/synthetics/GetSyntheticsTestVersion.rb | 3 + .../v2/synthetics/GetTestFileDownloadUrl.rb | 3 + .../GetTestFileMultipartPresignedUrls.rb | 3 + examples/v2/synthetics/GetTestParentSuites.rb | 3 + .../ListSyntheticsBrowserTestLatestResults.rb | 3 + .../v2/synthetics/ListSyntheticsDowntimes.rb | 3 + .../ListSyntheticsTestLatestResults.rb | 3 + .../synthetics/ListSyntheticsTestVersions.rb | 3 + examples/v2/synthetics/PatchGlobalVariable.rb | 3 + examples/v2/synthetics/PatchTestSuite.rb | 3 + .../synthetics/PollSyntheticsTestResults.rb | 3 + .../RemoveTestFromSyntheticsDowntime.rb | 3 + examples/v2/synthetics/SearchSuites.rb | 3 + .../v2/synthetics/SearchSuites_2539131170.rb | 3 + .../synthetics/SetOnDemandConcurrencyCap.rb | 3 + .../v2/synthetics/UpdateSyntheticsDowntime.rb | 3 + .../synthetics/UpdateSyntheticsNetworkTest.rb | 3 + examples/v2/tag-rules/CreateTagRule.rb | 1 + examples/v2/tag-rules/DeleteTagRule.rb | 1 + examples/v2/tag-rules/GetTagRule.rb | 1 + examples/v2/tag-rules/GetTagRuleScore.rb | 1 + examples/v2/tag-rules/ListTagRules.rb | 1 + examples/v2/tag-rules/UpdateTagRule.rb | 1 + examples/v2/teams/AddMemberTeam.rb | 1 + examples/v2/teams/AddTeamHierarchyLink.rb | 3 + examples/v2/teams/CreateTeam.rb | 3 + examples/v2/teams/CreateTeamConnections.rb | 3 + examples/v2/teams/CreateTeamLink.rb | 3 + examples/v2/teams/CreateTeamMembership.rb | 3 + .../v2/teams/CreateTeamNotificationRule.rb | 3 + examples/v2/teams/CreateTeam_252121814.rb | 3 + examples/v2/teams/DeleteTeam.rb | 3 + examples/v2/teams/DeleteTeamConnections.rb | 3 + examples/v2/teams/DeleteTeamLink.rb | 3 + examples/v2/teams/DeleteTeamMembership.rb | 3 + .../v2/teams/DeleteTeamNotificationRule.rb | 3 + examples/v2/teams/GetTeam.rb | 3 + examples/v2/teams/GetTeamHierarchyLink.rb | 3 + examples/v2/teams/GetTeamLink.rb | 3 + examples/v2/teams/GetTeamLinks.rb | 3 + examples/v2/teams/GetTeamMemberships.rb | 3 + .../v2/teams/GetTeamMemberships_3799131168.rb | 3 + examples/v2/teams/GetTeamNotificationRule.rb | 3 + examples/v2/teams/GetTeamNotificationRules.rb | 3 + .../v2/teams/GetTeamPermissionSettings.rb | 3 + examples/v2/teams/GetTeamSync.rb | 3 + examples/v2/teams/GetUserMemberships.rb | 3 + examples/v2/teams/ListMemberTeams.rb | 1 + .../v2/teams/ListMemberTeams_1662850354.rb | 1 + examples/v2/teams/ListTeamConnections.rb | 3 + .../teams/ListTeamConnections_1473516764.rb | 3 + .../teams/ListTeamConnections_2418873869.rb | 3 + examples/v2/teams/ListTeamHierarchyLinks.rb | 3 + .../ListTeamHierarchyLinks_3360757486.rb | 3 + examples/v2/teams/ListTeams.rb | 3 + examples/v2/teams/ListTeams_3429963470.rb | 3 + examples/v2/teams/ListTeams_3592098458.rb | 3 + examples/v2/teams/RemoveMemberTeam.rb | 1 + examples/v2/teams/RemoveTeamHierarchyLink.rb | 3 + examples/v2/teams/SyncTeams.rb | 3 + examples/v2/teams/UpdateTeam.rb | 3 + examples/v2/teams/UpdateTeamLink.rb | 3 + examples/v2/teams/UpdateTeamMembership.rb | 3 + .../v2/teams/UpdateTeamNotificationRule.rb | 3 + .../v2/teams/UpdateTeamPermissionSetting.rb | 3 + examples/v2/teams/UpdateTeam_780342264.rb | 3 + .../DeleteTestOptimizationServiceSettings.rb | 3 + .../GetFlakyTestsManagementPolicies.rb | 3 + .../GetTestOptimizationServiceSettings.rb | 3 + .../v2/test-optimization/SearchFlakyTests.rb | 3 + .../SearchFlakyTests_1224086727.rb | 3 + .../SearchFlakyTests_209064879.rb | 1 + .../SearchFlakyTests_2665223746.rb | 1 + .../v2/test-optimization/UpdateFlakyTests.rb | 3 + .../UpdateFlakyTestsManagementPolicies.rb | 3 + .../UpdateTestOptimizationServiceSettings.rb | 3 + .../threat-intelligence/AddSTIXThreatIntel.rb | 1 + .../CreateTimeseriesAnomalyInvestigation.rb | 1 + .../CreateTwilioIntegrationAccount.rb | 1 + .../DeleteTwilioIntegrationAccount.rb | 1 + .../GetTwilioIntegrationAccount.rb | 1 + .../ListTwilioIntegrationAccounts.rb | 1 + .../UpdateTwilioIntegrationAccount.rb | 1 + examples/v2/usage-metering/CreateQuotas.rb | 1 + examples/v2/usage-metering/DeleteQuota.rb | 1 + .../GetActiveBillingDimensions.rb | 3 + .../GetBillingDimensionMapping.rb | 3 + examples/v2/usage-metering/GetCostByOrg.rb | 3 + .../usage-metering/GetEstimatedCostByOrg.rb | 3 + .../GetEstimatedCostByOrg_3186693804.rb | 3 + .../usage-metering/GetHistoricalCostByOrg.rb | 3 + examples/v2/usage-metering/GetHourlyUsage.rb | 3 + .../GetMonthlyCostAttribution.rb | 3 + .../v2/usage-metering/GetProjectedCost.rb | 3 + .../GetUsageApplicationSecurityMonitoring.rb | 3 + .../GetUsageAttributionTypes.rb | 3 + .../GetUsageLambdaTracedInvocations.rb | 3 + .../GetUsageObservabilityPipelines.rb | 3 + .../GetUsageSummaryAvailableFields.rb | 3 + ...tUsageSummaryAvailableFields_2682263043.rb | 3 + examples/v2/usage-metering/ListQuotas.rb | 1 + .../v2/usage-metering/ListQuotas_918754421.rb | 1 + examples/v2/usage-metering/UpdateQuota.rb | 1 + .../DeleteUserAuthorizedClient.rb | 3 + .../DeleteUserAuthorizedClientsByClient.rb | 3 + .../GetUserAuthorizedClient.rb | 3 + .../ListUserAuthorizedClients.rb | 3 + .../ListUserAuthorizedClients_1051662547.rb | 3 + examples/v2/users/AnonymizeUsers.rb | 1 + examples/v2/users/CreateUser.rb | 3 + examples/v2/users/DeleteUserInvitations.rb | 3 + examples/v2/users/DisableUser.rb | 3 + examples/v2/users/GetCurrentUser.rb | 3 + examples/v2/users/GetInvitation.rb | 3 + examples/v2/users/GetUser.rb | 3 + examples/v2/users/GetUserIdentityProviders.rb | 3 + examples/v2/users/ListUserOrganizations.rb | 3 + examples/v2/users/ListUserPermissions.rb | 3 + examples/v2/users/ListUsers.rb | 3 + examples/v2/users/ListUsers_4075885358.rb | 3 + examples/v2/users/SendInvitations.rb | 3 + examples/v2/users/UpdateCurrentUser.rb | 3 + examples/v2/users/UpdateUser.rb | 3 + .../v2/users/UpdateUserIdentityProviders.rb | 3 + .../CreateWebIntegrationAccount.rb | 1 + .../DeleteWebIntegrationAccount.rb | 1 + .../GetWebIntegrationAccount.rb | 1 + .../ListWebIntegrationAccounts.rb | 1 + .../UpdateWebIntegrationAccount.rb | 1 + .../CreateOAuth2ClientCredentials.rb | 3 + .../DeleteOAuth2ClientCredentials.rb | 3 + .../webhooks-integration/GetAllAuthMethods.rb | 3 + .../GetOAuth2ClientCredentials.rb | 3 + .../UpdateOAuth2ClientCredentials.rb | 3 + examples/v2/widgets/CreateWidget.rb | 3 + examples/v2/widgets/DeleteWidget.rb | 3 + examples/v2/widgets/GetWidget.rb | 3 + examples/v2/widgets/SearchWidgets.rb | 3 + examples/v2/widgets/UpdateWidget.rb | 3 + .../CancelWorkflowInstance.rb | 3 + .../v2/workflow-automation/CreateWorkflow.rb | 3 + .../CreateWorkflowInstance.rb | 3 + .../v2/workflow-automation/DeleteWorkflow.rb | 3 + .../v2/workflow-automation/GetWorkflow.rb | 3 + .../GetWorkflowInstance.rb | 3 + .../ListWorkflowInstances.rb | 3 + .../v2/workflow-automation/ListWorkflows.rb | 3 + .../ListWorkflows_71111569.rb | 3 + .../v2/workflow-automation/UpdateWorkflow.rb | 3 + .../v1/api/aws_integration_api.rb | 24 +-- .../v1/api/aws_logs_integration_api.rb | 14 +- .../v1/api/azure_integration_api.rb | 10 +- .../v1/api/gcp_integration_api.rb | 8 +- lib/datadog_api_client/v1/api/hosts_api.rb | 4 +- .../v1/api/key_management_api.rb | 20 +- .../v1/api/logs_indexes_api.rb | 14 +- .../v1/api/logs_pipelines_api.rb | 14 +- lib/datadog_api_client/v1/api/metrics_api.rb | 2 +- .../v1/api/notebooks_api.rb | 10 +- .../v1/api/organizations_api.rb | 12 +- .../v1/api/pager_duty_integration_api.rb | 8 +- .../v1/api/security_monitoring_api.rb | 6 +- ...service_level_objective_corrections_api.rb | 6 +- .../v1/api/slack_integration_api.rb | 10 +- .../v1/api/synthetics_api.rb | 2 +- lib/datadog_api_client/v1/api/tags_api.rb | 8 +- .../v1/api/usage_metering_api.rb | 8 +- lib/datadog_api_client/v1/api/users_api.rb | 8 +- .../v1/api/webhooks_integration_api.rb | 14 +- .../v2/api/action_connection_api.rb | 16 +- .../v2/api/actions_datastores_api.rb | 20 +- .../v2/api/agent_observability_api.rb | 146 ++++++------- .../v2/api/annotations_api.rb | 10 +- .../v2/api/apm_retention_filters_api.rb | 12 +- .../v2/api/app_builder_api.rb | 42 ++-- .../v2/api/application_security_api.rb | 32 +-- lib/datadog_api_client/v2/api/audit_api.rb | 4 +- .../v2/api/authn_mappings_api.rb | 10 +- .../v2/api/aws_integration_api.rb | 40 ++-- .../v2/api/aws_logs_integration_api.rb | 2 +- .../v2/api/case_management_api.rb | 4 +- .../v2/api/case_management_attribute_api.rb | 8 +- .../v2/api/case_management_type_api.rb | 6 +- .../v2/api/cloud_authentication_api.rb | 8 +- .../v2/api/cloud_cost_management_api.rb | 26 +-- .../v2/api/cloudflare_integration_api.rb | 10 +- .../v2/api/confluent_cloud_api.rb | 20 +- .../v2/api/csm_agents_api.rb | 4 +- .../v2/api/csm_coverage_analysis_api.rb | 6 +- .../v2/api/csm_ownership_api.rb | 18 +- .../v2/api/csm_settings_api.rb | 12 +- .../v2/api/csm_threats_api.rb | 34 +-- .../v2/api/dashboard_lists_api.rb | 6 +- .../v2/api/data_deletion_api.rb | 6 +- .../v2/api/databricks_integration_api.rb | 10 +- lib/datadog_api_client/v2/api/ddsql_api.rb | 4 +- lib/datadog_api_client/v2/api/dem_api.rb | 28 +-- .../v2/api/deployment_gates_api.rb | 24 +-- .../v2/api/dora_metrics_api.rb | 16 +- .../v2/api/elastic_cloud_integration_api.rb | 10 +- .../v2/api/entity_integration_configs_api.rb | 6 +- .../v2/api/entity_risk_scores_api.rb | 4 +- lib/datadog_api_client/v2/api/events_api.rb | 2 +- .../v2/api/execution_policy_api.rb | 10 +- .../v2/api/fastly_integration_api.rb | 20 +- .../v2/api/fleet_automation_api.rb | 32 +-- lib/datadog_api_client/v2/api/forms_api.rb | 20 +- .../v2/api/gcp_integration_api.rb | 12 +- .../v2/api/google_chat_integration_api.rb | 32 +-- .../api/high_availability_multi_region_api.rb | 4 +- .../v2/api/incidents_api.rb | 26 +-- .../v2/api/integrations_api.rb | 2 +- .../v2/api/jira_integration_api.rb | 14 +- .../v2/api/key_management_api.rb | 40 ++-- lib/datadog_api_client/v2/api/logs_api.rb | 2 +- .../v2/api/logs_archives_api.rb | 20 +- .../v2/api/logs_custom_destinations_api.rb | 10 +- .../v2/api/logs_metrics_api.rb | 10 +- .../v2/api/logs_restriction_queries_api.rb | 22 +- lib/datadog_api_client/v2/api/metrics_api.rb | 18 +- .../v2/api/microsoft_teams_integration_api.rb | 24 +-- .../v2/api/model_lab_api_api.rb | 32 +-- lib/datadog_api_client/v2/api/monitors_api.rb | 22 +- .../v2/api/network_device_monitoring_api.rb | 14 +- .../v2/api/network_health_insights_api.rb | 2 +- .../v2/api/o_auth2_client_public_api.rb | 6 +- .../v2/api/observability_pipelines_api.rb | 12 +- .../v2/api/oci_integration_api.rb | 12 +- .../v2/api/okta_integration_api.rb | 10 +- .../v2/api/opsgenie_integration_api.rb | 18 +- .../v2/api/org_groups_api.rb | 42 ++-- .../v2/api/organizations_api.rb | 16 +- .../v2/api/product_analytics_api.rb | 24 +-- .../v2/api/report_schedules_api.rb | 18 +- .../v2/api/reporting_and_sharing_api.rb | 2 +- lib/datadog_api_client/v2/api/rum_api.rb | 26 +-- .../v2/api/rum_config_api.rb | 6 +- .../v2/api/rum_insights_api.rb | 6 +- .../v2/api/rum_metrics_api.rb | 10 +- .../v2/api/rum_operations_api.rb | 20 +- .../v2/api/rum_remote_config_api.rb | 4 +- .../v2/api/rum_retention_filters_api.rb | 28 +-- .../v2/api/rum_retention_quotas_api.rb | 6 +- .../v2/api/rum_teams_ownership_api.rb | 12 +- .../v2/api/salesforce_integration_api.rb | 12 +- lib/datadog_api_client/v2/api/seats_api.rb | 6 +- .../v2/api/security_monitoring_api.rb | 106 ++++----- .../v2/api/sensitive_data_scanner_api.rb | 18 +- .../v2/api/service_accounts_api.rb | 22 +- .../v2/api/service_now_integration_api.rb | 18 +- .../v2/api/slack_integration_api.rb | 2 +- .../v2/api/snowflake_integration_api.rb | 10 +- .../v2/api/spans_metrics_api.rb | 10 +- .../v2/api/static_analysis_api.rb | 52 ++--- .../v2/api/statuspage_integration_api.rb | 16 +- .../v2/api/stegadography_api.rb | 2 +- .../v2/api/storage_management_api.rb | 4 +- .../v2/api/synthetics_api.rb | 20 +- .../v2/api/tag_rules_api.rb | 12 +- .../v2/api/threat_intelligence_api.rb | 2 +- .../v2/api/twilio_integration_api.rb | 10 +- lib/datadog_api_client/v2/api/users_api.rb | 4 +- .../v2/api/web_integrations_api.rb | 10 +- .../v2/api/webhooks_integration_api.rb | 10 +- lib/datadog_api_client/v2/api/widgets_api.rb | 10 +- .../v2/api/workflow_automation_api.rb | 12 +- 2380 files changed, 6670 insertions(+), 921 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a1d005a8d213..464b165680bd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -29190,6 +29190,7 @@ components: workflows_write: Create, edit, and delete workflows. tokenUrl: /oauth2/v1/token type: oauth2 + x-env-name: DD_BEARER_TOKEN apiKeyAuth: description: Your Datadog API Key. in: header @@ -44902,6 +44903,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] servers: - url: https://{subdomain}.{site} variables: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c2c0d78b9813..a62085037a34 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -131078,6 +131078,7 @@ components: workflows_write: Create, edit, and delete workflows. tokenUrl: /oauth2/v1/token type: oauth2 + x-env-name: DD_BEARER_TOKEN apiKeyAuth: description: Your Datadog API Key. in: header @@ -131186,6 +131187,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List tracers for a specific agent tags: - Fleet Automation @@ -131300,6 +131302,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a schedule tags: - Fleet Automation @@ -131347,6 +131350,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a schedule tags: - Fleet Automation @@ -131460,6 +131464,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a schedule tags: - Fleet Automation @@ -131531,6 +131536,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Trigger a schedule deployment tags: - Fleet Automation @@ -131626,6 +131632,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List all fleet tracers tags: - Fleet Automation @@ -131691,6 +131698,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List custom evaluator configurations tags: - Agent Observability @@ -131735,6 +131743,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a custom evaluator configuration tags: - Agent Observability @@ -131809,6 +131818,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a custom evaluator configuration tags: - Agent Observability @@ -131922,6 +131932,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or update a custom evaluator configuration tags: - Agent Observability @@ -134112,6 +134123,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List annotations tags: - Annotations @@ -134192,6 +134204,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an annotation tags: - Annotations @@ -134265,6 +134278,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get annotations for a page tags: - Annotations @@ -134305,6 +134319,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete an annotation tags: - Annotations @@ -134393,6 +134408,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an annotation tags: - Annotations @@ -145914,6 +145930,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or update a budget tags: - Cloud Cost Management @@ -146007,6 +146024,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or replace a budget's custom forecast tags: - Cloud Cost Management @@ -146069,6 +146087,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Validate budget tags: - Cloud Cost Management @@ -146086,6 +146105,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete budget tags: - Cloud Cost Management @@ -146179,6 +146199,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get budget tags: - Cloud Cost Management @@ -146200,6 +146221,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a budget's custom forecast tags: - Cloud Cost Management @@ -146247,6 +146269,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a budget's custom forecast tags: - Cloud Cost Management @@ -146283,6 +146306,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List budgets tags: - Cloud Cost Management @@ -150225,6 +150249,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get current user tags: - Users @@ -150308,6 +150333,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update current user tags: - Users @@ -152013,6 +152039,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Creates a data deletion request tags: - Data Deletion @@ -152110,6 +152137,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Gets a list of data deletion requests tags: - Data Deletion @@ -152174,6 +152202,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Cancels a data deletion request tags: - Data Deletion @@ -153155,6 +153184,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all deployment gates tags: ["Deployment Gates"] x-permission: @@ -153224,6 +153254,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create deployment gate tags: ["Deployment Gates"] x-permission: @@ -153285,6 +153316,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get rules for a deployment gate tags: ["Deployment Gates"] x-permission: @@ -153364,6 +153396,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create deployment rule tags: ["Deployment Gates"] x-permission: @@ -153413,6 +153446,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete deployment rule tags: ["Deployment Gates"] x-permission: @@ -153480,6 +153514,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get deployment rule tags: ["Deployment Gates"] x-permission: @@ -153565,6 +153600,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update deployment rule tags: ["Deployment Gates"] x-permission: @@ -153608,6 +153644,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete deployment gate tags: ["Deployment Gates"] x-permission: @@ -153668,6 +153705,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get deployment gate tags: ["Deployment Gates"] x-permission: @@ -153742,6 +153780,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update deployment gate tags: ["Deployment Gates"] x-permission: @@ -153839,6 +153878,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Trigger a deployment gate evaluation tags: ["Deployment Gates"] x-permission: @@ -153904,6 +153944,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a deployment gate evaluation result tags: ["Deployment Gates"] x-permission: @@ -154111,6 +154152,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a deployment event tags: ["DORA Metrics"] x-permission: @@ -154154,6 +154196,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Patch a deployment event by version tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -154217,6 +154260,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a list of deployment events tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -154268,6 +154312,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a deployment event tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -154319,6 +154364,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Patch a deployment event tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -154427,6 +154473,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete an incident event tags: ["DORA Metrics"] x-permission: @@ -154489,6 +154536,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a list of incident events tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -154542,6 +154590,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get an incident event tags: ["DORA Metrics"] x-codegen-request-body-name: body @@ -155477,6 +155526,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] servers: - url: https://{subdomain}.{site} variables: @@ -157258,6 +157308,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List available Datadog Agent versions tags: - Fleet Automation @@ -157378,6 +157429,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List all Datadog Agents tags: - Fleet Automation @@ -157443,6 +157495,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get detailed information about an agent tags: - Fleet Automation @@ -157548,6 +157601,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List all deployments tags: - Fleet Automation @@ -157665,6 +157719,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a configuration deployment tags: - Fleet Automation @@ -157744,6 +157799,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Upgrade hosts tags: - Fleet Automation @@ -157831,6 +157887,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a deployment by ID tags: - Fleet Automation @@ -157889,6 +157946,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Cancel a deployment tags: - Fleet Automation @@ -157951,6 +158009,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List all schedules tags: - Fleet Automation @@ -158016,6 +158075,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a schedule by ID tags: - Fleet Automation @@ -160062,6 +160122,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List tag rules tags: - Tag Rules @@ -160161,6 +160222,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a tag rule tags: - Tag Rules @@ -160225,6 +160287,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a tag rule tags: - Tag Rules @@ -160344,6 +160407,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a tag rule tags: - Tag Rules @@ -160443,6 +160507,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a tag rule tags: - Tag Rules @@ -160532,6 +160597,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a tag rule compliance score tags: - Tag Rules @@ -160594,6 +160660,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get HAMR organization connection tags: - High Availability MultiRegion @@ -160669,6 +160736,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or update HAMR organization connection tags: - High Availability MultiRegion @@ -164734,6 +164802,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List incident attachments tags: - Incidents @@ -170280,6 +170349,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List tenancy products tags: - OCI Integration @@ -170311,6 +170381,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get tenancy configs tags: - OCI Integration @@ -170387,6 +170458,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create tenancy config tags: - OCI Integration @@ -170410,6 +170482,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete tenancy config tags: - OCI Integration @@ -170447,6 +170520,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get tenancy config tags: - OCI Integration @@ -170528,6 +170602,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update tenancy config tags: - OCI Integration @@ -172125,6 +172200,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Integrations tags: - Integrations @@ -173640,6 +173716,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get annotated interactions by content IDs tags: - Agent Observability @@ -173716,6 +173793,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability annotation queues tags: - Agent Observability @@ -173831,6 +173909,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an Agent Observability annotation queue tags: - Agent Observability @@ -173869,6 +173948,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete an Agent Observability annotation queue tags: - Agent Observability @@ -173958,6 +174038,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability annotation queue tags: - Agent Observability @@ -174019,6 +174100,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get annotated queue interactions tags: - Agent Observability @@ -174111,6 +174193,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get an annotated queue interaction tags: - Agent Observability @@ -174228,6 +174311,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or update annotations tags: - Agent Observability @@ -174314,6 +174398,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete annotations tags: - Agent Observability @@ -174436,6 +174521,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Add annotation queue interactions tags: - Agent Observability @@ -174496,6 +174582,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete annotation queue interactions tags: - Agent Observability @@ -174566,6 +174653,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get annotation queue label schema tags: - Agent Observability @@ -174711,6 +174799,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update annotation queue label schema tags: - Agent Observability @@ -174798,6 +174887,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Aggregate Agent Observability experimentation tags: - Agent Observability @@ -174908,6 +174998,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Search Agent Observability experimentation tags: - Agent Observability @@ -175001,6 +175092,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Simple search experimentation entities tags: - Agent Observability @@ -175126,6 +175218,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability experiments tags: - Agent Observability @@ -175217,6 +175310,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an Agent Observability experiment tags: - Agent Observability @@ -175268,6 +175362,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete Agent Observability experiments tags: - Agent Observability @@ -175343,6 +175438,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability experiment tags: - Agent Observability @@ -175414,6 +175510,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability experiment spans (v1) tags: - Agent Observability @@ -175485,6 +175582,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Push events for an Agent Observability experiment tags: - Agent Observability @@ -175537,6 +175635,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List LLM integration accounts tags: - Agent Observability @@ -175621,6 +175720,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Run an LLM inference tags: - Agent Observability @@ -175678,6 +175778,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List LLM integration models tags: - Agent Observability @@ -175751,6 +175852,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability projects tags: - Agent Observability @@ -175832,6 +175934,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an Agent Observability project tags: - Agent Observability @@ -175883,6 +175986,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete Agent Observability projects tags: - Agent Observability @@ -175954,6 +176058,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability project tags: - Agent Observability @@ -176012,6 +176117,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability prompts tags: - Agent Observability @@ -176112,6 +176218,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an Agent Observability prompt tags: - Agent Observability @@ -176172,6 +176279,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete an Agent Observability prompt tags: - Agent Observability @@ -176240,6 +176348,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get an Agent Observability prompt tags: - Agent Observability @@ -176323,6 +176432,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability prompt tags: - Agent Observability @@ -176392,6 +176502,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List versions of an Agent Observability prompt tags: - Agent Observability @@ -176559,6 +176670,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a new Agent Observability prompt version tags: - Agent Observability @@ -176637,6 +176749,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a specific Agent Observability prompt version tags: - Agent Observability @@ -176726,6 +176839,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability prompt version tags: - Agent Observability @@ -176885,6 +176999,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability spans tags: - Agent Observability @@ -176984,6 +177099,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Search Agent Observability spans tags: - Agent Observability @@ -177060,6 +177176,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List patterns clustered points tags: - Agent Observability @@ -177123,6 +177240,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List patterns configurations tags: - Agent Observability @@ -177207,6 +177325,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create or update a patterns configuration tags: - Agent Observability @@ -177274,6 +177393,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a patterns configuration tags: - Agent Observability @@ -177324,6 +177444,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a patterns configuration tags: - Agent Observability @@ -177390,6 +177511,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List patterns runs tags: - Agent Observability @@ -177465,6 +177587,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Trigger a patterns run tags: - Agent Observability @@ -177538,6 +177661,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get patterns run status tags: - Agent Observability @@ -177618,6 +177742,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List patterns topics tags: - Agent Observability @@ -177710,6 +177835,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List patterns topics with clustered points tags: - Agent Observability @@ -177792,6 +177918,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability datasets tags: - Agent Observability @@ -177885,6 +178012,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an Agent Observability dataset tags: - Agent Observability @@ -177944,6 +178072,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete Agent Observability datasets tags: - Agent Observability @@ -178018,6 +178147,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an Agent Observability dataset tags: - Agent Observability @@ -178133,6 +178263,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Batch update Agent Observability dataset records tags: - Agent Observability @@ -178229,6 +178360,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Clone an Agent Observability dataset tags: - Agent Observability @@ -178309,6 +178441,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get Agent Observability dataset draft state tags: - Agent Observability @@ -178389,6 +178522,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Lock Agent Observability dataset draft state tags: - Agent Observability @@ -178452,6 +178586,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Unlock Agent Observability dataset draft state tags: - Agent Observability @@ -178534,6 +178669,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Export an Agent Observability dataset tags: - Agent Observability @@ -178613,6 +178749,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability dataset records tags: - Agent Observability @@ -178690,6 +178827,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update Agent Observability dataset records tags: - Agent Observability @@ -178784,6 +178922,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Append records to an Agent Observability dataset tags: - Agent Observability @@ -178844,6 +178983,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete Agent Observability dataset records tags: - Agent Observability @@ -178922,6 +179062,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Restore an Agent Observability dataset version tags: - Agent Observability @@ -179005,6 +179146,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability dataset versions tags: - Agent Observability @@ -179079,6 +179221,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List Agent Observability experiment events (v2) tags: - Agent Observability @@ -179184,6 +179327,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Upload records to an Agent Observability dataset tags: - Agent Observability @@ -179270,6 +179414,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List events for an Agent Observability experiment tags: - Agent Observability @@ -204408,6 +204553,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all default inbox rules tags: - Security Monitoring @@ -204481,6 +204627,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a default inbox rule tags: - Security Monitoring @@ -204551,6 +204698,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Disable a default inbox rule tags: - Security Monitoring @@ -204621,6 +204769,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Enable a default inbox rule tags: - Security Monitoring @@ -204707,6 +204856,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all due date rules tags: - Security Monitoring @@ -204801,6 +204951,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a due date rule tags: - Security Monitoring @@ -204864,6 +205015,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Reorder due date rules tags: - Security Monitoring @@ -204900,6 +205052,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a due date rule tags: - Security Monitoring @@ -204968,6 +205121,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a due date rule tags: - Security Monitoring @@ -205077,6 +205231,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a due date rule tags: - Security Monitoring @@ -205159,6 +205314,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all inbox rules tags: - Security Monitoring @@ -205243,6 +205399,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create an inbox rule tags: - Security Monitoring @@ -205306,6 +205463,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Reorder inbox rules tags: - Security Monitoring @@ -205342,6 +205500,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete an inbox rule tags: - Security Monitoring @@ -205405,6 +205564,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get an inbox rule tags: - Security Monitoring @@ -205501,6 +205661,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update an inbox rule tags: - Security Monitoring @@ -205585,6 +205746,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all mute rules tags: - Security Monitoring @@ -205673,6 +205835,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a mute rule tags: - Security Monitoring @@ -205736,6 +205899,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Reorder mute rules tags: - Security Monitoring @@ -205772,6 +205936,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a mute rule tags: - Security Monitoring @@ -205837,6 +206002,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a mute rule tags: - Security Monitoring @@ -205932,6 +206098,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a mute rule tags: - Security Monitoring @@ -206018,6 +206185,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all severity modifier rules tags: - Security Monitoring @@ -206106,6 +206274,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a severity modifier rule tags: - Security Monitoring @@ -206169,6 +206338,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Reorder severity modifier rules tags: - Security Monitoring @@ -206211,6 +206381,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a severity modifier rule tags: - Security Monitoring @@ -206282,6 +206453,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a severity modifier rule tags: - Security Monitoring @@ -206379,6 +206551,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a severity modifier rule tags: - Security Monitoring @@ -206463,6 +206636,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get all ticket creation rules tags: - Security Monitoring @@ -206551,6 +206725,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a ticket creation rule tags: - Security Monitoring @@ -206614,6 +206789,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Reorder ticket creation rules tags: - Security Monitoring @@ -206650,6 +206826,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a ticket creation rule tags: - Security Monitoring @@ -206715,6 +206892,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a ticket creation rule tags: - Security Monitoring @@ -206814,6 +206992,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a ticket creation rule tags: - Security Monitoring @@ -207688,6 +207867,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List assets SBOMs tags: - "Security Monitoring" @@ -207776,6 +207956,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get SBOM tags: - "Security Monitoring" @@ -207919,6 +208100,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List scanned assets metadata tags: - "Security Monitoring" @@ -208183,6 +208365,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get the list of signal-based notification rules tags: - Security Monitoring @@ -208264,6 +208447,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a new signal-based notification rule tags: - Security Monitoring @@ -208295,6 +208479,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a signal-based notification rule tags: - Security Monitoring @@ -208357,6 +208542,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get details of a signal-based notification rule tags: - Security Monitoring @@ -208448,6 +208634,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Patch a signal-based notification rule tags: - Security Monitoring @@ -208559,6 +208746,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Ingest STIX threat intelligence tags: - Threat Intelligence @@ -209011,6 +209199,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List vulnerabilities tags: - "Security Monitoring" @@ -209120,6 +209309,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get the list of vulnerability notification rules tags: - Security Monitoring @@ -209202,6 +209392,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a new vulnerability-based notification rule tags: - Security Monitoring @@ -209233,6 +209424,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a vulnerability-based notification rule tags: - Security Monitoring @@ -209296,6 +209488,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get details of a vulnerability notification rule tags: - Security Monitoring @@ -209388,6 +209581,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Patch a vulnerability-based notification rule tags: - Security Monitoring @@ -209569,6 +209763,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: List vulnerable assets tags: - "Security Monitoring" @@ -218415,6 +218610,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get the list of SPDX licenses tags: - Static Analysis @@ -222979,6 +223175,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get widgets from an image tags: - Stegadography @@ -230393,6 +230590,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Validate API and application keys tags: - Key Management @@ -230771,6 +230969,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Search widgets tags: - Widgets @@ -230875,6 +231074,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Create a widget tags: - Widgets @@ -230930,6 +231130,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Delete a widget tags: - Widgets @@ -231002,6 +231203,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Get a widget tags: - Widgets @@ -231116,6 +231318,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] summary: Update a widget tags: - Widgets @@ -231738,6 +231941,7 @@ paths: security: - apiKeyAuth: [] appKeyAuth: [] + - AuthZ: [] servers: - url: https://{subdomain}.{site} variables: diff --git a/examples/v1/aws-integration/CreateAWSAccount.rb b/examples/v1/aws-integration/CreateAWSAccount.rb index 4fccf3b651c7..4792e98b9e2d 100644 --- a/examples/v1/aws-integration/CreateAWSAccount.rb +++ b/examples/v1/aws-integration/CreateAWSAccount.rb @@ -1,6 +1,9 @@ # Create an AWS integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccount.new({ diff --git a/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb b/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb index 615defe4c82f..2bf4b2eca662 100644 --- a/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb +++ b/examples/v1/aws-integration/CreateAWSEventBridgeSource.rb @@ -1,6 +1,9 @@ # Create an Amazon EventBridge source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSEventBridgeCreateRequest.new({ diff --git a/examples/v1/aws-integration/CreateAWSTagFilter.rb b/examples/v1/aws-integration/CreateAWSTagFilter.rb index ac1a7381f3b4..ad7e314f8848 100644 --- a/examples/v1/aws-integration/CreateAWSTagFilter.rb +++ b/examples/v1/aws-integration/CreateAWSTagFilter.rb @@ -1,6 +1,9 @@ # Set an AWS tag filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSTagFilterCreateRequest.new({ diff --git a/examples/v1/aws-integration/CreateNewAWSExternalID.rb b/examples/v1/aws-integration/CreateNewAWSExternalID.rb index 9f3bc0226c73..a139389df5ff 100644 --- a/examples/v1/aws-integration/CreateNewAWSExternalID.rb +++ b/examples/v1/aws-integration/CreateNewAWSExternalID.rb @@ -1,6 +1,9 @@ # Generate a new external ID returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccount.new({ diff --git a/examples/v1/aws-integration/DeleteAWSAccount.rb b/examples/v1/aws-integration/DeleteAWSAccount.rb index 48ef69b679b4..7861c0d119cc 100644 --- a/examples/v1/aws-integration/DeleteAWSAccount.rb +++ b/examples/v1/aws-integration/DeleteAWSAccount.rb @@ -1,6 +1,9 @@ # Delete an AWS integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccountDeleteRequest.new({ diff --git a/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb b/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb index 8ef0a4f9467e..15906980d465 100644 --- a/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb +++ b/examples/v1/aws-integration/DeleteAWSEventBridgeSource.rb @@ -1,6 +1,9 @@ # Delete an Amazon EventBridge source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSEventBridgeDeleteRequest.new({ diff --git a/examples/v1/aws-integration/DeleteAWSTagFilter.rb b/examples/v1/aws-integration/DeleteAWSTagFilter.rb index 48554e452888..6bec359f6952 100644 --- a/examples/v1/aws-integration/DeleteAWSTagFilter.rb +++ b/examples/v1/aws-integration/DeleteAWSTagFilter.rb @@ -1,6 +1,9 @@ # Delete a tag filtering entry returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSTagFilterDeleteRequest.new({ diff --git a/examples/v1/aws-integration/ListAWSAccounts.rb b/examples/v1/aws-integration/ListAWSAccounts.rb index cc3e563e8f65..c7911541499b 100644 --- a/examples/v1/aws-integration/ListAWSAccounts.rb +++ b/examples/v1/aws-integration/ListAWSAccounts.rb @@ -1,5 +1,8 @@ # List all AWS integrations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new p api_instance.list_aws_accounts() diff --git a/examples/v1/aws-integration/ListAWSEventBridgeSources.rb b/examples/v1/aws-integration/ListAWSEventBridgeSources.rb index e48e3c1918a7..e73f7688eae2 100644 --- a/examples/v1/aws-integration/ListAWSEventBridgeSources.rb +++ b/examples/v1/aws-integration/ListAWSEventBridgeSources.rb @@ -1,5 +1,8 @@ # Get all Amazon EventBridge sources returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new p api_instance.list_aws_event_bridge_sources() diff --git a/examples/v1/aws-integration/ListAWSTagFilters.rb b/examples/v1/aws-integration/ListAWSTagFilters.rb index 624826255943..591905bfdde5 100644 --- a/examples/v1/aws-integration/ListAWSTagFilters.rb +++ b/examples/v1/aws-integration/ListAWSTagFilters.rb @@ -1,5 +1,8 @@ # Get all AWS tag filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new p api_instance.list_aws_tag_filters("account_id") diff --git a/examples/v1/aws-integration/ListAvailableAWSNamespaces.rb b/examples/v1/aws-integration/ListAvailableAWSNamespaces.rb index 818e4f4f35f6..cfd375d9f8c5 100644 --- a/examples/v1/aws-integration/ListAvailableAWSNamespaces.rb +++ b/examples/v1/aws-integration/ListAvailableAWSNamespaces.rb @@ -1,5 +1,8 @@ # List namespace rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new p api_instance.list_available_aws_namespaces() diff --git a/examples/v1/aws-integration/UpdateAWSAccount.rb b/examples/v1/aws-integration/UpdateAWSAccount.rb index 01c634b916ae..862ea1593591 100644 --- a/examples/v1/aws-integration/UpdateAWSAccount.rb +++ b/examples/v1/aws-integration/UpdateAWSAccount.rb @@ -1,6 +1,9 @@ # Update an AWS integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccount.new({ diff --git a/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb b/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb index 227c16297198..82e43e99184c 100644 --- a/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb +++ b/examples/v1/aws-logs-integration/CheckAWSLogsLambdaAsync.rb @@ -1,6 +1,9 @@ # Check that an AWS Lambda Function exists returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ diff --git a/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb b/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb index 68aa11b612e8..b8cffffaa3e2 100644 --- a/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb +++ b/examples/v1/aws-logs-integration/CheckAWSLogsServicesAsync.rb @@ -1,6 +1,9 @@ # Check permissions for log services returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({ diff --git a/examples/v1/aws-logs-integration/CreateAWSLambdaARN.rb b/examples/v1/aws-logs-integration/CreateAWSLambdaARN.rb index 104b82801cc5..b5aba9c919d8 100644 --- a/examples/v1/aws-logs-integration/CreateAWSLambdaARN.rb +++ b/examples/v1/aws-logs-integration/CreateAWSLambdaARN.rb @@ -1,6 +1,9 @@ # Add AWS Log Lambda ARN returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ diff --git a/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.rb b/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.rb index c8bdaf91847d..9067cd57fa27 100644 --- a/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.rb +++ b/examples/v1/aws-logs-integration/DeleteAWSLambdaARN.rb @@ -1,6 +1,9 @@ # Delete an AWS Logs integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSAccountAndLambdaRequest.new({ diff --git a/examples/v1/aws-logs-integration/EnableAWSLogServices.rb b/examples/v1/aws-logs-integration/EnableAWSLogServices.rb index 162c437ffc5c..30e14242dbb7 100644 --- a/examples/v1/aws-logs-integration/EnableAWSLogServices.rb +++ b/examples/v1/aws-logs-integration/EnableAWSLogServices.rb @@ -1,6 +1,9 @@ # Enable an AWS Logs integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new body = DatadogAPIClient::V1::AWSLogsServicesRequest.new({ diff --git a/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.rb b/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.rb index 9366902b5ff2..41aa6adb0aa4 100644 --- a/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.rb +++ b/examples/v1/aws-logs-integration/ListAWSLogsIntegrations.rb @@ -1,5 +1,8 @@ # List all AWS Logs integrations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new p api_instance.list_aws_logs_integrations() diff --git a/examples/v1/aws-logs-integration/ListAWSLogsServices.rb b/examples/v1/aws-logs-integration/ListAWSLogsServices.rb index 08b34e964e66..7e16969a62c3 100644 --- a/examples/v1/aws-logs-integration/ListAWSLogsServices.rb +++ b/examples/v1/aws-logs-integration/ListAWSLogsServices.rb @@ -1,5 +1,8 @@ # Get list of AWS log ready services returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AWSLogsIntegrationAPI.new p api_instance.list_aws_logs_services() diff --git a/examples/v1/azure-integration/CreateAzureIntegration.rb b/examples/v1/azure-integration/CreateAzureIntegration.rb index 5ff4f73e1707..ac7bbc12dd04 100644 --- a/examples/v1/azure-integration/CreateAzureIntegration.rb +++ b/examples/v1/azure-integration/CreateAzureIntegration.rb @@ -1,6 +1,9 @@ # Create an Azure integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new body = DatadogAPIClient::V1::AzureAccount.new({ diff --git a/examples/v1/azure-integration/DeleteAzureIntegration.rb b/examples/v1/azure-integration/DeleteAzureIntegration.rb index 3e6e7678e102..55e4a4b39e0b 100644 --- a/examples/v1/azure-integration/DeleteAzureIntegration.rb +++ b/examples/v1/azure-integration/DeleteAzureIntegration.rb @@ -1,6 +1,9 @@ # Delete an Azure integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new body = DatadogAPIClient::V1::AzureAccount.new({ diff --git a/examples/v1/azure-integration/ListAzureIntegration.rb b/examples/v1/azure-integration/ListAzureIntegration.rb index b7507adc7a06..58d5d7f68aa7 100644 --- a/examples/v1/azure-integration/ListAzureIntegration.rb +++ b/examples/v1/azure-integration/ListAzureIntegration.rb @@ -1,5 +1,8 @@ # List all Azure integrations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new p api_instance.list_azure_integration() diff --git a/examples/v1/azure-integration/UpdateAzureHostFilters.rb b/examples/v1/azure-integration/UpdateAzureHostFilters.rb index 25f6c5f5b5d9..77992c695c83 100644 --- a/examples/v1/azure-integration/UpdateAzureHostFilters.rb +++ b/examples/v1/azure-integration/UpdateAzureHostFilters.rb @@ -1,6 +1,9 @@ # Update Azure integration host filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new body = DatadogAPIClient::V1::AzureAccount.new({ diff --git a/examples/v1/azure-integration/UpdateAzureIntegration.rb b/examples/v1/azure-integration/UpdateAzureIntegration.rb index aae11d7b611b..4dc4befcc8e5 100644 --- a/examples/v1/azure-integration/UpdateAzureIntegration.rb +++ b/examples/v1/azure-integration/UpdateAzureIntegration.rb @@ -1,6 +1,9 @@ # Update an Azure integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::AzureIntegrationAPI.new body = DatadogAPIClient::V1::AzureAccount.new({ diff --git a/examples/v1/dashboard-lists/CreateDashboardList.rb b/examples/v1/dashboard-lists/CreateDashboardList.rb index 6738b8a76325..a429c175260e 100644 --- a/examples/v1/dashboard-lists/CreateDashboardList.rb +++ b/examples/v1/dashboard-lists/CreateDashboardList.rb @@ -1,6 +1,9 @@ # Create a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardListsAPI.new body = DatadogAPIClient::V1::DashboardList.new({ diff --git a/examples/v1/dashboard-lists/DeleteDashboardList.rb b/examples/v1/dashboard-lists/DeleteDashboardList.rb index 076fa3096f65..1b96fa9663fd 100644 --- a/examples/v1/dashboard-lists/DeleteDashboardList.rb +++ b/examples/v1/dashboard-lists/DeleteDashboardList.rb @@ -1,6 +1,9 @@ # Delete a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v1/dashboard-lists/GetDashboardList.rb b/examples/v1/dashboard-lists/GetDashboardList.rb index 4c71129ffcdc..ac9b85819276 100644 --- a/examples/v1/dashboard-lists/GetDashboardList.rb +++ b/examples/v1/dashboard-lists/GetDashboardList.rb @@ -1,6 +1,9 @@ # Get a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v1/dashboard-lists/ListDashboardLists.rb b/examples/v1/dashboard-lists/ListDashboardLists.rb index c812576b9131..88f203060e20 100644 --- a/examples/v1/dashboard-lists/ListDashboardLists.rb +++ b/examples/v1/dashboard-lists/ListDashboardLists.rb @@ -1,5 +1,8 @@ # Get all dashboard lists returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardListsAPI.new p api_instance.list_dashboard_lists() diff --git a/examples/v1/dashboard-lists/UpdateDashboardList.rb b/examples/v1/dashboard-lists/UpdateDashboardList.rb index 78f6f3d66573..3dfcc5cbb83e 100644 --- a/examples/v1/dashboard-lists/UpdateDashboardList.rb +++ b/examples/v1/dashboard-lists/UpdateDashboardList.rb @@ -1,6 +1,9 @@ # Update a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v1/dashboards/CreateDashboard.rb b/examples/v1/dashboards/CreateDashboard.rb index f3daa4e97088..640669623c02 100644 --- a/examples/v1/dashboards/CreateDashboard.rb +++ b/examples/v1/dashboards/CreateDashboard.rb @@ -1,6 +1,9 @@ # Create a new dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1024858348.rb b/examples/v1/dashboards/CreateDashboard_1024858348.rb index 03ec91192a83..ec20faa4e2ed 100644 --- a/examples/v1/dashboards/CreateDashboard_1024858348.rb +++ b/examples/v1/dashboards/CreateDashboard_1024858348.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a formulas and functions treemap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1039800684.rb b/examples/v1/dashboards/CreateDashboard_1039800684.rb index b97ab84e0572..ad45d6746bef 100644 --- a/examples/v1/dashboards/CreateDashboard_1039800684.rb +++ b/examples/v1/dashboards/CreateDashboard_1039800684.rb @@ -1,6 +1,9 @@ # Create a new dashboard with logs_pattern_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1093147852.rb b/examples/v1/dashboards/CreateDashboard_1093147852.rb index 962c2c80613b..70c17b6f3a17 100644 --- a/examples/v1/dashboards/CreateDashboard_1093147852.rb +++ b/examples/v1/dashboards/CreateDashboard_1093147852.rb @@ -1,6 +1,9 @@ # Create a new dashboard with distribution widget with markers and num_buckets require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_109450134.rb b/examples/v1/dashboards/CreateDashboard_109450134.rb index 4312d1d68db7..4773b2dfe7ca 100644 --- a/examples/v1/dashboards/CreateDashboard_109450134.rb +++ b/examples/v1/dashboards/CreateDashboard_109450134.rb @@ -1,6 +1,9 @@ # Create a new dashboard with slo list widget with sort require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1094917386.rb b/examples/v1/dashboards/CreateDashboard_1094917386.rb index 90d9b34698c9..fd468e0955fc 100644 --- a/examples/v1/dashboards/CreateDashboard_1094917386.rb +++ b/examples/v1/dashboards/CreateDashboard_1094917386.rb @@ -1,6 +1,9 @@ # Create a new dashboard with manage_status widget and show_priority parameter require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1177423752.rb b/examples/v1/dashboards/CreateDashboard_1177423752.rb index a601210fb3be..e7f94f1d19ac 100644 --- a/examples/v1/dashboards/CreateDashboard_1177423752.rb +++ b/examples/v1/dashboards/CreateDashboard_1177423752.rb @@ -1,6 +1,9 @@ # Create a new dashboard with heatmap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1200099236.rb b/examples/v1/dashboards/CreateDashboard_1200099236.rb index 6d266d07808f..9f03da19e2a5 100644 --- a/examples/v1/dashboards/CreateDashboard_1200099236.rb +++ b/examples/v1/dashboards/CreateDashboard_1200099236.rb @@ -1,6 +1,9 @@ # Create a new dashboard with hostmap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1213075383.rb b/examples/v1/dashboards/CreateDashboard_1213075383.rb index 24472980d212..994db9db233f 100644 --- a/examples/v1/dashboards/CreateDashboard_1213075383.rb +++ b/examples/v1/dashboards/CreateDashboard_1213075383.rb @@ -1,6 +1,9 @@ # Create a new dashboard with toplist widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1259346254.rb b/examples/v1/dashboards/CreateDashboard_1259346254.rb index f7bfe8f11e71..3cef5db6cf54 100644 --- a/examples/v1/dashboards/CreateDashboard_1259346254.rb +++ b/examples/v1/dashboards/CreateDashboard_1259346254.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget using order_by values require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1284514532.rb b/examples/v1/dashboards/CreateDashboard_1284514532.rb index 0cefdd689004..18fa6d323640 100644 --- a/examples/v1/dashboards/CreateDashboard_1284514532.rb +++ b/examples/v1/dashboards/CreateDashboard_1284514532.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a timeseries widget using formulas and functions cloud cost query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1307120899.rb b/examples/v1/dashboards/CreateDashboard_1307120899.rb index 6ca3346b9e35..40d4d0134a9c 100644 --- a/examples/v1/dashboards/CreateDashboard_1307120899.rb +++ b/examples/v1/dashboards/CreateDashboard_1307120899.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with ci_tests data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1413226400.rb b/examples/v1/dashboards/CreateDashboard_1413226400.rb index 369d5a9f57b9..8bdedcaf4271 100644 --- a/examples/v1/dashboards/CreateDashboard_1413226400.rb +++ b/examples/v1/dashboards/CreateDashboard_1413226400.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a toplist widget with stacked type and no legend specified require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1423904722.rb b/examples/v1/dashboards/CreateDashboard_1423904722.rb index 3a25132b4c65..e6a4f22a4638 100644 --- a/examples/v1/dashboards/CreateDashboard_1423904722.rb +++ b/examples/v1/dashboards/CreateDashboard_1423904722.rb @@ -1,6 +1,9 @@ # Create a new dashboard with slo list widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1433408735.rb b/examples/v1/dashboards/CreateDashboard_1433408735.rb index 5fe09c49a7cf..d71e5ddcd134 100644 --- a/examples/v1/dashboards/CreateDashboard_1433408735.rb +++ b/examples/v1/dashboards/CreateDashboard_1433408735.rb @@ -1,6 +1,9 @@ # Clients deserialize a dashboard with a empty time object require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1442588603.rb b/examples/v1/dashboards/CreateDashboard_1442588603.rb index bd34ecd63e79..0ac88bffb2ef 100644 --- a/examples/v1/dashboards/CreateDashboard_1442588603.rb +++ b/examples/v1/dashboards/CreateDashboard_1442588603.rb @@ -1,6 +1,9 @@ # Create a distribution widget using a histogram request containing a formulas and functions APM Stats query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_145494973.rb b/examples/v1/dashboards/CreateDashboard_145494973.rb index 7b0dd1e36467..ab70a60b5965 100644 --- a/examples/v1/dashboards/CreateDashboard_145494973.rb +++ b/examples/v1/dashboards/CreateDashboard_145494973.rb @@ -1,6 +1,9 @@ # Create a new dashboard with apm resource stats widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1490099434.rb b/examples/v1/dashboards/CreateDashboard_1490099434.rb index 6fd63c443170..dd0a8b1659b8 100644 --- a/examples/v1/dashboards/CreateDashboard_1490099434.rb +++ b/examples/v1/dashboards/CreateDashboard_1490099434.rb @@ -1,6 +1,9 @@ # Create a new dashboard with query_table widget and cell_display_mode is trend require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_153558925.rb b/examples/v1/dashboards/CreateDashboard_153558925.rb index be0e5f07cfc0..d9f93af403a7 100644 --- a/examples/v1/dashboards/CreateDashboard_153558925.rb +++ b/examples/v1/dashboards/CreateDashboard_153558925.rb @@ -1,6 +1,9 @@ # Create a new dashboard with logs_transaction_stream list_stream widget and version require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1617893815.rb b/examples/v1/dashboards/CreateDashboard_1617893815.rb index 7f8a4b5ad93c..44f9075f6308 100644 --- a/examples/v1/dashboards/CreateDashboard_1617893815.rb +++ b/examples/v1/dashboards/CreateDashboard_1617893815.rb @@ -1,6 +1,9 @@ # Create a new dashboard with formula and function distribution widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1705253330.rb b/examples/v1/dashboards/CreateDashboard_1705253330.rb index 73a0f6dd8522..101a143ad8e4 100644 --- a/examples/v1/dashboards/CreateDashboard_1705253330.rb +++ b/examples/v1/dashboards/CreateDashboard_1705253330.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget using has_value_labels require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1712853070.rb b/examples/v1/dashboards/CreateDashboard_1712853070.rb index 57c5708d527f..646fe2b26e5f 100644 --- a/examples/v1/dashboards/CreateDashboard_1712853070.rb +++ b/examples/v1/dashboards/CreateDashboard_1712853070.rb @@ -1,6 +1,9 @@ # Create a new dashboard with bar_chart widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_173805046.rb b/examples/v1/dashboards/CreateDashboard_173805046.rb index df350c241d4b..5b72aacbd633 100644 --- a/examples/v1/dashboards/CreateDashboard_173805046.rb +++ b/examples/v1/dashboards/CreateDashboard_173805046.rb @@ -1,6 +1,9 @@ # Create a new dashboard with slo widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/dashboards/CreateDashboard_1738608750.rb b/examples/v1/dashboards/CreateDashboard_1738608750.rb index 6b8b7dc16644..b1e82ba76c84 100644 --- a/examples/v1/dashboards/CreateDashboard_1738608750.rb +++ b/examples/v1/dashboards/CreateDashboard_1738608750.rb @@ -1,6 +1,9 @@ # Create a new dashboard with free_text widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1751391372.rb b/examples/v1/dashboards/CreateDashboard_1751391372.rb index 14675658134e..ccfe1b1e0fa1 100644 --- a/examples/v1/dashboards/CreateDashboard_1751391372.rb +++ b/examples/v1/dashboards/CreateDashboard_1751391372.rb @@ -1,6 +1,9 @@ # Create a new dashboard with template variable type field returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_1754992756.rb b/examples/v1/dashboards/CreateDashboard_1754992756.rb index 2383e1079347..6b51156063a6 100644 --- a/examples/v1/dashboards/CreateDashboard_1754992756.rb +++ b/examples/v1/dashboards/CreateDashboard_1754992756.rb @@ -1,6 +1,9 @@ # Create a new dashboard with powerpack widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "powerpack" in the system diff --git a/examples/v1/dashboards/CreateDashboard_1877023900.rb b/examples/v1/dashboards/CreateDashboard_1877023900.rb index 6cefec750863..5511f8569b28 100644 --- a/examples/v1/dashboards/CreateDashboard_1877023900.rb +++ b/examples/v1/dashboards/CreateDashboard_1877023900.rb @@ -1,6 +1,9 @@ # Create a new dashboard with list_stream widget with a valid sort parameter ASC require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2029850837.rb b/examples/v1/dashboards/CreateDashboard_2029850837.rb index d7284c57a7fd..32dd9a0bcde3 100644 --- a/examples/v1/dashboards/CreateDashboard_2029850837.rb +++ b/examples/v1/dashboards/CreateDashboard_2029850837.rb @@ -1,6 +1,9 @@ # Create a new dashboard with log_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2034634967.rb b/examples/v1/dashboards/CreateDashboard_2034634967.rb index 02b0db460269..ccac5f415b13 100644 --- a/examples/v1/dashboards/CreateDashboard_2034634967.rb +++ b/examples/v1/dashboards/CreateDashboard_2034634967.rb @@ -1,6 +1,9 @@ # Create a new dashboard with servicemap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2049446128.rb b/examples/v1/dashboards/CreateDashboard_2049446128.rb index 80ad61d5ca9f..395e7cbfa6b7 100644 --- a/examples/v1/dashboards/CreateDashboard_2049446128.rb +++ b/examples/v1/dashboards/CreateDashboard_2049446128.rb @@ -1,6 +1,9 @@ # Create a new dashboard with point_plot widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2064651578.rb b/examples/v1/dashboards/CreateDashboard_2064651578.rb index 40d174f41034..5df45dc94645 100644 --- a/examples/v1/dashboards/CreateDashboard_2064651578.rb +++ b/examples/v1/dashboards/CreateDashboard_2064651578.rb @@ -1,6 +1,9 @@ # Create a new dashboard with team tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2104498738.rb b/examples/v1/dashboards/CreateDashboard_2104498738.rb index 5eadea7c1e16..e99da35c1261 100644 --- a/examples/v1/dashboards/CreateDashboard_2104498738.rb +++ b/examples/v1/dashboards/CreateDashboard_2104498738.rb @@ -1,6 +1,9 @@ # Create a new dashboard with formulas and functions scatterplot widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2252738813.rb b/examples/v1/dashboards/CreateDashboard_2252738813.rb index fb8dd6f7a855..bcea7edd1245 100644 --- a/examples/v1/dashboards/CreateDashboard_2252738813.rb +++ b/examples/v1/dashboards/CreateDashboard_2252738813.rb @@ -1,6 +1,9 @@ # Create a new dashboard with apm metrics widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2261785072.rb b/examples/v1/dashboards/CreateDashboard_2261785072.rb index 7e88d8e52743..43e0614d6c41 100644 --- a/examples/v1/dashboards/CreateDashboard_2261785072.rb +++ b/examples/v1/dashboards/CreateDashboard_2261785072.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a timeseries widget and an overlay request require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2278756614.rb b/examples/v1/dashboards/CreateDashboard_2278756614.rb index c18eb98db092..d9bb1e87e864 100644 --- a/examples/v1/dashboards/CreateDashboard_2278756614.rb +++ b/examples/v1/dashboards/CreateDashboard_2278756614.rb @@ -1,6 +1,9 @@ # Create a new dashboard with split graph widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2308247857.rb b/examples/v1/dashboards/CreateDashboard_2308247857.rb index f3c0f814a712..7491f673ad4f 100644 --- a/examples/v1/dashboards/CreateDashboard_2308247857.rb +++ b/examples/v1/dashboards/CreateDashboard_2308247857.rb @@ -1,6 +1,9 @@ # Create a new dashboard with alert_graph widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/dashboards/CreateDashboard_2316374332.rb b/examples/v1/dashboards/CreateDashboard_2316374332.rb index dd7aa350af1e..f5f40398e25a 100644 --- a/examples/v1/dashboards/CreateDashboard_2316374332.rb +++ b/examples/v1/dashboards/CreateDashboard_2316374332.rb @@ -1,6 +1,9 @@ # Create a new dashboard with alert_value widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/dashboards/CreateDashboard_2336428357.rb b/examples/v1/dashboards/CreateDashboard_2336428357.rb index 8c2e541b35f5..3f5e27a43750 100644 --- a/examples/v1/dashboards/CreateDashboard_2336428357.rb +++ b/examples/v1/dashboards/CreateDashboard_2336428357.rb @@ -1,6 +1,9 @@ # Create a new dashboard with query_table widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2338918735.rb b/examples/v1/dashboards/CreateDashboard_2338918735.rb index 40ddd08d5189..14f8b7ae1ccf 100644 --- a/examples/v1/dashboards/CreateDashboard_2338918735.rb +++ b/examples/v1/dashboards/CreateDashboard_2338918735.rb @@ -1,6 +1,9 @@ # Create a new dashboard with list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2342457693.rb b/examples/v1/dashboards/CreateDashboard_2342457693.rb index 4b0ac4b41950..333400825311 100644 --- a/examples/v1/dashboards/CreateDashboard_2342457693.rb +++ b/examples/v1/dashboards/CreateDashboard_2342457693.rb @@ -1,6 +1,9 @@ # Create a new dashboard with scatterplot widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2345541687.rb b/examples/v1/dashboards/CreateDashboard_2345541687.rb index a4de6759c042..a291340095cb 100644 --- a/examples/v1/dashboards/CreateDashboard_2345541687.rb +++ b/examples/v1/dashboards/CreateDashboard_2345541687.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a bar_chart widget with stacked type and no legend specified require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2349863258.rb b/examples/v1/dashboards/CreateDashboard_2349863258.rb index 2a79d2c1dcc4..c53ad91f2184 100644 --- a/examples/v1/dashboards/CreateDashboard_2349863258.rb +++ b/examples/v1/dashboards/CreateDashboard_2349863258.rb @@ -1,6 +1,9 @@ # Create a new dashboard with query_value widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2361531620.rb b/examples/v1/dashboards/CreateDashboard_2361531620.rb index 0e8196b6c8e5..70076dcb6d1e 100644 --- a/examples/v1/dashboards/CreateDashboard_2361531620.rb +++ b/examples/v1/dashboards/CreateDashboard_2361531620.rb @@ -1,6 +1,9 @@ # Create a new dashboard with list_stream widget with a valid sort parameter DESC require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2432046716.rb b/examples/v1/dashboards/CreateDashboard_2432046716.rb index 166561b198db..8338a2cb9682 100644 --- a/examples/v1/dashboards/CreateDashboard_2432046716.rb +++ b/examples/v1/dashboards/CreateDashboard_2432046716.rb @@ -1,6 +1,9 @@ # Create a new dashboard with event_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2490110261.rb b/examples/v1/dashboards/CreateDashboard_2490110261.rb index bdfcc82ab00e..5f49e2423094 100644 --- a/examples/v1/dashboards/CreateDashboard_2490110261.rb +++ b/examples/v1/dashboards/CreateDashboard_2490110261.rb @@ -1,6 +1,9 @@ # Create a new dashboard with an audit logs query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_252716965.rb b/examples/v1/dashboards/CreateDashboard_252716965.rb index abe7ef340488..cd8a00e69768 100644 --- a/examples/v1/dashboards/CreateDashboard_252716965.rb +++ b/examples/v1/dashboards/CreateDashboard_252716965.rb @@ -1,6 +1,9 @@ # Create a distribution widget using a histogram request containing a formulas and functions metrics query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2563642929.rb b/examples/v1/dashboards/CreateDashboard_2563642929.rb index 4eaa251bed9b..e0a4161f756a 100644 --- a/examples/v1/dashboards/CreateDashboard_2563642929.rb +++ b/examples/v1/dashboards/CreateDashboard_2563642929.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a toplist widget sorted by group require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_258152475.rb b/examples/v1/dashboards/CreateDashboard_258152475.rb index 87c12fc7270e..653479aec6be 100644 --- a/examples/v1/dashboards/CreateDashboard_258152475.rb +++ b/examples/v1/dashboards/CreateDashboard_258152475.rb @@ -1,6 +1,9 @@ # Create a new dashboard with sankey widget and network data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2607944105.rb b/examples/v1/dashboards/CreateDashboard_2607944105.rb index 456c8d789f7c..16f0c8d81978 100644 --- a/examples/v1/dashboards/CreateDashboard_2607944105.rb +++ b/examples/v1/dashboards/CreateDashboard_2607944105.rb @@ -1,6 +1,9 @@ # Create a new dashboard with check_status widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2610827685.rb b/examples/v1/dashboards/CreateDashboard_2610827685.rb index 90b567b7b29a..125f178686e7 100644 --- a/examples/v1/dashboards/CreateDashboard_2610827685.rb +++ b/examples/v1/dashboards/CreateDashboard_2610827685.rb @@ -1,6 +1,9 @@ # Create a new dashboard with run-workflow widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2617251399.rb b/examples/v1/dashboards/CreateDashboard_2617251399.rb index 65f4a25e1de7..fd2085c2857a 100644 --- a/examples/v1/dashboards/CreateDashboard_2617251399.rb +++ b/examples/v1/dashboards/CreateDashboard_2617251399.rb @@ -1,6 +1,9 @@ # Create a new dashboard with bar_chart widget sorted by group require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2618036642.rb b/examples/v1/dashboards/CreateDashboard_2618036642.rb index c949b222ddda..d81755f1a3ec 100644 --- a/examples/v1/dashboards/CreateDashboard_2618036642.rb +++ b/examples/v1/dashboards/CreateDashboard_2618036642.rb @@ -1,6 +1,9 @@ # Create a new dashboard with trace_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2634813877.rb b/examples/v1/dashboards/CreateDashboard_2634813877.rb index 342ebec91bfc..2f668f3efe6e 100644 --- a/examples/v1/dashboards/CreateDashboard_2634813877.rb +++ b/examples/v1/dashboards/CreateDashboard_2634813877.rb @@ -1,6 +1,9 @@ # Create a new dashboard with event_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2644712913.rb b/examples/v1/dashboards/CreateDashboard_2644712913.rb index 0351b224f472..91247a6780e5 100644 --- a/examples/v1/dashboards/CreateDashboard_2644712913.rb +++ b/examples/v1/dashboards/CreateDashboard_2644712913.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a query value widget using the percentile aggregator require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2652180930.rb b/examples/v1/dashboards/CreateDashboard_2652180930.rb index e22eb2ab6e43..07e5a22d4af3 100644 --- a/examples/v1/dashboards/CreateDashboard_2652180930.rb +++ b/examples/v1/dashboards/CreateDashboard_2652180930.rb @@ -1,6 +1,9 @@ # Create a new dashboard with topology_map widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2705593938.rb b/examples/v1/dashboards/CreateDashboard_2705593938.rb index 5b09f92e333b..404811d982a8 100644 --- a/examples/v1/dashboards/CreateDashboard_2705593938.rb +++ b/examples/v1/dashboards/CreateDashboard_2705593938.rb @@ -1,6 +1,9 @@ # Create a new dashboard with sunburst widget and metrics data require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2780500284.rb b/examples/v1/dashboards/CreateDashboard_2780500284.rb index 55a2f17e3860..103843299fe1 100644 --- a/examples/v1/dashboards/CreateDashboard_2780500284.rb +++ b/examples/v1/dashboards/CreateDashboard_2780500284.rb @@ -1,6 +1,9 @@ # Create a new dashboard with hostmap DDSQL widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2800096921.rb b/examples/v1/dashboards/CreateDashboard_2800096921.rb index efc6bee63dac..cbdb5ec578c6 100644 --- a/examples/v1/dashboards/CreateDashboard_2800096921.rb +++ b/examples/v1/dashboards/CreateDashboard_2800096921.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with ci_pipelines data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2815497946.rb b/examples/v1/dashboards/CreateDashboard_2815497946.rb index 3c40cb495aa5..1c0b61aecd2c 100644 --- a/examples/v1/dashboards/CreateDashboard_2815497946.rb +++ b/examples/v1/dashboards/CreateDashboard_2815497946.rb @@ -1,6 +1,9 @@ # Create a new dashboard with topology_map data_streams widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2823363212.rb b/examples/v1/dashboards/CreateDashboard_2823363212.rb index 0b0b2a5a4c74..aeca63b1cbda 100644 --- a/examples/v1/dashboards/CreateDashboard_2823363212.rb +++ b/examples/v1/dashboards/CreateDashboard_2823363212.rb @@ -1,6 +1,9 @@ # Create a new dashboard with heatmap widget with markers and num_buckets require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2843286292.rb b/examples/v1/dashboards/CreateDashboard_2843286292.rb index 45fc6871c636..81cea21c8ec2 100644 --- a/examples/v1/dashboards/CreateDashboard_2843286292.rb +++ b/examples/v1/dashboards/CreateDashboard_2843286292.rb @@ -1,6 +1,9 @@ # Create a new dashboard with logs_transaction_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2844071429.rb b/examples/v1/dashboards/CreateDashboard_2844071429.rb index 74452ac59a18..120fce32f740 100644 --- a/examples/v1/dashboards/CreateDashboard_2844071429.rb +++ b/examples/v1/dashboards/CreateDashboard_2844071429.rb @@ -1,6 +1,9 @@ # Create a new dashboard with sankey widget and RUM data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2850365602.rb b/examples/v1/dashboards/CreateDashboard_2850365602.rb index 9d225011c392..8e9b5e62e9af 100644 --- a/examples/v1/dashboards/CreateDashboard_2850365602.rb +++ b/examples/v1/dashboards/CreateDashboard_2850365602.rb @@ -1,6 +1,9 @@ # Create a new dashboard with template variable presets using values returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2882802132.rb b/examples/v1/dashboards/CreateDashboard_2882802132.rb index 8ba50ff3d3f6..834314a8865d 100644 --- a/examples/v1/dashboards/CreateDashboard_2882802132.rb +++ b/examples/v1/dashboards/CreateDashboard_2882802132.rb @@ -1,6 +1,9 @@ # Create a new dashboard with hostmap infra widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2917274132.rb b/examples/v1/dashboards/CreateDashboard_2917274132.rb index 10879a1da1c3..8527171d6056 100644 --- a/examples/v1/dashboards/CreateDashboard_2917274132.rb +++ b/examples/v1/dashboards/CreateDashboard_2917274132.rb @@ -1,6 +1,9 @@ # Create a new dashboard with manage_status widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_2921337351.rb b/examples/v1/dashboards/CreateDashboard_2921337351.rb index 93d3fc0b40b1..acbcbfd762e3 100644 --- a/examples/v1/dashboards/CreateDashboard_2921337351.rb +++ b/examples/v1/dashboards/CreateDashboard_2921337351.rb @@ -1,6 +1,9 @@ # Create a new dashboard with trace_service widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3066042014.rb b/examples/v1/dashboards/CreateDashboard_3066042014.rb index 460a22155288..ce50d3e78c20 100644 --- a/examples/v1/dashboards/CreateDashboard_3066042014.rb +++ b/examples/v1/dashboards/CreateDashboard_3066042014.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with new live span time format require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3117424216.rb b/examples/v1/dashboards/CreateDashboard_3117424216.rb index ecd2235aaf45..e5e1a3ae781a 100644 --- a/examples/v1/dashboards/CreateDashboard_3117424216.rb +++ b/examples/v1/dashboards/CreateDashboard_3117424216.rb @@ -1,6 +1,9 @@ # Create a new dashboard with logs_stream list_stream widget and storage parameter require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3195475781.rb b/examples/v1/dashboards/CreateDashboard_3195475781.rb index b8ef28e16aa3..aa333aaf4aba 100644 --- a/examples/v1/dashboards/CreateDashboard_3195475781.rb +++ b/examples/v1/dashboards/CreateDashboard_3195475781.rb @@ -1,6 +1,9 @@ # Create a new dashboard with ci_test_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3250131584.rb b/examples/v1/dashboards/CreateDashboard_3250131584.rb index b8e66d4a45d4..5cbdee66875a 100644 --- a/examples/v1/dashboards/CreateDashboard_3250131584.rb +++ b/examples/v1/dashboards/CreateDashboard_3250131584.rb @@ -1,6 +1,9 @@ # Create a new dashboard with event_timeline widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3298564989.rb b/examples/v1/dashboards/CreateDashboard_3298564989.rb index 227ccf009560..3c4e7f7ea5c9 100644 --- a/examples/v1/dashboards/CreateDashboard_3298564989.rb +++ b/examples/v1/dashboards/CreateDashboard_3298564989.rb @@ -1,6 +1,9 @@ # Create a new dashboard with llm_observability_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3451918078.rb b/examples/v1/dashboards/CreateDashboard_3451918078.rb index ea0470d56df3..51a37b623a42 100644 --- a/examples/v1/dashboards/CreateDashboard_3451918078.rb +++ b/examples/v1/dashboards/CreateDashboard_3451918078.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with new fixed span time format require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3513586382.rb b/examples/v1/dashboards/CreateDashboard_3513586382.rb index 4c580f2405e2..fd3b8a6bd920 100644 --- a/examples/v1/dashboards/CreateDashboard_3513586382.rb +++ b/examples/v1/dashboards/CreateDashboard_3513586382.rb @@ -1,6 +1,9 @@ # Create a geomap widget using an event_list request require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3520534424.rb b/examples/v1/dashboards/CreateDashboard_3520534424.rb index 93f4566cc4ed..cb94103981bf 100644 --- a/examples/v1/dashboards/CreateDashboard_3520534424.rb +++ b/examples/v1/dashboards/CreateDashboard_3520534424.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget with custom_unit require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3562282606.rb b/examples/v1/dashboards/CreateDashboard_3562282606.rb index ddff7a4c4e6f..aca740485295 100644 --- a/examples/v1/dashboards/CreateDashboard_3562282606.rb +++ b/examples/v1/dashboards/CreateDashboard_3562282606.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a change widget using formulas and functions slo query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/dashboards/CreateDashboard_3631423980.rb b/examples/v1/dashboards/CreateDashboard_3631423980.rb index 4f31f99a280b..27c999624b34 100644 --- a/examples/v1/dashboards/CreateDashboard_3631423980.rb +++ b/examples/v1/dashboards/CreateDashboard_3631423980.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget without order_by for backward compatibility require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3669695268.rb b/examples/v1/dashboards/CreateDashboard_3669695268.rb index 501f947f3515..9c60db227fb5 100644 --- a/examples/v1/dashboards/CreateDashboard_3669695268.rb +++ b/examples/v1/dashboards/CreateDashboard_3669695268.rb @@ -1,6 +1,9 @@ # Create a new dashboard with logs query table widget and storage parameter require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3685886950.rb b/examples/v1/dashboards/CreateDashboard_3685886950.rb index ca7f24de6978..28fe772b0ca5 100644 --- a/examples/v1/dashboards/CreateDashboard_3685886950.rb +++ b/examples/v1/dashboards/CreateDashboard_3685886950.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a timeseries widget using formulas and functions metrics query with native semantic_mode require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_373890042.rb b/examples/v1/dashboards/CreateDashboard_373890042.rb index 59e0103cf409..7b7e8f1b7ec4 100644 --- a/examples/v1/dashboards/CreateDashboard_373890042.rb +++ b/examples/v1/dashboards/CreateDashboard_373890042.rb @@ -1,6 +1,9 @@ # Create a new dashboard with sankey widget and product analytics data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3767278442.rb b/examples/v1/dashboards/CreateDashboard_3767278442.rb index 0cfb12e2c4cf..5725ade8974d 100644 --- a/examples/v1/dashboards/CreateDashboard_3767278442.rb +++ b/examples/v1/dashboards/CreateDashboard_3767278442.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a query_value widget containing a description require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3777304439.rb b/examples/v1/dashboards/CreateDashboard_3777304439.rb index d3416de60ba2..59b27ad8af4e 100644 --- a/examples/v1/dashboards/CreateDashboard_3777304439.rb +++ b/examples/v1/dashboards/CreateDashboard_3777304439.rb @@ -1,6 +1,9 @@ # Create a new dashboard with formula and function heatmap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3882428227.rb b/examples/v1/dashboards/CreateDashboard_3882428227.rb index ef82b86c587e..6b0c29b160b1 100644 --- a/examples/v1/dashboards/CreateDashboard_3882428227.rb +++ b/examples/v1/dashboards/CreateDashboard_3882428227.rb @@ -1,6 +1,9 @@ # Create a distribution widget using a histogram request containing a formulas and functions events query require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_3982498788.rb b/examples/v1/dashboards/CreateDashboard_3982498788.rb index a63b82184dcc..9180950c444d 100644 --- a/examples/v1/dashboards/CreateDashboard_3982498788.rb +++ b/examples/v1/dashboards/CreateDashboard_3982498788.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget containing style attributes require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_4018282928.rb b/examples/v1/dashboards/CreateDashboard_4018282928.rb index 4ddff41be70a..35cd74e602da 100644 --- a/examples/v1/dashboards/CreateDashboard_4018282928.rb +++ b/examples/v1/dashboards/CreateDashboard_4018282928.rb @@ -1,6 +1,9 @@ # Create a new dashboard with formulas and functions events query using flat group by fields require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_4026341408.rb b/examples/v1/dashboards/CreateDashboard_4026341408.rb index 3ec7b032304b..362491567aa6 100644 --- a/examples/v1/dashboards/CreateDashboard_4026341408.rb +++ b/examples/v1/dashboards/CreateDashboard_4026341408.rb @@ -1,6 +1,9 @@ # Create a new dashboard with apm_issue_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_4032568083.rb b/examples/v1/dashboards/CreateDashboard_4032568083.rb index b604bc2cfbd2..5e282588ff6a 100644 --- a/examples/v1/dashboards/CreateDashboard_4032568083.rb +++ b/examples/v1/dashboards/CreateDashboard_4032568083.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a live default_timeframe returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_4076476470.rb b/examples/v1/dashboards/CreateDashboard_4076476470.rb index 94327462f149..59e82c6ec789 100644 --- a/examples/v1/dashboards/CreateDashboard_4076476470.rb +++ b/examples/v1/dashboards/CreateDashboard_4076476470.rb @@ -1,6 +1,9 @@ # Create a new dashboard with rum_issue_stream list_stream widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_41622531.rb b/examples/v1/dashboards/CreateDashboard_41622531.rb index 516342d8d6c1..f288f95f5d0b 100644 --- a/examples/v1/dashboards/CreateDashboard_41622531.rb +++ b/examples/v1/dashboards/CreateDashboard_41622531.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget and formula style attributes require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_416487533.rb b/examples/v1/dashboards/CreateDashboard_416487533.rb index 3c61b6e41289..8ce047d2d4cb 100644 --- a/examples/v1/dashboards/CreateDashboard_416487533.rb +++ b/examples/v1/dashboards/CreateDashboard_416487533.rb @@ -1,6 +1,9 @@ # Create a new dashboard with timeseries widget using order_by tags require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_417992286.rb b/examples/v1/dashboards/CreateDashboard_417992286.rb index 319caad84b72..40f37e88de4a 100644 --- a/examples/v1/dashboards/CreateDashboard_417992286.rb +++ b/examples/v1/dashboards/CreateDashboard_417992286.rb @@ -1,6 +1,9 @@ # Create a new dashboard with note widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_4262729673.rb b/examples/v1/dashboards/CreateDashboard_4262729673.rb index ae8effc9cf2e..9cdfd2db5d6b 100644 --- a/examples/v1/dashboards/CreateDashboard_4262729673.rb +++ b/examples/v1/dashboards/CreateDashboard_4262729673.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with legacy live span time format require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_578885732.rb b/examples/v1/dashboards/CreateDashboard_578885732.rb index e231ff625ea4..1f649246df35 100644 --- a/examples/v1/dashboards/CreateDashboard_578885732.rb +++ b/examples/v1/dashboards/CreateDashboard_578885732.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a formulas and functions change widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_607525069.rb b/examples/v1/dashboards/CreateDashboard_607525069.rb index ad923bf24c6f..7ace0f6a3b3e 100644 --- a/examples/v1/dashboards/CreateDashboard_607525069.rb +++ b/examples/v1/dashboards/CreateDashboard_607525069.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with product_analytics data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_651038379.rb b/examples/v1/dashboards/CreateDashboard_651038379.rb index d4578950de40..ae958b2c73d0 100644 --- a/examples/v1/dashboards/CreateDashboard_651038379.rb +++ b/examples/v1/dashboards/CreateDashboard_651038379.rb @@ -1,6 +1,9 @@ # Create a new dashboard with image widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_732700533.rb b/examples/v1/dashboards/CreateDashboard_732700533.rb index d6f1d2ea9390..aa19b92a8c1a 100644 --- a/examples/v1/dashboards/CreateDashboard_732700533.rb +++ b/examples/v1/dashboards/CreateDashboard_732700533.rb @@ -1,6 +1,9 @@ # Create a new dashboard with formulas and functions events query using facet group by require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_765140092.rb b/examples/v1/dashboards/CreateDashboard_765140092.rb index fe580ba678f3..13d331d7ba7b 100644 --- a/examples/v1/dashboards/CreateDashboard_765140092.rb +++ b/examples/v1/dashboards/CreateDashboard_765140092.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a query value widget using timeseries background require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_794302680.rb b/examples/v1/dashboards/CreateDashboard_794302680.rb index f438466b3d6f..2903c069db94 100644 --- a/examples/v1/dashboards/CreateDashboard_794302680.rb +++ b/examples/v1/dashboards/CreateDashboard_794302680.rb @@ -1,6 +1,9 @@ # Create a new dashboard with query_table widget and text formatting require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_798168180.rb b/examples/v1/dashboards/CreateDashboard_798168180.rb index e01f8488e16f..d2aee6ea26d7 100644 --- a/examples/v1/dashboards/CreateDashboard_798168180.rb +++ b/examples/v1/dashboards/CreateDashboard_798168180.rb @@ -1,6 +1,9 @@ # Create a new dashboard with apm dependency stats widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_803346562.rb b/examples/v1/dashboards/CreateDashboard_803346562.rb index c8924e1c6b90..ccd9d6217d84 100644 --- a/examples/v1/dashboards/CreateDashboard_803346562.rb +++ b/examples/v1/dashboards/CreateDashboard_803346562.rb @@ -1,6 +1,9 @@ # Create a new dashboard with distribution widget and apm stats data require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_858397694.rb b/examples/v1/dashboards/CreateDashboard_858397694.rb index bb7afa847167..9b0e4532eeeb 100644 --- a/examples/v1/dashboards/CreateDashboard_858397694.rb +++ b/examples/v1/dashboards/CreateDashboard_858397694.rb @@ -1,6 +1,9 @@ # Create a new dashboard with template variable defaults returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_865807520.rb b/examples/v1/dashboards/CreateDashboard_865807520.rb index 46ef777316b7..ea486a0321ef 100644 --- a/examples/v1/dashboards/CreateDashboard_865807520.rb +++ b/examples/v1/dashboards/CreateDashboard_865807520.rb @@ -1,6 +1,9 @@ # Create a new dashboard with a timeseries widget using formulas and functions metrics query with combined semantic_mode require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_913313564.rb b/examples/v1/dashboards/CreateDashboard_913313564.rb index 12768c3d8ecb..7fb259082c41 100644 --- a/examples/v1/dashboards/CreateDashboard_913313564.rb +++ b/examples/v1/dashboards/CreateDashboard_913313564.rb @@ -1,6 +1,9 @@ # Create a new dashboard with iframe widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_915214113.rb b/examples/v1/dashboards/CreateDashboard_915214113.rb index 10e8293dbee8..ab20ec740960 100644 --- a/examples/v1/dashboards/CreateDashboard_915214113.rb +++ b/examples/v1/dashboards/CreateDashboard_915214113.rb @@ -1,6 +1,9 @@ # Create a new dashboard with geomap widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_927141680.rb b/examples/v1/dashboards/CreateDashboard_927141680.rb index fc972e51bff0..a198556537be 100644 --- a/examples/v1/dashboards/CreateDashboard_927141680.rb +++ b/examples/v1/dashboards/CreateDashboard_927141680.rb @@ -1,6 +1,9 @@ # Create a new dashboard with funnel widget require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_9836563.rb b/examples/v1/dashboards/CreateDashboard_9836563.rb index 18e2abc2060a..6d86018e222a 100644 --- a/examples/v1/dashboards/CreateDashboard_9836563.rb +++ b/examples/v1/dashboards/CreateDashboard_9836563.rb @@ -1,6 +1,9 @@ # Create a geomap widget with conditional formats and text formats require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreateDashboard_985012506.rb b/examples/v1/dashboards/CreateDashboard_985012506.rb index 38ee270fede0..d71c875a6348 100644 --- a/examples/v1/dashboards/CreateDashboard_985012506.rb +++ b/examples/v1/dashboards/CreateDashboard_985012506.rb @@ -1,6 +1,9 @@ # Create a new timeseries widget with incident_analytics data source require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::Dashboard.new({ diff --git a/examples/v1/dashboards/CreatePublicDashboard.rb b/examples/v1/dashboards/CreatePublicDashboard.rb index 2a4dfb47663c..b64324de879a 100644 --- a/examples/v1/dashboards/CreatePublicDashboard.rb +++ b/examples/v1/dashboards/CreatePublicDashboard.rb @@ -1,6 +1,9 @@ # Create a shared dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/CreatePublicDashboard_1668947073.rb b/examples/v1/dashboards/CreatePublicDashboard_1668947073.rb index e285d957a878..e30b6c5b75a0 100644 --- a/examples/v1/dashboards/CreatePublicDashboard_1668947073.rb +++ b/examples/v1/dashboards/CreatePublicDashboard_1668947073.rb @@ -1,6 +1,9 @@ # Create a shared dashboard with a group template variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/DeleteDashboard.rb b/examples/v1/dashboards/DeleteDashboard.rb index 73e6830278f4..2b1c32ffe8f6 100644 --- a/examples/v1/dashboards/DeleteDashboard.rb +++ b/examples/v1/dashboards/DeleteDashboard.rb @@ -1,6 +1,9 @@ # Delete a dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/DeleteDashboards.rb b/examples/v1/dashboards/DeleteDashboards.rb index 3aedff056ca9..45e3652927ba 100644 --- a/examples/v1/dashboards/DeleteDashboards.rb +++ b/examples/v1/dashboards/DeleteDashboards.rb @@ -1,6 +1,9 @@ # Delete dashboards returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/DeletePublicDashboard.rb b/examples/v1/dashboards/DeletePublicDashboard.rb index bd242cfd5aa2..9e6047eb9fd3 100644 --- a/examples/v1/dashboards/DeletePublicDashboard.rb +++ b/examples/v1/dashboards/DeletePublicDashboard.rb @@ -1,5 +1,8 @@ # Revoke a shared dashboard URL returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new p api_instance.delete_public_dashboard("token") diff --git a/examples/v1/dashboards/DeletePublicDashboardInvitation.rb b/examples/v1/dashboards/DeletePublicDashboardInvitation.rb index f7bd192f2293..4aa5b0e2a0c0 100644 --- a/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +++ b/examples/v1/dashboards/DeletePublicDashboardInvitation.rb @@ -1,6 +1,9 @@ # Revoke shared dashboard invitations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::SharedDashboardInvites.new({ diff --git a/examples/v1/dashboards/GetDashboard.rb b/examples/v1/dashboards/GetDashboard.rb index c0ed5ee60cd2..603ddc34c07f 100644 --- a/examples/v1/dashboards/GetDashboard.rb +++ b/examples/v1/dashboards/GetDashboard.rb @@ -1,6 +1,9 @@ # Get a dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/GetDashboard_4262333854.rb b/examples/v1/dashboards/GetDashboard_4262333854.rb index 098a4aa6c827..4a9d5432fc98 100644 --- a/examples/v1/dashboards/GetDashboard_4262333854.rb +++ b/examples/v1/dashboards/GetDashboard_4262333854.rb @@ -1,6 +1,9 @@ # Get a dashboard returns 'author_name' require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/GetPublicDashboard.rb b/examples/v1/dashboards/GetPublicDashboard.rb index 9d3d3788c202..2ec0f1a52585 100644 --- a/examples/v1/dashboards/GetPublicDashboard.rb +++ b/examples/v1/dashboards/GetPublicDashboard.rb @@ -1,6 +1,9 @@ # Get a shared dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "shared_dashboard" in the system diff --git a/examples/v1/dashboards/GetPublicDashboardInvitations.rb b/examples/v1/dashboards/GetPublicDashboardInvitations.rb index 6d9e03dd8ab2..853041be5390 100644 --- a/examples/v1/dashboards/GetPublicDashboardInvitations.rb +++ b/examples/v1/dashboards/GetPublicDashboardInvitations.rb @@ -1,6 +1,9 @@ # Get all invitations for a shared dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "shared_dashboard" in the system diff --git a/examples/v1/dashboards/ListDashboards.rb b/examples/v1/dashboards/ListDashboards.rb index 2f638e3216f8..dd194d7fa9c3 100644 --- a/examples/v1/dashboards/ListDashboards.rb +++ b/examples/v1/dashboards/ListDashboards.rb @@ -1,6 +1,9 @@ # Get all dashboards returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new opts = { filter_shared: false, diff --git a/examples/v1/dashboards/ListDashboards_1062671515.rb b/examples/v1/dashboards/ListDashboards_1062671515.rb index b4f1dfcb3ab6..6b8a569e5445 100644 --- a/examples/v1/dashboards/ListDashboards_1062671515.rb +++ b/examples/v1/dashboards/ListDashboards_1062671515.rb @@ -1,6 +1,9 @@ # Get all dashboards returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new opts = { count: 2, diff --git a/examples/v1/dashboards/ListDashboards_1773932563.rb b/examples/v1/dashboards/ListDashboards_1773932563.rb index 0271506b93a9..6106d1b8b8a5 100644 --- a/examples/v1/dashboards/ListDashboards_1773932563.rb +++ b/examples/v1/dashboards/ListDashboards_1773932563.rb @@ -1,6 +1,9 @@ # Get deleted dashboards returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new opts = { filter_deleted: true, diff --git a/examples/v1/dashboards/RestoreDashboards.rb b/examples/v1/dashboards/RestoreDashboards.rb index dc2bee6635f6..c52e09b4c896 100644 --- a/examples/v1/dashboards/RestoreDashboards.rb +++ b/examples/v1/dashboards/RestoreDashboards.rb @@ -1,6 +1,9 @@ # Restore deleted dashboards returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/SendPublicDashboardInvitation.rb b/examples/v1/dashboards/SendPublicDashboardInvitation.rb index a695f2e0d78a..e2040b923c9b 100644 --- a/examples/v1/dashboards/SendPublicDashboardInvitation.rb +++ b/examples/v1/dashboards/SendPublicDashboardInvitation.rb @@ -1,6 +1,9 @@ # Send shared dashboard invitation email returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new body = DatadogAPIClient::V1::SharedDashboardInvites.new({ diff --git a/examples/v1/dashboards/SendPublicDashboardInvitation_3435926116.rb b/examples/v1/dashboards/SendPublicDashboardInvitation_3435926116.rb index 993ffab72c9a..57f2ebc0fe09 100644 --- a/examples/v1/dashboards/SendPublicDashboardInvitation_3435926116.rb +++ b/examples/v1/dashboards/SendPublicDashboardInvitation_3435926116.rb @@ -1,6 +1,9 @@ # Send shared dashboard invitation email returns OK require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "shared_dashboard" in the system diff --git a/examples/v1/dashboards/UpdateDashboard.rb b/examples/v1/dashboards/UpdateDashboard.rb index d77f0caf25b2..1894e87dfdcc 100644 --- a/examples/v1/dashboards/UpdateDashboard.rb +++ b/examples/v1/dashboards/UpdateDashboard.rb @@ -1,6 +1,9 @@ # Update a dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/UpdateDashboard_3454865944.rb b/examples/v1/dashboards/UpdateDashboard_3454865944.rb index 81a8798d9855..3efccc8c32fa 100644 --- a/examples/v1/dashboards/UpdateDashboard_3454865944.rb +++ b/examples/v1/dashboards/UpdateDashboard_3454865944.rb @@ -1,6 +1,9 @@ # Update a dashboard with tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "dashboard" in the system diff --git a/examples/v1/dashboards/UpdatePublicDashboard.rb b/examples/v1/dashboards/UpdatePublicDashboard.rb index 02edcc2fbd54..51ce14f22788 100644 --- a/examples/v1/dashboards/UpdatePublicDashboard.rb +++ b/examples/v1/dashboards/UpdatePublicDashboard.rb @@ -1,6 +1,9 @@ # Update a shared dashboard returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "shared_dashboard" in the system diff --git a/examples/v1/dashboards/UpdatePublicDashboard_1708268778.rb b/examples/v1/dashboards/UpdatePublicDashboard_1708268778.rb index 4ca445374a1a..09eeb946eee9 100644 --- a/examples/v1/dashboards/UpdatePublicDashboard_1708268778.rb +++ b/examples/v1/dashboards/UpdatePublicDashboard_1708268778.rb @@ -1,6 +1,9 @@ # Update a shared dashboard with selectable_template_vars returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DashboardsAPI.new # there is a valid "shared_dashboard" in the system diff --git a/examples/v1/downtimes/CancelDowntime.rb b/examples/v1/downtimes/CancelDowntime.rb index f87e90315828..7bb11c9ea694 100644 --- a/examples/v1/downtimes/CancelDowntime.rb +++ b/examples/v1/downtimes/CancelDowntime.rb @@ -1,6 +1,9 @@ # Cancel a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new # there is a valid "downtime" in the system diff --git a/examples/v1/downtimes/CancelDowntimesByScope.rb b/examples/v1/downtimes/CancelDowntimesByScope.rb index 1a6d10d406a6..ff29712a00ec 100644 --- a/examples/v1/downtimes/CancelDowntimesByScope.rb +++ b/examples/v1/downtimes/CancelDowntimesByScope.rb @@ -1,6 +1,9 @@ # Cancel downtimes by scope returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new # there is a valid "downtime" in the system diff --git a/examples/v1/downtimes/CreateDowntime.rb b/examples/v1/downtimes/CreateDowntime.rb index d61e02d33e59..52be54eead15 100644 --- a/examples/v1/downtimes/CreateDowntime.rb +++ b/examples/v1/downtimes/CreateDowntime.rb @@ -1,6 +1,9 @@ # Schedule a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new body = DatadogAPIClient::V1::Downtime.new({ diff --git a/examples/v1/downtimes/CreateDowntime_1393233946.rb b/examples/v1/downtimes/CreateDowntime_1393233946.rb index 24b152c27dc9..401fef0d46f7 100644 --- a/examples/v1/downtimes/CreateDowntime_1393233946.rb +++ b/examples/v1/downtimes/CreateDowntime_1393233946.rb @@ -1,6 +1,9 @@ # Schedule a downtime with until occurrences require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new body = DatadogAPIClient::V1::Downtime.new({ diff --git a/examples/v1/downtimes/CreateDowntime_2908359488.rb b/examples/v1/downtimes/CreateDowntime_2908359488.rb index ccd67b36a488..9bae588c7079 100644 --- a/examples/v1/downtimes/CreateDowntime_2908359488.rb +++ b/examples/v1/downtimes/CreateDowntime_2908359488.rb @@ -1,6 +1,9 @@ # Schedule a downtime until date require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new body = DatadogAPIClient::V1::Downtime.new({ diff --git a/examples/v1/downtimes/CreateDowntime_3059354445.rb b/examples/v1/downtimes/CreateDowntime_3059354445.rb index 27d0fe6cf21b..aefc133da1b4 100644 --- a/examples/v1/downtimes/CreateDowntime_3059354445.rb +++ b/examples/v1/downtimes/CreateDowntime_3059354445.rb @@ -1,6 +1,9 @@ # Schedule a downtime once a year require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new body = DatadogAPIClient::V1::Downtime.new({ diff --git a/examples/v1/downtimes/CreateDowntime_3355644446.rb b/examples/v1/downtimes/CreateDowntime_3355644446.rb index 88f70cb40f8f..196686956d27 100644 --- a/examples/v1/downtimes/CreateDowntime_3355644446.rb +++ b/examples/v1/downtimes/CreateDowntime_3355644446.rb @@ -1,6 +1,9 @@ # Schedule a monitor downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/downtimes/GetDowntime.rb b/examples/v1/downtimes/GetDowntime.rb index 3e0d78f12741..ccdf21939948 100644 --- a/examples/v1/downtimes/GetDowntime.rb +++ b/examples/v1/downtimes/GetDowntime.rb @@ -1,6 +1,9 @@ # Get a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new # there is a valid "downtime" in the system diff --git a/examples/v1/downtimes/ListDowntimes.rb b/examples/v1/downtimes/ListDowntimes.rb index 8884c4ce1740..69805eb92bc1 100644 --- a/examples/v1/downtimes/ListDowntimes.rb +++ b/examples/v1/downtimes/ListDowntimes.rb @@ -1,6 +1,9 @@ # Get all downtimes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new opts = { with_creator: true, diff --git a/examples/v1/downtimes/ListMonitorDowntimes.rb b/examples/v1/downtimes/ListMonitorDowntimes.rb index dc0f86873d01..f39b08068976 100644 --- a/examples/v1/downtimes/ListMonitorDowntimes.rb +++ b/examples/v1/downtimes/ListMonitorDowntimes.rb @@ -1,5 +1,8 @@ # Get active downtimes for a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new p api_instance.list_monitor_downtimes(9223372036854775807) diff --git a/examples/v1/downtimes/UpdateDowntime.rb b/examples/v1/downtimes/UpdateDowntime.rb index af682f877bbd..b87231667188 100644 --- a/examples/v1/downtimes/UpdateDowntime.rb +++ b/examples/v1/downtimes/UpdateDowntime.rb @@ -1,6 +1,9 @@ # Update a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::DowntimesAPI.new # there is a valid "downtime" in the system diff --git a/examples/v1/events/GetEvent.rb b/examples/v1/events/GetEvent.rb index be8b5aa70e07..d26dd4f8c649 100644 --- a/examples/v1/events/GetEvent.rb +++ b/examples/v1/events/GetEvent.rb @@ -1,5 +1,8 @@ # Get an event returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::EventsAPI.new p api_instance.get_event(9223372036854775807) diff --git a/examples/v1/events/ListEvents.rb b/examples/v1/events/ListEvents.rb index 85d79bbed9a1..e0ebfc0d2fc1 100644 --- a/examples/v1/events/ListEvents.rb +++ b/examples/v1/events/ListEvents.rb @@ -1,5 +1,8 @@ # Get a list of events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::EventsAPI.new p api_instance.list_events(9223372036854775807, 9223372036854775807) diff --git a/examples/v1/gcp-integration/CreateGCPIntegration.rb b/examples/v1/gcp-integration/CreateGCPIntegration.rb index a6a3cf9d110b..fb4661992fa5 100644 --- a/examples/v1/gcp-integration/CreateGCPIntegration.rb +++ b/examples/v1/gcp-integration/CreateGCPIntegration.rb @@ -1,6 +1,9 @@ # Create a GCP integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new body = DatadogAPIClient::V1::GCPAccount.new({ diff --git a/examples/v1/gcp-integration/DeleteGCPIntegration.rb b/examples/v1/gcp-integration/DeleteGCPIntegration.rb index 3f4da89a32fc..89e2a5bed48e 100644 --- a/examples/v1/gcp-integration/DeleteGCPIntegration.rb +++ b/examples/v1/gcp-integration/DeleteGCPIntegration.rb @@ -1,6 +1,9 @@ # Delete a GCP integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new body = DatadogAPIClient::V1::GCPAccount.new({ diff --git a/examples/v1/gcp-integration/ListGCPIntegration.rb b/examples/v1/gcp-integration/ListGCPIntegration.rb index 2567726df533..d5333e748b7e 100644 --- a/examples/v1/gcp-integration/ListGCPIntegration.rb +++ b/examples/v1/gcp-integration/ListGCPIntegration.rb @@ -1,5 +1,8 @@ # List all GCP integrations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new p api_instance.list_gcp_integration() diff --git a/examples/v1/gcp-integration/UpdateGCPIntegration.rb b/examples/v1/gcp-integration/UpdateGCPIntegration.rb index a1f8a1acdd91..abdbc0ffd59d 100644 --- a/examples/v1/gcp-integration/UpdateGCPIntegration.rb +++ b/examples/v1/gcp-integration/UpdateGCPIntegration.rb @@ -1,6 +1,9 @@ # Update a GCP integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new body = DatadogAPIClient::V1::GCPAccount.new({ diff --git a/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb b/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb index 8f72893bde0d..ab11d335bbbf 100644 --- a/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb +++ b/examples/v1/gcp-integration/UpdateGCPIntegration_3544259255.rb @@ -1,6 +1,9 @@ # Update a GCP integration cloud run revision filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::GCPIntegrationAPI.new body = DatadogAPIClient::V1::GCPAccount.new({ diff --git a/examples/v1/hosts/GetHostTotals.rb b/examples/v1/hosts/GetHostTotals.rb index 638ec77b8589..95ed9ade6e0f 100644 --- a/examples/v1/hosts/GetHostTotals.rb +++ b/examples/v1/hosts/GetHostTotals.rb @@ -1,5 +1,8 @@ # Get the total number of active hosts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new p api_instance.get_host_totals() diff --git a/examples/v1/hosts/ListHosts.rb b/examples/v1/hosts/ListHosts.rb index b6fd71b0c9f8..84e7d9a6aa3d 100644 --- a/examples/v1/hosts/ListHosts.rb +++ b/examples/v1/hosts/ListHosts.rb @@ -1,6 +1,9 @@ # Get all hosts for your organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new opts = { filter: "env:ci", diff --git a/examples/v1/hosts/ListHosts_2975406675.rb b/examples/v1/hosts/ListHosts_2975406675.rb index 198e48780fb7..ebad9d927bb4 100644 --- a/examples/v1/hosts/ListHosts_2975406675.rb +++ b/examples/v1/hosts/ListHosts_2975406675.rb @@ -1,6 +1,9 @@ # Get all hosts with metadata for your organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new opts = { include_hosts_metadata: true, diff --git a/examples/v1/hosts/ListHosts_347346033.rb b/examples/v1/hosts/ListHosts_347346033.rb index 7a968ba69372..b548239afa1d 100644 --- a/examples/v1/hosts/ListHosts_347346033.rb +++ b/examples/v1/hosts/ListHosts_347346033.rb @@ -1,6 +1,9 @@ # Get all hosts with metadata deserializes successfully require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new opts = { include_hosts_metadata: true, diff --git a/examples/v1/hosts/MuteHost.rb b/examples/v1/hosts/MuteHost.rb index b753ae679b4f..d122ced136bf 100644 --- a/examples/v1/hosts/MuteHost.rb +++ b/examples/v1/hosts/MuteHost.rb @@ -1,6 +1,9 @@ # Mute a host returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new body = DatadogAPIClient::V1::HostMuteSettings.new({ diff --git a/examples/v1/hosts/UnmuteHost.rb b/examples/v1/hosts/UnmuteHost.rb index 8f2a4c7e625b..ae401fa5c0e5 100644 --- a/examples/v1/hosts/UnmuteHost.rb +++ b/examples/v1/hosts/UnmuteHost.rb @@ -1,5 +1,8 @@ # Unmute a host returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::HostsAPI.new p api_instance.unmute_host("host_name") diff --git a/examples/v1/key-management/CreateAPIKey.rb b/examples/v1/key-management/CreateAPIKey.rb index 5540d13a9b78..ad15d0f346d7 100644 --- a/examples/v1/key-management/CreateAPIKey.rb +++ b/examples/v1/key-management/CreateAPIKey.rb @@ -1,6 +1,9 @@ # Create an API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new body = DatadogAPIClient::V1::ApiKey.new({ diff --git a/examples/v1/key-management/CreateApplicationKey.rb b/examples/v1/key-management/CreateApplicationKey.rb index 5b8dae3a12e9..9132ab968bf9 100644 --- a/examples/v1/key-management/CreateApplicationKey.rb +++ b/examples/v1/key-management/CreateApplicationKey.rb @@ -1,6 +1,9 @@ # Create an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new body = DatadogAPIClient::V1::ApplicationKey.new({ diff --git a/examples/v1/key-management/DeleteAPIKey.rb b/examples/v1/key-management/DeleteAPIKey.rb index 2590224ec37d..86d8ad6df6b2 100644 --- a/examples/v1/key-management/DeleteAPIKey.rb +++ b/examples/v1/key-management/DeleteAPIKey.rb @@ -1,5 +1,8 @@ # Delete an API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.delete_api_key("key") diff --git a/examples/v1/key-management/DeleteApplicationKey.rb b/examples/v1/key-management/DeleteApplicationKey.rb index 35cbedc6ebef..ca7156abbed2 100644 --- a/examples/v1/key-management/DeleteApplicationKey.rb +++ b/examples/v1/key-management/DeleteApplicationKey.rb @@ -1,5 +1,8 @@ # Delete an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.delete_application_key("key") diff --git a/examples/v1/key-management/GetAPIKey.rb b/examples/v1/key-management/GetAPIKey.rb index a826a2be6163..0fa8b501f02a 100644 --- a/examples/v1/key-management/GetAPIKey.rb +++ b/examples/v1/key-management/GetAPIKey.rb @@ -1,5 +1,8 @@ # Get API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.get_api_key("key") diff --git a/examples/v1/key-management/GetApplicationKey.rb b/examples/v1/key-management/GetApplicationKey.rb index ac0e7a784dce..e4cbef1b9ab9 100644 --- a/examples/v1/key-management/GetApplicationKey.rb +++ b/examples/v1/key-management/GetApplicationKey.rb @@ -1,5 +1,8 @@ # Get an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.get_application_key("key") diff --git a/examples/v1/key-management/ListAPIKeys.rb b/examples/v1/key-management/ListAPIKeys.rb index bdd2dbcb519e..9db5105face9 100644 --- a/examples/v1/key-management/ListAPIKeys.rb +++ b/examples/v1/key-management/ListAPIKeys.rb @@ -1,5 +1,8 @@ # Get all API keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.list_api_keys() diff --git a/examples/v1/key-management/ListApplicationKeys.rb b/examples/v1/key-management/ListApplicationKeys.rb index 9cb039d19368..0dbd2aa5fa20 100644 --- a/examples/v1/key-management/ListApplicationKeys.rb +++ b/examples/v1/key-management/ListApplicationKeys.rb @@ -1,5 +1,8 @@ # Get all application keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new p api_instance.list_application_keys() diff --git a/examples/v1/key-management/UpdateAPIKey.rb b/examples/v1/key-management/UpdateAPIKey.rb index 7a97b2f9f960..78a769750ef4 100644 --- a/examples/v1/key-management/UpdateAPIKey.rb +++ b/examples/v1/key-management/UpdateAPIKey.rb @@ -1,6 +1,9 @@ # Edit an API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new body = DatadogAPIClient::V1::ApiKey.new({ diff --git a/examples/v1/key-management/UpdateApplicationKey.rb b/examples/v1/key-management/UpdateApplicationKey.rb index d9972344a20e..f391f9f50f56 100644 --- a/examples/v1/key-management/UpdateApplicationKey.rb +++ b/examples/v1/key-management/UpdateApplicationKey.rb @@ -1,6 +1,9 @@ # Edit an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::KeyManagementAPI.new body = DatadogAPIClient::V1::ApplicationKey.new({ diff --git a/examples/v1/logs-indexes/CreateLogsIndex.rb b/examples/v1/logs-indexes/CreateLogsIndex.rb index 78b4d22c20de..915ad4883b98 100644 --- a/examples/v1/logs-indexes/CreateLogsIndex.rb +++ b/examples/v1/logs-indexes/CreateLogsIndex.rb @@ -1,6 +1,9 @@ # Create an index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new body = DatadogAPIClient::V1::LogsIndex.new({ diff --git a/examples/v1/logs-indexes/DeleteLogsIndex.rb b/examples/v1/logs-indexes/DeleteLogsIndex.rb index ef0db6f29900..6f29c2100d6a 100644 --- a/examples/v1/logs-indexes/DeleteLogsIndex.rb +++ b/examples/v1/logs-indexes/DeleteLogsIndex.rb @@ -1,5 +1,8 @@ # Delete an index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new p api_instance.delete_logs_index("name") diff --git a/examples/v1/logs-indexes/GetLogsIndex.rb b/examples/v1/logs-indexes/GetLogsIndex.rb index 58833e0b8a01..02bd0e1ebde4 100644 --- a/examples/v1/logs-indexes/GetLogsIndex.rb +++ b/examples/v1/logs-indexes/GetLogsIndex.rb @@ -1,5 +1,8 @@ # Get an index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new p api_instance.get_logs_index("name") diff --git a/examples/v1/logs-indexes/GetLogsIndexOrder.rb b/examples/v1/logs-indexes/GetLogsIndexOrder.rb index eca67cb5ceb1..bb70249a7d1d 100644 --- a/examples/v1/logs-indexes/GetLogsIndexOrder.rb +++ b/examples/v1/logs-indexes/GetLogsIndexOrder.rb @@ -1,5 +1,8 @@ # Get indexes order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new p api_instance.get_logs_index_order() diff --git a/examples/v1/logs-indexes/ListLogIndexes.rb b/examples/v1/logs-indexes/ListLogIndexes.rb index c9c3ce125e99..98e01b7e0299 100644 --- a/examples/v1/logs-indexes/ListLogIndexes.rb +++ b/examples/v1/logs-indexes/ListLogIndexes.rb @@ -1,5 +1,8 @@ # Get all indexes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new p api_instance.list_log_indexes() diff --git a/examples/v1/logs-indexes/UpdateLogsIndex.rb b/examples/v1/logs-indexes/UpdateLogsIndex.rb index 20af8ae09f13..a26b48b13206 100644 --- a/examples/v1/logs-indexes/UpdateLogsIndex.rb +++ b/examples/v1/logs-indexes/UpdateLogsIndex.rb @@ -1,6 +1,9 @@ # Update an index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({ diff --git a/examples/v1/logs-indexes/UpdateLogsIndexOrder.rb b/examples/v1/logs-indexes/UpdateLogsIndexOrder.rb index b5a5d0e8f95b..557f6159eada 100644 --- a/examples/v1/logs-indexes/UpdateLogsIndexOrder.rb +++ b/examples/v1/logs-indexes/UpdateLogsIndexOrder.rb @@ -1,6 +1,9 @@ # Update indexes order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsIndexesAPI.new body = DatadogAPIClient::V1::LogsIndexesOrder.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline.rb b/examples/v1/logs-pipelines/CreateLogsPipeline.rb index 78104004e3d2..47b144f97444 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline.rb @@ -1,6 +1,9 @@ # Create a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb index 7e0ca6cabaf0..c749702f048e 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_104735144.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Map Processor with preserve_source false returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb index bf1526aaa6d2..c7a1da101831 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_1185292896.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Map Processor using category sub-processor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_1248402480.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_1248402480.rb index 29f3b86eaf5c..3b12a1e37eeb 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_1248402480.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_1248402480.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Append Operation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_1267211320.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_1267211320.rb index 6020d7c4b302..bb611ebbac1e 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_1267211320.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_1267211320.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Select Operation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_1271012410.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_1271012410.rb index 04f44fe78de0..05ac6ec3d5a3 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_1271012410.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_1271012410.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Length Operation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb index 39bb20cc93aa..cd607a4b6350 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_1745625064.rb @@ -1,6 +1,9 @@ # Create a pipeline with Schema Processor and preserve_source true returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb index 3db230ee4e7f..a75f7b5ce3d4 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_2256674867.rb @@ -1,6 +1,9 @@ # Create a pipeline with Schema Processor and preserve_source false returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb index b62bd4eba7d9..4b16bf458fbc 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_2402034476.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Map Processor using arithmetic sub-processor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2595757342.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_2595757342.rb index 40aa18385415..e39103be873f 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2595757342.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_2595757342.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Key Value Operation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2599033345.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_2599033345.rb index 2275aec1a743..a6a4289e5019 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2599033345.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_2599033345.rb @@ -1,6 +1,9 @@ # Create a pipeline with nested pipeline processor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.rb index 91e44eefc50c..43d7edd93e58 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_2707101123.rb @@ -1,6 +1,9 @@ # Create a pipeline with Span Id Remapper returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_3314493032.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_3314493032.rb index 1a03aab4ab78..cefeb2106083 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_3314493032.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_3314493032.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Append Operation with preserve_source true returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_3336967838.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_3336967838.rb index 21e28766504d..cddd59d6a47e 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_3336967838.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_3336967838.rb @@ -1,6 +1,9 @@ # Create a pipeline with Decoder Processor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_3934594739.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_3934594739.rb index 45eab497c30c..75c6a6e9e942 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_3934594739.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_3934594739.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Append Operation with preserve_source false returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb index 8a2240bf0b8a..3d0b153d1c01 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_3996915493.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Map Processor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_4041812833.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_4041812833.rb index 906d7cbd0399..9528fcfb85e5 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_4041812833.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_4041812833.rb @@ -1,6 +1,9 @@ # Create a pipeline with Array Processor Key Value Operation with target and override_on_conflict returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb b/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb index 89fa6fefb4ac..326af94912e3 100644 --- a/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb +++ b/examples/v1/logs-pipelines/CreateLogsPipeline_501419705.rb @@ -1,6 +1,9 @@ # Create a pipeline with schema processor require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/DeleteLogsPipeline.rb b/examples/v1/logs-pipelines/DeleteLogsPipeline.rb index 426fac366435..45668f9c521a 100644 --- a/examples/v1/logs-pipelines/DeleteLogsPipeline.rb +++ b/examples/v1/logs-pipelines/DeleteLogsPipeline.rb @@ -1,5 +1,8 @@ # Delete a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new p api_instance.delete_logs_pipeline("pipeline_id") diff --git a/examples/v1/logs-pipelines/GetLogsPipeline.rb b/examples/v1/logs-pipelines/GetLogsPipeline.rb index 9e87a815c81f..36ad22ec757d 100644 --- a/examples/v1/logs-pipelines/GetLogsPipeline.rb +++ b/examples/v1/logs-pipelines/GetLogsPipeline.rb @@ -1,5 +1,8 @@ # Get a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new p api_instance.get_logs_pipeline("pipeline_id") diff --git a/examples/v1/logs-pipelines/GetLogsPipelineOrder.rb b/examples/v1/logs-pipelines/GetLogsPipelineOrder.rb index 6c28309a9a83..40cfef60a956 100644 --- a/examples/v1/logs-pipelines/GetLogsPipelineOrder.rb +++ b/examples/v1/logs-pipelines/GetLogsPipelineOrder.rb @@ -1,5 +1,8 @@ # Get pipeline order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new p api_instance.get_logs_pipeline_order() diff --git a/examples/v1/logs-pipelines/ListLogsPipelines.rb b/examples/v1/logs-pipelines/ListLogsPipelines.rb index d82496254ce3..2dce95ef6d50 100644 --- a/examples/v1/logs-pipelines/ListLogsPipelines.rb +++ b/examples/v1/logs-pipelines/ListLogsPipelines.rb @@ -1,5 +1,8 @@ # Get all pipelines returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new p api_instance.list_logs_pipelines() diff --git a/examples/v1/logs-pipelines/UpdateLogsPipeline.rb b/examples/v1/logs-pipelines/UpdateLogsPipeline.rb index 48a5147133f4..13dd8643a8d5 100644 --- a/examples/v1/logs-pipelines/UpdateLogsPipeline.rb +++ b/examples/v1/logs-pipelines/UpdateLogsPipeline.rb @@ -1,6 +1,9 @@ # Update a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipeline.new({ diff --git a/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.rb b/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.rb index 7a397000490f..a4d22edebe09 100644 --- a/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.rb +++ b/examples/v1/logs-pipelines/UpdateLogsPipelineOrder.rb @@ -1,6 +1,9 @@ # Update pipeline order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsPipelinesAPI.new body = DatadogAPIClient::V1::LogsPipelinesOrder.new({ diff --git a/examples/v1/logs/ListLogs.rb b/examples/v1/logs/ListLogs.rb index 672ed7ede52b..ccbd107f0c09 100644 --- a/examples/v1/logs/ListLogs.rb +++ b/examples/v1/logs/ListLogs.rb @@ -1,6 +1,9 @@ # Search logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsAPI.new body = DatadogAPIClient::V1::LogsListRequest.new({ diff --git a/examples/v1/logs/ListLogs_235998668.rb b/examples/v1/logs/ListLogs_235998668.rb index 0f0c1a7df78b..f0560997b7c5 100644 --- a/examples/v1/logs/ListLogs_235998668.rb +++ b/examples/v1/logs/ListLogs_235998668.rb @@ -1,6 +1,9 @@ # Search test logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::LogsAPI.new body = DatadogAPIClient::V1::LogsListRequest.new({ diff --git a/examples/v1/metrics/GetMetricMetadata.rb b/examples/v1/metrics/GetMetricMetadata.rb index b16e253b876b..6a3f65f6db8b 100644 --- a/examples/v1/metrics/GetMetricMetadata.rb +++ b/examples/v1/metrics/GetMetricMetadata.rb @@ -1,5 +1,8 @@ # Get metric metadata returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MetricsAPI.new p api_instance.get_metric_metadata("metric_name") diff --git a/examples/v1/metrics/ListActiveMetrics.rb b/examples/v1/metrics/ListActiveMetrics.rb index fac8ddcea0af..341c480d192e 100644 --- a/examples/v1/metrics/ListActiveMetrics.rb +++ b/examples/v1/metrics/ListActiveMetrics.rb @@ -1,5 +1,8 @@ # Get active metrics list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MetricsAPI.new p api_instance.list_active_metrics(9223372036854775807) diff --git a/examples/v1/metrics/ListMetrics.rb b/examples/v1/metrics/ListMetrics.rb index bf812f7599ee..c4d6efabe16e 100644 --- a/examples/v1/metrics/ListMetrics.rb +++ b/examples/v1/metrics/ListMetrics.rb @@ -1,5 +1,8 @@ # Search metrics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MetricsAPI.new p api_instance.list_metrics("q") diff --git a/examples/v1/metrics/QueryMetrics.rb b/examples/v1/metrics/QueryMetrics.rb index 4974d3e56bd6..22d5ca2f3307 100644 --- a/examples/v1/metrics/QueryMetrics.rb +++ b/examples/v1/metrics/QueryMetrics.rb @@ -1,5 +1,8 @@ # Query timeseries points returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MetricsAPI.new p api_instance.query_metrics((Time.now + -1 * 86400).to_i, Time.now.to_i, "system.cpu.idle{*}") diff --git a/examples/v1/metrics/UpdateMetricMetadata.rb b/examples/v1/metrics/UpdateMetricMetadata.rb index ff5e5b979b21..2b9faf5459d9 100644 --- a/examples/v1/metrics/UpdateMetricMetadata.rb +++ b/examples/v1/metrics/UpdateMetricMetadata.rb @@ -1,6 +1,9 @@ # Edit metric metadata returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MetricsAPI.new body = DatadogAPIClient::V1::MetricMetadata.new({ diff --git a/examples/v1/monitors/CheckCanDeleteMonitor.rb b/examples/v1/monitors/CheckCanDeleteMonitor.rb index c9ce7337328a..70cf8adf03a1 100644 --- a/examples/v1/monitors/CheckCanDeleteMonitor.rb +++ b/examples/v1/monitors/CheckCanDeleteMonitor.rb @@ -1,6 +1,9 @@ # Check if a monitor can be deleted returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/CreateMonitor.rb b/examples/v1/monitors/CreateMonitor.rb index 719f9804a722..63ed8233e083 100644 --- a/examples/v1/monitors/CreateMonitor.rb +++ b/examples/v1/monitors/CreateMonitor.rb @@ -1,6 +1,9 @@ # Create a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "role" in the system diff --git a/examples/v1/monitors/CreateMonitor_1303514967.rb b/examples/v1/monitors/CreateMonitor_1303514967.rb index 8f3f1546eee9..fe7252519313 100644 --- a/examples/v1/monitors/CreateMonitor_1303514967.rb +++ b/examples/v1/monitors/CreateMonitor_1303514967.rb @@ -1,6 +1,9 @@ # Create a Cost Monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_1348801712.rb b/examples/v1/monitors/CreateMonitor_1348801712.rb index b0c2cb8eb720..f9359952b989 100644 --- a/examples/v1/monitors/CreateMonitor_1348801712.rb +++ b/examples/v1/monitors/CreateMonitor_1348801712.rb @@ -1,6 +1,9 @@ # Create an LLM Observability monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_1532893480.rb b/examples/v1/monitors/CreateMonitor_1532893480.rb index 71b1fc5383fc..5f90fd318154 100644 --- a/examples/v1/monitors/CreateMonitor_1532893480.rb +++ b/examples/v1/monitors/CreateMonitor_1532893480.rb @@ -1,6 +1,9 @@ # Create a Data Quality monitor with sensitivity returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_1539578087.rb b/examples/v1/monitors/CreateMonitor_1539578087.rb index bad1f641fb75..be93374a0474 100644 --- a/examples/v1/monitors/CreateMonitor_1539578087.rb +++ b/examples/v1/monitors/CreateMonitor_1539578087.rb @@ -1,6 +1,9 @@ # Create a metric monitor with a custom schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_1553931399.rb b/examples/v1/monitors/CreateMonitor_1553931399.rb index d9283e75fa86..a48fb2b00b09 100644 --- a/examples/v1/monitors/CreateMonitor_1553931399.rb +++ b/examples/v1/monitors/CreateMonitor_1553931399.rb @@ -1,6 +1,9 @@ # Create a Data Quality monitor with a model configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_1969035628.rb b/examples/v1/monitors/CreateMonitor_1969035628.rb index 0aed2de1e29b..43b63e52708d 100644 --- a/examples/v1/monitors/CreateMonitor_1969035628.rb +++ b/examples/v1/monitors/CreateMonitor_1969035628.rb @@ -1,6 +1,9 @@ # Create a ci-tests formula and functions monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2012680290.rb b/examples/v1/monitors/CreateMonitor_2012680290.rb index b379a6e5a3cb..a178abdadc17 100644 --- a/examples/v1/monitors/CreateMonitor_2012680290.rb +++ b/examples/v1/monitors/CreateMonitor_2012680290.rb @@ -1,6 +1,9 @@ # Create a metric monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2082938111.rb b/examples/v1/monitors/CreateMonitor_2082938111.rb index cd6e1f0bdea0..907017703c47 100644 --- a/examples/v1/monitors/CreateMonitor_2082938111.rb +++ b/examples/v1/monitors/CreateMonitor_2082938111.rb @@ -1,6 +1,9 @@ # Create a monitor with aggregate filtered query variables returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2520912138.rb b/examples/v1/monitors/CreateMonitor_2520912138.rb index 96ec3b9340d4..427b89deb4d9 100644 --- a/examples/v1/monitors/CreateMonitor_2520912138.rb +++ b/examples/v1/monitors/CreateMonitor_2520912138.rb @@ -1,6 +1,9 @@ # Create a ci-tests monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2589528326.rb b/examples/v1/monitors/CreateMonitor_2589528326.rb index 62754d5b3034..72eb444d4b66 100644 --- a/examples/v1/monitors/CreateMonitor_2589528326.rb +++ b/examples/v1/monitors/CreateMonitor_2589528326.rb @@ -1,6 +1,9 @@ # Create a Data Jobs monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2608995690.rb b/examples/v1/monitors/CreateMonitor_2608995690.rb index 84c1422fdb49..c5d220f1f389 100644 --- a/examples/v1/monitors/CreateMonitor_2608995690.rb +++ b/examples/v1/monitors/CreateMonitor_2608995690.rb @@ -1,6 +1,9 @@ # Create a monitor with aggregate augmented query variables returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_2986418353.rb b/examples/v1/monitors/CreateMonitor_2986418353.rb index a5bf0f3346bd..819d906c0b67 100644 --- a/examples/v1/monitors/CreateMonitor_2986418353.rb +++ b/examples/v1/monitors/CreateMonitor_2986418353.rb @@ -1,6 +1,9 @@ # Create a Data Quality monitor with a source to target configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_3541766733.rb b/examples/v1/monitors/CreateMonitor_3541766733.rb index c7ea5f06b0e3..ca14f2aade47 100644 --- a/examples/v1/monitors/CreateMonitor_3541766733.rb +++ b/examples/v1/monitors/CreateMonitor_3541766733.rb @@ -1,6 +1,9 @@ # Create a monitor with assets returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_3626832481.rb b/examples/v1/monitors/CreateMonitor_3626832481.rb index a205c2f35e7c..6377b286efa4 100644 --- a/examples/v1/monitors/CreateMonitor_3626832481.rb +++ b/examples/v1/monitors/CreateMonitor_3626832481.rb @@ -1,6 +1,9 @@ # Create a Data Quality monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_3790803616.rb b/examples/v1/monitors/CreateMonitor_3790803616.rb index 9b8bbe898c1b..7484385c0dff 100644 --- a/examples/v1/monitors/CreateMonitor_3790803616.rb +++ b/examples/v1/monitors/CreateMonitor_3790803616.rb @@ -1,6 +1,9 @@ # Create a ci-pipelines monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_3824294658.rb b/examples/v1/monitors/CreateMonitor_3824294658.rb index b4139d6f5619..1fe181f2f776 100644 --- a/examples/v1/monitors/CreateMonitor_3824294658.rb +++ b/examples/v1/monitors/CreateMonitor_3824294658.rb @@ -1,6 +1,9 @@ # Create a ci-pipelines formula and functions monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_3883669300.rb b/examples/v1/monitors/CreateMonitor_3883669300.rb index 48f5c4a778dc..53655a91c4fa 100644 --- a/examples/v1/monitors/CreateMonitor_3883669300.rb +++ b/examples/v1/monitors/CreateMonitor_3883669300.rb @@ -1,6 +1,9 @@ # Create a RUM formula and functions monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/CreateMonitor_440013737.rb b/examples/v1/monitors/CreateMonitor_440013737.rb index 61814a0bc598..5bfa90243aef 100644 --- a/examples/v1/monitors/CreateMonitor_440013737.rb +++ b/examples/v1/monitors/CreateMonitor_440013737.rb @@ -1,6 +1,9 @@ # Create an Error Tracking monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/DeleteMonitor.rb b/examples/v1/monitors/DeleteMonitor.rb index 70312451de7a..3a9a4c6541f8 100644 --- a/examples/v1/monitors/DeleteMonitor.rb +++ b/examples/v1/monitors/DeleteMonitor.rb @@ -1,6 +1,9 @@ # Delete a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/GetMonitor.rb b/examples/v1/monitors/GetMonitor.rb index 6cf5b8b2e31a..29a31a0f1750 100644 --- a/examples/v1/monitors/GetMonitor.rb +++ b/examples/v1/monitors/GetMonitor.rb @@ -1,6 +1,9 @@ # Get a monitor's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/GetMonitor_2200114573.rb b/examples/v1/monitors/GetMonitor_2200114573.rb index 2ac257b6dc8b..d714f5e34a2f 100644 --- a/examples/v1/monitors/GetMonitor_2200114573.rb +++ b/examples/v1/monitors/GetMonitor_2200114573.rb @@ -1,6 +1,9 @@ # Get a monitor's details with downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/GetMonitor_3691711704.rb b/examples/v1/monitors/GetMonitor_3691711704.rb index c3629cb00088..2a0c232ffc35 100644 --- a/examples/v1/monitors/GetMonitor_3691711704.rb +++ b/examples/v1/monitors/GetMonitor_3691711704.rb @@ -1,6 +1,9 @@ # Get a synthetics monitor's details require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/monitors/ListMonitors.rb b/examples/v1/monitors/ListMonitors.rb index 8979e1eab8a8..da142a415112 100644 --- a/examples/v1/monitors/ListMonitors.rb +++ b/examples/v1/monitors/ListMonitors.rb @@ -1,5 +1,8 @@ # Get all monitors returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new p api_instance.list_monitors() diff --git a/examples/v1/monitors/ListMonitors_2154432960.rb b/examples/v1/monitors/ListMonitors_2154432960.rb index ff923c5ad20f..a63afc20dfbf 100644 --- a/examples/v1/monitors/ListMonitors_2154432960.rb +++ b/examples/v1/monitors/ListMonitors_2154432960.rb @@ -1,6 +1,9 @@ # Get all monitors with tags require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new opts = { tags: "test:examplemonitor", diff --git a/examples/v1/monitors/ListMonitors_463213563.rb b/examples/v1/monitors/ListMonitors_463213563.rb index bf58419dfd9c..16e6da71448b 100644 --- a/examples/v1/monitors/ListMonitors_463213563.rb +++ b/examples/v1/monitors/ListMonitors_463213563.rb @@ -1,6 +1,9 @@ # Get all monitors returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new opts = { page_size: 2, diff --git a/examples/v1/monitors/SearchMonitorGroups.rb b/examples/v1/monitors/SearchMonitorGroups.rb index 0273fa0d5f6b..c2fb57efae3f 100644 --- a/examples/v1/monitors/SearchMonitorGroups.rb +++ b/examples/v1/monitors/SearchMonitorGroups.rb @@ -1,5 +1,8 @@ # Monitors group search returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new p api_instance.search_monitor_groups() diff --git a/examples/v1/monitors/SearchMonitors.rb b/examples/v1/monitors/SearchMonitors.rb index 3e8811e721c4..cf1d87ead416 100644 --- a/examples/v1/monitors/SearchMonitors.rb +++ b/examples/v1/monitors/SearchMonitors.rb @@ -1,5 +1,8 @@ # Monitors search returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new p api_instance.search_monitors() diff --git a/examples/v1/monitors/UpdateMonitor.rb b/examples/v1/monitors/UpdateMonitor.rb index 4a7d2a153f65..ac3f839ca245 100644 --- a/examples/v1/monitors/UpdateMonitor.rb +++ b/examples/v1/monitors/UpdateMonitor.rb @@ -1,6 +1,9 @@ # Edit a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/ValidateExistingMonitor.rb b/examples/v1/monitors/ValidateExistingMonitor.rb index 8c8c58da43c6..2691d16d727a 100644 --- a/examples/v1/monitors/ValidateExistingMonitor.rb +++ b/examples/v1/monitors/ValidateExistingMonitor.rb @@ -1,6 +1,9 @@ # Validate an existing monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new # there is a valid "monitor" in the system diff --git a/examples/v1/monitors/ValidateMonitor.rb b/examples/v1/monitors/ValidateMonitor.rb index 3c30c4351f89..f54d7cf04478 100644 --- a/examples/v1/monitors/ValidateMonitor.rb +++ b/examples/v1/monitors/ValidateMonitor.rb @@ -1,6 +1,9 @@ # Validate a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/monitors/ValidateMonitor_4247196452.rb b/examples/v1/monitors/ValidateMonitor_4247196452.rb index 5d7794ac9452..0bf07804b4d9 100644 --- a/examples/v1/monitors/ValidateMonitor_4247196452.rb +++ b/examples/v1/monitors/ValidateMonitor_4247196452.rb @@ -1,6 +1,9 @@ # Validate a multi-alert monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::MonitorsAPI.new body = DatadogAPIClient::V1::Monitor.new({ diff --git a/examples/v1/notebooks/CreateNotebook.rb b/examples/v1/notebooks/CreateNotebook.rb index d914d926e3e8..b33644495796 100644 --- a/examples/v1/notebooks/CreateNotebook.rb +++ b/examples/v1/notebooks/CreateNotebook.rb @@ -1,6 +1,9 @@ # Create a notebook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new body = DatadogAPIClient::V1::NotebookCreateRequest.new({ diff --git a/examples/v1/notebooks/DeleteNotebook.rb b/examples/v1/notebooks/DeleteNotebook.rb index 33eabc95fabe..b84a2fa2d52d 100644 --- a/examples/v1/notebooks/DeleteNotebook.rb +++ b/examples/v1/notebooks/DeleteNotebook.rb @@ -1,6 +1,9 @@ # Delete a notebook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new # there is a valid "notebook" in the system diff --git a/examples/v1/notebooks/GetNotebook.rb b/examples/v1/notebooks/GetNotebook.rb index d60025eb6e1b..05ef9499aced 100644 --- a/examples/v1/notebooks/GetNotebook.rb +++ b/examples/v1/notebooks/GetNotebook.rb @@ -1,6 +1,9 @@ # Get a notebook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new # there is a valid "notebook" in the system diff --git a/examples/v1/notebooks/ListNotebooks.rb b/examples/v1/notebooks/ListNotebooks.rb index 784013e145ca..30acbc28a9a7 100644 --- a/examples/v1/notebooks/ListNotebooks.rb +++ b/examples/v1/notebooks/ListNotebooks.rb @@ -1,5 +1,8 @@ # Get all notebooks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new p api_instance.list_notebooks() diff --git a/examples/v1/notebooks/ListNotebooks_788665428.rb b/examples/v1/notebooks/ListNotebooks_788665428.rb index 8a7826af4e40..fa12fe704cc8 100644 --- a/examples/v1/notebooks/ListNotebooks_788665428.rb +++ b/examples/v1/notebooks/ListNotebooks_788665428.rb @@ -1,6 +1,9 @@ # Get all notebooks returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new opts = { count: 2, diff --git a/examples/v1/notebooks/UpdateNotebook.rb b/examples/v1/notebooks/UpdateNotebook.rb index 555bcdde9da5..128a0b3b3695 100644 --- a/examples/v1/notebooks/UpdateNotebook.rb +++ b/examples/v1/notebooks/UpdateNotebook.rb @@ -1,6 +1,9 @@ # Update a notebook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::NotebooksAPI.new # there is a valid "notebook" in the system diff --git a/examples/v1/organizations/CreateChildOrg.rb b/examples/v1/organizations/CreateChildOrg.rb index 64693453084e..b5e01e773ef6 100644 --- a/examples/v1/organizations/CreateChildOrg.rb +++ b/examples/v1/organizations/CreateChildOrg.rb @@ -1,6 +1,9 @@ # Create a child organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new body = DatadogAPIClient::V1::OrganizationCreateBody.new({ diff --git a/examples/v1/organizations/DowngradeOrg.rb b/examples/v1/organizations/DowngradeOrg.rb index 605d9921d1ea..e94cb801e2e7 100644 --- a/examples/v1/organizations/DowngradeOrg.rb +++ b/examples/v1/organizations/DowngradeOrg.rb @@ -1,5 +1,8 @@ # Spin-off Child Organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new p api_instance.downgrade_org("abc123") diff --git a/examples/v1/organizations/GetOrg.rb b/examples/v1/organizations/GetOrg.rb index 13ae55aaec5f..2aede311ba99 100644 --- a/examples/v1/organizations/GetOrg.rb +++ b/examples/v1/organizations/GetOrg.rb @@ -1,5 +1,8 @@ # Get organization information returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new p api_instance.get_org("abc123") diff --git a/examples/v1/organizations/ListOrgs.rb b/examples/v1/organizations/ListOrgs.rb index 1635fd91835b..ace045ce79fc 100644 --- a/examples/v1/organizations/ListOrgs.rb +++ b/examples/v1/organizations/ListOrgs.rb @@ -1,5 +1,8 @@ # List your managed organizations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new p api_instance.list_orgs() diff --git a/examples/v1/organizations/UpdateOrg.rb b/examples/v1/organizations/UpdateOrg.rb index c952c4136c5b..a54b9d5cc152 100644 --- a/examples/v1/organizations/UpdateOrg.rb +++ b/examples/v1/organizations/UpdateOrg.rb @@ -1,6 +1,9 @@ # Update your organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new body = DatadogAPIClient::V1::Organization.new({ diff --git a/examples/v1/organizations/UploadIdPForOrg.rb b/examples/v1/organizations/UploadIdPForOrg.rb index 0e691ada0461..b61515345b58 100644 --- a/examples/v1/organizations/UploadIdPForOrg.rb +++ b/examples/v1/organizations/UploadIdPForOrg.rb @@ -1,5 +1,8 @@ # Upload IdP metadata returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::OrganizationsAPI.new p api_instance.upload_idp_for_org("abc123", File.open("./idp_metadata.xml", "r")) diff --git a/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.rb b/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.rb index cc6018b936e4..76372c88309f 100644 --- a/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.rb +++ b/examples/v1/pagerduty-integration/CreatePagerDutyIntegrationService.rb @@ -1,6 +1,9 @@ # Create a new service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new body = DatadogAPIClient::V1::PagerDutyService.new({ diff --git a/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb b/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb index e91b2bbba188..dafb5e1e40b4 100644 --- a/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb +++ b/examples/v1/pagerduty-integration/DeletePagerDutyIntegrationService.rb @@ -1,5 +1,8 @@ # Delete a single service object returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new api_instance.delete_pager_duty_integration_service("service_name") diff --git a/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.rb b/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.rb index c1826be77e22..6679ca8661e2 100644 --- a/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.rb +++ b/examples/v1/pagerduty-integration/GetPagerDutyIntegrationService.rb @@ -1,5 +1,8 @@ # Get a single service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new p api_instance.get_pager_duty_integration_service("service_name") diff --git a/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.rb b/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.rb index 25571414c551..73ce39174135 100644 --- a/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.rb +++ b/examples/v1/pagerduty-integration/UpdatePagerDutyIntegrationService.rb @@ -1,6 +1,9 @@ # Update a single service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::PagerDutyIntegrationAPI.new body = DatadogAPIClient::V1::PagerDutyServiceKey.new({ diff --git a/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb b/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb index eecd0aba9f6e..e895d738a65b 100644 --- a/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb +++ b/examples/v1/security-monitoring/AddSecurityMonitoringSignalToIncident.rb @@ -1,6 +1,9 @@ # Add a security signal to an incident returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SecurityMonitoringAPI.new body = DatadogAPIClient::V1::AddSignalToIncidentRequest.new({ diff --git a/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb b/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb index 3dd87e355f39..03e0b17a7140 100644 --- a/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +++ b/examples/v1/security-monitoring/EditSecurityMonitoringSignalAssignee.rb @@ -1,6 +1,9 @@ # Modify the triage assignee of a security signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SecurityMonitoringAPI.new body = DatadogAPIClient::V1::SignalAssigneeUpdateRequest.new({ diff --git a/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb b/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb index fcd840e9325b..2e10c4cfa7e9 100644 --- a/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb +++ b/examples/v1/security-monitoring/EditSecurityMonitoringSignalState.rb @@ -1,6 +1,9 @@ # Change the triage state of a security signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SecurityMonitoringAPI.new body = DatadogAPIClient::V1::SignalStateUpdateRequest.new({ diff --git a/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb b/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb index 4232f25a940b..8e956ded62dd 100644 --- a/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +++ b/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb @@ -1,6 +1,9 @@ # Create an SLO correction returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb b/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb index ae363e9d4b77..6792f9b8edbb 100644 --- a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +++ b/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb @@ -1,6 +1,9 @@ # Create an SLO correction with rrule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_2888963657.rb b/examples/v1/service-level-objective-corrections/CreateSLOCorrection_2888963657.rb index dd9fba9ef0c4..5d4cee5d8fb4 100644 --- a/examples/v1/service-level-objective-corrections/CreateSLOCorrection_2888963657.rb +++ b/examples/v1/service-level-objective-corrections/CreateSLOCorrection_2888963657.rb @@ -1,6 +1,9 @@ # Create an SLO correction with slo_query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new body = DatadogAPIClient::V1::SLOCorrectionCreateRequest.new({ diff --git a/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb b/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb index 998d86ef35a6..1bd581add763 100644 --- a/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb +++ b/examples/v1/service-level-objective-corrections/DeleteSLOCorrection.rb @@ -1,5 +1,8 @@ # Delete an SLO correction returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new api_instance.delete_slo_correction("slo_correction_id") diff --git a/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb b/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb index 605722f7223c..5de44eb03a69 100644 --- a/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb +++ b/examples/v1/service-level-objective-corrections/GetSLOCorrection.rb @@ -1,6 +1,9 @@ # Get an SLO correction for an SLO returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "correction" for "slo" diff --git a/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb b/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb index b90b16f6387f..800437d02a36 100644 --- a/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb +++ b/examples/v1/service-level-objective-corrections/ListSLOCorrection.rb @@ -1,6 +1,9 @@ # Get all SLO corrections returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new opts = { offset: 1, diff --git a/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb b/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb index 25ae2aabf1e9..0b7dabea4d89 100644 --- a/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb +++ b/examples/v1/service-level-objective-corrections/ListSLOCorrection_2647266873.rb @@ -1,6 +1,9 @@ # Get all SLO corrections returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new opts = { limit: 2, diff --git a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb b/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb index b3850fb20a2e..c84b1eca3734 100644 --- a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +++ b/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb @@ -1,6 +1,9 @@ # Update an SLO correction returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "correction" for "slo" diff --git a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection_2949191256.rb b/examples/v1/service-level-objective-corrections/UpdateSLOCorrection_2949191256.rb index 0637c5b9e5bd..96d77b98049f 100644 --- a/examples/v1/service-level-objective-corrections/UpdateSLOCorrection_2949191256.rb +++ b/examples/v1/service-level-objective-corrections/UpdateSLOCorrection_2949191256.rb @@ -1,6 +1,9 @@ # Update an SLO correction with slo_query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "correction_with_query" in the system diff --git a/examples/v1/service-level-objectives/CheckCanDeleteSLO.rb b/examples/v1/service-level-objectives/CheckCanDeleteSLO.rb index 6a91b2d84105..607a72da97c5 100644 --- a/examples/v1/service-level-objectives/CheckCanDeleteSLO.rb +++ b/examples/v1/service-level-objectives/CheckCanDeleteSLO.rb @@ -1,5 +1,8 @@ # Check if SLOs can be safely deleted returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new p api_instance.check_can_delete_slo("ids") diff --git a/examples/v1/service-level-objectives/CreateSLO.rb b/examples/v1/service-level-objectives/CreateSLO.rb index ae89012bbbb4..9bca29c97924 100644 --- a/examples/v1/service-level-objectives/CreateSLO.rb +++ b/examples/v1/service-level-objectives/CreateSLO.rb @@ -1,6 +1,9 @@ # Create an SLO object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({ diff --git a/examples/v1/service-level-objectives/CreateSLO_3765703239.rb b/examples/v1/service-level-objectives/CreateSLO_3765703239.rb index d8b1421a61d6..1f9f2bbf5fbe 100644 --- a/examples/v1/service-level-objectives/CreateSLO_3765703239.rb +++ b/examples/v1/service-level-objectives/CreateSLO_3765703239.rb @@ -1,6 +1,9 @@ # Create a time-slice SLO object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({ diff --git a/examples/v1/service-level-objectives/CreateSLO_512760759.rb b/examples/v1/service-level-objectives/CreateSLO_512760759.rb index 7482f95d30eb..d0972c2a1e9b 100644 --- a/examples/v1/service-level-objectives/CreateSLO_512760759.rb +++ b/examples/v1/service-level-objectives/CreateSLO_512760759.rb @@ -1,6 +1,9 @@ # Create a new metric SLO object using sli_specification returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({ diff --git a/examples/v1/service-level-objectives/CreateSLO_707861409.rb b/examples/v1/service-level-objectives/CreateSLO_707861409.rb index 4e153268cab7..bc0b0b31b2d3 100644 --- a/examples/v1/service-level-objectives/CreateSLO_707861409.rb +++ b/examples/v1/service-level-objectives/CreateSLO_707861409.rb @@ -1,6 +1,9 @@ # Create a new metric SLO object using bad events formula returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new body = DatadogAPIClient::V1::ServiceLevelObjectiveRequest.new({ diff --git a/examples/v1/service-level-objectives/DeleteSLO.rb b/examples/v1/service-level-objectives/DeleteSLO.rb index 7992bee1fe75..2e1770b2d6fd 100644 --- a/examples/v1/service-level-objectives/DeleteSLO.rb +++ b/examples/v1/service-level-objectives/DeleteSLO.rb @@ -1,6 +1,9 @@ # Delete an SLO returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb b/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb index c65d2a6963c0..9f23230ab99f 100644 --- a/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb +++ b/examples/v1/service-level-objectives/DeleteSLOTimeframeInBulk.rb @@ -1,6 +1,9 @@ # Bulk Delete SLO Timeframes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new body = { diff --git a/examples/v1/service-level-objectives/GetSLO.rb b/examples/v1/service-level-objectives/GetSLO.rb index 531ede6b9634..4b6a7c2bc737 100644 --- a/examples/v1/service-level-objectives/GetSLO.rb +++ b/examples/v1/service-level-objectives/GetSLO.rb @@ -1,6 +1,9 @@ # Get an SLO's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/GetSLOCorrections.rb b/examples/v1/service-level-objectives/GetSLOCorrections.rb index 9d9371d23ecb..7d15b0dd5548 100644 --- a/examples/v1/service-level-objectives/GetSLOCorrections.rb +++ b/examples/v1/service-level-objectives/GetSLOCorrections.rb @@ -1,6 +1,9 @@ # Get Corrections For an SLO returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/GetSLOHistory.rb b/examples/v1/service-level-objectives/GetSLOHistory.rb index 7253223fed18..bd05c21f6f59 100644 --- a/examples/v1/service-level-objectives/GetSLOHistory.rb +++ b/examples/v1/service-level-objectives/GetSLOHistory.rb @@ -1,6 +1,9 @@ # Get an SLO's history returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/ListSLOs.rb b/examples/v1/service-level-objectives/ListSLOs.rb index 72830e4d2761..19ebaf88ef34 100644 --- a/examples/v1/service-level-objectives/ListSLOs.rb +++ b/examples/v1/service-level-objectives/ListSLOs.rb @@ -1,6 +1,9 @@ # Get all SLOs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/ListSLOs_3036942817.rb b/examples/v1/service-level-objectives/ListSLOs_3036942817.rb index 57048b4674b8..9e62174a9a3c 100644 --- a/examples/v1/service-level-objectives/ListSLOs_3036942817.rb +++ b/examples/v1/service-level-objectives/ListSLOs_3036942817.rb @@ -1,6 +1,9 @@ # Get all SLOs returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new opts = { limit: 2, diff --git a/examples/v1/service-level-objectives/SearchSLO.rb b/examples/v1/service-level-objectives/SearchSLO.rb index 19157ebcd0c3..0c55769cab28 100644 --- a/examples/v1/service-level-objectives/SearchSLO.rb +++ b/examples/v1/service-level-objectives/SearchSLO.rb @@ -1,6 +1,9 @@ # Search for SLOs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/service-level-objectives/UpdateSLO.rb b/examples/v1/service-level-objectives/UpdateSLO.rb index 891a5881ea18..1cdde243b3a9 100644 --- a/examples/v1/service-level-objectives/UpdateSLO.rb +++ b/examples/v1/service-level-objectives/UpdateSLO.rb @@ -1,6 +1,9 @@ # Update an SLO returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new # there is a valid "slo" in the system diff --git a/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb b/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb index 72f4f770d646..97b7ea4e5987 100644 --- a/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb +++ b/examples/v1/slack-integration/CreateSlackIntegrationChannel.rb @@ -1,6 +1,9 @@ # Create a Slack integration channel returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new body = DatadogAPIClient::V1::SlackIntegrationChannel.new({ diff --git a/examples/v1/slack-integration/GetSlackIntegrationChannel.rb b/examples/v1/slack-integration/GetSlackIntegrationChannel.rb index 0d2807d4a8c0..48f630d3bb4e 100644 --- a/examples/v1/slack-integration/GetSlackIntegrationChannel.rb +++ b/examples/v1/slack-integration/GetSlackIntegrationChannel.rb @@ -1,5 +1,8 @@ # Get a Slack integration channel returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new p api_instance.get_slack_integration_channel("account_name", "channel_name") diff --git a/examples/v1/slack-integration/GetSlackIntegrationChannels.rb b/examples/v1/slack-integration/GetSlackIntegrationChannels.rb index fc94c9837af8..2bbec49df94c 100644 --- a/examples/v1/slack-integration/GetSlackIntegrationChannels.rb +++ b/examples/v1/slack-integration/GetSlackIntegrationChannels.rb @@ -1,5 +1,8 @@ # Get all channels in a Slack integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new p api_instance.get_slack_integration_channels("account_name") diff --git a/examples/v1/slack-integration/RemoveSlackIntegrationChannel.rb b/examples/v1/slack-integration/RemoveSlackIntegrationChannel.rb index 79385754b052..3d1f9ecab8a0 100644 --- a/examples/v1/slack-integration/RemoveSlackIntegrationChannel.rb +++ b/examples/v1/slack-integration/RemoveSlackIntegrationChannel.rb @@ -1,5 +1,8 @@ # Remove a Slack integration channel returns "The channel was removed successfully." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new api_instance.remove_slack_integration_channel("account_name", "channel_name") diff --git a/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb b/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb index b01484d2531e..65a196082b0f 100644 --- a/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb +++ b/examples/v1/slack-integration/UpdateSlackIntegrationChannel.rb @@ -1,6 +1,9 @@ # Update a Slack integration channel returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SlackIntegrationAPI.new body = DatadogAPIClient::V1::SlackIntegrationChannel.new({ diff --git a/examples/v1/snapshots/GetGraphSnapshot.rb b/examples/v1/snapshots/GetGraphSnapshot.rb index 37bd7926cfac..4a4aa95c71bf 100644 --- a/examples/v1/snapshots/GetGraphSnapshot.rb +++ b/examples/v1/snapshots/GetGraphSnapshot.rb @@ -1,6 +1,9 @@ # Take graph snapshots returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SnapshotsAPI.new opts = { metric_query: "avg:system.load.1{*}", diff --git a/examples/v1/synthetics/CreateGlobalVariable.rb b/examples/v1/synthetics/CreateGlobalVariable.rb index 6aaed94fd15f..be54a6c576d5 100644 --- a/examples/v1/synthetics/CreateGlobalVariable.rb +++ b/examples/v1/synthetics/CreateGlobalVariable.rb @@ -1,6 +1,9 @@ # Create a global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsGlobalVariableRequest.new({ diff --git a/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb b/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb index 86ae18f1034a..ba2fa13d8d58 100644 --- a/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +++ b/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb @@ -1,6 +1,9 @@ # Create a global variable from test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test_multi_step" in the system diff --git a/examples/v1/synthetics/CreateGlobalVariable_3298562511.rb b/examples/v1/synthetics/CreateGlobalVariable_3298562511.rb index a04e877cfdbb..2355279b154c 100644 --- a/examples/v1/synthetics/CreateGlobalVariable_3298562511.rb +++ b/examples/v1/synthetics/CreateGlobalVariable_3298562511.rb @@ -1,6 +1,9 @@ # Create a FIDO global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsGlobalVariableRequest.new({ diff --git a/examples/v1/synthetics/CreateGlobalVariable_3397718516.rb b/examples/v1/synthetics/CreateGlobalVariable_3397718516.rb index ffa1f77c9eaa..c2175c0b5840 100644 --- a/examples/v1/synthetics/CreateGlobalVariable_3397718516.rb +++ b/examples/v1/synthetics/CreateGlobalVariable_3397718516.rb @@ -1,6 +1,9 @@ # Create a TOTP global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsGlobalVariableRequest.new({ diff --git a/examples/v1/synthetics/CreatePrivateLocation.rb b/examples/v1/synthetics/CreatePrivateLocation.rb index c657762def96..ff135e72d678 100644 --- a/examples/v1/synthetics/CreatePrivateLocation.rb +++ b/examples/v1/synthetics/CreatePrivateLocation.rb @@ -1,6 +1,9 @@ # Create a private location returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "role" in the system diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest.rb b/examples/v1/synthetics/CreateSyntheticsAPITest.rb index f30304263aad..32b2a3fa7aa7 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest.rb @@ -1,6 +1,9 @@ # Create an API test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb index a29c133eca2f..aee57d51a5ee 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb @@ -1,6 +1,9 @@ # Create an API SSL test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb index 8bf9702ddae7..127e2f6ae162 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1241981394.rb @@ -1,6 +1,9 @@ # Create an API test with a file payload returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb index c3fbb2bf2a5a..e0cb3d37b9b6 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb @@ -1,6 +1,9 @@ # Create an API test with multi subtype returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb index 9ce0319d7326..2b0a4c757cac 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb @@ -1,6 +1,9 @@ # Create an API GRPC test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb index 3566ab3d1051..74526be0734a 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb @@ -1,6 +1,9 @@ # Create an API HTTP test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb index 1aabb87c61d7..1dc8002961d2 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1717840259.rb @@ -1,6 +1,9 @@ # Create a multi-step api test with every type of basicAuth returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb index a7cbcb3ba153..de9a107145c3 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1987645492.rb @@ -1,6 +1,9 @@ # Create an API HTTP test has bodyHash filled out require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb index c61ac8b4e150..99c1915a3f14 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_2106135939.rb @@ -1,6 +1,9 @@ # Create a multistep test with subtest returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb index 38724d160b44..e2ba113e1498 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb @@ -1,6 +1,9 @@ # Create an API test with WEBSOCKET subtype returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_2547523542.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_2547523542.rb index acf605aa041e..b34408ca8d59 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_2547523542.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_2547523542.rb @@ -1,6 +1,9 @@ # Create an API test with MCP steps returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb index 11cc897004c7..8f2f72956948 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb @@ -1,6 +1,9 @@ # Create an API test with UDP subtype returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb index 9ed06d9ed0b8..e50c6dc30a1c 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb @@ -1,6 +1,9 @@ # Create an API HTTP with oauth-rop test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsAPITest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb b/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb index 69174b7be83a..8a5a8bdd1d93 100644 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +++ b/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb @@ -1,6 +1,9 @@ # Create a browser test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb b/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb index 83c4debda21a..d46502cbdfaa 100644 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +++ b/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb @@ -1,6 +1,9 @@ # Create a browser test returns "OK - Returns saved rumSettings." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb b/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb index 322a0a2f7e10..684d30161ca9 100644 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +++ b/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb @@ -1,6 +1,9 @@ # Create a browser test with advanced scheduling options returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ diff --git a/examples/v1/synthetics/CreateSyntheticsMobileTest.rb b/examples/v1/synthetics/CreateSyntheticsMobileTest.rb index a71d7323da75..e6c4c53eec3b 100644 --- a/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +++ b/examples/v1/synthetics/CreateSyntheticsMobileTest.rb @@ -1,6 +1,9 @@ # Create a mobile test returns "OK - Returns the created test details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsMobileTest.new({ diff --git a/examples/v1/synthetics/DeleteGlobalVariable.rb b/examples/v1/synthetics/DeleteGlobalVariable.rb index c46e55889728..05ea7a88ca45 100644 --- a/examples/v1/synthetics/DeleteGlobalVariable.rb +++ b/examples/v1/synthetics/DeleteGlobalVariable.rb @@ -1,5 +1,8 @@ # Delete a global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.delete_global_variable("variable_id") diff --git a/examples/v1/synthetics/DeletePrivateLocation.rb b/examples/v1/synthetics/DeletePrivateLocation.rb index 6110c967bc9e..0519fc60c822 100644 --- a/examples/v1/synthetics/DeletePrivateLocation.rb +++ b/examples/v1/synthetics/DeletePrivateLocation.rb @@ -1,5 +1,8 @@ # Delete a private location returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new api_instance.delete_private_location("location_id") diff --git a/examples/v1/synthetics/DeleteTests.rb b/examples/v1/synthetics/DeleteTests.rb index d43ef9a41042..3bfc3f65eb58 100644 --- a/examples/v1/synthetics/DeleteTests.rb +++ b/examples/v1/synthetics/DeleteTests.rb @@ -1,6 +1,9 @@ # Delete tests returns "OK." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/synthetics/EditGlobalVariable.rb b/examples/v1/synthetics/EditGlobalVariable.rb index 21bdb847e697..52928edf12d2 100644 --- a/examples/v1/synthetics/EditGlobalVariable.rb +++ b/examples/v1/synthetics/EditGlobalVariable.rb @@ -1,6 +1,9 @@ # Edit a global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsGlobalVariableRequest.new({ diff --git a/examples/v1/synthetics/FetchUptimes.rb b/examples/v1/synthetics/FetchUptimes.rb index c9a4c9fd8c0a..6bb90459df32 100644 --- a/examples/v1/synthetics/FetchUptimes.rb +++ b/examples/v1/synthetics/FetchUptimes.rb @@ -1,6 +1,9 @@ # Fetch uptime for multiple tests returns "OK." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsFetchUptimesPayload.new({ diff --git a/examples/v1/synthetics/GetAPITest.rb b/examples/v1/synthetics/GetAPITest.rb index 3056f08f5608..0686cd5a0a0b 100644 --- a/examples/v1/synthetics/GetAPITest.rb +++ b/examples/v1/synthetics/GetAPITest.rb @@ -1,5 +1,8 @@ # Get an API test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_api_test("public_id") diff --git a/examples/v1/synthetics/GetAPITestLatestResults.rb b/examples/v1/synthetics/GetAPITestLatestResults.rb index af56595e8bc0..2eb3475ca0b2 100644 --- a/examples/v1/synthetics/GetAPITestLatestResults.rb +++ b/examples/v1/synthetics/GetAPITestLatestResults.rb @@ -1,5 +1,8 @@ # Get an API test's latest results summaries returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_api_test_latest_results("hwb-332-3xe") diff --git a/examples/v1/synthetics/GetAPITestResult.rb b/examples/v1/synthetics/GetAPITestResult.rb index e693b23444de..27334da9dcc0 100644 --- a/examples/v1/synthetics/GetAPITestResult.rb +++ b/examples/v1/synthetics/GetAPITestResult.rb @@ -1,5 +1,8 @@ # Get an API test result returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_api_test_result("hwb-332-3xe", "3420446318379485707") diff --git a/examples/v1/synthetics/GetAPITestResult_1321866518.rb b/examples/v1/synthetics/GetAPITestResult_1321866518.rb index 9f9d4886b9f1..09c178da0a5c 100644 --- a/examples/v1/synthetics/GetAPITestResult_1321866518.rb +++ b/examples/v1/synthetics/GetAPITestResult_1321866518.rb @@ -1,6 +1,9 @@ # Get an API test result returns result with failure object require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a "synthetics_api_test_with_wrong_dns" in the system diff --git a/examples/v1/synthetics/GetBrowserTest.rb b/examples/v1/synthetics/GetBrowserTest.rb index c76dc3e2e3d3..d3c2dfaa5bce 100644 --- a/examples/v1/synthetics/GetBrowserTest.rb +++ b/examples/v1/synthetics/GetBrowserTest.rb @@ -1,5 +1,8 @@ # Get a browser test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_browser_test("public_id") diff --git a/examples/v1/synthetics/GetBrowserTestLatestResults.rb b/examples/v1/synthetics/GetBrowserTestLatestResults.rb index aab56f41c4a8..4b41877ca3a8 100644 --- a/examples/v1/synthetics/GetBrowserTestLatestResults.rb +++ b/examples/v1/synthetics/GetBrowserTestLatestResults.rb @@ -1,5 +1,8 @@ # Get a browser test's latest results summaries returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_browser_test_latest_results("2yy-sem-mjh") diff --git a/examples/v1/synthetics/GetBrowserTestResult.rb b/examples/v1/synthetics/GetBrowserTestResult.rb index dd43d96799ec..eb66333f9003 100644 --- a/examples/v1/synthetics/GetBrowserTestResult.rb +++ b/examples/v1/synthetics/GetBrowserTestResult.rb @@ -1,5 +1,8 @@ # Get a browser test result returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_browser_test_result("2yy-sem-mjh", "5671719892074090418") diff --git a/examples/v1/synthetics/GetGlobalVariable.rb b/examples/v1/synthetics/GetGlobalVariable.rb index 2c2fc54254c8..c521df572c0f 100644 --- a/examples/v1/synthetics/GetGlobalVariable.rb +++ b/examples/v1/synthetics/GetGlobalVariable.rb @@ -1,5 +1,8 @@ # Get a global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_global_variable("variable_id") diff --git a/examples/v1/synthetics/GetMobileTest.rb b/examples/v1/synthetics/GetMobileTest.rb index 5da6cd195e9f..52ada0f7df7b 100644 --- a/examples/v1/synthetics/GetMobileTest.rb +++ b/examples/v1/synthetics/GetMobileTest.rb @@ -1,5 +1,8 @@ # Get a mobile test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_mobile_test("public_id") diff --git a/examples/v1/synthetics/GetMobileTest_212471226.rb b/examples/v1/synthetics/GetMobileTest_212471226.rb index 1dfd111b3de6..2acd6bca2e82 100644 --- a/examples/v1/synthetics/GetMobileTest_212471226.rb +++ b/examples/v1/synthetics/GetMobileTest_212471226.rb @@ -1,6 +1,9 @@ # Get a Mobile test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_mobile_test" in the system diff --git a/examples/v1/synthetics/GetPrivateLocation.rb b/examples/v1/synthetics/GetPrivateLocation.rb index 2528b41722e5..02fdff9fc8c9 100644 --- a/examples/v1/synthetics/GetPrivateLocation.rb +++ b/examples/v1/synthetics/GetPrivateLocation.rb @@ -1,5 +1,8 @@ # Get a private location returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_private_location("location_id") diff --git a/examples/v1/synthetics/GetSyntheticsCIBatch.rb b/examples/v1/synthetics/GetSyntheticsCIBatch.rb index 687335503456..219a56dc31bd 100644 --- a/examples/v1/synthetics/GetSyntheticsCIBatch.rb +++ b/examples/v1/synthetics/GetSyntheticsCIBatch.rb @@ -1,5 +1,8 @@ # Get details of batch returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_synthetics_ci_batch("batch_id") diff --git a/examples/v1/synthetics/GetSyntheticsDefaultLocations.rb b/examples/v1/synthetics/GetSyntheticsDefaultLocations.rb index e71c962ada70..566f7c087c71 100644 --- a/examples/v1/synthetics/GetSyntheticsDefaultLocations.rb +++ b/examples/v1/synthetics/GetSyntheticsDefaultLocations.rb @@ -1,5 +1,8 @@ # Get the default locations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_synthetics_default_locations() diff --git a/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.rb b/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.rb index 7f0de73888e2..bc3de3b16676 100644 --- a/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.rb +++ b/examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.rb @@ -1,5 +1,8 @@ # Get the list of default locations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_synthetics_default_locations() diff --git a/examples/v1/synthetics/GetTest.rb b/examples/v1/synthetics/GetTest.rb index 94b884b34106..79b0e583f12d 100644 --- a/examples/v1/synthetics/GetTest.rb +++ b/examples/v1/synthetics/GetTest.rb @@ -1,5 +1,8 @@ # Get a test configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.get_test("public_id") diff --git a/examples/v1/synthetics/ListGlobalVariables.rb b/examples/v1/synthetics/ListGlobalVariables.rb index 1a6947a6f200..6b1551f4bc2a 100644 --- a/examples/v1/synthetics/ListGlobalVariables.rb +++ b/examples/v1/synthetics/ListGlobalVariables.rb @@ -1,5 +1,8 @@ # Get all global variables returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.list_global_variables() diff --git a/examples/v1/synthetics/ListLocations.rb b/examples/v1/synthetics/ListLocations.rb index 7f3f4044e88b..73c01c9fd07a 100644 --- a/examples/v1/synthetics/ListLocations.rb +++ b/examples/v1/synthetics/ListLocations.rb @@ -1,5 +1,8 @@ # Get all locations (public and private) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.list_locations() diff --git a/examples/v1/synthetics/ListTests.rb b/examples/v1/synthetics/ListTests.rb index e258a7fd2f9f..2bd67be6f4b3 100644 --- a/examples/v1/synthetics/ListTests.rb +++ b/examples/v1/synthetics/ListTests.rb @@ -1,5 +1,8 @@ # Get the list of all Synthetic tests returns "OK - Returns the list of all Synthetic tests." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.list_tests() diff --git a/examples/v1/synthetics/ListTests_1938827783.rb b/examples/v1/synthetics/ListTests_1938827783.rb index 6bfc49ea6444..caa537d3c479 100644 --- a/examples/v1/synthetics/ListTests_1938827783.rb +++ b/examples/v1/synthetics/ListTests_1938827783.rb @@ -1,6 +1,9 @@ # Get the list of all Synthetic tests returns "OK - Returns the list of all Synthetic tests." response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new opts = { page_size: 2, diff --git a/examples/v1/synthetics/ListTests_2779190961.rb b/examples/v1/synthetics/ListTests_2779190961.rb index beaf26797938..b99719db2a92 100644 --- a/examples/v1/synthetics/ListTests_2779190961.rb +++ b/examples/v1/synthetics/ListTests_2779190961.rb @@ -1,5 +1,8 @@ # Client is resilient to enum and oneOf deserialization errors require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.list_tests() diff --git a/examples/v1/synthetics/PatchTest.rb b/examples/v1/synthetics/PatchTest.rb index d35aa3474c09..f2ff53079157 100644 --- a/examples/v1/synthetics/PatchTest.rb +++ b/examples/v1/synthetics/PatchTest.rb @@ -1,6 +1,9 @@ # Patch a Synthetic test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/synthetics/SearchTests.rb b/examples/v1/synthetics/SearchTests.rb index 660bec834526..2bf27e1d4044 100644 --- a/examples/v1/synthetics/SearchTests.rb +++ b/examples/v1/synthetics/SearchTests.rb @@ -1,5 +1,8 @@ # Search Synthetic tests returns "OK - Returns the list of Synthetic tests matching the search." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new p api_instance.search_tests() diff --git a/examples/v1/synthetics/TriggerCITests.rb b/examples/v1/synthetics/TriggerCITests.rb index ae6f72aa477b..ecfd064bb68e 100644 --- a/examples/v1/synthetics/TriggerCITests.rb +++ b/examples/v1/synthetics/TriggerCITests.rb @@ -1,6 +1,9 @@ # Trigger tests from CI/CD pipelines returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsCITestBody.new({ diff --git a/examples/v1/synthetics/TriggerTests.rb b/examples/v1/synthetics/TriggerTests.rb index 203ffaa117b8..bc3d5739b1b7 100644 --- a/examples/v1/synthetics/TriggerTests.rb +++ b/examples/v1/synthetics/TriggerTests.rb @@ -1,6 +1,9 @@ # Trigger Synthetic tests returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/synthetics/UpdateAPITest.rb b/examples/v1/synthetics/UpdateAPITest.rb index 74d5f6053a02..64855391c5df 100644 --- a/examples/v1/synthetics/UpdateAPITest.rb +++ b/examples/v1/synthetics/UpdateAPITest.rb @@ -1,6 +1,9 @@ # Edit an API test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_api_test" in the system diff --git a/examples/v1/synthetics/UpdateBrowserTest.rb b/examples/v1/synthetics/UpdateBrowserTest.rb index 8f56ef866c9d..ecd67013c5e6 100644 --- a/examples/v1/synthetics/UpdateBrowserTest.rb +++ b/examples/v1/synthetics/UpdateBrowserTest.rb @@ -1,6 +1,9 @@ # Edit a browser test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({ diff --git a/examples/v1/synthetics/UpdateMobileTest.rb b/examples/v1/synthetics/UpdateMobileTest.rb index 9296be126142..173d31ed10aa 100644 --- a/examples/v1/synthetics/UpdateMobileTest.rb +++ b/examples/v1/synthetics/UpdateMobileTest.rb @@ -1,6 +1,9 @@ # Edit a mobile test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsMobileTest.new({ diff --git a/examples/v1/synthetics/UpdateMobileTest_477498912.rb b/examples/v1/synthetics/UpdateMobileTest_477498912.rb index 64b016016319..7425d6518e93 100644 --- a/examples/v1/synthetics/UpdateMobileTest_477498912.rb +++ b/examples/v1/synthetics/UpdateMobileTest_477498912.rb @@ -1,6 +1,9 @@ # Edit a Mobile test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new # there is a valid "synthetics_mobile_test" in the system diff --git a/examples/v1/synthetics/UpdatePrivateLocation.rb b/examples/v1/synthetics/UpdatePrivateLocation.rb index b614369c831b..90a38d8dc5b4 100644 --- a/examples/v1/synthetics/UpdatePrivateLocation.rb +++ b/examples/v1/synthetics/UpdatePrivateLocation.rb @@ -1,6 +1,9 @@ # Edit a private location returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsPrivateLocation.new({ diff --git a/examples/v1/synthetics/UpdateTestPauseStatus.rb b/examples/v1/synthetics/UpdateTestPauseStatus.rb index 8f0717b780f8..93d0be64aa80 100644 --- a/examples/v1/synthetics/UpdateTestPauseStatus.rb +++ b/examples/v1/synthetics/UpdateTestPauseStatus.rb @@ -1,6 +1,9 @@ # Pause or start a test returns "OK - Returns a boolean indicating if the update was successful." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::SyntheticsAPI.new body = DatadogAPIClient::V1::SyntheticsUpdateTestPauseStatusPayload.new({ diff --git a/examples/v1/tags/CreateHostTags.rb b/examples/v1/tags/CreateHostTags.rb index ac7e955a5402..d01da72476f8 100644 --- a/examples/v1/tags/CreateHostTags.rb +++ b/examples/v1/tags/CreateHostTags.rb @@ -1,6 +1,9 @@ # Add tags to a host returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::TagsAPI.new body = DatadogAPIClient::V1::HostTags.new({ diff --git a/examples/v1/tags/DeleteHostTags.rb b/examples/v1/tags/DeleteHostTags.rb index 79be0a79bb7a..756fa347907a 100644 --- a/examples/v1/tags/DeleteHostTags.rb +++ b/examples/v1/tags/DeleteHostTags.rb @@ -1,5 +1,8 @@ # Remove host tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::TagsAPI.new api_instance.delete_host_tags("host_name") diff --git a/examples/v1/tags/GetHostTags.rb b/examples/v1/tags/GetHostTags.rb index e69699394ea4..2bad752ee95d 100644 --- a/examples/v1/tags/GetHostTags.rb +++ b/examples/v1/tags/GetHostTags.rb @@ -1,5 +1,8 @@ # Get Host Tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::TagsAPI.new p api_instance.get_host_tags("host_name") diff --git a/examples/v1/tags/ListHostTags.rb b/examples/v1/tags/ListHostTags.rb index b69d45d004b9..c42c8ef8904f 100644 --- a/examples/v1/tags/ListHostTags.rb +++ b/examples/v1/tags/ListHostTags.rb @@ -1,5 +1,8 @@ # Get All Host Tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::TagsAPI.new p api_instance.list_host_tags() diff --git a/examples/v1/tags/UpdateHostTags.rb b/examples/v1/tags/UpdateHostTags.rb index 85b445066848..d0308e5ad039 100644 --- a/examples/v1/tags/UpdateHostTags.rb +++ b/examples/v1/tags/UpdateHostTags.rb @@ -1,6 +1,9 @@ # Update host tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::TagsAPI.new body = DatadogAPIClient::V1::HostTags.new({ diff --git a/examples/v1/usage-metering/GetDailyCustomReports.rb b/examples/v1/usage-metering/GetDailyCustomReports.rb index aa039ece0ca0..c96709310c30 100644 --- a/examples/v1/usage-metering/GetDailyCustomReports.rb +++ b/examples/v1/usage-metering/GetDailyCustomReports.rb @@ -1,5 +1,8 @@ # Get the list of available daily custom reports returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_daily_custom_reports() diff --git a/examples/v1/usage-metering/GetHourlyUsageAttribution.rb b/examples/v1/usage-metering/GetHourlyUsageAttribution.rb index 100be65e1dc3..3201470fe0d6 100644 --- a/examples/v1/usage-metering/GetHourlyUsageAttribution.rb +++ b/examples/v1/usage-metering/GetHourlyUsageAttribution.rb @@ -1,5 +1,8 @@ # Get hourly usage attribution returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_hourly_usage_attribution((Time.now + -3 * 86400), HourlyUsageAttributionUsageType::INFRA_HOST_USAGE) diff --git a/examples/v1/usage-metering/GetIncidentManagement.rb b/examples/v1/usage-metering/GetIncidentManagement.rb index 31560e09ac3e..cb7a76dd7e51 100644 --- a/examples/v1/usage-metering/GetIncidentManagement.rb +++ b/examples/v1/usage-metering/GetIncidentManagement.rb @@ -1,6 +1,9 @@ # Get hourly usage for incident management returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetIngestedSpans.rb b/examples/v1/usage-metering/GetIngestedSpans.rb index 08e6927b6433..34ac371880fe 100644 --- a/examples/v1/usage-metering/GetIngestedSpans.rb +++ b/examples/v1/usage-metering/GetIngestedSpans.rb @@ -1,6 +1,9 @@ # Get hourly usage for ingested spans returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetMonthlyCustomReports.rb b/examples/v1/usage-metering/GetMonthlyCustomReports.rb index 9c453bf9b1a6..5c61387c4cc9 100644 --- a/examples/v1/usage-metering/GetMonthlyCustomReports.rb +++ b/examples/v1/usage-metering/GetMonthlyCustomReports.rb @@ -1,5 +1,8 @@ # Get the list of available monthly custom reports returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_monthly_custom_reports() diff --git a/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb b/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb index 22009ff19049..0adc74f03684 100644 --- a/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb +++ b/examples/v1/usage-metering/GetMonthlyUsageAttribution.rb @@ -1,5 +1,8 @@ # Get monthly usage attribution returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_monthly_usage_attribution((Time.now + -3 * 86400), MonthlyUsageAttributionSupportedMetrics::INFRA_HOST_USAGE) diff --git a/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb b/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb index 8fb45cc23f1e..d5d3913089cc 100644 --- a/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb +++ b/examples/v1/usage-metering/GetMonthlyUsageAttribution_3849653599.rb @@ -1,6 +1,9 @@ # Paginate monthly usage attribution require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new # there is a valid "monthly_usage_attribution" response diff --git a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb b/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb index c8023d1dc35e..d7980d3f846a 100644 --- a/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb +++ b/examples/v1/usage-metering/GetSpecifiedDailyCustomReports.rb @@ -1,5 +1,8 @@ # Get specified daily custom reports returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_specified_daily_custom_reports("2022-03-20") diff --git a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb b/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb index fef8de2a249d..da4e78955613 100644 --- a/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb +++ b/examples/v1/usage-metering/GetSpecifiedMonthlyCustomReports.rb @@ -1,5 +1,8 @@ # Get specified monthly custom reports returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_specified_monthly_custom_reports("2021-05-01") diff --git a/examples/v1/usage-metering/GetUsageAnalyzedLogs.rb b/examples/v1/usage-metering/GetUsageAnalyzedLogs.rb index c8a4a00b9491..7a2fdb6e93f5 100644 --- a/examples/v1/usage-metering/GetUsageAnalyzedLogs.rb +++ b/examples/v1/usage-metering/GetUsageAnalyzedLogs.rb @@ -1,6 +1,9 @@ # Get hourly usage for analyzed logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageAuditLogs.rb b/examples/v1/usage-metering/GetUsageAuditLogs.rb index 1ca264291770..3ed3e3b0db8b 100644 --- a/examples/v1/usage-metering/GetUsageAuditLogs.rb +++ b/examples/v1/usage-metering/GetUsageAuditLogs.rb @@ -1,6 +1,9 @@ # Get hourly usage for audit logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageBillableSummary.rb b/examples/v1/usage-metering/GetUsageBillableSummary.rb index 5ab65a79be21..f0051f60397c 100644 --- a/examples/v1/usage-metering/GetUsageBillableSummary.rb +++ b/examples/v1/usage-metering/GetUsageBillableSummary.rb @@ -1,5 +1,8 @@ # Get billable usage across your account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_billable_summary() diff --git a/examples/v1/usage-metering/GetUsageCIApp.rb b/examples/v1/usage-metering/GetUsageCIApp.rb index 3739488ee409..17f7e81aa4bc 100644 --- a/examples/v1/usage-metering/GetUsageCIApp.rb +++ b/examples/v1/usage-metering/GetUsageCIApp.rb @@ -1,6 +1,9 @@ # Get hourly usage for CI visibility returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageCWS.rb b/examples/v1/usage-metering/GetUsageCWS.rb index 313d82f58673..6878d770fb98 100644 --- a/examples/v1/usage-metering/GetUsageCWS.rb +++ b/examples/v1/usage-metering/GetUsageCWS.rb @@ -1,6 +1,9 @@ # Get hourly usage for cloud workload security returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb b/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb index 83ffb86da606..170e4414539b 100644 --- a/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +++ b/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb @@ -1,5 +1,8 @@ # Get hourly usage for CSM Pro returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_cloud_security_posture_management((Time.now + -3 * 86400)) diff --git a/examples/v1/usage-metering/GetUsageDBM.rb b/examples/v1/usage-metering/GetUsageDBM.rb index 02f84d0e4aa5..8f8391ae784c 100644 --- a/examples/v1/usage-metering/GetUsageDBM.rb +++ b/examples/v1/usage-metering/GetUsageDBM.rb @@ -1,5 +1,8 @@ # Get hourly usage for database monitoring returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_dbm("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageDBM_3446806203.rb b/examples/v1/usage-metering/GetUsageDBM_3446806203.rb index 36a88e8751c8..666150d5e35a 100644 --- a/examples/v1/usage-metering/GetUsageDBM_3446806203.rb +++ b/examples/v1/usage-metering/GetUsageDBM_3446806203.rb @@ -1,6 +1,9 @@ # Get hourly usage for Database Monitoring returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageFargate.rb b/examples/v1/usage-metering/GetUsageFargate.rb index 027f5f58f0a8..5b87c79e7a72 100644 --- a/examples/v1/usage-metering/GetUsageFargate.rb +++ b/examples/v1/usage-metering/GetUsageFargate.rb @@ -1,6 +1,9 @@ # Get hourly usage for Fargate returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageHosts.rb b/examples/v1/usage-metering/GetUsageHosts.rb index 5ea1d31a3d42..08f7a1a31b99 100644 --- a/examples/v1/usage-metering/GetUsageHosts.rb +++ b/examples/v1/usage-metering/GetUsageHosts.rb @@ -1,6 +1,9 @@ # Get hourly usage for hosts and containers returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageIndexedSpans.rb b/examples/v1/usage-metering/GetUsageIndexedSpans.rb index db47b9a1952a..7ee06cf3b438 100644 --- a/examples/v1/usage-metering/GetUsageIndexedSpans.rb +++ b/examples/v1/usage-metering/GetUsageIndexedSpans.rb @@ -1,6 +1,9 @@ # Get hourly usage for indexed spans returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageInternetOfThings.rb b/examples/v1/usage-metering/GetUsageInternetOfThings.rb index 756c05a8a578..4d9ca1efee54 100644 --- a/examples/v1/usage-metering/GetUsageInternetOfThings.rb +++ b/examples/v1/usage-metering/GetUsageInternetOfThings.rb @@ -1,6 +1,9 @@ # Get hourly usage for IoT returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageLambda.rb b/examples/v1/usage-metering/GetUsageLambda.rb index 2e2f998c6f33..3e1b10dac1f3 100644 --- a/examples/v1/usage-metering/GetUsageLambda.rb +++ b/examples/v1/usage-metering/GetUsageLambda.rb @@ -1,6 +1,9 @@ # Get hourly usage for Lambda returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageLogs.rb b/examples/v1/usage-metering/GetUsageLogs.rb index 101bbf1f087f..b3e7d7948382 100644 --- a/examples/v1/usage-metering/GetUsageLogs.rb +++ b/examples/v1/usage-metering/GetUsageLogs.rb @@ -1,5 +1,8 @@ # Get hourly usage for logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_logs("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageLogsByIndex.rb b/examples/v1/usage-metering/GetUsageLogsByIndex.rb index 55bc6e8ceb8f..5aabfb068836 100644 --- a/examples/v1/usage-metering/GetUsageLogsByIndex.rb +++ b/examples/v1/usage-metering/GetUsageLogsByIndex.rb @@ -1,5 +1,8 @@ # Get hourly usage for logs by index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_logs_by_index("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb b/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb index cb8dcdf113bf..70f3b4942bbb 100644 --- a/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb +++ b/examples/v1/usage-metering/GetUsageLogsByIndex_1025184776.rb @@ -1,6 +1,9 @@ # Get hourly usage for Logs by Index returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageLogsByRetention.rb b/examples/v1/usage-metering/GetUsageLogsByRetention.rb index b65aefe6073c..10ce6d8559e4 100644 --- a/examples/v1/usage-metering/GetUsageLogsByRetention.rb +++ b/examples/v1/usage-metering/GetUsageLogsByRetention.rb @@ -1,6 +1,9 @@ # Get hourly logs usage by retention returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageLogs_2562396405.rb b/examples/v1/usage-metering/GetUsageLogs_2562396405.rb index 06d905c6480f..63d7e690b31f 100644 --- a/examples/v1/usage-metering/GetUsageLogs_2562396405.rb +++ b/examples/v1/usage-metering/GetUsageLogs_2562396405.rb @@ -1,6 +1,9 @@ # Get hourly usage for Logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageNetworkFlows.rb b/examples/v1/usage-metering/GetUsageNetworkFlows.rb index 1caab5ac23fe..6c9da11d28de 100644 --- a/examples/v1/usage-metering/GetUsageNetworkFlows.rb +++ b/examples/v1/usage-metering/GetUsageNetworkFlows.rb @@ -1,5 +1,8 @@ # get hourly usage for network flows returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_network_flows("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb b/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb index af6542331f8a..31d683a8dd9c 100644 --- a/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb +++ b/examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.rb @@ -1,6 +1,9 @@ # Get hourly usage for Network Flows returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageNetworkHosts.rb b/examples/v1/usage-metering/GetUsageNetworkHosts.rb index 9cde7de7993d..2956976ff4f2 100644 --- a/examples/v1/usage-metering/GetUsageNetworkHosts.rb +++ b/examples/v1/usage-metering/GetUsageNetworkHosts.rb @@ -1,5 +1,8 @@ # Get hourly usage for network hosts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_network_hosts("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb b/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb index 025a8d6cb0ea..ba376baa0dec 100644 --- a/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb +++ b/examples/v1/usage-metering/GetUsageNetworkHosts_1249907835.rb @@ -1,6 +1,9 @@ # Get hourly usage for Network Hosts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageOnlineArchive.rb b/examples/v1/usage-metering/GetUsageOnlineArchive.rb index c06984be87fd..adfda916b3af 100644 --- a/examples/v1/usage-metering/GetUsageOnlineArchive.rb +++ b/examples/v1/usage-metering/GetUsageOnlineArchive.rb @@ -1,5 +1,8 @@ # Get hourly usage for online archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_online_archive("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb b/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb index dcd8fc47312e..1994e1a858c0 100644 --- a/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb +++ b/examples/v1/usage-metering/GetUsageOnlineArchive_1501172903.rb @@ -1,6 +1,9 @@ # Get hourly usage for Online Archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageProfiling.rb b/examples/v1/usage-metering/GetUsageProfiling.rb index bc53969ade79..08b618243112 100644 --- a/examples/v1/usage-metering/GetUsageProfiling.rb +++ b/examples/v1/usage-metering/GetUsageProfiling.rb @@ -1,6 +1,9 @@ # Get hourly usage for profiled hosts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageRumSessions.rb b/examples/v1/usage-metering/GetUsageRumSessions.rb index 227d29c3aaab..ee8255350400 100644 --- a/examples/v1/usage-metering/GetUsageRumSessions.rb +++ b/examples/v1/usage-metering/GetUsageRumSessions.rb @@ -1,5 +1,8 @@ # Get hourly usage for RUM sessions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_rum_sessions("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb b/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb index 33b3cfc600e8..6b63b310b6f2 100644 --- a/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb +++ b/examples/v1/usage-metering/GetUsageRumSessions_3271366243.rb @@ -1,6 +1,9 @@ # Get mobile hourly usage for RUM Sessions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb b/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb index eab7f63b707f..423dd2600406 100644 --- a/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb +++ b/examples/v1/usage-metering/GetUsageRumSessions_714937291.rb @@ -1,6 +1,9 @@ # Get hourly usage for RUM Sessions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageRumUnits.rb b/examples/v1/usage-metering/GetUsageRumUnits.rb index f79e11600e1a..c204e70c8c42 100644 --- a/examples/v1/usage-metering/GetUsageRumUnits.rb +++ b/examples/v1/usage-metering/GetUsageRumUnits.rb @@ -1,5 +1,8 @@ # Get hourly usage for RUM units returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_rum_units("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb b/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb index 57c536f37a14..f602b4263b45 100644 --- a/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb +++ b/examples/v1/usage-metering/GetUsageRumUnits_3959755399.rb @@ -1,6 +1,9 @@ # Get hourly usage for RUM Units returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageSDS.rb b/examples/v1/usage-metering/GetUsageSDS.rb index 6d1fa0cbc3c7..2f725fe9e0a1 100644 --- a/examples/v1/usage-metering/GetUsageSDS.rb +++ b/examples/v1/usage-metering/GetUsageSDS.rb @@ -1,5 +1,8 @@ # Get hourly usage for sensitive data scanner returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_sds("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageSDS_271128478.rb b/examples/v1/usage-metering/GetUsageSDS_271128478.rb index c845b66bba99..cbcbc3f530b9 100644 --- a/examples/v1/usage-metering/GetUsageSDS_271128478.rb +++ b/examples/v1/usage-metering/GetUsageSDS_271128478.rb @@ -1,6 +1,9 @@ # Get hourly usage for Sensitive Data Scanner returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageSNMP.rb b/examples/v1/usage-metering/GetUsageSNMP.rb index fa1853b55d83..d7661026a5c5 100644 --- a/examples/v1/usage-metering/GetUsageSNMP.rb +++ b/examples/v1/usage-metering/GetUsageSNMP.rb @@ -1,6 +1,9 @@ # Get hourly usage for SNMP devices returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageSummary.rb b/examples/v1/usage-metering/GetUsageSummary.rb index 0fd9049164f2..49c98efd61ce 100644 --- a/examples/v1/usage-metering/GetUsageSummary.rb +++ b/examples/v1/usage-metering/GetUsageSummary.rb @@ -1,5 +1,8 @@ # Get usage across your account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_summary("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageSynthetics.rb b/examples/v1/usage-metering/GetUsageSynthetics.rb index 203cca686ec2..d038849f9f49 100644 --- a/examples/v1/usage-metering/GetUsageSynthetics.rb +++ b/examples/v1/usage-metering/GetUsageSynthetics.rb @@ -1,5 +1,8 @@ # Get hourly usage for synthetics checks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_synthetics("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb b/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb index f0878d88cf1a..f04d54142f14 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb +++ b/examples/v1/usage-metering/GetUsageSyntheticsAPI.rb @@ -1,5 +1,8 @@ # Get hourly usage for synthetics API checks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_synthetics_api("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb b/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb index 9541b1cdba5f..f0ea1a0ed09b 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb +++ b/examples/v1/usage-metering/GetUsageSyntheticsAPI_4048033529.rb @@ -1,6 +1,9 @@ # Get hourly usage for Synthetics API Checks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb b/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb index 580fcbace26c..1197d6fcfab2 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb +++ b/examples/v1/usage-metering/GetUsageSyntheticsBrowser.rb @@ -1,5 +1,8 @@ # Get hourly usage for synthetics browser checks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new p api_instance.get_usage_synthetics_browser("2021-11-11T11:11:11.111+00:00") diff --git a/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb b/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb index ed498a45b80b..1d8c33063172 100644 --- a/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb +++ b/examples/v1/usage-metering/GetUsageSyntheticsBrowser_1704663299.rb @@ -1,6 +1,9 @@ # Get hourly usage for Synthetics Browser Checks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageTimeseries.rb b/examples/v1/usage-metering/GetUsageTimeseries.rb index 1555ecea9270..63c0e15fdc9c 100644 --- a/examples/v1/usage-metering/GetUsageTimeseries.rb +++ b/examples/v1/usage-metering/GetUsageTimeseries.rb @@ -1,6 +1,9 @@ # Get hourly usage for custom metrics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v1/usage-metering/GetUsageTopAvgMetrics.rb b/examples/v1/usage-metering/GetUsageTopAvgMetrics.rb index 459af635fc6a..c03df60505df 100644 --- a/examples/v1/usage-metering/GetUsageTopAvgMetrics.rb +++ b/examples/v1/usage-metering/GetUsageTopAvgMetrics.rb @@ -1,6 +1,9 @@ # Get all custom metrics by hourly average returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsageMeteringAPI.new opts = { day: (Time.now + -3 * 86400), diff --git a/examples/v1/users/CreateUser.rb b/examples/v1/users/CreateUser.rb index 017f55bbaf2d..a0e7b96acf97 100644 --- a/examples/v1/users/CreateUser.rb +++ b/examples/v1/users/CreateUser.rb @@ -1,6 +1,9 @@ # Create a user returns "User created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new body = DatadogAPIClient::V1::User.new({ diff --git a/examples/v1/users/CreateUser_266604071.rb b/examples/v1/users/CreateUser_266604071.rb index 454591e4d82b..24fa19079675 100644 --- a/examples/v1/users/CreateUser_266604071.rb +++ b/examples/v1/users/CreateUser_266604071.rb @@ -1,6 +1,9 @@ # Create a user returns null access role require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new body = DatadogAPIClient::V1::User.new({ diff --git a/examples/v1/users/DisableUser.rb b/examples/v1/users/DisableUser.rb index ebeff5862d94..79c2053277c5 100644 --- a/examples/v1/users/DisableUser.rb +++ b/examples/v1/users/DisableUser.rb @@ -1,5 +1,8 @@ # Disable a user returns "User disabled" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new p api_instance.disable_user("test@datadoghq.com") diff --git a/examples/v1/users/GetUser.rb b/examples/v1/users/GetUser.rb index f130c5819b3e..c9c79a6f8895 100644 --- a/examples/v1/users/GetUser.rb +++ b/examples/v1/users/GetUser.rb @@ -1,5 +1,8 @@ # Get user details returns "OK for get user" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new p api_instance.get_user("test@datadoghq.com") diff --git a/examples/v1/users/ListUsers.rb b/examples/v1/users/ListUsers.rb index b619114f316f..5784b0e6bd79 100644 --- a/examples/v1/users/ListUsers.rb +++ b/examples/v1/users/ListUsers.rb @@ -1,5 +1,8 @@ # List all users returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new p api_instance.list_users() diff --git a/examples/v1/users/UpdateUser.rb b/examples/v1/users/UpdateUser.rb index ec7a6ac09b2f..5f3624da2564 100644 --- a/examples/v1/users/UpdateUser.rb +++ b/examples/v1/users/UpdateUser.rb @@ -1,6 +1,9 @@ # Update a user returns "User updated" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::UsersAPI.new body = DatadogAPIClient::V1::User.new({ diff --git a/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb b/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb index 02c6e061f762..e358e6cf4529 100644 --- a/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb +++ b/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb @@ -1,6 +1,9 @@ # Create a webhooks integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new body = DatadogAPIClient::V1::WebhooksIntegration.new({ diff --git a/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb b/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb index aca8491690e5..3427c63a2ccf 100644 --- a/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb +++ b/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,9 @@ # Create a custom variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new body = DatadogAPIClient::V1::WebhooksIntegrationCustomVariable.new({ diff --git a/examples/v1/webhooks-integration/DeleteWebhooksIntegration.rb b/examples/v1/webhooks-integration/DeleteWebhooksIntegration.rb index 22476213f643..020ddc07acf7 100644 --- a/examples/v1/webhooks-integration/DeleteWebhooksIntegration.rb +++ b/examples/v1/webhooks-integration/DeleteWebhooksIntegration.rb @@ -1,6 +1,9 @@ # Delete a webhook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new # there is a valid "webhook" in the system diff --git a/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb b/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb index 8c2c3a8d73f2..8ba2915d11d6 100644 --- a/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb +++ b/examples/v1/webhooks-integration/DeleteWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,9 @@ # Delete a custom variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new # there is a valid "webhook_custom_variable" in the system diff --git a/examples/v1/webhooks-integration/GetWebhooksIntegration.rb b/examples/v1/webhooks-integration/GetWebhooksIntegration.rb index 793e84148c0c..1a099891c126 100644 --- a/examples/v1/webhooks-integration/GetWebhooksIntegration.rb +++ b/examples/v1/webhooks-integration/GetWebhooksIntegration.rb @@ -1,6 +1,9 @@ # Get a webhook integration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new # there is a valid "webhook" in the system diff --git a/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb b/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb index 65221a9719de..82ebb0aac115 100644 --- a/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb +++ b/examples/v1/webhooks-integration/GetWebhooksIntegrationCustomVariable.rb @@ -1,5 +1,8 @@ # Get a custom variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new p api_instance.get_webhooks_integration_custom_variable("custom_variable_name") diff --git a/examples/v1/webhooks-integration/UpdateWebhooksIntegration.rb b/examples/v1/webhooks-integration/UpdateWebhooksIntegration.rb index 902b1dbbd987..887f6975036e 100644 --- a/examples/v1/webhooks-integration/UpdateWebhooksIntegration.rb +++ b/examples/v1/webhooks-integration/UpdateWebhooksIntegration.rb @@ -1,6 +1,9 @@ # Update a webhook returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new # there is a valid "webhook" in the system diff --git a/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb b/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb index e9d75bc949b6..d8bf0e263b52 100644 --- a/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb +++ b/examples/v1/webhooks-integration/UpdateWebhooksIntegrationCustomVariable.rb @@ -1,6 +1,9 @@ # Update a custom variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V1::WebhooksIntegrationAPI.new # there is a valid "webhook_custom_variable" in the system diff --git a/examples/v2/action-connection/CreateActionConnection.rb b/examples/v2/action-connection/CreateActionConnection.rb index b242f639d601..a470e26ee3f4 100644 --- a/examples/v2/action-connection/CreateActionConnection.rb +++ b/examples/v2/action-connection/CreateActionConnection.rb @@ -1,6 +1,9 @@ # Create a new Action Connection returns "Successfully created Action Connection" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({ diff --git a/examples/v2/action-connection/DeleteActionConnection.rb b/examples/v2/action-connection/DeleteActionConnection.rb index b44de63aff80..b50e0eafea8e 100644 --- a/examples/v2/action-connection/DeleteActionConnection.rb +++ b/examples/v2/action-connection/DeleteActionConnection.rb @@ -1,6 +1,9 @@ # Delete an existing Action Connection returns "The resource was deleted successfully." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new # there is a valid "action_connection" in the system diff --git a/examples/v2/action-connection/GetActionConnection.rb b/examples/v2/action-connection/GetActionConnection.rb index fb3c754100e9..dc271e47676f 100644 --- a/examples/v2/action-connection/GetActionConnection.rb +++ b/examples/v2/action-connection/GetActionConnection.rb @@ -1,5 +1,8 @@ # Get an existing Action Connection returns "Successfully get Action Connection" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new p api_instance.get_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d") diff --git a/examples/v2/action-connection/GetAppKeyRegistration.rb b/examples/v2/action-connection/GetAppKeyRegistration.rb index ec3e2109c747..1957c275fece 100644 --- a/examples/v2/action-connection/GetAppKeyRegistration.rb +++ b/examples/v2/action-connection/GetAppKeyRegistration.rb @@ -1,5 +1,8 @@ # Get an existing App Key Registration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new p api_instance.get_app_key_registration("b7feea52-994e-4714-a100-1bd9eff5aee1") diff --git a/examples/v2/action-connection/ListAppKeyRegistrations.rb b/examples/v2/action-connection/ListAppKeyRegistrations.rb index b9c22e38ff71..6ba21499dd1d 100644 --- a/examples/v2/action-connection/ListAppKeyRegistrations.rb +++ b/examples/v2/action-connection/ListAppKeyRegistrations.rb @@ -1,5 +1,8 @@ # List App Key Registrations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new p api_instance.list_app_key_registrations() diff --git a/examples/v2/action-connection/RegisterAppKey.rb b/examples/v2/action-connection/RegisterAppKey.rb index f3714921ee18..223ccb06eb1d 100644 --- a/examples/v2/action-connection/RegisterAppKey.rb +++ b/examples/v2/action-connection/RegisterAppKey.rb @@ -1,5 +1,8 @@ # Register a new App Key returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new p api_instance.register_app_key("b7feea52-994e-4714-a100-1bd9eff5aee1") diff --git a/examples/v2/action-connection/UnregisterAppKey.rb b/examples/v2/action-connection/UnregisterAppKey.rb index 8df924e26308..e581cae727a2 100644 --- a/examples/v2/action-connection/UnregisterAppKey.rb +++ b/examples/v2/action-connection/UnregisterAppKey.rb @@ -1,5 +1,8 @@ # Unregister an App Key returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new api_instance.unregister_app_key("57cc69ae-9214-4ecc-8df8-43ecc1d92d99") diff --git a/examples/v2/action-connection/UpdateActionConnection.rb b/examples/v2/action-connection/UpdateActionConnection.rb index d50eae26f0e7..b9c2626faefb 100644 --- a/examples/v2/action-connection/UpdateActionConnection.rb +++ b/examples/v2/action-connection/UpdateActionConnection.rb @@ -1,6 +1,9 @@ # Update an existing Action Connection returns "Successfully updated Action Connection" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new body = DatadogAPIClient::V2::UpdateActionConnectionRequest.new({ diff --git a/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb b/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb index 388112f3545a..a41740cef6c6 100644 --- a/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb +++ b/examples/v2/actions-datastores/BulkDeleteDatastoreItems.rb @@ -1,6 +1,9 @@ # Bulk delete datastore items returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb b/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb index 224a5c82ebe9..59fa46f7c66d 100644 --- a/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb +++ b/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb @@ -1,6 +1,9 @@ # Bulk write datastore items returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/CreateDatastore.rb b/examples/v2/actions-datastores/CreateDatastore.rb index 8d259bd6b866..ef5c2df32865 100644 --- a/examples/v2/actions-datastores/CreateDatastore.rb +++ b/examples/v2/actions-datastores/CreateDatastore.rb @@ -1,6 +1,9 @@ # Create datastore returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new body = DatadogAPIClient::V2::CreateAppsDatastoreRequest.new({ diff --git a/examples/v2/actions-datastores/DeleteDatastore.rb b/examples/v2/actions-datastores/DeleteDatastore.rb index 85eb3da3763b..39561c8e2fd7 100644 --- a/examples/v2/actions-datastores/DeleteDatastore.rb +++ b/examples/v2/actions-datastores/DeleteDatastore.rb @@ -1,6 +1,9 @@ # Delete datastore returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/DeleteDatastoreItem.rb b/examples/v2/actions-datastores/DeleteDatastoreItem.rb index 24450cf08fcc..4d4a3936eb9c 100644 --- a/examples/v2/actions-datastores/DeleteDatastoreItem.rb +++ b/examples/v2/actions-datastores/DeleteDatastoreItem.rb @@ -1,6 +1,9 @@ # Delete datastore item returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/GetDatastore.rb b/examples/v2/actions-datastores/GetDatastore.rb index eff47d43fb5f..304d22a9336d 100644 --- a/examples/v2/actions-datastores/GetDatastore.rb +++ b/examples/v2/actions-datastores/GetDatastore.rb @@ -1,6 +1,9 @@ # Get datastore returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/ListDatastoreItems.rb b/examples/v2/actions-datastores/ListDatastoreItems.rb index e336620dbf91..fdce59f9c7b4 100644 --- a/examples/v2/actions-datastores/ListDatastoreItems.rb +++ b/examples/v2/actions-datastores/ListDatastoreItems.rb @@ -1,6 +1,9 @@ # List datastore items returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/ListDatastores.rb b/examples/v2/actions-datastores/ListDatastores.rb index 2d0c739ee9cc..78e8ae8dabe0 100644 --- a/examples/v2/actions-datastores/ListDatastores.rb +++ b/examples/v2/actions-datastores/ListDatastores.rb @@ -1,5 +1,8 @@ # List datastores returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new p api_instance.list_datastores() diff --git a/examples/v2/actions-datastores/UpdateDatastore.rb b/examples/v2/actions-datastores/UpdateDatastore.rb index e1fdd018db45..946f21bf1038 100644 --- a/examples/v2/actions-datastores/UpdateDatastore.rb +++ b/examples/v2/actions-datastores/UpdateDatastore.rb @@ -1,6 +1,9 @@ # Update datastore returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/actions-datastores/UpdateDatastoreItem.rb b/examples/v2/actions-datastores/UpdateDatastoreItem.rb index 3f5392a03188..6cc0af981763 100644 --- a/examples/v2/actions-datastores/UpdateDatastoreItem.rb +++ b/examples/v2/actions-datastores/UpdateDatastoreItem.rb @@ -1,6 +1,9 @@ # Update datastore item returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ActionsDatastoresAPI.new # there is a valid "datastore" in the system diff --git a/examples/v2/agent-observability/AggregateLLMObsExperimentation.rb b/examples/v2/agent-observability/AggregateLLMObsExperimentation.rb index b7695f4cfcc9..d9f3fdbc6cea 100644 --- a/examples/v2/agent-observability/AggregateLLMObsExperimentation.rb +++ b/examples/v2/agent-observability/AggregateLLMObsExperimentation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.aggregate_llm_obs_experimentation".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/BatchUpdateLLMObsDataset.rb b/examples/v2/agent-observability/BatchUpdateLLMObsDataset.rb index 477fba539990..b3af29247b74 100644 --- a/examples/v2/agent-observability/BatchUpdateLLMObsDataset.rb +++ b/examples/v2/agent-observability/BatchUpdateLLMObsDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.batch_update_llm_obs_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CloneLLMObsDataset.rb b/examples/v2/agent-observability/CloneLLMObsDataset.rb index 23842128d8fa..bc88f92563d0 100644 --- a/examples/v2/agent-observability/CloneLLMObsDataset.rb +++ b/examples/v2/agent-observability/CloneLLMObsDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.clone_llm_obs_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsAnnotationQueue.rb b/examples/v2/agent-observability/CreateLLMObsAnnotationQueue.rb index d7f177abffcc..01581989a024 100644 --- a/examples/v2/agent-observability/CreateLLMObsAnnotationQueue.rb +++ b/examples/v2/agent-observability/CreateLLMObsAnnotationQueue.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_annotation_queue".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions.rb b/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions.rb index 8df5b7a2af7c..d8b256e398f0 100644 --- a/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions.rb +++ b/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_annotation_queue_interactions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions_2021594537.rb b/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions_2021594537.rb index 0041ca13f373..6cbecc10d618 100644 --- a/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions_2021594537.rb +++ b/examples/v2/agent-observability/CreateLLMObsAnnotationQueueInteractions_2021594537.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_annotation_queue_interactions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsDataset.rb b/examples/v2/agent-observability/CreateLLMObsDataset.rb index b313ddbca1c0..1608240977a2 100644 --- a/examples/v2/agent-observability/CreateLLMObsDataset.rb +++ b/examples/v2/agent-observability/CreateLLMObsDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsDatasetRecords.rb b/examples/v2/agent-observability/CreateLLMObsDatasetRecords.rb index 6dc4b63734fd..2b6cad057f0f 100644 --- a/examples/v2/agent-observability/CreateLLMObsDatasetRecords.rb +++ b/examples/v2/agent-observability/CreateLLMObsDatasetRecords.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_dataset_records".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsExperiment.rb b/examples/v2/agent-observability/CreateLLMObsExperiment.rb index 4a8d602013fd..bf842732d6ff 100644 --- a/examples/v2/agent-observability/CreateLLMObsExperiment.rb +++ b/examples/v2/agent-observability/CreateLLMObsExperiment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_experiment".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsExperimentEvents.rb b/examples/v2/agent-observability/CreateLLMObsExperimentEvents.rb index 49d0d6d11ebc..5d46bde1d183 100644 --- a/examples/v2/agent-observability/CreateLLMObsExperimentEvents.rb +++ b/examples/v2/agent-observability/CreateLLMObsExperimentEvents.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_experiment_events".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsIntegrationInference.rb b/examples/v2/agent-observability/CreateLLMObsIntegrationInference.rb index f7489b0fc618..6bfc27db0490 100644 --- a/examples/v2/agent-observability/CreateLLMObsIntegrationInference.rb +++ b/examples/v2/agent-observability/CreateLLMObsIntegrationInference.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_integration_inference".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsProject.rb b/examples/v2/agent-observability/CreateLLMObsProject.rb index 34f523182d99..84ad9d51fa28 100644 --- a/examples/v2/agent-observability/CreateLLMObsProject.rb +++ b/examples/v2/agent-observability/CreateLLMObsProject.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_project".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsPrompt.rb b/examples/v2/agent-observability/CreateLLMObsPrompt.rb index 364cecb57336..062994fc7328 100644 --- a/examples/v2/agent-observability/CreateLLMObsPrompt.rb +++ b/examples/v2/agent-observability/CreateLLMObsPrompt.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_prompt".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/CreateLLMObsPromptVersion.rb b/examples/v2/agent-observability/CreateLLMObsPromptVersion.rb index 8dbb347076f1..03bf2c9e7d9f 100644 --- a/examples/v2/agent-observability/CreateLLMObsPromptVersion.rb +++ b/examples/v2/agent-observability/CreateLLMObsPromptVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_llm_obs_prompt_version".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsAnnotationQueue.rb b/examples/v2/agent-observability/DeleteLLMObsAnnotationQueue.rb index 210f530780cd..04ae764398ed 100644 --- a/examples/v2/agent-observability/DeleteLLMObsAnnotationQueue.rb +++ b/examples/v2/agent-observability/DeleteLLMObsAnnotationQueue.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_annotation_queue".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsAnnotationQueueInteractions.rb b/examples/v2/agent-observability/DeleteLLMObsAnnotationQueueInteractions.rb index 232599ae0f39..421c3a91cbf0 100644 --- a/examples/v2/agent-observability/DeleteLLMObsAnnotationQueueInteractions.rb +++ b/examples/v2/agent-observability/DeleteLLMObsAnnotationQueueInteractions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_annotation_queue_interactions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsAnnotations.rb b/examples/v2/agent-observability/DeleteLLMObsAnnotations.rb index 00f45c0ad4e9..7ed472c69e6d 100644 --- a/examples/v2/agent-observability/DeleteLLMObsAnnotations.rb +++ b/examples/v2/agent-observability/DeleteLLMObsAnnotations.rb @@ -3,6 +3,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_annotations".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsCustomEvalConfig.rb b/examples/v2/agent-observability/DeleteLLMObsCustomEvalConfig.rb index b470e505d8eb..3a323de88a88 100644 --- a/examples/v2/agent-observability/DeleteLLMObsCustomEvalConfig.rb +++ b/examples/v2/agent-observability/DeleteLLMObsCustomEvalConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_custom_eval_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsDatasetRecords.rb b/examples/v2/agent-observability/DeleteLLMObsDatasetRecords.rb index d2cd54e15fd5..479da4bc7033 100644 --- a/examples/v2/agent-observability/DeleteLLMObsDatasetRecords.rb +++ b/examples/v2/agent-observability/DeleteLLMObsDatasetRecords.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_dataset_records".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsDatasets.rb b/examples/v2/agent-observability/DeleteLLMObsDatasets.rb index 18c9b23d5240..822097f8de94 100644 --- a/examples/v2/agent-observability/DeleteLLMObsDatasets.rb +++ b/examples/v2/agent-observability/DeleteLLMObsDatasets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_datasets".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsExperiments.rb b/examples/v2/agent-observability/DeleteLLMObsExperiments.rb index 50aefeb9529a..6a4357d88542 100644 --- a/examples/v2/agent-observability/DeleteLLMObsExperiments.rb +++ b/examples/v2/agent-observability/DeleteLLMObsExperiments.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_experiments".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsPatternsConfig.rb b/examples/v2/agent-observability/DeleteLLMObsPatternsConfig.rb index 194617b14402..df121f7cb2d3 100644 --- a/examples/v2/agent-observability/DeleteLLMObsPatternsConfig.rb +++ b/examples/v2/agent-observability/DeleteLLMObsPatternsConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_patterns_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsProjects.rb b/examples/v2/agent-observability/DeleteLLMObsProjects.rb index 4804bb06ce1b..de36e480ef89 100644 --- a/examples/v2/agent-observability/DeleteLLMObsProjects.rb +++ b/examples/v2/agent-observability/DeleteLLMObsProjects.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_projects".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/DeleteLLMObsPrompt.rb b/examples/v2/agent-observability/DeleteLLMObsPrompt.rb index 94fef5ba2009..400848965199 100644 --- a/examples/v2/agent-observability/DeleteLLMObsPrompt.rb +++ b/examples/v2/agent-observability/DeleteLLMObsPrompt.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_llm_obs_prompt".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ExportLLMObsDataset.rb b/examples/v2/agent-observability/ExportLLMObsDataset.rb index be3b9a3e9c70..21848dd72fcb 100644 --- a/examples/v2/agent-observability/ExportLLMObsDataset.rb +++ b/examples/v2/agent-observability/ExportLLMObsDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.export_llm_obs_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction.rb b/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction.rb index 1ad6faba7ef7..dae0fb5ba977 100644 --- a/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction.rb +++ b/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_annotated_interaction".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction_3394378457.rb b/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction_3394378457.rb index 73e3995162cc..23238b258077 100644 --- a/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction_3394378457.rb +++ b/examples/v2/agent-observability/GetLLMObsAnnotatedInteraction_3394378457.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_annotated_interaction".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsAnnotatedInteractions.rb b/examples/v2/agent-observability/GetLLMObsAnnotatedInteractions.rb index cc5781aa825c..81b2b3200031 100644 --- a/examples/v2/agent-observability/GetLLMObsAnnotatedInteractions.rb +++ b/examples/v2/agent-observability/GetLLMObsAnnotatedInteractions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_annotated_interactions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsAnnotatedInteractionsByTraceIDs.rb b/examples/v2/agent-observability/GetLLMObsAnnotatedInteractionsByTraceIDs.rb index 8c37ab433042..e0266f66e525 100644 --- a/examples/v2/agent-observability/GetLLMObsAnnotatedInteractionsByTraceIDs.rb +++ b/examples/v2/agent-observability/GetLLMObsAnnotatedInteractionsByTraceIDs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_annotated_interactions_by_trace_i_ds".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsAnnotationQueueLabelSchema.rb b/examples/v2/agent-observability/GetLLMObsAnnotationQueueLabelSchema.rb index a534e7ccf2f5..517c61be99ba 100644 --- a/examples/v2/agent-observability/GetLLMObsAnnotationQueueLabelSchema.rb +++ b/examples/v2/agent-observability/GetLLMObsAnnotationQueueLabelSchema.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_annotation_queue_label_schema".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsCustomEvalConfig.rb b/examples/v2/agent-observability/GetLLMObsCustomEvalConfig.rb index e74bfbc5bf59..7402aa05fe6b 100644 --- a/examples/v2/agent-observability/GetLLMObsCustomEvalConfig.rb +++ b/examples/v2/agent-observability/GetLLMObsCustomEvalConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_custom_eval_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsDatasetDraftState.rb b/examples/v2/agent-observability/GetLLMObsDatasetDraftState.rb index 295e37e0f160..d360637d142f 100644 --- a/examples/v2/agent-observability/GetLLMObsDatasetDraftState.rb +++ b/examples/v2/agent-observability/GetLLMObsDatasetDraftState.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_dataset_draft_state".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsPatternsConfig.rb b/examples/v2/agent-observability/GetLLMObsPatternsConfig.rb index 8e9c88f455d0..15815b37ed29 100644 --- a/examples/v2/agent-observability/GetLLMObsPatternsConfig.rb +++ b/examples/v2/agent-observability/GetLLMObsPatternsConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_patterns_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsPatternsRunStatus.rb b/examples/v2/agent-observability/GetLLMObsPatternsRunStatus.rb index 6ad737c7c98c..0bdacb513db0 100644 --- a/examples/v2/agent-observability/GetLLMObsPatternsRunStatus.rb +++ b/examples/v2/agent-observability/GetLLMObsPatternsRunStatus.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_patterns_run_status".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsPrompt.rb b/examples/v2/agent-observability/GetLLMObsPrompt.rb index efe42e63ecd6..fa03577eccd2 100644 --- a/examples/v2/agent-observability/GetLLMObsPrompt.rb +++ b/examples/v2/agent-observability/GetLLMObsPrompt.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_prompt".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/GetLLMObsPromptVersion.rb b/examples/v2/agent-observability/GetLLMObsPromptVersion.rb index 0695a58f210a..14c2ad9ccb0c 100644 --- a/examples/v2/agent-observability/GetLLMObsPromptVersion.rb +++ b/examples/v2/agent-observability/GetLLMObsPromptVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_llm_obs_prompt_version".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsAnnotationQueues.rb b/examples/v2/agent-observability/ListLLMObsAnnotationQueues.rb index 0496c2646b51..b4983f16e423 100644 --- a/examples/v2/agent-observability/ListLLMObsAnnotationQueues.rb +++ b/examples/v2/agent-observability/ListLLMObsAnnotationQueues.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_annotation_queues".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsCustomEvalConfigs.rb b/examples/v2/agent-observability/ListLLMObsCustomEvalConfigs.rb index 10b458f5fa3d..1e35bf5b5e70 100644 --- a/examples/v2/agent-observability/ListLLMObsCustomEvalConfigs.rb +++ b/examples/v2/agent-observability/ListLLMObsCustomEvalConfigs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_custom_eval_configs".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsDatasetRecords.rb b/examples/v2/agent-observability/ListLLMObsDatasetRecords.rb index 40d20f9abfff..6924111e5df4 100644 --- a/examples/v2/agent-observability/ListLLMObsDatasetRecords.rb +++ b/examples/v2/agent-observability/ListLLMObsDatasetRecords.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_dataset_records".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsDatasetVersions.rb b/examples/v2/agent-observability/ListLLMObsDatasetVersions.rb index 73378048a12d..5ba5d197790e 100644 --- a/examples/v2/agent-observability/ListLLMObsDatasetVersions.rb +++ b/examples/v2/agent-observability/ListLLMObsDatasetVersions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_dataset_versions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsDatasets.rb b/examples/v2/agent-observability/ListLLMObsDatasets.rb index 1640cd3f375a..487fc8809d50 100644 --- a/examples/v2/agent-observability/ListLLMObsDatasets.rb +++ b/examples/v2/agent-observability/ListLLMObsDatasets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_datasets".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsExperimentEvents.rb b/examples/v2/agent-observability/ListLLMObsExperimentEvents.rb index 91ccd5f1d030..dbf0b63191da 100644 --- a/examples/v2/agent-observability/ListLLMObsExperimentEvents.rb +++ b/examples/v2/agent-observability/ListLLMObsExperimentEvents.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_experiment_events".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsExperimentEventsV1.rb b/examples/v2/agent-observability/ListLLMObsExperimentEventsV1.rb index c4c9364df854..d6dca86450cb 100644 --- a/examples/v2/agent-observability/ListLLMObsExperimentEventsV1.rb +++ b/examples/v2/agent-observability/ListLLMObsExperimentEventsV1.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_experiment_events_v1".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsExperimentEventsV2.rb b/examples/v2/agent-observability/ListLLMObsExperimentEventsV2.rb index 2f831b7e157f..ac4894afa93a 100644 --- a/examples/v2/agent-observability/ListLLMObsExperimentEventsV2.rb +++ b/examples/v2/agent-observability/ListLLMObsExperimentEventsV2.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_experiment_events_v2".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsExperiments.rb b/examples/v2/agent-observability/ListLLMObsExperiments.rb index 8ddcd06a7d52..ec53b41c6850 100644 --- a/examples/v2/agent-observability/ListLLMObsExperiments.rb +++ b/examples/v2/agent-observability/ListLLMObsExperiments.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_experiments".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsIntegrationAccounts.rb b/examples/v2/agent-observability/ListLLMObsIntegrationAccounts.rb index a840a39c1f5b..64bcbd7c2436 100644 --- a/examples/v2/agent-observability/ListLLMObsIntegrationAccounts.rb +++ b/examples/v2/agent-observability/ListLLMObsIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsIntegrationModels.rb b/examples/v2/agent-observability/ListLLMObsIntegrationModels.rb index 6ba085fd92a7..0ab0e03ebb48 100644 --- a/examples/v2/agent-observability/ListLLMObsIntegrationModels.rb +++ b/examples/v2/agent-observability/ListLLMObsIntegrationModels.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_integration_models".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPatternsClusteredPoints.rb b/examples/v2/agent-observability/ListLLMObsPatternsClusteredPoints.rb index dda4f11156da..ce04bf6f6df4 100644 --- a/examples/v2/agent-observability/ListLLMObsPatternsClusteredPoints.rb +++ b/examples/v2/agent-observability/ListLLMObsPatternsClusteredPoints.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_patterns_clustered_points".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPatternsConfigs.rb b/examples/v2/agent-observability/ListLLMObsPatternsConfigs.rb index 84279109f02e..21b2a6245bb6 100644 --- a/examples/v2/agent-observability/ListLLMObsPatternsConfigs.rb +++ b/examples/v2/agent-observability/ListLLMObsPatternsConfigs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_patterns_configs".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPatternsRuns.rb b/examples/v2/agent-observability/ListLLMObsPatternsRuns.rb index 1ecbec6644d3..adf80b10f465 100644 --- a/examples/v2/agent-observability/ListLLMObsPatternsRuns.rb +++ b/examples/v2/agent-observability/ListLLMObsPatternsRuns.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_patterns_runs".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPatternsTopics.rb b/examples/v2/agent-observability/ListLLMObsPatternsTopics.rb index 0e2f155b58c6..1ed2c41ceb29 100644 --- a/examples/v2/agent-observability/ListLLMObsPatternsTopics.rb +++ b/examples/v2/agent-observability/ListLLMObsPatternsTopics.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_patterns_topics".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPatternsTopicsWithClusteredPoints.rb b/examples/v2/agent-observability/ListLLMObsPatternsTopicsWithClusteredPoints.rb index 11677100a2ec..ef8cc7d2dbd7 100644 --- a/examples/v2/agent-observability/ListLLMObsPatternsTopicsWithClusteredPoints.rb +++ b/examples/v2/agent-observability/ListLLMObsPatternsTopicsWithClusteredPoints.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_patterns_topics_with_clustered_points".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsProjects.rb b/examples/v2/agent-observability/ListLLMObsProjects.rb index 99c609d6878b..6919ab5065e4 100644 --- a/examples/v2/agent-observability/ListLLMObsProjects.rb +++ b/examples/v2/agent-observability/ListLLMObsProjects.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_projects".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPromptVersions.rb b/examples/v2/agent-observability/ListLLMObsPromptVersions.rb index e8881a317895..702f3cdc7cd4 100644 --- a/examples/v2/agent-observability/ListLLMObsPromptVersions.rb +++ b/examples/v2/agent-observability/ListLLMObsPromptVersions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_prompt_versions".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsPrompts.rb b/examples/v2/agent-observability/ListLLMObsPrompts.rb index bd6c480fa123..7564334c9796 100644 --- a/examples/v2/agent-observability/ListLLMObsPrompts.rb +++ b/examples/v2/agent-observability/ListLLMObsPrompts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_prompts".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/ListLLMObsSpans.rb b/examples/v2/agent-observability/ListLLMObsSpans.rb index 608d7c5ea609..c817995bb80b 100644 --- a/examples/v2/agent-observability/ListLLMObsSpans.rb +++ b/examples/v2/agent-observability/ListLLMObsSpans.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_llm_obs_spans".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/LockLLMObsDatasetDraftState.rb b/examples/v2/agent-observability/LockLLMObsDatasetDraftState.rb index f486db0cfd9e..6d05aa09be3d 100644 --- a/examples/v2/agent-observability/LockLLMObsDatasetDraftState.rb +++ b/examples/v2/agent-observability/LockLLMObsDatasetDraftState.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.lock_llm_obs_dataset_draft_state".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/RestoreLLMObsDatasetVersion.rb b/examples/v2/agent-observability/RestoreLLMObsDatasetVersion.rb index 6657fbd139d9..c7c5c8995a51 100644 --- a/examples/v2/agent-observability/RestoreLLMObsDatasetVersion.rb +++ b/examples/v2/agent-observability/RestoreLLMObsDatasetVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.restore_llm_obs_dataset_version".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/SearchLLMObsExperimentation.rb b/examples/v2/agent-observability/SearchLLMObsExperimentation.rb index 93367f6eed8b..88871de1e19c 100644 --- a/examples/v2/agent-observability/SearchLLMObsExperimentation.rb +++ b/examples/v2/agent-observability/SearchLLMObsExperimentation.rb @@ -3,6 +3,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_llm_obs_experimentation".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/SearchLLMObsSpans.rb b/examples/v2/agent-observability/SearchLLMObsSpans.rb index a92f70fafd0a..583bf10abf3b 100644 --- a/examples/v2/agent-observability/SearchLLMObsSpans.rb +++ b/examples/v2/agent-observability/SearchLLMObsSpans.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_llm_obs_spans".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/SimpleSearchLLMObsExperimentation.rb b/examples/v2/agent-observability/SimpleSearchLLMObsExperimentation.rb index 91d6ec6ff5c7..4562951a9a5d 100644 --- a/examples/v2/agent-observability/SimpleSearchLLMObsExperimentation.rb +++ b/examples/v2/agent-observability/SimpleSearchLLMObsExperimentation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.simple_search_llm_obs_experimentation".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/TriggerLLMObsPatterns.rb b/examples/v2/agent-observability/TriggerLLMObsPatterns.rb index 646cec691c7a..8b0d029c2bca 100644 --- a/examples/v2/agent-observability/TriggerLLMObsPatterns.rb +++ b/examples/v2/agent-observability/TriggerLLMObsPatterns.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.trigger_llm_obs_patterns".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UnlockLLMObsDatasetDraftState.rb b/examples/v2/agent-observability/UnlockLLMObsDatasetDraftState.rb index c769c488825c..842c72d7b3f5 100644 --- a/examples/v2/agent-observability/UnlockLLMObsDatasetDraftState.rb +++ b/examples/v2/agent-observability/UnlockLLMObsDatasetDraftState.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.unlock_llm_obs_dataset_draft_state".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsAnnotationQueue.rb b/examples/v2/agent-observability/UpdateLLMObsAnnotationQueue.rb index 2c533daf4c57..a6ec207d66a1 100644 --- a/examples/v2/agent-observability/UpdateLLMObsAnnotationQueue.rb +++ b/examples/v2/agent-observability/UpdateLLMObsAnnotationQueue.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_annotation_queue".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsAnnotationQueueLabelSchema.rb b/examples/v2/agent-observability/UpdateLLMObsAnnotationQueueLabelSchema.rb index 102dcd34741b..f00c4337a9d2 100644 --- a/examples/v2/agent-observability/UpdateLLMObsAnnotationQueueLabelSchema.rb +++ b/examples/v2/agent-observability/UpdateLLMObsAnnotationQueueLabelSchema.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_annotation_queue_label_schema".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsCustomEvalConfig.rb b/examples/v2/agent-observability/UpdateLLMObsCustomEvalConfig.rb index 43fd6c17ebcb..40d623fb780e 100644 --- a/examples/v2/agent-observability/UpdateLLMObsCustomEvalConfig.rb +++ b/examples/v2/agent-observability/UpdateLLMObsCustomEvalConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_custom_eval_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsDataset.rb b/examples/v2/agent-observability/UpdateLLMObsDataset.rb index bf328007ec8f..82f28dcf1a83 100644 --- a/examples/v2/agent-observability/UpdateLLMObsDataset.rb +++ b/examples/v2/agent-observability/UpdateLLMObsDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsDatasetRecords.rb b/examples/v2/agent-observability/UpdateLLMObsDatasetRecords.rb index 9c3816d5f5e3..4e227c087e24 100644 --- a/examples/v2/agent-observability/UpdateLLMObsDatasetRecords.rb +++ b/examples/v2/agent-observability/UpdateLLMObsDatasetRecords.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_dataset_records".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsExperiment.rb b/examples/v2/agent-observability/UpdateLLMObsExperiment.rb index 511c62f61e9e..d9f532e3deff 100644 --- a/examples/v2/agent-observability/UpdateLLMObsExperiment.rb +++ b/examples/v2/agent-observability/UpdateLLMObsExperiment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_experiment".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsProject.rb b/examples/v2/agent-observability/UpdateLLMObsProject.rb index a7393c37a3d3..e222ea2724c4 100644 --- a/examples/v2/agent-observability/UpdateLLMObsProject.rb +++ b/examples/v2/agent-observability/UpdateLLMObsProject.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_project".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsPrompt.rb b/examples/v2/agent-observability/UpdateLLMObsPrompt.rb index 8407aa55f5e3..3a327b61a51f 100644 --- a/examples/v2/agent-observability/UpdateLLMObsPrompt.rb +++ b/examples/v2/agent-observability/UpdateLLMObsPrompt.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_prompt".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpdateLLMObsPromptVersion.rb b/examples/v2/agent-observability/UpdateLLMObsPromptVersion.rb index 7b08a72745ee..27f4cdcccbc0 100644 --- a/examples/v2/agent-observability/UpdateLLMObsPromptVersion.rb +++ b/examples/v2/agent-observability/UpdateLLMObsPromptVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_llm_obs_prompt_version".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UploadLLMObsDatasetRecordsFile.rb b/examples/v2/agent-observability/UploadLLMObsDatasetRecordsFile.rb index e77657f7bab1..aad3869b0ee1 100644 --- a/examples/v2/agent-observability/UploadLLMObsDatasetRecordsFile.rb +++ b/examples/v2/agent-observability/UploadLLMObsDatasetRecordsFile.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upload_llm_obs_dataset_records_file".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpsertLLMObsAnnotations.rb b/examples/v2/agent-observability/UpsertLLMObsAnnotations.rb index 93ace94ac647..fddae305fd12 100644 --- a/examples/v2/agent-observability/UpsertLLMObsAnnotations.rb +++ b/examples/v2/agent-observability/UpsertLLMObsAnnotations.rb @@ -3,6 +3,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upsert_llm_obs_annotations".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.rb b/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.rb index 30cfb680f441..aa5f9bfa5e1d 100644 --- a/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.rb +++ b/examples/v2/agent-observability/UpsertLLMObsPatternsConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upsert_llm_obs_patterns_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AgentObservabilityAPI.new diff --git a/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb b/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb index 8f105879640d..738b5f7c34d1 100644 --- a/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb +++ b/examples/v2/agentless-scanning/CreateAwsOnDemandTask.rb @@ -1,6 +1,9 @@ # Create AWS on demand task returns "AWS on demand task created successfully." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::AwsOnDemandCreateRequest.new({ diff --git a/examples/v2/agentless-scanning/CreateAwsScanOptions.rb b/examples/v2/agentless-scanning/CreateAwsScanOptions.rb index ee36253ffd18..f4748d281027 100644 --- a/examples/v2/agentless-scanning/CreateAwsScanOptions.rb +++ b/examples/v2/agentless-scanning/CreateAwsScanOptions.rb @@ -1,6 +1,9 @@ # Create AWS scan options returns "Agentless scan options enabled successfully." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::AwsScanOptionsCreateRequest.new({ diff --git a/examples/v2/agentless-scanning/CreateAzureScanOptions.rb b/examples/v2/agentless-scanning/CreateAzureScanOptions.rb index 67f629a26688..c17962a1e6f6 100644 --- a/examples/v2/agentless-scanning/CreateAzureScanOptions.rb +++ b/examples/v2/agentless-scanning/CreateAzureScanOptions.rb @@ -1,6 +1,9 @@ # Create Azure scan options returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::AzureScanOptions.new({ diff --git a/examples/v2/agentless-scanning/CreateGcpScanOptions.rb b/examples/v2/agentless-scanning/CreateGcpScanOptions.rb index 9cec6e3fca07..86ec8a47a37d 100644 --- a/examples/v2/agentless-scanning/CreateGcpScanOptions.rb +++ b/examples/v2/agentless-scanning/CreateGcpScanOptions.rb @@ -1,6 +1,9 @@ # Create GCP scan options returns "Agentless scan options enabled successfully." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::GcpScanOptions.new({ diff --git a/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb b/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb index cf087c651b07..fc7fb751a8d4 100644 --- a/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb +++ b/examples/v2/agentless-scanning/DeleteAwsScanOptions.rb @@ -1,5 +1,8 @@ # Delete AWS scan options returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new api_instance.delete_aws_scan_options("account_id") diff --git a/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb b/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb index 5170fecc3e67..c7463c96bbae 100644 --- a/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb +++ b/examples/v2/agentless-scanning/DeleteAzureScanOptions.rb @@ -1,5 +1,8 @@ # Delete Azure scan options returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new api_instance.delete_azure_scan_options("12345678-90ab-cdef-1234-567890abcdef") diff --git a/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb b/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb index 3c0e788dbf73..1da1e0597bc8 100644 --- a/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb +++ b/examples/v2/agentless-scanning/DeleteGcpScanOptions.rb @@ -1,5 +1,8 @@ # Delete GCP scan options returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new api_instance.delete_gcp_scan_options("company-project-id") diff --git a/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb b/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb index 192644fca71f..bef6d157e0a2 100644 --- a/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb +++ b/examples/v2/agentless-scanning/GetAwsOnDemandTask.rb @@ -1,5 +1,8 @@ # Get AWS on demand task returns "OK." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.get_aws_on_demand_task("63d6b4f5-e5d0-4d90-824a-9580f05f026a") diff --git a/examples/v2/agentless-scanning/GetAwsScanOptions.rb b/examples/v2/agentless-scanning/GetAwsScanOptions.rb index 68b129675b74..9e46fbb8f602 100644 --- a/examples/v2/agentless-scanning/GetAwsScanOptions.rb +++ b/examples/v2/agentless-scanning/GetAwsScanOptions.rb @@ -1,6 +1,9 @@ # Get AWS scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new # there is a valid "aws_scan_options" in the system diff --git a/examples/v2/agentless-scanning/GetAzureScanOptions.rb b/examples/v2/agentless-scanning/GetAzureScanOptions.rb index 8b1b613fb922..171fda0bafae 100644 --- a/examples/v2/agentless-scanning/GetAzureScanOptions.rb +++ b/examples/v2/agentless-scanning/GetAzureScanOptions.rb @@ -1,5 +1,8 @@ # Get Azure scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.get_azure_scan_options("12345678-90ab-cdef-1234-567890abcdef") diff --git a/examples/v2/agentless-scanning/GetGcpScanOptions.rb b/examples/v2/agentless-scanning/GetGcpScanOptions.rb index 0de8616dc3b6..7eb184c75d42 100644 --- a/examples/v2/agentless-scanning/GetGcpScanOptions.rb +++ b/examples/v2/agentless-scanning/GetGcpScanOptions.rb @@ -1,5 +1,8 @@ # Get GCP scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.get_gcp_scan_options("api-spec-test") diff --git a/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb b/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb index 48caa46e828c..b9e88bcb5360 100644 --- a/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb +++ b/examples/v2/agentless-scanning/ListAwsOnDemandTasks.rb @@ -1,5 +1,8 @@ # List AWS on demand tasks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.list_aws_on_demand_tasks() diff --git a/examples/v2/agentless-scanning/ListAwsScanOptions.rb b/examples/v2/agentless-scanning/ListAwsScanOptions.rb index 4667d31119e1..b061747b1aa5 100644 --- a/examples/v2/agentless-scanning/ListAwsScanOptions.rb +++ b/examples/v2/agentless-scanning/ListAwsScanOptions.rb @@ -1,5 +1,8 @@ # List AWS scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.list_aws_scan_options() diff --git a/examples/v2/agentless-scanning/ListAzureScanOptions.rb b/examples/v2/agentless-scanning/ListAzureScanOptions.rb index 369c0242339e..2cb6785ac705 100644 --- a/examples/v2/agentless-scanning/ListAzureScanOptions.rb +++ b/examples/v2/agentless-scanning/ListAzureScanOptions.rb @@ -1,5 +1,8 @@ # List Azure scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.list_azure_scan_options() diff --git a/examples/v2/agentless-scanning/ListGcpScanOptions.rb b/examples/v2/agentless-scanning/ListGcpScanOptions.rb index 794607c83c50..005a8fe51399 100644 --- a/examples/v2/agentless-scanning/ListGcpScanOptions.rb +++ b/examples/v2/agentless-scanning/ListGcpScanOptions.rb @@ -1,5 +1,8 @@ # List GCP scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new p api_instance.list_gcp_scan_options() diff --git a/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb b/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb index 33715955221a..5d2564519767 100644 --- a/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb +++ b/examples/v2/agentless-scanning/UpdateAwsScanOptions.rb @@ -1,6 +1,9 @@ # Update AWS scan options returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::AwsScanOptionsUpdateRequest.new({ diff --git a/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb b/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb index d3910e67752a..e73ad66234b9 100644 --- a/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb +++ b/examples/v2/agentless-scanning/UpdateAzureScanOptions.rb @@ -1,6 +1,9 @@ # Update Azure scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::AzureScanOptionsInputUpdate.new({ diff --git a/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb b/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb index e3dccec23d9b..023a6d199223 100644 --- a/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb +++ b/examples/v2/agentless-scanning/UpdateGcpScanOptions.rb @@ -1,6 +1,9 @@ # Update GCP scan options returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AgentlessScanningAPI.new body = DatadogAPIClient::V2::GcpScanOptionsInputUpdate.new({ diff --git a/examples/v2/annotations/CreateAnnotation.rb b/examples/v2/annotations/CreateAnnotation.rb index 2de569dd0688..c0b4ae798d58 100644 --- a/examples/v2/annotations/CreateAnnotation.rb +++ b/examples/v2/annotations/CreateAnnotation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_annotation".to_sym] = true end api_instance = DatadogAPIClient::V2::AnnotationsAPI.new diff --git a/examples/v2/annotations/DeleteAnnotation.rb b/examples/v2/annotations/DeleteAnnotation.rb index 89f8c4ca2efc..e7a98a7f1491 100644 --- a/examples/v2/annotations/DeleteAnnotation.rb +++ b/examples/v2/annotations/DeleteAnnotation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_annotation".to_sym] = true end api_instance = DatadogAPIClient::V2::AnnotationsAPI.new diff --git a/examples/v2/annotations/GetPageAnnotations.rb b/examples/v2/annotations/GetPageAnnotations.rb index 217452fdafb9..8f591b997f9c 100644 --- a/examples/v2/annotations/GetPageAnnotations.rb +++ b/examples/v2/annotations/GetPageAnnotations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_page_annotations".to_sym] = true end api_instance = DatadogAPIClient::V2::AnnotationsAPI.new diff --git a/examples/v2/annotations/ListAnnotations.rb b/examples/v2/annotations/ListAnnotations.rb index 200afe5acc31..7dc4ce61aa91 100644 --- a/examples/v2/annotations/ListAnnotations.rb +++ b/examples/v2/annotations/ListAnnotations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_annotations".to_sym] = true end api_instance = DatadogAPIClient::V2::AnnotationsAPI.new diff --git a/examples/v2/annotations/UpdateAnnotation.rb b/examples/v2/annotations/UpdateAnnotation.rb index ad1a6cdad079..fb85aa5dc8c3 100644 --- a/examples/v2/annotations/UpdateAnnotation.rb +++ b/examples/v2/annotations/UpdateAnnotation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_annotation".to_sym] = true end api_instance = DatadogAPIClient::V2::AnnotationsAPI.new diff --git a/examples/v2/api-management/CreateOpenAPI.rb b/examples/v2/api-management/CreateOpenAPI.rb index f5cda3d70fa4..68bdbf07942a 100644 --- a/examples/v2/api-management/CreateOpenAPI.rb +++ b/examples/v2/api-management/CreateOpenAPI.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_open_api".to_sym] = true end api_instance = DatadogAPIClient::V2::APIManagementAPI.new diff --git a/examples/v2/api-management/DeleteOpenAPI.rb b/examples/v2/api-management/DeleteOpenAPI.rb index aa79708063e8..bb61c969c833 100644 --- a/examples/v2/api-management/DeleteOpenAPI.rb +++ b/examples/v2/api-management/DeleteOpenAPI.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_open_api".to_sym] = true end api_instance = DatadogAPIClient::V2::APIManagementAPI.new diff --git a/examples/v2/api-management/GetOpenAPI.rb b/examples/v2/api-management/GetOpenAPI.rb index dd3d5b890ead..8767bc84a5e1 100644 --- a/examples/v2/api-management/GetOpenAPI.rb +++ b/examples/v2/api-management/GetOpenAPI.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_open_api".to_sym] = true end api_instance = DatadogAPIClient::V2::APIManagementAPI.new diff --git a/examples/v2/api-management/ListAPIs.rb b/examples/v2/api-management/ListAPIs.rb index dd3a79f34b11..7ed61240943a 100644 --- a/examples/v2/api-management/ListAPIs.rb +++ b/examples/v2/api-management/ListAPIs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_apis".to_sym] = true end api_instance = DatadogAPIClient::V2::APIManagementAPI.new diff --git a/examples/v2/api-management/UpdateOpenAPI.rb b/examples/v2/api-management/UpdateOpenAPI.rb index 322034d4b3a2..3972bda2f100 100644 --- a/examples/v2/api-management/UpdateOpenAPI.rb +++ b/examples/v2/api-management/UpdateOpenAPI.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_open_api".to_sym] = true end api_instance = DatadogAPIClient::V2::APIManagementAPI.new diff --git a/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb b/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb index a9f5d2ee58ac..1e8c813163f4 100644 --- a/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +++ b/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb @@ -1,6 +1,9 @@ # Create a retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new body = DatadogAPIClient::V2::RetentionFilterCreateRequest.new({ diff --git a/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb b/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb index c9138f7927c3..52440a974e08 100644 --- a/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb +++ b/examples/v2/apm-retention-filters/CreateApmRetentionFilter_3853850379.rb @@ -1,6 +1,9 @@ # Create a retention filter with trace rate returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new body = DatadogAPIClient::V2::RetentionFilterCreateRequest.new({ diff --git a/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb b/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb index 95648a9eb29e..d860e4ed5523 100644 --- a/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +++ b/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb @@ -1,6 +1,9 @@ # Delete a retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new # there is a valid "retention_filter" in the system diff --git a/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb b/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb index c8d9a3b3b232..01d5e9857114 100644 --- a/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +++ b/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb @@ -1,6 +1,9 @@ # Get a given APM retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new # there is a valid "retention_filter" in the system diff --git a/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb b/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb index edf84b7f150a..bf2e2549defc 100644 --- a/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +++ b/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb @@ -1,5 +1,8 @@ # List all APM retention filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new p api_instance.list_apm_retention_filters() diff --git a/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb b/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb index 8e73b6359580..619abc0f22c9 100644 --- a/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +++ b/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb @@ -1,6 +1,9 @@ # Re-order retention filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new body = DatadogAPIClient::V2::ReorderRetentionFiltersRequest.new({ diff --git a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb b/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb index 5817513a9fd7..93ceaff4a05f 100644 --- a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +++ b/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb @@ -1,6 +1,9 @@ # Update a retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new # there is a valid "retention_filter" in the system diff --git a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb b/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb index ced9a95ae722..f93247aabb41 100644 --- a/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb +++ b/examples/v2/apm-retention-filters/UpdateApmRetentionFilter_3916044058.rb @@ -1,6 +1,9 @@ # Update a retention filter with trace rate returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMRetentionFiltersAPI.new # there is a valid "retention_filter" in the system diff --git a/examples/v2/apm-trace/GetPrunedTraceByID.rb b/examples/v2/apm-trace/GetPrunedTraceByID.rb index 7cfa6f8b7e76..501e5b5d9cdb 100644 --- a/examples/v2/apm-trace/GetPrunedTraceByID.rb +++ b/examples/v2/apm-trace/GetPrunedTraceByID.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_pruned_trace_by_id".to_sym] = true end api_instance = DatadogAPIClient::V2::APMTraceAPI.new diff --git a/examples/v2/apm-trace/GetTraceByID.rb b/examples/v2/apm-trace/GetTraceByID.rb index 017d2943a886..a6a16c058fac 100644 --- a/examples/v2/apm-trace/GetTraceByID.rb +++ b/examples/v2/apm-trace/GetTraceByID.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_trace_by_id".to_sym] = true end api_instance = DatadogAPIClient::V2::APMTraceAPI.new diff --git a/examples/v2/apm/GetServiceList.rb b/examples/v2/apm/GetServiceList.rb index ba444b6aa3cf..c2d4cb53328c 100644 --- a/examples/v2/apm/GetServiceList.rb +++ b/examples/v2/apm/GetServiceList.rb @@ -1,5 +1,8 @@ # Get service list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::APMAPI.new p api_instance.get_service_list("filter[env]") diff --git a/examples/v2/app-builder/CreateApp.rb b/examples/v2/app-builder/CreateApp.rb index d1daac5a6ebf..8153912d2143 100644 --- a/examples/v2/app-builder/CreateApp.rb +++ b/examples/v2/app-builder/CreateApp.rb @@ -1,6 +1,9 @@ # Create App returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new body = DatadogAPIClient::V2::CreateAppRequest.new({ diff --git a/examples/v2/app-builder/CreatePublishRequest.rb b/examples/v2/app-builder/CreatePublishRequest.rb index e41f678d5721..e0c7b105afe5 100644 --- a/examples/v2/app-builder/CreatePublishRequest.rb +++ b/examples/v2/app-builder/CreatePublishRequest.rb @@ -1,6 +1,9 @@ # Create Publish Request returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new body = DatadogAPIClient::V2::CreatePublishRequestRequest.new({ diff --git a/examples/v2/app-builder/DeleteApp.rb b/examples/v2/app-builder/DeleteApp.rb index b8790629fa27..c5142ae0fd75 100644 --- a/examples/v2/app-builder/DeleteApp.rb +++ b/examples/v2/app-builder/DeleteApp.rb @@ -1,6 +1,9 @@ # Delete App returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/DeleteApps.rb b/examples/v2/app-builder/DeleteApps.rb index f420e93fc1c4..0f6bbd8305ac 100644 --- a/examples/v2/app-builder/DeleteApps.rb +++ b/examples/v2/app-builder/DeleteApps.rb @@ -1,6 +1,9 @@ # Delete Multiple Apps returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/GetApp.rb b/examples/v2/app-builder/GetApp.rb index 9d1b307cc496..dafeea5f6ab6 100644 --- a/examples/v2/app-builder/GetApp.rb +++ b/examples/v2/app-builder/GetApp.rb @@ -1,6 +1,9 @@ # Get App returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/GetBlueprint.rb b/examples/v2/app-builder/GetBlueprint.rb index be7e7623680b..238cc3e5cc9e 100644 --- a/examples/v2/app-builder/GetBlueprint.rb +++ b/examples/v2/app-builder/GetBlueprint.rb @@ -1,5 +1,8 @@ # Get Blueprint returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.get_blueprint("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/app-builder/GetBlueprintsByIntegrationId.rb b/examples/v2/app-builder/GetBlueprintsByIntegrationId.rb index f16883964236..c94e0b565ae5 100644 --- a/examples/v2/app-builder/GetBlueprintsByIntegrationId.rb +++ b/examples/v2/app-builder/GetBlueprintsByIntegrationId.rb @@ -1,5 +1,8 @@ # Get Blueprints by Integration ID returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.get_blueprints_by_integration_id("aws") diff --git a/examples/v2/app-builder/GetBlueprintsBySlugs.rb b/examples/v2/app-builder/GetBlueprintsBySlugs.rb index 570ffc972670..e80ba0fe2e6f 100644 --- a/examples/v2/app-builder/GetBlueprintsBySlugs.rb +++ b/examples/v2/app-builder/GetBlueprintsBySlugs.rb @@ -1,5 +1,8 @@ # Get Blueprints by Slugs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.get_blueprints_by_slugs("aws-service-manager") diff --git a/examples/v2/app-builder/ListAppVersions.rb b/examples/v2/app-builder/ListAppVersions.rb index d9f40bba0edd..f8912596f38e 100644 --- a/examples/v2/app-builder/ListAppVersions.rb +++ b/examples/v2/app-builder/ListAppVersions.rb @@ -1,6 +1,9 @@ # List App Versions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/ListApps.rb b/examples/v2/app-builder/ListApps.rb index 1cb6ce67b8c3..bffac9e20fba 100644 --- a/examples/v2/app-builder/ListApps.rb +++ b/examples/v2/app-builder/ListApps.rb @@ -1,5 +1,8 @@ # List Apps returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.list_apps() diff --git a/examples/v2/app-builder/ListBlueprints.rb b/examples/v2/app-builder/ListBlueprints.rb index d5dd18a258ee..d2166a051306 100644 --- a/examples/v2/app-builder/ListBlueprints.rb +++ b/examples/v2/app-builder/ListBlueprints.rb @@ -1,5 +1,8 @@ # List Blueprints returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.list_blueprints() diff --git a/examples/v2/app-builder/ListTags.rb b/examples/v2/app-builder/ListTags.rb index 295663cbb6ab..bc4b6587ede4 100644 --- a/examples/v2/app-builder/ListTags.rb +++ b/examples/v2/app-builder/ListTags.rb @@ -1,5 +1,8 @@ # List Tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.list_tags() diff --git a/examples/v2/app-builder/PublishApp.rb b/examples/v2/app-builder/PublishApp.rb index 3018b5be8bb7..2b7240b597bb 100644 --- a/examples/v2/app-builder/PublishApp.rb +++ b/examples/v2/app-builder/PublishApp.rb @@ -1,6 +1,9 @@ # Publish App returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/RevertApp.rb b/examples/v2/app-builder/RevertApp.rb index 3c0650a918bd..01fdbe891a08 100644 --- a/examples/v2/app-builder/RevertApp.rb +++ b/examples/v2/app-builder/RevertApp.rb @@ -1,5 +1,8 @@ # Revert App returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new p api_instance.revert_app("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "version") diff --git a/examples/v2/app-builder/UnpublishApp.rb b/examples/v2/app-builder/UnpublishApp.rb index 6e1ab67cd31b..b38b0eaf4703 100644 --- a/examples/v2/app-builder/UnpublishApp.rb +++ b/examples/v2/app-builder/UnpublishApp.rb @@ -1,6 +1,9 @@ # Unpublish App returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateApp.rb b/examples/v2/app-builder/UpdateApp.rb index aa2014ee391e..ff99b6eabd93 100644 --- a/examples/v2/app-builder/UpdateApp.rb +++ b/examples/v2/app-builder/UpdateApp.rb @@ -1,6 +1,9 @@ # Update App returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateAppFavorite.rb b/examples/v2/app-builder/UpdateAppFavorite.rb index aa4b6c67c87d..25f52e38859f 100644 --- a/examples/v2/app-builder/UpdateAppFavorite.rb +++ b/examples/v2/app-builder/UpdateAppFavorite.rb @@ -1,6 +1,9 @@ # Update App Favorite Status returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateAppSelfService.rb b/examples/v2/app-builder/UpdateAppSelfService.rb index df41753a7d7a..6b11847e78e7 100644 --- a/examples/v2/app-builder/UpdateAppSelfService.rb +++ b/examples/v2/app-builder/UpdateAppSelfService.rb @@ -1,6 +1,9 @@ # Update App Self-Service Status returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateAppTags.rb b/examples/v2/app-builder/UpdateAppTags.rb index a1ac5574196b..95a22ff46199 100644 --- a/examples/v2/app-builder/UpdateAppTags.rb +++ b/examples/v2/app-builder/UpdateAppTags.rb @@ -1,6 +1,9 @@ # Update App Tags returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateAppVersionName.rb b/examples/v2/app-builder/UpdateAppVersionName.rb index c977e0da5db8..81eb4fd577ce 100644 --- a/examples/v2/app-builder/UpdateAppVersionName.rb +++ b/examples/v2/app-builder/UpdateAppVersionName.rb @@ -1,6 +1,9 @@ # Name App Version returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/app-builder/UpdateProtectionLevel.rb b/examples/v2/app-builder/UpdateProtectionLevel.rb index e18968dec65b..69de6a3574a9 100644 --- a/examples/v2/app-builder/UpdateProtectionLevel.rb +++ b/examples/v2/app-builder/UpdateProtectionLevel.rb @@ -1,6 +1,9 @@ # Update App Protection Level returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AppBuilderAPI.new # there is a valid "app" in the system diff --git a/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.rb b/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.rb index 45f02c1cf443..590cb8f009d9 100644 --- a/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.rb +++ b/examples/v2/application-security/CreateApplicationSecurityWafCustomRule.rb @@ -1,6 +1,9 @@ # Create a WAF custom rule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new body = DatadogAPIClient::V2::ApplicationSecurityWafCustomRuleCreateRequest.new({ diff --git a/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.rb b/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.rb index 583138f6d8a7..545c09ae05c9 100644 --- a/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.rb +++ b/examples/v2/application-security/CreateApplicationSecurityWafExclusionFilter.rb @@ -1,6 +1,9 @@ # Create a WAF exclusion filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new body = DatadogAPIClient::V2::ApplicationSecurityWafExclusionFilterCreateRequest.new({ diff --git a/examples/v2/application-security/CreateApplicationSecurityWafPolicy.rb b/examples/v2/application-security/CreateApplicationSecurityWafPolicy.rb index 16936b128631..5ecc3cb5a330 100644 --- a/examples/v2/application-security/CreateApplicationSecurityWafPolicy.rb +++ b/examples/v2/application-security/CreateApplicationSecurityWafPolicy.rb @@ -1,6 +1,9 @@ # Create a WAF Policy returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new body = DatadogAPIClient::V2::ApplicationSecurityPolicyCreateRequest.new({ diff --git a/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.rb b/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.rb index 0f96bb63156d..35d8bc740f6e 100644 --- a/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.rb +++ b/examples/v2/application-security/DeleteApplicationSecurityWafCustomRule.rb @@ -1,5 +1,8 @@ # Delete a WAF Custom Rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new api_instance.delete_application_security_waf_custom_rule("custom_rule_id") diff --git a/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.rb b/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.rb index 7bdbd9c64203..982e0eae5bae 100644 --- a/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.rb +++ b/examples/v2/application-security/DeleteApplicationSecurityWafExclusionFilter.rb @@ -1,6 +1,9 @@ # Delete a WAF exclusion filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new # there is a valid "exclusion_filter" in the system diff --git a/examples/v2/application-security/DeleteApplicationSecurityWafPolicy.rb b/examples/v2/application-security/DeleteApplicationSecurityWafPolicy.rb index 51f98cf0cc62..171738173f54 100644 --- a/examples/v2/application-security/DeleteApplicationSecurityWafPolicy.rb +++ b/examples/v2/application-security/DeleteApplicationSecurityWafPolicy.rb @@ -1,5 +1,8 @@ # Delete a WAF Policy returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new api_instance.delete_application_security_waf_policy("policy_id") diff --git a/examples/v2/application-security/GetApplicationSecurityWafCustomRule.rb b/examples/v2/application-security/GetApplicationSecurityWafCustomRule.rb index 76e4d40977aa..d173b4d7e0fa 100644 --- a/examples/v2/application-security/GetApplicationSecurityWafCustomRule.rb +++ b/examples/v2/application-security/GetApplicationSecurityWafCustomRule.rb @@ -1,5 +1,8 @@ # Get a WAF custom rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new p api_instance.get_application_security_waf_custom_rule("custom_rule_id") diff --git a/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.rb b/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.rb index 3de7c0f2ab9a..95eac507c95f 100644 --- a/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.rb +++ b/examples/v2/application-security/GetApplicationSecurityWafExclusionFilter.rb @@ -1,6 +1,9 @@ # Get a WAF exclusion filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new # there is a valid "exclusion_filter" in the system diff --git a/examples/v2/application-security/GetApplicationSecurityWafPolicy.rb b/examples/v2/application-security/GetApplicationSecurityWafPolicy.rb index 1ff69c425fca..bf1a54a80545 100644 --- a/examples/v2/application-security/GetApplicationSecurityWafPolicy.rb +++ b/examples/v2/application-security/GetApplicationSecurityWafPolicy.rb @@ -1,6 +1,9 @@ # Get a WAF Policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new # there is a valid "policy" in the system diff --git a/examples/v2/application-security/GetAsmServiceByName.rb b/examples/v2/application-security/GetAsmServiceByName.rb index 64fd840916b1..0159e565d1a4 100644 --- a/examples/v2/application-security/GetAsmServiceByName.rb +++ b/examples/v2/application-security/GetAsmServiceByName.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_asm_service_by_name".to_sym] = true end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new diff --git a/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.rb b/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.rb index a38c1b872dab..4bae59b4789b 100644 --- a/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.rb +++ b/examples/v2/application-security/ListApplicationSecurityWAFCustomRules.rb @@ -1,5 +1,8 @@ # List all WAF custom rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new p api_instance.list_application_security_waf_custom_rules() diff --git a/examples/v2/application-security/ListApplicationSecurityWAFPolicies.rb b/examples/v2/application-security/ListApplicationSecurityWAFPolicies.rb index ceca5b01b3e1..cb529d59b1c1 100644 --- a/examples/v2/application-security/ListApplicationSecurityWAFPolicies.rb +++ b/examples/v2/application-security/ListApplicationSecurityWAFPolicies.rb @@ -1,5 +1,8 @@ # List all WAF policies returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new p api_instance.list_application_security_waf_policies() diff --git a/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.rb b/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.rb index 717ab4581fd1..85f39bf5cb93 100644 --- a/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.rb +++ b/examples/v2/application-security/ListApplicationSecurityWafExclusionFilters.rb @@ -1,5 +1,8 @@ # List all WAF exclusion filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new p api_instance.list_application_security_waf_exclusion_filters() diff --git a/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.rb b/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.rb index 82668b6d94d3..48e3b5d0e2bf 100644 --- a/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.rb +++ b/examples/v2/application-security/UpdateApplicationSecurityWafCustomRule.rb @@ -1,6 +1,9 @@ # Update a WAF Custom Rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new # there is a valid "custom_rule" in the system diff --git a/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.rb b/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.rb index 0f091c506af1..95ec64d6c0e3 100644 --- a/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.rb +++ b/examples/v2/application-security/UpdateApplicationSecurityWafExclusionFilter.rb @@ -1,6 +1,9 @@ # Update a WAF exclusion filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new # there is a valid "exclusion_filter" in the system diff --git a/examples/v2/application-security/UpdateApplicationSecurityWafPolicy.rb b/examples/v2/application-security/UpdateApplicationSecurityWafPolicy.rb index 02903ced74d2..8ed407adea51 100644 --- a/examples/v2/application-security/UpdateApplicationSecurityWafPolicy.rb +++ b/examples/v2/application-security/UpdateApplicationSecurityWafPolicy.rb @@ -1,6 +1,9 @@ # Update a WAF Policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ApplicationSecurityAPI.new body = DatadogAPIClient::V2::ApplicationSecurityPolicyUpdateRequest.new({ diff --git a/examples/v2/audit/ListAuditLogs.rb b/examples/v2/audit/ListAuditLogs.rb index dcad1ace4255..2e2d8b82d643 100644 --- a/examples/v2/audit/ListAuditLogs.rb +++ b/examples/v2/audit/ListAuditLogs.rb @@ -1,5 +1,8 @@ # Get a list of Audit Logs events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuditAPI.new p api_instance.list_audit_logs() diff --git a/examples/v2/audit/ListAuditLogs_1275402458.rb b/examples/v2/audit/ListAuditLogs_1275402458.rb index d08ad6b779a0..8ab6399a28b2 100644 --- a/examples/v2/audit/ListAuditLogs_1275402458.rb +++ b/examples/v2/audit/ListAuditLogs_1275402458.rb @@ -1,6 +1,9 @@ # Get a list of Audit Logs events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuditAPI.new opts = { page_limit: 2, diff --git a/examples/v2/audit/SearchAuditLogs.rb b/examples/v2/audit/SearchAuditLogs.rb index 9611c3d2e033..905da781d680 100644 --- a/examples/v2/audit/SearchAuditLogs.rb +++ b/examples/v2/audit/SearchAuditLogs.rb @@ -1,6 +1,9 @@ # Search Audit Logs events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuditAPI.new body = DatadogAPIClient::V2::AuditLogsSearchEventsRequest.new({ diff --git a/examples/v2/audit/SearchAuditLogs_3215529662.rb b/examples/v2/audit/SearchAuditLogs_3215529662.rb index a43479a0bd56..4f5f76fee6bd 100644 --- a/examples/v2/audit/SearchAuditLogs_3215529662.rb +++ b/examples/v2/audit/SearchAuditLogs_3215529662.rb @@ -1,6 +1,9 @@ # Search Audit Logs events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuditAPI.new body = DatadogAPIClient::V2::AuditLogsSearchEventsRequest.new({ diff --git a/examples/v2/authn-mappings/CreateAuthNMapping.rb b/examples/v2/authn-mappings/CreateAuthNMapping.rb index a3311064014c..1c4f1938d3a2 100644 --- a/examples/v2/authn-mappings/CreateAuthNMapping.rb +++ b/examples/v2/authn-mappings/CreateAuthNMapping.rb @@ -1,6 +1,9 @@ # Create an AuthN Mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuthNMappingsAPI.new # there is a valid "role" in the system diff --git a/examples/v2/authn-mappings/DeleteAuthNMapping.rb b/examples/v2/authn-mappings/DeleteAuthNMapping.rb index 80f9422a402a..4d9107345917 100644 --- a/examples/v2/authn-mappings/DeleteAuthNMapping.rb +++ b/examples/v2/authn-mappings/DeleteAuthNMapping.rb @@ -1,6 +1,9 @@ # Delete an AuthN Mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuthNMappingsAPI.new # there is a valid "authn_mapping" in the system diff --git a/examples/v2/authn-mappings/GetAuthNMapping.rb b/examples/v2/authn-mappings/GetAuthNMapping.rb index 697be8143e8a..0afe8569b9f0 100644 --- a/examples/v2/authn-mappings/GetAuthNMapping.rb +++ b/examples/v2/authn-mappings/GetAuthNMapping.rb @@ -1,6 +1,9 @@ # Get an AuthN Mapping by UUID returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuthNMappingsAPI.new # there is a valid "authn_mapping" in the system diff --git a/examples/v2/authn-mappings/ListAuthNMappings.rb b/examples/v2/authn-mappings/ListAuthNMappings.rb index a284c9ed1d5b..95132616a480 100644 --- a/examples/v2/authn-mappings/ListAuthNMappings.rb +++ b/examples/v2/authn-mappings/ListAuthNMappings.rb @@ -1,5 +1,8 @@ # List all AuthN Mappings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuthNMappingsAPI.new p api_instance.list_authn_mappings() diff --git a/examples/v2/authn-mappings/UpdateAuthNMapping.rb b/examples/v2/authn-mappings/UpdateAuthNMapping.rb index cc0031170c31..c1b05edd912d 100644 --- a/examples/v2/authn-mappings/UpdateAuthNMapping.rb +++ b/examples/v2/authn-mappings/UpdateAuthNMapping.rb @@ -1,6 +1,9 @@ # Edit an AuthN Mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AuthNMappingsAPI.new # there is a valid "authn_mapping" in the system diff --git a/examples/v2/aws-integration/CreateAWSAccount.rb b/examples/v2/aws-integration/CreateAWSAccount.rb index 0c3d16d03a13..14c9e79e2260 100644 --- a/examples/v2/aws-integration/CreateAWSAccount.rb +++ b/examples/v2/aws-integration/CreateAWSAccount.rb @@ -1,6 +1,9 @@ # Create an AWS integration returns "AWS Account object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new body = DatadogAPIClient::V2::AWSAccountCreateRequest.new({ diff --git a/examples/v2/aws-integration/CreateAWSAccountCCMConfig.rb b/examples/v2/aws-integration/CreateAWSAccountCCMConfig.rb index cbc792e2e94f..f4f0cfa358c2 100644 --- a/examples/v2/aws-integration/CreateAWSAccountCCMConfig.rb +++ b/examples/v2/aws-integration/CreateAWSAccountCCMConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_aws_account_ccm_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb b/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb index 5a4fa555447f..fe40e9bbadef 100644 --- a/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +++ b/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb @@ -1,6 +1,9 @@ # Create an AWS account returns "AWS Account object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new body = DatadogAPIClient::V2::AWSAccountCreateRequest.new({ diff --git a/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb b/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb index f46e603aa6d4..7324374d567a 100644 --- a/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb +++ b/examples/v2/aws-integration/CreateAWSEventBridgeSource.rb @@ -1,6 +1,9 @@ # Create an Amazon EventBridge source returns "Amazon EventBridge source created." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new body = DatadogAPIClient::V2::AWSEventBridgeCreateRequest.new({ diff --git a/examples/v2/aws-integration/CreateNewAWSExternalID.rb b/examples/v2/aws-integration/CreateNewAWSExternalID.rb index 0aeaf1353c80..14ffb7537fa9 100644 --- a/examples/v2/aws-integration/CreateNewAWSExternalID.rb +++ b/examples/v2/aws-integration/CreateNewAWSExternalID.rb @@ -1,5 +1,8 @@ # Generate a new external ID returns "AWS External ID object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.create_new_aws_external_id() diff --git a/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb b/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb index 32cc17873c4c..ab39522a5937 100644 --- a/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb +++ b/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb @@ -1,5 +1,8 @@ # Generate new external ID returns "AWS External ID object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.create_new_aws_external_id() diff --git a/examples/v2/aws-integration/DeleteAWSAccount.rb b/examples/v2/aws-integration/DeleteAWSAccount.rb index 3645c1aab0da..1d8568d4fc1b 100644 --- a/examples/v2/aws-integration/DeleteAWSAccount.rb +++ b/examples/v2/aws-integration/DeleteAWSAccount.rb @@ -1,6 +1,9 @@ # Delete an AWS integration returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new # there is a valid "aws_account_v2" in the system diff --git a/examples/v2/aws-integration/DeleteAWSAccountCCMConfig.rb b/examples/v2/aws-integration/DeleteAWSAccountCCMConfig.rb index 12c6ee49cac0..19f8f4b67f1a 100644 --- a/examples/v2/aws-integration/DeleteAWSAccountCCMConfig.rb +++ b/examples/v2/aws-integration/DeleteAWSAccountCCMConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_aws_account_ccm_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb b/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb index 14941df7fa53..657f192c2f7d 100644 --- a/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb +++ b/examples/v2/aws-integration/DeleteAWSEventBridgeSource.rb @@ -1,6 +1,9 @@ # Delete an Amazon EventBridge source returns "Amazon EventBridge source deleted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new body = DatadogAPIClient::V2::AWSEventBridgeDeleteRequest.new({ diff --git a/examples/v2/aws-integration/GetAWSAccount.rb b/examples/v2/aws-integration/GetAWSAccount.rb index 84910548c94f..d48882188580 100644 --- a/examples/v2/aws-integration/GetAWSAccount.rb +++ b/examples/v2/aws-integration/GetAWSAccount.rb @@ -1,6 +1,9 @@ # Get an AWS integration by config ID returns "AWS Account object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new # there is a valid "aws_account_v2" in the system diff --git a/examples/v2/aws-integration/GetAWSAccountCCMConfig.rb b/examples/v2/aws-integration/GetAWSAccountCCMConfig.rb index 805982bf3c41..202e19471725 100644 --- a/examples/v2/aws-integration/GetAWSAccountCCMConfig.rb +++ b/examples/v2/aws-integration/GetAWSAccountCCMConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_aws_account_ccm_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissions.rb b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissions.rb index 7d793b61699c..bc422d5a9713 100644 --- a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissions.rb +++ b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissions.rb @@ -1,5 +1,8 @@ # Get AWS integration IAM permissions returns "AWS IAM Permissions object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.get_aws_integration_iam_permissions() diff --git a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb index f69c57cbad81..88a8bbf2ca21 100644 --- a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +++ b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb @@ -1,5 +1,8 @@ # Get resource collection IAM permissions returns "AWS integration resource collection IAM permissions." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.get_aws_integration_iam_permissions_resource_collection() diff --git a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb index eca65862cd9d..ec704ba85106 100644 --- a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +++ b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb @@ -1,5 +1,8 @@ # Get resource collection IAM permissions returns "AWS IAM Permissions object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.get_aws_integration_iam_permissions_resource_collection() diff --git a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb index 8e0cfc038673..858210a92dd6 100644 --- a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +++ b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb @@ -1,5 +1,8 @@ # Get AWS integration standard IAM permissions returns "AWS integration standard IAM permissions." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.get_aws_integration_iam_permissions_standard() diff --git a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb index c1757547742f..6cc41f97561d 100644 --- a/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +++ b/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb @@ -1,5 +1,8 @@ # Get AWS integration standard IAM permissions returns "AWS IAM Permissions object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.get_aws_integration_iam_permissions_standard() diff --git a/examples/v2/aws-integration/GetAWSMetricNameFilterPreview.rb b/examples/v2/aws-integration/GetAWSMetricNameFilterPreview.rb index f9e31c87a762..b6b8a328dd6c 100644 --- a/examples/v2/aws-integration/GetAWSMetricNameFilterPreview.rb +++ b/examples/v2/aws-integration/GetAWSMetricNameFilterPreview.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_aws_metric_name_filter_preview".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/ListAWSAccounts.rb b/examples/v2/aws-integration/ListAWSAccounts.rb index 218b14eb6e46..35b642bd635a 100644 --- a/examples/v2/aws-integration/ListAWSAccounts.rb +++ b/examples/v2/aws-integration/ListAWSAccounts.rb @@ -1,5 +1,8 @@ # List all AWS integrations returns "AWS Accounts List object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.list_aws_accounts() diff --git a/examples/v2/aws-integration/ListAWSEventBridgeSources.rb b/examples/v2/aws-integration/ListAWSEventBridgeSources.rb index 745a5311973d..4357e7e632c6 100644 --- a/examples/v2/aws-integration/ListAWSEventBridgeSources.rb +++ b/examples/v2/aws-integration/ListAWSEventBridgeSources.rb @@ -1,5 +1,8 @@ # Get all Amazon EventBridge sources returns "Amazon EventBridge sources list." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.list_aws_event_bridge_sources() diff --git a/examples/v2/aws-integration/ListAWSNamespaces.rb b/examples/v2/aws-integration/ListAWSNamespaces.rb index bcc5bc31ceff..df9c26a9a00c 100644 --- a/examples/v2/aws-integration/ListAWSNamespaces.rb +++ b/examples/v2/aws-integration/ListAWSNamespaces.rb @@ -1,5 +1,8 @@ # List available namespaces returns "AWS Namespaces List object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.list_aws_namespaces() diff --git a/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb b/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb index c1db8bf92d00..862b4ca52935 100644 --- a/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb +++ b/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb @@ -1,5 +1,8 @@ # List namespaces returns "AWS Namespaces List object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new p api_instance.list_aws_namespaces() diff --git a/examples/v2/aws-integration/PreviewAWSMetricNameFilter.rb b/examples/v2/aws-integration/PreviewAWSMetricNameFilter.rb index cf9cdedc6895..c72931321dd7 100644 --- a/examples/v2/aws-integration/PreviewAWSMetricNameFilter.rb +++ b/examples/v2/aws-integration/PreviewAWSMetricNameFilter.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.preview_aws_metric_name_filter".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/UpdateAWSAccount.rb b/examples/v2/aws-integration/UpdateAWSAccount.rb index 1e7596a9e804..924fdb46fc72 100644 --- a/examples/v2/aws-integration/UpdateAWSAccount.rb +++ b/examples/v2/aws-integration/UpdateAWSAccount.rb @@ -1,6 +1,9 @@ # Update an AWS integration returns "AWS Account object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new # there is a valid "aws_account_v2" in the system diff --git a/examples/v2/aws-integration/UpdateAWSAccountCCMConfig.rb b/examples/v2/aws-integration/UpdateAWSAccountCCMConfig.rb index 13c607b0e6b9..d31f19f0ce06 100644 --- a/examples/v2/aws-integration/UpdateAWSAccountCCMConfig.rb +++ b/examples/v2/aws-integration/UpdateAWSAccountCCMConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_aws_account_ccm_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-integration/ValidateAWSCCMConfig.rb b/examples/v2/aws-integration/ValidateAWSCCMConfig.rb index 9fb0bbca04cc..074417133961 100644 --- a/examples/v2/aws-integration/ValidateAWSCCMConfig.rb +++ b/examples/v2/aws-integration/ValidateAWSCCMConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.validate_awsccm_config".to_sym] = true end api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new diff --git a/examples/v2/aws-logs-integration/ListAWSLogsServices.rb b/examples/v2/aws-logs-integration/ListAWSLogsServices.rb index a2c9b592bf98..92e9ba45d60d 100644 --- a/examples/v2/aws-logs-integration/ListAWSLogsServices.rb +++ b/examples/v2/aws-logs-integration/ListAWSLogsServices.rb @@ -1,5 +1,8 @@ # Get list of AWS log ready services returns "AWS Logs Services List object" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::AWSLogsIntegrationAPI.new p api_instance.list_aws_logs_services() diff --git a/examples/v2/bits-ai/GetInvestigation.rb b/examples/v2/bits-ai/GetInvestigation.rb index 77fd1e55a933..cb4d4862c2f0 100644 --- a/examples/v2/bits-ai/GetInvestigation.rb +++ b/examples/v2/bits-ai/GetInvestigation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_investigation".to_sym] = true end api_instance = DatadogAPIClient::V2::BitsAIAPI.new diff --git a/examples/v2/bits-ai/ListInvestigations.rb b/examples/v2/bits-ai/ListInvestigations.rb index 6adb019d762f..b239dc8fe46b 100644 --- a/examples/v2/bits-ai/ListInvestigations.rb +++ b/examples/v2/bits-ai/ListInvestigations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_investigations".to_sym] = true end api_instance = DatadogAPIClient::V2::BitsAIAPI.new diff --git a/examples/v2/bits-ai/ListInvestigations_130750454.rb b/examples/v2/bits-ai/ListInvestigations_130750454.rb index 6fc2e686b127..c99f24985626 100644 --- a/examples/v2/bits-ai/ListInvestigations_130750454.rb +++ b/examples/v2/bits-ai/ListInvestigations_130750454.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_investigations".to_sym] = true end api_instance = DatadogAPIClient::V2::BitsAIAPI.new diff --git a/examples/v2/bits-ai/TriggerInvestigation.rb b/examples/v2/bits-ai/TriggerInvestigation.rb index d77c8abb1998..b395efa9c900 100644 --- a/examples/v2/bits-ai/TriggerInvestigation.rb +++ b/examples/v2/bits-ai/TriggerInvestigation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.trigger_investigation".to_sym] = true end api_instance = DatadogAPIClient::V2::BitsAIAPI.new diff --git a/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb b/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb index 4975ffe96da7..fde834558765 100644 --- a/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb +++ b/examples/v2/case-management-attribute/CreateCustomAttributeConfig.rb @@ -1,6 +1,9 @@ # Create custom attribute config for a case type returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new # there is a valid "case_type" in the system diff --git a/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb b/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb index 82423d5f2a62..295b80e081e3 100644 --- a/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb +++ b/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.rb @@ -1,6 +1,9 @@ # Delete custom attributes config returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new # there is a valid "case_type" in the system diff --git a/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb b/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb index 7c605142ab55..3a5fda081cbb 100644 --- a/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb +++ b/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.rb @@ -1,6 +1,9 @@ # Get all custom attributes config of case type returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new # there is a valid "case_type" in the system diff --git a/examples/v2/case-management-attribute/GetAllCustomAttributes.rb b/examples/v2/case-management-attribute/GetAllCustomAttributes.rb index c9e75e8356a0..b8ff393f11f2 100644 --- a/examples/v2/case-management-attribute/GetAllCustomAttributes.rb +++ b/examples/v2/case-management-attribute/GetAllCustomAttributes.rb @@ -1,5 +1,8 @@ # Get all custom attributes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new p api_instance.get_all_custom_attributes() diff --git a/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb index b7bfc552c588..077edb80dae1 100644 --- a/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb +++ b/examples/v2/case-management-attribute/UpdateCustomAttributeConfig.rb @@ -1,6 +1,9 @@ # Update custom attribute config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAttributeAPI.new body = DatadogAPIClient::V2::CustomAttributeConfigUpdateRequest.new({ diff --git a/examples/v2/case-management-type/CreateCaseType.rb b/examples/v2/case-management-type/CreateCaseType.rb index b92f9e3e0026..8834e5d849da 100644 --- a/examples/v2/case-management-type/CreateCaseType.rb +++ b/examples/v2/case-management-type/CreateCaseType.rb @@ -1,6 +1,9 @@ # Create a case type returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new body = DatadogAPIClient::V2::CaseTypeCreateRequest.new({ diff --git a/examples/v2/case-management-type/DeleteCaseType.rb b/examples/v2/case-management-type/DeleteCaseType.rb index abb1f477226a..660236a988b9 100644 --- a/examples/v2/case-management-type/DeleteCaseType.rb +++ b/examples/v2/case-management-type/DeleteCaseType.rb @@ -1,5 +1,8 @@ # Delete a case type returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new api_instance.delete_case_type("case_type_id") diff --git a/examples/v2/case-management-type/DeleteCaseType_2790986149.rb b/examples/v2/case-management-type/DeleteCaseType_2790986149.rb index 957c54246fdc..266f4441785d 100644 --- a/examples/v2/case-management-type/DeleteCaseType_2790986149.rb +++ b/examples/v2/case-management-type/DeleteCaseType_2790986149.rb @@ -1,6 +1,9 @@ # Delete a case type returns "NotContent" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new # there is a valid "case_type" in the system diff --git a/examples/v2/case-management-type/GetAllCaseTypes.rb b/examples/v2/case-management-type/GetAllCaseTypes.rb index 139f7566b276..80d40368b043 100644 --- a/examples/v2/case-management-type/GetAllCaseTypes.rb +++ b/examples/v2/case-management-type/GetAllCaseTypes.rb @@ -1,5 +1,8 @@ # Get all case types returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new p api_instance.get_all_case_types() diff --git a/examples/v2/case-management-type/UpdateCaseType.rb b/examples/v2/case-management-type/UpdateCaseType.rb index 7ade1887ce5a..623336e0d3db 100644 --- a/examples/v2/case-management-type/UpdateCaseType.rb +++ b/examples/v2/case-management-type/UpdateCaseType.rb @@ -1,6 +1,9 @@ # Update a case type returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementTypeAPI.new body = DatadogAPIClient::V2::CaseTypeUpdateRequest.new({ diff --git a/examples/v2/case-management/AddCaseInsights.rb b/examples/v2/case-management/AddCaseInsights.rb index 53007c8ace9e..538796e9a8e2 100644 --- a/examples/v2/case-management/AddCaseInsights.rb +++ b/examples/v2/case-management/AddCaseInsights.rb @@ -1,6 +1,9 @@ # Add insights to a case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseInsightsRequest.new({ diff --git a/examples/v2/case-management/AggregateCases.rb b/examples/v2/case-management/AggregateCases.rb index ec6472986a15..9ea85ab3ee23 100644 --- a/examples/v2/case-management/AggregateCases.rb +++ b/examples/v2/case-management/AggregateCases.rb @@ -1,6 +1,9 @@ # Aggregate cases returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseAggregateRequest.new({ diff --git a/examples/v2/case-management/ArchiveCase.rb b/examples/v2/case-management/ArchiveCase.rb index 96f485e6c1aa..b05babeef170 100644 --- a/examples/v2/case-management/ArchiveCase.rb +++ b/examples/v2/case-management/ArchiveCase.rb @@ -1,6 +1,9 @@ # Archive case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/AssignCase.rb b/examples/v2/case-management/AssignCase.rb index f6427fcdf0ba..2ca852c7c6dc 100644 --- a/examples/v2/case-management/AssignCase.rb +++ b/examples/v2/case-management/AssignCase.rb @@ -1,6 +1,9 @@ # Assign case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/BulkUpdateCases.rb b/examples/v2/case-management/BulkUpdateCases.rb index 9f65e2515d0c..91b57d2a8513 100644 --- a/examples/v2/case-management/BulkUpdateCases.rb +++ b/examples/v2/case-management/BulkUpdateCases.rb @@ -1,6 +1,9 @@ # Bulk update cases returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseBulkUpdateRequest.new({ diff --git a/examples/v2/case-management/CommentCase.rb b/examples/v2/case-management/CommentCase.rb index f67926ee2401..73bc819ff710 100644 --- a/examples/v2/case-management/CommentCase.rb +++ b/examples/v2/case-management/CommentCase.rb @@ -1,6 +1,9 @@ # Comment case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/CountCases.rb b/examples/v2/case-management/CountCases.rb index 619e3f8bdbc2..a417563cc85e 100644 --- a/examples/v2/case-management/CountCases.rb +++ b/examples/v2/case-management/CountCases.rb @@ -1,5 +1,8 @@ # Count cases returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.count_cases() diff --git a/examples/v2/case-management/CreateCase.rb b/examples/v2/case-management/CreateCase.rb index 4548c66f1a22..07fdfdb2dad5 100644 --- a/examples/v2/case-management/CreateCase.rb +++ b/examples/v2/case-management/CreateCase.rb @@ -1,6 +1,9 @@ # Create a case returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "user" in the system diff --git a/examples/v2/case-management/CreateCaseAutomationRule.rb b/examples/v2/case-management/CreateCaseAutomationRule.rb index df31904212bb..7798f98a615d 100644 --- a/examples/v2/case-management/CreateCaseAutomationRule.rb +++ b/examples/v2/case-management/CreateCaseAutomationRule.rb @@ -1,6 +1,9 @@ # Create an automation rule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::AutomationRuleCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseJiraIssue.rb b/examples/v2/case-management/CreateCaseJiraIssue.rb index 18096e83f73d..53cd27a7ed1e 100644 --- a/examples/v2/case-management/CreateCaseJiraIssue.rb +++ b/examples/v2/case-management/CreateCaseJiraIssue.rb @@ -1,6 +1,9 @@ # Create Jira issue for case returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::JiraIssueCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseLink.rb b/examples/v2/case-management/CreateCaseLink.rb index 704ce2de5ded..a56426a808de 100644 --- a/examples/v2/case-management/CreateCaseLink.rb +++ b/examples/v2/case-management/CreateCaseLink.rb @@ -1,6 +1,9 @@ # Create a case link returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseLinkCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseNotebook.rb b/examples/v2/case-management/CreateCaseNotebook.rb index 777637d68b99..542009bd72b4 100644 --- a/examples/v2/case-management/CreateCaseNotebook.rb +++ b/examples/v2/case-management/CreateCaseNotebook.rb @@ -1,6 +1,9 @@ # Create investigation notebook for case returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::NotebookCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseServiceNowTicket.rb b/examples/v2/case-management/CreateCaseServiceNowTicket.rb index 97fd2a403801..db2c36e0ef1a 100644 --- a/examples/v2/case-management/CreateCaseServiceNowTicket.rb +++ b/examples/v2/case-management/CreateCaseServiceNowTicket.rb @@ -1,6 +1,9 @@ # Create ServiceNow ticket for case returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ServiceNowTicketCreateRequest.new({ diff --git a/examples/v2/case-management/CreateCaseView.rb b/examples/v2/case-management/CreateCaseView.rb index 9c250073b981..f80f6ee6c05e 100644 --- a/examples/v2/case-management/CreateCaseView.rb +++ b/examples/v2/case-management/CreateCaseView.rb @@ -1,6 +1,9 @@ # Create a case view returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseViewCreateRequest.new({ diff --git a/examples/v2/case-management/CreateMaintenanceWindow.rb b/examples/v2/case-management/CreateMaintenanceWindow.rb index 257306790295..68eb77dc356c 100644 --- a/examples/v2/case-management/CreateMaintenanceWindow.rb +++ b/examples/v2/case-management/CreateMaintenanceWindow.rb @@ -1,6 +1,9 @@ # Create a maintenance window returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::MaintenanceWindowCreateRequest.new({ diff --git a/examples/v2/case-management/CreateProject.rb b/examples/v2/case-management/CreateProject.rb index 04500aa92305..13fcc98b731f 100644 --- a/examples/v2/case-management/CreateProject.rb +++ b/examples/v2/case-management/CreateProject.rb @@ -1,6 +1,9 @@ # Create a project returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ProjectCreateRequest.new({ diff --git a/examples/v2/case-management/CreateProjectNotificationRule.rb b/examples/v2/case-management/CreateProjectNotificationRule.rb index 378173dbc597..3d6185374bea 100644 --- a/examples/v2/case-management/CreateProjectNotificationRule.rb +++ b/examples/v2/case-management/CreateProjectNotificationRule.rb @@ -1,6 +1,9 @@ # Create a notification rule returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseNotificationRuleCreateRequest.new({ diff --git a/examples/v2/case-management/DeleteCaseAutomationRule.rb b/examples/v2/case-management/DeleteCaseAutomationRule.rb index ce8da7e978a4..955fd1113888 100644 --- a/examples/v2/case-management/DeleteCaseAutomationRule.rb +++ b/examples/v2/case-management/DeleteCaseAutomationRule.rb @@ -1,5 +1,8 @@ # Delete an automation rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/DeleteCaseComment.rb b/examples/v2/case-management/DeleteCaseComment.rb index 084560a24d04..069b5917c3fd 100644 --- a/examples/v2/case-management/DeleteCaseComment.rb +++ b/examples/v2/case-management/DeleteCaseComment.rb @@ -1,6 +1,9 @@ # Delete case comment returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/DeleteCaseCustomAttribute.rb b/examples/v2/case-management/DeleteCaseCustomAttribute.rb index 612cc8691841..4bcc53d84350 100644 --- a/examples/v2/case-management/DeleteCaseCustomAttribute.rb +++ b/examples/v2/case-management/DeleteCaseCustomAttribute.rb @@ -1,6 +1,9 @@ # Delete custom attribute from case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" with a custom "case_type" in the system diff --git a/examples/v2/case-management/DeleteCaseLink.rb b/examples/v2/case-management/DeleteCaseLink.rb index 99aea56c8e1d..035d752add7b 100644 --- a/examples/v2/case-management/DeleteCaseLink.rb +++ b/examples/v2/case-management/DeleteCaseLink.rb @@ -1,5 +1,8 @@ # Delete a case link returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_link("804cd682-55f6-4541-ab00-b608b282ea7d") diff --git a/examples/v2/case-management/DeleteCaseView.rb b/examples/v2/case-management/DeleteCaseView.rb index 6279729deb8e..72294c54fd18 100644 --- a/examples/v2/case-management/DeleteCaseView.rb +++ b/examples/v2/case-management/DeleteCaseView.rb @@ -1,5 +1,8 @@ # Delete a case view returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_case_view("view_id") diff --git a/examples/v2/case-management/DeleteMaintenanceWindow.rb b/examples/v2/case-management/DeleteMaintenanceWindow.rb index f12ff15f1337..21823d15b417 100644 --- a/examples/v2/case-management/DeleteMaintenanceWindow.rb +++ b/examples/v2/case-management/DeleteMaintenanceWindow.rb @@ -1,5 +1,8 @@ # Delete a maintenance window returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_maintenance_window("maintenance_window_id") diff --git a/examples/v2/case-management/DeleteProject.rb b/examples/v2/case-management/DeleteProject.rb index 5a0b79924a7d..e99aaea407d5 100644 --- a/examples/v2/case-management/DeleteProject.rb +++ b/examples/v2/case-management/DeleteProject.rb @@ -1,5 +1,8 @@ # Remove a project returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_project("project_id") diff --git a/examples/v2/case-management/DeleteProjectNotificationRule.rb b/examples/v2/case-management/DeleteProjectNotificationRule.rb index 2bd3ceb1794b..8fd24e421051 100644 --- a/examples/v2/case-management/DeleteProjectNotificationRule.rb +++ b/examples/v2/case-management/DeleteProjectNotificationRule.rb @@ -1,5 +1,8 @@ # Delete a notification rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.delete_project_notification_rule("project_id", "notification_rule_id") diff --git a/examples/v2/case-management/DisableCaseAutomationRule.rb b/examples/v2/case-management/DisableCaseAutomationRule.rb index 23ac5998ca27..da8de569bfc7 100644 --- a/examples/v2/case-management/DisableCaseAutomationRule.rb +++ b/examples/v2/case-management/DisableCaseAutomationRule.rb @@ -1,5 +1,8 @@ # Disable an automation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.disable_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/EnableCaseAutomationRule.rb b/examples/v2/case-management/EnableCaseAutomationRule.rb index ce29bad948d2..c87d25129ebb 100644 --- a/examples/v2/case-management/EnableCaseAutomationRule.rb +++ b/examples/v2/case-management/EnableCaseAutomationRule.rb @@ -1,5 +1,8 @@ # Enable an automation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.enable_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/FavoriteCaseProject.rb b/examples/v2/case-management/FavoriteCaseProject.rb index 47275787dcdf..f3425e50b434 100644 --- a/examples/v2/case-management/FavoriteCaseProject.rb +++ b/examples/v2/case-management/FavoriteCaseProject.rb @@ -1,5 +1,8 @@ # Favorite a project returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.favorite_case_project("project_id") diff --git a/examples/v2/case-management/GetCase.rb b/examples/v2/case-management/GetCase.rb index 16a1badd880d..6b7130e032af 100644 --- a/examples/v2/case-management/GetCase.rb +++ b/examples/v2/case-management/GetCase.rb @@ -1,6 +1,9 @@ # Get the details of a case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/GetCaseAutomationRule.rb b/examples/v2/case-management/GetCaseAutomationRule.rb index c0369c72c49b..30f703ad7b2a 100644 --- a/examples/v2/case-management/GetCaseAutomationRule.rb +++ b/examples/v2/case-management/GetCaseAutomationRule.rb @@ -1,5 +1,8 @@ # Get an automation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_case_automation_rule("project_id", "rule_id") diff --git a/examples/v2/case-management/GetCaseView.rb b/examples/v2/case-management/GetCaseView.rb index 6ffc0485f932..ba6fd27a52d4 100644 --- a/examples/v2/case-management/GetCaseView.rb +++ b/examples/v2/case-management/GetCaseView.rb @@ -1,5 +1,8 @@ # Get a case view returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_case_view("view_id") diff --git a/examples/v2/case-management/GetProject.rb b/examples/v2/case-management/GetProject.rb index e3ee76e08888..c5de5669519a 100644 --- a/examples/v2/case-management/GetProject.rb +++ b/examples/v2/case-management/GetProject.rb @@ -1,5 +1,8 @@ # Get the details of a project returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_project("project_id") diff --git a/examples/v2/case-management/GetProjectNotificationRules.rb b/examples/v2/case-management/GetProjectNotificationRules.rb index a8ca9ee65116..6b88f743a48e 100644 --- a/examples/v2/case-management/GetProjectNotificationRules.rb +++ b/examples/v2/case-management/GetProjectNotificationRules.rb @@ -1,5 +1,8 @@ # Get notification rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_project_notification_rules("project_id") diff --git a/examples/v2/case-management/GetProjects.rb b/examples/v2/case-management/GetProjects.rb index f33b79a4d1d7..bb667738c3c4 100644 --- a/examples/v2/case-management/GetProjects.rb +++ b/examples/v2/case-management/GetProjects.rb @@ -1,5 +1,8 @@ # Get all projects returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.get_projects() diff --git a/examples/v2/case-management/LinkIncident.rb b/examples/v2/case-management/LinkIncident.rb index 3228a278f285..abcbd4ccd7aa 100644 --- a/examples/v2/case-management/LinkIncident.rb +++ b/examples/v2/case-management/LinkIncident.rb @@ -1,6 +1,9 @@ # Link incident to case returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::RelationshipToIncidentRequest.new({ diff --git a/examples/v2/case-management/LinkJiraIssueToCase.rb b/examples/v2/case-management/LinkJiraIssueToCase.rb index 7055ecebefa6..d01bc040353a 100644 --- a/examples/v2/case-management/LinkJiraIssueToCase.rb +++ b/examples/v2/case-management/LinkJiraIssueToCase.rb @@ -1,6 +1,9 @@ # Link existing Jira issue to case returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::JiraIssueLinkRequest.new({ diff --git a/examples/v2/case-management/ListCaseAutomationRules.rb b/examples/v2/case-management/ListCaseAutomationRules.rb index 3f718dc8b573..955cf8ea8321 100644 --- a/examples/v2/case-management/ListCaseAutomationRules.rb +++ b/examples/v2/case-management/ListCaseAutomationRules.rb @@ -1,5 +1,8 @@ # List automation rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_automation_rules("project_id") diff --git a/examples/v2/case-management/ListCaseLinks.rb b/examples/v2/case-management/ListCaseLinks.rb index 9022b9784c31..b77f23208d88 100644 --- a/examples/v2/case-management/ListCaseLinks.rb +++ b/examples/v2/case-management/ListCaseLinks.rb @@ -1,5 +1,8 @@ # List case links returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_links("CASE", "bf0cbac6-4c16-4cfb-b6bf-ca5e0ec37a4f") diff --git a/examples/v2/case-management/ListCaseTimeline.rb b/examples/v2/case-management/ListCaseTimeline.rb index f84a6ca076d0..c52e5bbd956a 100644 --- a/examples/v2/case-management/ListCaseTimeline.rb +++ b/examples/v2/case-management/ListCaseTimeline.rb @@ -1,5 +1,8 @@ # Get case timeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_timeline("case_id") diff --git a/examples/v2/case-management/ListCaseViews.rb b/examples/v2/case-management/ListCaseViews.rb index 72240f5b6c3e..5b2ff3e7b3c2 100644 --- a/examples/v2/case-management/ListCaseViews.rb +++ b/examples/v2/case-management/ListCaseViews.rb @@ -1,5 +1,8 @@ # List case views returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_views("project_id") diff --git a/examples/v2/case-management/ListCaseWatchers.rb b/examples/v2/case-management/ListCaseWatchers.rb index ae4e0c800294..6d1edc4a8aad 100644 --- a/examples/v2/case-management/ListCaseWatchers.rb +++ b/examples/v2/case-management/ListCaseWatchers.rb @@ -1,5 +1,8 @@ # List case watchers returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_case_watchers("case_id") diff --git a/examples/v2/case-management/ListMaintenanceWindows.rb b/examples/v2/case-management/ListMaintenanceWindows.rb index 090a0db548a4..82e9f2fed82b 100644 --- a/examples/v2/case-management/ListMaintenanceWindows.rb +++ b/examples/v2/case-management/ListMaintenanceWindows.rb @@ -1,5 +1,8 @@ # List maintenance windows returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_maintenance_windows() diff --git a/examples/v2/case-management/ListUserCaseProjectFavorites.rb b/examples/v2/case-management/ListUserCaseProjectFavorites.rb index e85a7c14afb0..71250812cf41 100644 --- a/examples/v2/case-management/ListUserCaseProjectFavorites.rb +++ b/examples/v2/case-management/ListUserCaseProjectFavorites.rb @@ -1,5 +1,8 @@ # List project favorites returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.list_user_case_project_favorites() diff --git a/examples/v2/case-management/MoveCaseToProject.rb b/examples/v2/case-management/MoveCaseToProject.rb index 7b716f908141..3211fb5a5a31 100644 --- a/examples/v2/case-management/MoveCaseToProject.rb +++ b/examples/v2/case-management/MoveCaseToProject.rb @@ -1,6 +1,9 @@ # Update case project returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ProjectRelationship.new({ diff --git a/examples/v2/case-management/RemoveCaseInsights.rb b/examples/v2/case-management/RemoveCaseInsights.rb index 989e6bd42e00..54a3cbfe14d4 100644 --- a/examples/v2/case-management/RemoveCaseInsights.rb +++ b/examples/v2/case-management/RemoveCaseInsights.rb @@ -1,6 +1,9 @@ # Remove insights from a case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseInsightsRequest.new({ diff --git a/examples/v2/case-management/SearchCases.rb b/examples/v2/case-management/SearchCases.rb index 6ebdb9cdb22f..4b0ccb93dee6 100644 --- a/examples/v2/case-management/SearchCases.rb +++ b/examples/v2/case-management/SearchCases.rb @@ -1,5 +1,8 @@ # Search cases returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.search_cases() diff --git a/examples/v2/case-management/SearchCases_3433960044.rb b/examples/v2/case-management/SearchCases_3433960044.rb index f42ea6c361d1..2c5cf49d7809 100644 --- a/examples/v2/case-management/SearchCases_3433960044.rb +++ b/examples/v2/case-management/SearchCases_3433960044.rb @@ -1,6 +1,9 @@ # Search cases returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new opts = { page_size: 2, diff --git a/examples/v2/case-management/UnarchiveCase.rb b/examples/v2/case-management/UnarchiveCase.rb index 1a6ab8241794..cdbc47fabbbb 100644 --- a/examples/v2/case-management/UnarchiveCase.rb +++ b/examples/v2/case-management/UnarchiveCase.rb @@ -1,6 +1,9 @@ # Unarchive case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UnassignCase.rb b/examples/v2/case-management/UnassignCase.rb index 764252a062a4..038c0a80c303 100644 --- a/examples/v2/case-management/UnassignCase.rb +++ b/examples/v2/case-management/UnassignCase.rb @@ -1,6 +1,9 @@ # Unassign case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UnfavoriteCaseProject.rb b/examples/v2/case-management/UnfavoriteCaseProject.rb index 055d14e0d88e..cf11ede82acb 100644 --- a/examples/v2/case-management/UnfavoriteCaseProject.rb +++ b/examples/v2/case-management/UnfavoriteCaseProject.rb @@ -1,5 +1,8 @@ # Unfavorite a project returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unfavorite_case_project("project_id") diff --git a/examples/v2/case-management/UnlinkJiraIssue.rb b/examples/v2/case-management/UnlinkJiraIssue.rb index 38808ca2d43d..ddf99a67b829 100644 --- a/examples/v2/case-management/UnlinkJiraIssue.rb +++ b/examples/v2/case-management/UnlinkJiraIssue.rb @@ -1,5 +1,8 @@ # Remove Jira issue link from case returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unlink_jira_issue("case_id") diff --git a/examples/v2/case-management/UnwatchCase.rb b/examples/v2/case-management/UnwatchCase.rb index 18280d80f6b0..035553aab939 100644 --- a/examples/v2/case-management/UnwatchCase.rb +++ b/examples/v2/case-management/UnwatchCase.rb @@ -1,5 +1,8 @@ # Unwatch a case returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new api_instance.unwatch_case("case_id", "user_uuid") diff --git a/examples/v2/case-management/UpdateAttributes.rb b/examples/v2/case-management/UpdateAttributes.rb index 5e7e36b480c2..aee67d2311d3 100644 --- a/examples/v2/case-management/UpdateAttributes.rb +++ b/examples/v2/case-management/UpdateAttributes.rb @@ -1,6 +1,9 @@ # Update case attributes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UpdateCaseAutomationRule.rb b/examples/v2/case-management/UpdateCaseAutomationRule.rb index 18789bc39e54..5b6bce16e258 100644 --- a/examples/v2/case-management/UpdateCaseAutomationRule.rb +++ b/examples/v2/case-management/UpdateCaseAutomationRule.rb @@ -1,6 +1,9 @@ # Update an automation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::AutomationRuleUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseComment.rb b/examples/v2/case-management/UpdateCaseComment.rb index 560ce0fe671e..8f159f1709ec 100644 --- a/examples/v2/case-management/UpdateCaseComment.rb +++ b/examples/v2/case-management/UpdateCaseComment.rb @@ -1,6 +1,9 @@ # Update case comment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateCommentRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseCustomAttribute.rb b/examples/v2/case-management/UpdateCaseCustomAttribute.rb index ce3fd41cdf0a..c7c88008c457 100644 --- a/examples/v2/case-management/UpdateCaseCustomAttribute.rb +++ b/examples/v2/case-management/UpdateCaseCustomAttribute.rb @@ -1,6 +1,9 @@ # Update case custom attribute returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" with a custom "case_type" in the system diff --git a/examples/v2/case-management/UpdateCaseDescription.rb b/examples/v2/case-management/UpdateCaseDescription.rb index 69b4c1fb71d6..ed73b4a01bd3 100644 --- a/examples/v2/case-management/UpdateCaseDescription.rb +++ b/examples/v2/case-management/UpdateCaseDescription.rb @@ -1,6 +1,9 @@ # Update case description returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UpdateCaseDueDate.rb b/examples/v2/case-management/UpdateCaseDueDate.rb index c32c39dda5ed..0a51954b726e 100644 --- a/examples/v2/case-management/UpdateCaseDueDate.rb +++ b/examples/v2/case-management/UpdateCaseDueDate.rb @@ -1,6 +1,9 @@ # Update case due date returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateDueDateRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseResolvedReason.rb b/examples/v2/case-management/UpdateCaseResolvedReason.rb index c671455632b2..771d190d3b04 100644 --- a/examples/v2/case-management/UpdateCaseResolvedReason.rb +++ b/examples/v2/case-management/UpdateCaseResolvedReason.rb @@ -1,6 +1,9 @@ # Update case resolved reason returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseUpdateResolvedReasonRequest.new({ diff --git a/examples/v2/case-management/UpdateCaseTitle.rb b/examples/v2/case-management/UpdateCaseTitle.rb index 855f6de0df1c..439316888dfb 100644 --- a/examples/v2/case-management/UpdateCaseTitle.rb +++ b/examples/v2/case-management/UpdateCaseTitle.rb @@ -1,6 +1,9 @@ # Update case title returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UpdateCaseView.rb b/examples/v2/case-management/UpdateCaseView.rb index bd4c50acdc1f..3a2efd5c98b2 100644 --- a/examples/v2/case-management/UpdateCaseView.rb +++ b/examples/v2/case-management/UpdateCaseView.rb @@ -1,6 +1,9 @@ # Update a case view returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseViewUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateMaintenanceWindow.rb b/examples/v2/case-management/UpdateMaintenanceWindow.rb index a4cca74ea755..4a2529c92795 100644 --- a/examples/v2/case-management/UpdateMaintenanceWindow.rb +++ b/examples/v2/case-management/UpdateMaintenanceWindow.rb @@ -1,6 +1,9 @@ # Update a maintenance window returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::MaintenanceWindowUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdatePriority.rb b/examples/v2/case-management/UpdatePriority.rb index 92d05ca6cb06..663f1bab3324 100644 --- a/examples/v2/case-management/UpdatePriority.rb +++ b/examples/v2/case-management/UpdatePriority.rb @@ -1,6 +1,9 @@ # Update case priority returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/UpdateProject.rb b/examples/v2/case-management/UpdateProject.rb index 9d9326477b1e..eeb86e952bb4 100644 --- a/examples/v2/case-management/UpdateProject.rb +++ b/examples/v2/case-management/UpdateProject.rb @@ -1,6 +1,9 @@ # Update a project returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::ProjectUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateProjectNotificationRule.rb b/examples/v2/case-management/UpdateProjectNotificationRule.rb index 15a987b1e437..c5bbf6a8c6bc 100644 --- a/examples/v2/case-management/UpdateProjectNotificationRule.rb +++ b/examples/v2/case-management/UpdateProjectNotificationRule.rb @@ -1,6 +1,9 @@ # Update a notification rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new body = DatadogAPIClient::V2::CaseNotificationRuleUpdateRequest.new({ diff --git a/examples/v2/case-management/UpdateStatus.rb b/examples/v2/case-management/UpdateStatus.rb index 55d1c2cf9749..f8ea05a1c3a0 100644 --- a/examples/v2/case-management/UpdateStatus.rb +++ b/examples/v2/case-management/UpdateStatus.rb @@ -1,6 +1,9 @@ # Update case status returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "case" in the system diff --git a/examples/v2/case-management/WatchCase.rb b/examples/v2/case-management/WatchCase.rb index 0ad58b83c0ba..178bc1cb4ca7 100644 --- a/examples/v2/case-management/WatchCase.rb +++ b/examples/v2/case-management/WatchCase.rb @@ -1,5 +1,8 @@ # Watch a case returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CaseManagementAPI.new p api_instance.watch_case("case_id", "user_uuid") diff --git a/examples/v2/change-management/CreateChangeRequest.rb b/examples/v2/change-management/CreateChangeRequest.rb index 6c4749344c6f..bbf6591a4ca8 100644 --- a/examples/v2/change-management/CreateChangeRequest.rb +++ b/examples/v2/change-management/CreateChangeRequest.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_change_request".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/change-management/CreateChangeRequestBranch.rb b/examples/v2/change-management/CreateChangeRequestBranch.rb index ed4f9b6e545f..1c4c345098d7 100644 --- a/examples/v2/change-management/CreateChangeRequestBranch.rb +++ b/examples/v2/change-management/CreateChangeRequestBranch.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_change_request_branch".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/change-management/DeleteChangeRequestDecision.rb b/examples/v2/change-management/DeleteChangeRequestDecision.rb index 93607771b325..c3152340ec89 100644 --- a/examples/v2/change-management/DeleteChangeRequestDecision.rb +++ b/examples/v2/change-management/DeleteChangeRequestDecision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_change_request_decision".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/change-management/GetChangeRequest.rb b/examples/v2/change-management/GetChangeRequest.rb index e8cf968adc66..03f1898eb330 100644 --- a/examples/v2/change-management/GetChangeRequest.rb +++ b/examples/v2/change-management/GetChangeRequest.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_change_request".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/change-management/UpdateChangeRequest.rb b/examples/v2/change-management/UpdateChangeRequest.rb index 66a6cd84ad6d..032c8a6c8434 100644 --- a/examples/v2/change-management/UpdateChangeRequest.rb +++ b/examples/v2/change-management/UpdateChangeRequest.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_change_request".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/change-management/UpdateChangeRequestDecision.rb b/examples/v2/change-management/UpdateChangeRequestDecision.rb index da9bcf65eb35..6926455d80a1 100644 --- a/examples/v2/change-management/UpdateChangeRequestDecision.rb +++ b/examples/v2/change-management/UpdateChangeRequestDecision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_change_request_decision".to_sym] = true end api_instance = DatadogAPIClient::V2::ChangeManagementAPI.new diff --git a/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb b/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb index 42ed70af53d6..5916494fc257 100644 --- a/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +++ b/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb @@ -1,5 +1,8 @@ # List GitHub CI Visibility status returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityGitHubAccountsAPI.new p api_instance.list_ci_app_git_hub_accounts() diff --git a/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb b/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb index 026c59407e87..d433e5b9fc88 100644 --- a/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +++ b/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb @@ -1,6 +1,9 @@ # Update GitHub CI Visibility status returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityGitHubAccountsAPI.new body = DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequest.new({ diff --git a/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb b/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb index 308bdd26ff23..8c7c2c44b3ec 100644 --- a/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb +++ b/examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.rb @@ -1,6 +1,9 @@ # Aggregate pipelines events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new body = DatadogAPIClient::V2::CIAppPipelinesAggregateRequest.new({ diff --git a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb index 062e8186d867..22dcfd81555d 100644 --- a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb +++ b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.rb @@ -1,6 +1,9 @@ # Get a list of pipelines events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new opts = { filter_query: "@ci.provider.name:circleci", diff --git a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb index e44b934d0b94..6fa790b0e1da 100644 --- a/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb +++ b/examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents_1270618359.rb @@ -1,6 +1,9 @@ # Get a list of pipelines events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new opts = { filter_from: (Time.now + -30), diff --git a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb index 6901520f5c5a..eff49c2d4fcf 100644 --- a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb +++ b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents.rb @@ -1,6 +1,9 @@ # Search pipelines events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({ diff --git a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb index 06b919c58fbf..05cb7b5d4bc8 100644 --- a/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb +++ b/examples/v2/ci-visibility-pipelines/SearchCIAppPipelineEvents_3246135003.rb @@ -1,6 +1,9 @@ # Search pipelines events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new body = DatadogAPIClient::V2::CIAppPipelineEventsRequest.new({ diff --git a/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb b/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb index aa83bfb89abb..c618213b59b5 100644 --- a/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb +++ b/examples/v2/ci-visibility-tests/AggregateCIAppTestEvents.rb @@ -1,6 +1,9 @@ # Aggregate tests events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new body = DatadogAPIClient::V2::CIAppTestsAggregateRequest.new({ diff --git a/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb b/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb index ab7ae7c36f6d..9a1803e7e096 100644 --- a/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb +++ b/examples/v2/ci-visibility-tests/ListCIAppTestEvents.rb @@ -1,6 +1,9 @@ # Get a list of tests events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new opts = { filter_query: "@test.service:web-ui-tests", diff --git a/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb b/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb index 37374803e5d6..a3e0df13427b 100644 --- a/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb +++ b/examples/v2/ci-visibility-tests/ListCIAppTestEvents_3852605281.rb @@ -1,6 +1,9 @@ # Get a list of tests events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new opts = { filter_from: (Time.now + -30), diff --git a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb index 604d0f2876a9..4c54fd987ec0 100644 --- a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb +++ b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents.rb @@ -1,6 +1,9 @@ # Search tests events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({ diff --git a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb index e2efb3b6d4bf..b048b8ba1b95 100644 --- a/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb +++ b/examples/v2/ci-visibility-tests/SearchCIAppTestEvents_1675695429.rb @@ -1,6 +1,9 @@ # Search tests events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CIVisibilityTestsAPI.new body = DatadogAPIClient::V2::CIAppTestEventsRequest.new({ diff --git a/examples/v2/cloud-authentication/CreateAWSCloudAuthPersonaMapping.rb b/examples/v2/cloud-authentication/CreateAWSCloudAuthPersonaMapping.rb index a64fe8dfad8c..2558e35320ff 100644 --- a/examples/v2/cloud-authentication/CreateAWSCloudAuthPersonaMapping.rb +++ b/examples/v2/cloud-authentication/CreateAWSCloudAuthPersonaMapping.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_aws_cloud_auth_persona_mapping".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudAuthenticationAPI.new diff --git a/examples/v2/cloud-authentication/DeleteAWSCloudAuthPersonaMapping.rb b/examples/v2/cloud-authentication/DeleteAWSCloudAuthPersonaMapping.rb index c13fd9a0ac59..6a0b9d60bdfe 100644 --- a/examples/v2/cloud-authentication/DeleteAWSCloudAuthPersonaMapping.rb +++ b/examples/v2/cloud-authentication/DeleteAWSCloudAuthPersonaMapping.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_aws_cloud_auth_persona_mapping".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudAuthenticationAPI.new diff --git a/examples/v2/cloud-authentication/GetAWSCloudAuthPersonaMapping.rb b/examples/v2/cloud-authentication/GetAWSCloudAuthPersonaMapping.rb index 7cf946962f10..6d406fb2a092 100644 --- a/examples/v2/cloud-authentication/GetAWSCloudAuthPersonaMapping.rb +++ b/examples/v2/cloud-authentication/GetAWSCloudAuthPersonaMapping.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_aws_cloud_auth_persona_mapping".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudAuthenticationAPI.new diff --git a/examples/v2/cloud-authentication/ListAWSCloudAuthPersonaMappings.rb b/examples/v2/cloud-authentication/ListAWSCloudAuthPersonaMappings.rb index 336f4cb356a5..1de64eaacae6 100644 --- a/examples/v2/cloud-authentication/ListAWSCloudAuthPersonaMappings.rb +++ b/examples/v2/cloud-authentication/ListAWSCloudAuthPersonaMappings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_aws_cloud_auth_persona_mappings".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudAuthenticationAPI.new diff --git a/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb b/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb index 76cd8e8541c1..d23448723cfc 100644 --- a/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb +++ b/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb @@ -1,6 +1,9 @@ # Create Cloud Cost Management AWS CUR config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::AwsCURConfigPostRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb b/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb index b3525aa7c8f7..724e82ba5e43 100644 --- a/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +++ b/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb @@ -1,6 +1,9 @@ # Create Cloud Cost Management Azure configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::AzureUCConfigPostRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb b/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb index d96be82c81f3..16b1a441d13c 100644 --- a/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +++ b/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb @@ -1,6 +1,9 @@ # Create Google Cloud Usage Cost config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::GCPUsageCostConfigPostRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb b/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb index ee6f5e383ba5..126e1ec2eeea 100644 --- a/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb +++ b/examples/v2/cloud-cost-management/CreateCustomAllocationRule.rb @@ -1,6 +1,9 @@ # Create custom allocation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::ArbitraryCostUpsertRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb index 147ccf17b16b..40ead0355e7f 100644 --- a/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb +++ b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset.rb @@ -1,6 +1,9 @@ # Create tag pipeline ruleset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::CreateRulesetRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.rb b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.rb index 3bc3cce84103..d60540bf41a8 100644 --- a/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.rb +++ b/examples/v2/cloud-cost-management/CreateTagPipelinesRuleset_1897535856.rb @@ -1,6 +1,9 @@ # Create tag pipeline ruleset with if_tag_exists returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::CreateRulesetRequest.new({ diff --git a/examples/v2/cloud-cost-management/CreateUnitCost.rb b/examples/v2/cloud-cost-management/CreateUnitCost.rb index dbd642060f3b..40a2a02166a9 100644 --- a/examples/v2/cloud-cost-management/CreateUnitCost.rb +++ b/examples/v2/cloud-cost-management/CreateUnitCost.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_unit_cost".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/DeleteBudget.rb b/examples/v2/cloud-cost-management/DeleteBudget.rb index 6b010335ea00..a4864079c884 100644 --- a/examples/v2/cloud-cost-management/DeleteBudget.rb +++ b/examples/v2/cloud-cost-management/DeleteBudget.rb @@ -1,5 +1,8 @@ # Delete budget returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_budget("budget_id") diff --git a/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb b/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb index 734a256a8c7e..43b667c7829e 100644 --- a/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +++ b/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb @@ -1,5 +1,8 @@ # Delete Cloud Cost Management AWS CUR config returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_cost_awscur_config(100) diff --git a/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb b/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb index 99087eb5723f..32030b45d10e 100644 --- a/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +++ b/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb @@ -1,5 +1,8 @@ # Delete Cloud Cost Management Azure config returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_cost_azure_uc_config(100) diff --git a/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb b/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb index 6507018f1ff4..2bcdcce40dac 100644 --- a/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +++ b/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb @@ -1,5 +1,8 @@ # Delete Google Cloud Usage Cost config returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_cost_gcp_usage_cost_config(100) diff --git a/examples/v2/cloud-cost-management/DeleteCostTagDescriptionByKey.rb b/examples/v2/cloud-cost-management/DeleteCostTagDescriptionByKey.rb index fcfacb4f775d..e599f8ffd164 100644 --- a/examples/v2/cloud-cost-management/DeleteCostTagDescriptionByKey.rb +++ b/examples/v2/cloud-cost-management/DeleteCostTagDescriptionByKey.rb @@ -1,5 +1,8 @@ # Delete a Cloud Cost Management tag description returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_cost_tag_description_by_key("tag_key") diff --git a/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb b/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb index 6ac3f173a58d..4d8df3c391e6 100644 --- a/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb +++ b/examples/v2/cloud-cost-management/DeleteCustomAllocationRule.rb @@ -1,5 +1,8 @@ # Delete custom allocation rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_custom_allocation_rule(683) diff --git a/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb b/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb index c9e270a5777f..3f1ab789cd04 100644 --- a/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb +++ b/examples/v2/cloud-cost-management/DeleteCustomCostsFile.rb @@ -1,5 +1,8 @@ # Delete Custom Costs file returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_custom_costs_file("file_id") diff --git a/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb b/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb index cf58fc945aa9..894e816a9229 100644 --- a/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb +++ b/examples/v2/cloud-cost-management/DeleteCustomCostsFile_372970393.rb @@ -1,5 +1,8 @@ # Delete Custom Costs File returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_custom_costs_file("9d055d22-a838-4e9f-bc34-a4f9ab66280c") diff --git a/examples/v2/cloud-cost-management/DeleteCustomForecast.rb b/examples/v2/cloud-cost-management/DeleteCustomForecast.rb index 3675c7d0036b..7b7903641507 100644 --- a/examples/v2/cloud-cost-management/DeleteCustomForecast.rb +++ b/examples/v2/cloud-cost-management/DeleteCustomForecast.rb @@ -1,5 +1,8 @@ # Delete a budget's custom forecast returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_custom_forecast("budget_id") diff --git a/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb b/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb index e888f0b9a7bb..e71c954b9bd7 100644 --- a/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb +++ b/examples/v2/cloud-cost-management/DeleteTagPipelinesRuleset.rb @@ -1,5 +1,8 @@ # Delete tag pipeline ruleset returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new api_instance.delete_tag_pipelines_ruleset("ee10c3ff-312f-464c-b4f6-46adaa6d00a1") diff --git a/examples/v2/cloud-cost-management/DeleteUnitCost.rb b/examples/v2/cloud-cost-management/DeleteUnitCost.rb index 6447d63af11d..0d4e9e880a22 100644 --- a/examples/v2/cloud-cost-management/DeleteUnitCost.rb +++ b/examples/v2/cloud-cost-management/DeleteUnitCost.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_unit_cost".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GenerateCostTagDescriptionByKey.rb b/examples/v2/cloud-cost-management/GenerateCostTagDescriptionByKey.rb index 792421d96353..4062b48a08a9 100644 --- a/examples/v2/cloud-cost-management/GenerateCostTagDescriptionByKey.rb +++ b/examples/v2/cloud-cost-management/GenerateCostTagDescriptionByKey.rb @@ -1,5 +1,8 @@ # Generate a Cloud Cost Management tag description returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.generate_cost_tag_description_by_key("tag_key") diff --git a/examples/v2/cloud-cost-management/GetBudget.rb b/examples/v2/cloud-cost-management/GetBudget.rb index 8ebc7596e369..42104d138a92 100644 --- a/examples/v2/cloud-cost-management/GetBudget.rb +++ b/examples/v2/cloud-cost-management/GetBudget.rb @@ -1,5 +1,8 @@ # Get budget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_budget("budget_id") diff --git a/examples/v2/cloud-cost-management/GetCommitmentsCommitmentList.rb b/examples/v2/cloud-cost-management/GetCommitmentsCommitmentList.rb index 7803eb52da2f..05003c5027b3 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsCommitmentList.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsCommitmentList.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_commitment_list".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsCoverageScalar.rb b/examples/v2/cloud-cost-management/GetCommitmentsCoverageScalar.rb index 9d1c536c5256..fa903a7ee54c 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsCoverageScalar.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsCoverageScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_coverage_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsCoverageTimeseries.rb b/examples/v2/cloud-cost-management/GetCommitmentsCoverageTimeseries.rb index b29227270344..6c2712055b7e 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsCoverageTimeseries.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsCoverageTimeseries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_coverage_timeseries".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsOnDemandHotspotsScalar.rb b/examples/v2/cloud-cost-management/GetCommitmentsOnDemandHotspotsScalar.rb index 4b30d49b2953..2902a750b6f4 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsOnDemandHotspotsScalar.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsOnDemandHotspotsScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_on_demand_hotspots_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsSavingsScalar.rb b/examples/v2/cloud-cost-management/GetCommitmentsSavingsScalar.rb index 11d489e6ac5c..b69e53b9ec2c 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsSavingsScalar.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsSavingsScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_savings_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsSavingsTimeseries.rb b/examples/v2/cloud-cost-management/GetCommitmentsSavingsTimeseries.rb index a955933a626e..ed026eeac264 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsSavingsTimeseries.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsSavingsTimeseries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_savings_timeseries".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsUtilizationScalar.rb b/examples/v2/cloud-cost-management/GetCommitmentsUtilizationScalar.rb index c9e2c1902150..303edc1e3b0b 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsUtilizationScalar.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsUtilizationScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_utilization_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCommitmentsUtilizationTimeseries.rb b/examples/v2/cloud-cost-management/GetCommitmentsUtilizationTimeseries.rb index 2b3d230afdae..59fad516ae43 100644 --- a/examples/v2/cloud-cost-management/GetCommitmentsUtilizationTimeseries.rb +++ b/examples/v2/cloud-cost-management/GetCommitmentsUtilizationTimeseries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_commitments_utilization_timeseries".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb b/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb index 1189609ab64d..b0a201ee35eb 100644 --- a/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb +++ b/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb @@ -1,5 +1,8 @@ # Get cost AWS CUR config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_awscur_config(123456) diff --git a/examples/v2/cloud-cost-management/GetCostAccountFilters.rb b/examples/v2/cloud-cost-management/GetCostAccountFilters.rb index d2012a6bd62e..d19272e91fa1 100644 --- a/examples/v2/cloud-cost-management/GetCostAccountFilters.rb +++ b/examples/v2/cloud-cost-management/GetCostAccountFilters.rb @@ -1,5 +1,8 @@ # Get account filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_account_filters(9223372036854775807) diff --git a/examples/v2/cloud-cost-management/GetCostAnomaly.rb b/examples/v2/cloud-cost-management/GetCostAnomaly.rb index 37682284ff52..f7346f76b783 100644 --- a/examples/v2/cloud-cost-management/GetCostAnomaly.rb +++ b/examples/v2/cloud-cost-management/GetCostAnomaly.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_cost_anomaly".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb b/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb index 2ec8cdc2441f..a5adb2a8f31d 100644 --- a/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +++ b/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb @@ -1,5 +1,8 @@ # Get cost Azure UC config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_azure_uc_config(123456) diff --git a/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb b/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb index a42ebc32ffa0..26d2b06a99b7 100644 --- a/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb +++ b/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb @@ -1,5 +1,8 @@ # Get Google Cloud Usage Cost config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_gcp_usage_cost_config(123456) diff --git a/examples/v2/cloud-cost-management/GetCostTagDescriptionByKey.rb b/examples/v2/cloud-cost-management/GetCostTagDescriptionByKey.rb index de5dc4a0f139..6070f2256bb1 100644 --- a/examples/v2/cloud-cost-management/GetCostTagDescriptionByKey.rb +++ b/examples/v2/cloud-cost-management/GetCostTagDescriptionByKey.rb @@ -1,5 +1,8 @@ # Get a Cloud Cost Management tag description returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_tag_description_by_key("tag_key") diff --git a/examples/v2/cloud-cost-management/GetCostTagKey.rb b/examples/v2/cloud-cost-management/GetCostTagKey.rb index bf2551882b4b..bc0b98134143 100644 --- a/examples/v2/cloud-cost-management/GetCostTagKey.rb +++ b/examples/v2/cloud-cost-management/GetCostTagKey.rb @@ -1,5 +1,8 @@ # Get a Cloud Cost Management tag key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_cost_tag_key("tag_key") diff --git a/examples/v2/cloud-cost-management/GetCostTagMetadataCurrency.rb b/examples/v2/cloud-cost-management/GetCostTagMetadataCurrency.rb index 8492f900c41d..63f8b003f12f 100644 --- a/examples/v2/cloud-cost-management/GetCostTagMetadataCurrency.rb +++ b/examples/v2/cloud-cost-management/GetCostTagMetadataCurrency.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_cost_tag_metadata_currency".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb b/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb index 32ffb703b8e8..161fd16d8be7 100644 --- a/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb +++ b/examples/v2/cloud-cost-management/GetCustomAllocationRule.rb @@ -1,5 +1,8 @@ # Get custom allocation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_custom_allocation_rule(683) diff --git a/examples/v2/cloud-cost-management/GetCustomCostsFile.rb b/examples/v2/cloud-cost-management/GetCustomCostsFile.rb index e12a3b0ca774..4d9583cfa645 100644 --- a/examples/v2/cloud-cost-management/GetCustomCostsFile.rb +++ b/examples/v2/cloud-cost-management/GetCustomCostsFile.rb @@ -1,5 +1,8 @@ # Get Custom Costs file returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_custom_costs_file("file_id") diff --git a/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb b/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb index 5d9827ed174f..bfa804eafc00 100644 --- a/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb +++ b/examples/v2/cloud-cost-management/GetCustomCostsFile_1307381576.rb @@ -1,5 +1,8 @@ # Get Custom Costs File returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_custom_costs_file("9d055d22-a838-4e9f-bc34-a4f9ab66280c") diff --git a/examples/v2/cloud-cost-management/GetCustomForecast.rb b/examples/v2/cloud-cost-management/GetCustomForecast.rb index 70ed7e8b517d..4ac25385d61e 100644 --- a/examples/v2/cloud-cost-management/GetCustomForecast.rb +++ b/examples/v2/cloud-cost-management/GetCustomForecast.rb @@ -1,5 +1,8 @@ # Get a budget's custom forecast returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_custom_forecast("budget_id") diff --git a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb index 17721b5551f8..2b6e1b63fba9 100644 --- a/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb +++ b/examples/v2/cloud-cost-management/GetTagPipelinesRuleset.rb @@ -1,5 +1,8 @@ # Get a tag pipeline ruleset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.get_tag_pipelines_ruleset("a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de") diff --git a/examples/v2/cloud-cost-management/GetUnitCost.rb b/examples/v2/cloud-cost-management/GetUnitCost.rb index 8ddad491d3dd..a14078fadfe3 100644 --- a/examples/v2/cloud-cost-management/GetUnitCost.rb +++ b/examples/v2/cloud-cost-management/GetUnitCost.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_unit_cost".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListBudgets.rb b/examples/v2/cloud-cost-management/ListBudgets.rb index eab40af9f6a8..142b12f7a6fd 100644 --- a/examples/v2/cloud-cost-management/ListBudgets.rb +++ b/examples/v2/cloud-cost-management/ListBudgets.rb @@ -1,5 +1,8 @@ # List budgets returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_budgets() diff --git a/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb b/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb index 6f308538d2e3..0efd07c644b0 100644 --- a/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb +++ b/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management AWS CUR configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_awscur_configs() diff --git a/examples/v2/cloud-cost-management/ListCostAnomalies.rb b/examples/v2/cloud-cost-management/ListCostAnomalies.rb index fbe626f3369a..561f14677db2 100644 --- a/examples/v2/cloud-cost-management/ListCostAnomalies.rb +++ b/examples/v2/cloud-cost-management/ListCostAnomalies.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_anomalies".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb b/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb index 0d3f8a23f1d9..8d7bb90c0705 100644 --- a/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb +++ b/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management Azure configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_azure_uc_configs() diff --git a/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb b/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb index d97b67055ad9..42824ef2fb62 100644 --- a/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +++ b/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb @@ -1,5 +1,8 @@ # List Google Cloud Usage Cost configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_gcp_usage_cost_configs() diff --git a/examples/v2/cloud-cost-management/ListCostOCIConfigs.rb b/examples/v2/cloud-cost-management/ListCostOCIConfigs.rb index 904af9f6beb9..2b12fcae14f6 100644 --- a/examples/v2/cloud-cost-management/ListCostOCIConfigs.rb +++ b/examples/v2/cloud-cost-management/ListCostOCIConfigs.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management OCI configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_oci_configs() diff --git a/examples/v2/cloud-cost-management/ListCostTagDescriptions.rb b/examples/v2/cloud-cost-management/ListCostTagDescriptions.rb index 3224f087a600..e2ded3b63884 100644 --- a/examples/v2/cloud-cost-management/ListCostTagDescriptions.rb +++ b/examples/v2/cloud-cost-management/ListCostTagDescriptions.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management tag descriptions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_tag_descriptions() diff --git a/examples/v2/cloud-cost-management/ListCostTagKeySources.rb b/examples/v2/cloud-cost-management/ListCostTagKeySources.rb index d081b22a7014..ce0a03bd37a1 100644 --- a/examples/v2/cloud-cost-management/ListCostTagKeySources.rb +++ b/examples/v2/cloud-cost-management/ListCostTagKeySources.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_tag_key_sources".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostTagKeys.rb b/examples/v2/cloud-cost-management/ListCostTagKeys.rb index 932e35eb64ca..56d39e3de14b 100644 --- a/examples/v2/cloud-cost-management/ListCostTagKeys.rb +++ b/examples/v2/cloud-cost-management/ListCostTagKeys.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management tag keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_tag_keys() diff --git a/examples/v2/cloud-cost-management/ListCostTagMetadata.rb b/examples/v2/cloud-cost-management/ListCostTagMetadata.rb index cfb014cc2461..6537ea215d4e 100644 --- a/examples/v2/cloud-cost-management/ListCostTagMetadata.rb +++ b/examples/v2/cloud-cost-management/ListCostTagMetadata.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_tag_metadata".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostTagMetadataMetrics.rb b/examples/v2/cloud-cost-management/ListCostTagMetadataMetrics.rb index b3ea503851ce..2cb07164d3cc 100644 --- a/examples/v2/cloud-cost-management/ListCostTagMetadataMetrics.rb +++ b/examples/v2/cloud-cost-management/ListCostTagMetadataMetrics.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_tag_metadata_metrics".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostTagMetadataMonths.rb b/examples/v2/cloud-cost-management/ListCostTagMetadataMonths.rb index 7f388f29bcaa..7284dcd5a34a 100644 --- a/examples/v2/cloud-cost-management/ListCostTagMetadataMonths.rb +++ b/examples/v2/cloud-cost-management/ListCostTagMetadataMonths.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_tag_metadata_months".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostTagMetadataOrchestrators.rb b/examples/v2/cloud-cost-management/ListCostTagMetadataOrchestrators.rb index 69f287884e47..27f5fcd845c9 100644 --- a/examples/v2/cloud-cost-management/ListCostTagMetadataOrchestrators.rb +++ b/examples/v2/cloud-cost-management/ListCostTagMetadataOrchestrators.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_cost_tag_metadata_orchestrators".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ListCostTags.rb b/examples/v2/cloud-cost-management/ListCostTags.rb index 8e476a8ab5b5..ea53a0f48e66 100644 --- a/examples/v2/cloud-cost-management/ListCostTags.rb +++ b/examples/v2/cloud-cost-management/ListCostTags.rb @@ -1,5 +1,8 @@ # List Cloud Cost Management tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_cost_tags() diff --git a/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb b/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb index e14b5c5662a6..2c8e3985edf6 100644 --- a/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb +++ b/examples/v2/cloud-cost-management/ListCustomAllocationRules.rb @@ -1,5 +1,8 @@ # List custom allocation rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_custom_allocation_rules() diff --git a/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.rb b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.rb index d3bd0dd1522c..11fc3b97451c 100644 --- a/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.rb +++ b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.rb @@ -1,5 +1,8 @@ # List custom allocation rule statuses returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_custom_allocation_rules_status() diff --git a/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb b/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb index 7c98860a7e69..23f6dfdb6e01 100644 --- a/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb +++ b/examples/v2/cloud-cost-management/ListCustomCostsFiles.rb @@ -1,5 +1,8 @@ # List Custom Costs files returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_custom_costs_files() diff --git a/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb b/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb index cf908b34861c..71c37f5926f4 100644 --- a/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb +++ b/examples/v2/cloud-cost-management/ListCustomCostsFiles_1968771127.rb @@ -1,5 +1,8 @@ # List Custom Costs Files returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_custom_costs_files() diff --git a/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb b/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb index 832c3d03e8c7..73770399373a 100644 --- a/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb +++ b/examples/v2/cloud-cost-management/ListTagPipelinesRulesets.rb @@ -1,5 +1,8 @@ # List tag pipeline rulesets returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_tag_pipelines_rulesets() diff --git a/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.rb b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.rb index 45fa1661a1ce..1457d7c2948e 100644 --- a/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.rb +++ b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.rb @@ -1,5 +1,8 @@ # List tag pipeline ruleset statuses returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new p api_instance.list_tag_pipelines_rulesets_status() diff --git a/examples/v2/cloud-cost-management/ListUnitCosts.rb b/examples/v2/cloud-cost-management/ListUnitCosts.rb index 69d252dbf1ba..cd884ea4a865 100644 --- a/examples/v2/cloud-cost-management/ListUnitCosts.rb +++ b/examples/v2/cloud-cost-management/ListUnitCosts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_unit_costs".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/ReorderCustomAllocationRules.rb b/examples/v2/cloud-cost-management/ReorderCustomAllocationRules.rb index 940af94024a5..0020bb6125d0 100644 --- a/examples/v2/cloud-cost-management/ReorderCustomAllocationRules.rb +++ b/examples/v2/cloud-cost-management/ReorderCustomAllocationRules.rb @@ -1,6 +1,9 @@ # Reorder custom allocation rules returns "Successfully reordered rules" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::ReorderRuleResourceArray.new({ diff --git a/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb b/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb index 16b9a68e6adb..27097746e538 100644 --- a/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb +++ b/examples/v2/cloud-cost-management/ReorderTagPipelinesRulesets.rb @@ -1,6 +1,9 @@ # Reorder tag pipeline rulesets returns "Successfully reordered rulesets" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::ReorderRulesetResourceArray.new({ diff --git a/examples/v2/cloud-cost-management/SearchCostRecommendations.rb b/examples/v2/cloud-cost-management/SearchCostRecommendations.rb index 3df3d564d77d..3ea6e12e8380 100644 --- a/examples/v2/cloud-cost-management/SearchCostRecommendations.rb +++ b/examples/v2/cloud-cost-management/SearchCostRecommendations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_cost_recommendations".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb b/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb index 8d6c48ba59a4..99bd516aa097 100644 --- a/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +++ b/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb @@ -1,6 +1,9 @@ # Update Cloud Cost Management AWS CUR config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::AwsCURConfigPatchRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateCostAccountFilters.rb b/examples/v2/cloud-cost-management/UpdateCostAccountFilters.rb index 264d22be8782..2771d19e5c37 100644 --- a/examples/v2/cloud-cost-management/UpdateCostAccountFilters.rb +++ b/examples/v2/cloud-cost-management/UpdateCostAccountFilters.rb @@ -1,6 +1,9 @@ # Update account filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::AccountFiltersPatchRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb b/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb index 46efc358f544..6dde4d4a25ca 100644 --- a/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +++ b/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb @@ -1,6 +1,9 @@ # Update Cloud Cost Management Azure config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::AzureUCConfigPatchRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb b/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb index fec71916458f..03e37b7bf246 100644 --- a/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +++ b/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb @@ -1,6 +1,9 @@ # Update Google Cloud Usage Cost config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::GCPUsageCostConfigPatchRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb b/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb index 8b971af5de3b..25f405792f42 100644 --- a/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb +++ b/examples/v2/cloud-cost-management/UpdateCustomAllocationRule.rb @@ -1,6 +1,9 @@ # Update custom allocation rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::ArbitraryCostUpsertRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb index e716348c4eff..506b77e2442b 100644 --- a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb +++ b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset.rb @@ -1,6 +1,9 @@ # Update tag pipeline ruleset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::UpdateRulesetRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.rb b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.rb index 1719bb9dedf2..460438f2d18f 100644 --- a/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.rb +++ b/examples/v2/cloud-cost-management/UpdateTagPipelinesRuleset_1964644735.rb @@ -1,6 +1,9 @@ # Update tag pipeline ruleset with if_tag_exists returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::UpdateRulesetRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpdateUnitCost.rb b/examples/v2/cloud-cost-management/UpdateUnitCost.rb index 6fdd7c4c66e2..fa55b7159d22 100644 --- a/examples/v2/cloud-cost-management/UpdateUnitCost.rb +++ b/examples/v2/cloud-cost-management/UpdateUnitCost.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_unit_cost".to_sym] = true end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new diff --git a/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb b/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb index 6727ab8aa85c..f26ac0d08e13 100644 --- a/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb +++ b/examples/v2/cloud-cost-management/UploadCustomCostsFile.rb @@ -1,6 +1,9 @@ # Upload Custom Costs file returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = [ diff --git a/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb b/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb index e4ebb491ca10..2b1704f84973 100644 --- a/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb +++ b/examples/v2/cloud-cost-management/UploadCustomCostsFile_4125168396.rb @@ -1,6 +1,9 @@ # Upload Custom Costs File returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = [ diff --git a/examples/v2/cloud-cost-management/UpsertBudget.rb b/examples/v2/cloud-cost-management/UpsertBudget.rb index 424f30775328..ddbc229ac689 100644 --- a/examples/v2/cloud-cost-management/UpsertBudget.rb +++ b/examples/v2/cloud-cost-management/UpsertBudget.rb @@ -1,6 +1,9 @@ # Create or update a budget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::BudgetWithEntries.new({ diff --git a/examples/v2/cloud-cost-management/UpsertCostTagDescriptionByKey.rb b/examples/v2/cloud-cost-management/UpsertCostTagDescriptionByKey.rb index 6effe25f64de..53bda0acc924 100644 --- a/examples/v2/cloud-cost-management/UpsertCostTagDescriptionByKey.rb +++ b/examples/v2/cloud-cost-management/UpsertCostTagDescriptionByKey.rb @@ -1,6 +1,9 @@ # Upsert a Cloud Cost Management tag description returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::CostTagDescriptionUpsertRequest.new({ diff --git a/examples/v2/cloud-cost-management/UpsertCustomForecast.rb b/examples/v2/cloud-cost-management/UpsertCustomForecast.rb index 4db9611ee30a..26622ba3e2b4 100644 --- a/examples/v2/cloud-cost-management/UpsertCustomForecast.rb +++ b/examples/v2/cloud-cost-management/UpsertCustomForecast.rb @@ -1,6 +1,9 @@ # Create or replace a budget's custom forecast returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::CustomForecastUpsertRequest.new({ diff --git a/examples/v2/cloud-cost-management/ValidateBudget.rb b/examples/v2/cloud-cost-management/ValidateBudget.rb index c7b935902f15..236c642206f6 100644 --- a/examples/v2/cloud-cost-management/ValidateBudget.rb +++ b/examples/v2/cloud-cost-management/ValidateBudget.rb @@ -1,6 +1,9 @@ # Validate budget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::BudgetValidationRequest.new({ diff --git a/examples/v2/cloud-cost-management/ValidateQuery.rb b/examples/v2/cloud-cost-management/ValidateQuery.rb index 099dcb8dad4b..a072fdf8e15d 100644 --- a/examples/v2/cloud-cost-management/ValidateQuery.rb +++ b/examples/v2/cloud-cost-management/ValidateQuery.rb @@ -1,6 +1,9 @@ # Validate query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new body = DatadogAPIClient::V2::RulesValidateQueryRequest.new({ diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb index 0276fa12a7fe..0e337e378330 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb @@ -1,5 +1,8 @@ # Get all aggregated connections returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new p api_instance.get_aggregated_connections() diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb index d85dae6a66bb..23dd0c6e8cd9 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb +++ b/examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.rb @@ -1,5 +1,8 @@ # Get aggregated connections returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new p api_instance.get_aggregated_connections() diff --git a/examples/v2/cloud-network-monitoring/GetAggregatedDns.rb b/examples/v2/cloud-network-monitoring/GetAggregatedDns.rb index 069d32e8fdc3..292e5d6dd942 100644 --- a/examples/v2/cloud-network-monitoring/GetAggregatedDns.rb +++ b/examples/v2/cloud-network-monitoring/GetAggregatedDns.rb @@ -1,5 +1,8 @@ # Get all aggregated DNS traffic returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new p api_instance.get_aggregated_dns() diff --git a/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb b/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb index 25b0b12c72e5..46e52b02a0f5 100644 --- a/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +++ b/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb @@ -1,6 +1,9 @@ # Add Cloudflare account returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new body = DatadogAPIClient::V2::CloudflareAccountCreateRequest.new({ diff --git a/examples/v2/cloudflare-integration/DeleteCloudflareAccount.rb b/examples/v2/cloudflare-integration/DeleteCloudflareAccount.rb index 010c7aa5981b..9c7a806900ee 100644 --- a/examples/v2/cloudflare-integration/DeleteCloudflareAccount.rb +++ b/examples/v2/cloudflare-integration/DeleteCloudflareAccount.rb @@ -1,5 +1,8 @@ # Delete Cloudflare account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new api_instance.delete_cloudflare_account("account_id") diff --git a/examples/v2/cloudflare-integration/GetCloudflareAccount.rb b/examples/v2/cloudflare-integration/GetCloudflareAccount.rb index fd0338832163..f7c21e26fef7 100644 --- a/examples/v2/cloudflare-integration/GetCloudflareAccount.rb +++ b/examples/v2/cloudflare-integration/GetCloudflareAccount.rb @@ -1,6 +1,9 @@ # Get Cloudflare account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new # there is a valid "cloudflare_account" in the system diff --git a/examples/v2/cloudflare-integration/ListCloudflareAccounts.rb b/examples/v2/cloudflare-integration/ListCloudflareAccounts.rb index 4c7db9d9e992..8d6749d4c6ac 100644 --- a/examples/v2/cloudflare-integration/ListCloudflareAccounts.rb +++ b/examples/v2/cloudflare-integration/ListCloudflareAccounts.rb @@ -1,5 +1,8 @@ # List Cloudflare accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new p api_instance.list_cloudflare_accounts() diff --git a/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb b/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb index 2da0b600167a..9bccd3a52a57 100644 --- a/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +++ b/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb @@ -1,6 +1,9 @@ # Update Cloudflare account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CloudflareIntegrationAPI.new # there is a valid "cloudflare_account" in the system diff --git a/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb b/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb index 2275a039463b..761dbf95354e 100644 --- a/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb +++ b/examples/v2/code-coverage/GetCodeCoverageBranchSummary.rb @@ -1,6 +1,9 @@ # Get code coverage summary for a branch returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new body = DatadogAPIClient::V2::BranchCoverageSummaryRequest.new({ diff --git a/examples/v2/code-coverage/GetCodeCoverageBranchSummary_2532383345.rb b/examples/v2/code-coverage/GetCodeCoverageBranchSummary_2532383345.rb index cce6ea21e22a..31c39bf67457 100644 --- a/examples/v2/code-coverage/GetCodeCoverageBranchSummary_2532383345.rb +++ b/examples/v2/code-coverage/GetCodeCoverageBranchSummary_2532383345.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_code_coverage_branch_summary".to_sym] = true end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new diff --git a/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb b/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb index 6041f66f2061..f214e6ab2cda 100644 --- a/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb +++ b/examples/v2/code-coverage/GetCodeCoverageCommitSummary.rb @@ -1,6 +1,9 @@ # Get code coverage summary for a commit returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new body = DatadogAPIClient::V2::CommitCoverageSummaryRequest.new({ diff --git a/examples/v2/code-coverage/GetCodeCoverageCommitSummary_2575243916.rb b/examples/v2/code-coverage/GetCodeCoverageCommitSummary_2575243916.rb index 866b7124127d..9e2099248729 100644 --- a/examples/v2/code-coverage/GetCodeCoverageCommitSummary_2575243916.rb +++ b/examples/v2/code-coverage/GetCodeCoverageCommitSummary_2575243916.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_code_coverage_commit_summary".to_sym] = true end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new diff --git a/examples/v2/code-coverage/GetCodeCoverageFiles.rb b/examples/v2/code-coverage/GetCodeCoverageFiles.rb index 4221fbb50127..f9535becf21d 100644 --- a/examples/v2/code-coverage/GetCodeCoverageFiles.rb +++ b/examples/v2/code-coverage/GetCodeCoverageFiles.rb @@ -1,6 +1,9 @@ # Get per-file code coverage data returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new body = DatadogAPIClient::V2::FilesCoverageRequest.new({ diff --git a/examples/v2/code-coverage/GetCodeCoveragePRSummary.rb b/examples/v2/code-coverage/GetCodeCoveragePRSummary.rb index 8d573a0efd06..b713dc3c3738 100644 --- a/examples/v2/code-coverage/GetCodeCoveragePRSummary.rb +++ b/examples/v2/code-coverage/GetCodeCoveragePRSummary.rb @@ -1,6 +1,9 @@ # Get code coverage summary for a pull request returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CodeCoverageAPI.new body = DatadogAPIClient::V2::PRCoverageSummaryRequest.new({ diff --git a/examples/v2/compliance/GetRuleBasedView.rb b/examples/v2/compliance/GetRuleBasedView.rb index edd374aef551..a3f4889b7cc3 100644 --- a/examples/v2/compliance/GetRuleBasedView.rb +++ b/examples/v2/compliance/GetRuleBasedView.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rule_based_view".to_sym] = true end api_instance = DatadogAPIClient::V2::ComplianceAPI.new diff --git a/examples/v2/confluent-cloud/CreateConfluentAccount.rb b/examples/v2/confluent-cloud/CreateConfluentAccount.rb index 623488be4ce4..1d8f7cf7f4e1 100644 --- a/examples/v2/confluent-cloud/CreateConfluentAccount.rb +++ b/examples/v2/confluent-cloud/CreateConfluentAccount.rb @@ -1,6 +1,9 @@ # Add Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new body = DatadogAPIClient::V2::ConfluentAccountCreateRequest.new({ diff --git a/examples/v2/confluent-cloud/CreateConfluentResource.rb b/examples/v2/confluent-cloud/CreateConfluentResource.rb index 463df7225191..c4dac112202f 100644 --- a/examples/v2/confluent-cloud/CreateConfluentResource.rb +++ b/examples/v2/confluent-cloud/CreateConfluentResource.rb @@ -1,6 +1,9 @@ # Add resource to Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new # there is a valid "confluent_account" in the system diff --git a/examples/v2/confluent-cloud/DeleteConfluentAccount.rb b/examples/v2/confluent-cloud/DeleteConfluentAccount.rb index 5738b0d53708..767e7580d898 100644 --- a/examples/v2/confluent-cloud/DeleteConfluentAccount.rb +++ b/examples/v2/confluent-cloud/DeleteConfluentAccount.rb @@ -1,6 +1,9 @@ # Delete Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new # there is a valid "confluent_account" in the system diff --git a/examples/v2/confluent-cloud/DeleteConfluentResource.rb b/examples/v2/confluent-cloud/DeleteConfluentResource.rb index 297ce54fa821..193d4ea8baf7 100644 --- a/examples/v2/confluent-cloud/DeleteConfluentResource.rb +++ b/examples/v2/confluent-cloud/DeleteConfluentResource.rb @@ -1,5 +1,8 @@ # Delete resource from Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new api_instance.delete_confluent_resource("account_id", "resource_id") diff --git a/examples/v2/confluent-cloud/GetConfluentAccount.rb b/examples/v2/confluent-cloud/GetConfluentAccount.rb index f33d85d7dd04..0ec73f74ccbd 100644 --- a/examples/v2/confluent-cloud/GetConfluentAccount.rb +++ b/examples/v2/confluent-cloud/GetConfluentAccount.rb @@ -1,6 +1,9 @@ # Get Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new # there is a valid "confluent_account" in the system diff --git a/examples/v2/confluent-cloud/GetConfluentResource.rb b/examples/v2/confluent-cloud/GetConfluentResource.rb index a43feb103d0b..064091a4427a 100644 --- a/examples/v2/confluent-cloud/GetConfluentResource.rb +++ b/examples/v2/confluent-cloud/GetConfluentResource.rb @@ -1,5 +1,8 @@ # Get resource from Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new p api_instance.get_confluent_resource("account_id", "resource_id") diff --git a/examples/v2/confluent-cloud/ListConfluentAccount.rb b/examples/v2/confluent-cloud/ListConfluentAccount.rb index 51e0a1d05c0f..d47e15b09c2c 100644 --- a/examples/v2/confluent-cloud/ListConfluentAccount.rb +++ b/examples/v2/confluent-cloud/ListConfluentAccount.rb @@ -1,5 +1,8 @@ # List Confluent accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new p api_instance.list_confluent_account() diff --git a/examples/v2/confluent-cloud/ListConfluentResource.rb b/examples/v2/confluent-cloud/ListConfluentResource.rb index cdcf2a69bddd..6b71490dab9c 100644 --- a/examples/v2/confluent-cloud/ListConfluentResource.rb +++ b/examples/v2/confluent-cloud/ListConfluentResource.rb @@ -1,5 +1,8 @@ # List Confluent Account resources returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new p api_instance.list_confluent_resource("account_id") diff --git a/examples/v2/confluent-cloud/UpdateConfluentAccount.rb b/examples/v2/confluent-cloud/UpdateConfluentAccount.rb index 489834878d20..8f49e5a0db68 100644 --- a/examples/v2/confluent-cloud/UpdateConfluentAccount.rb +++ b/examples/v2/confluent-cloud/UpdateConfluentAccount.rb @@ -1,6 +1,9 @@ # Update Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new # there is a valid "confluent_account" in the system diff --git a/examples/v2/confluent-cloud/UpdateConfluentResource.rb b/examples/v2/confluent-cloud/UpdateConfluentResource.rb index 73e610212596..77dbc973ad2f 100644 --- a/examples/v2/confluent-cloud/UpdateConfluentResource.rb +++ b/examples/v2/confluent-cloud/UpdateConfluentResource.rb @@ -1,6 +1,9 @@ # Update resource in Confluent account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ConfluentCloudAPI.new body = DatadogAPIClient::V2::ConfluentResourceRequest.new({ diff --git a/examples/v2/container-images/ListContainerImages.rb b/examples/v2/container-images/ListContainerImages.rb index 3212057f017d..51be17603a05 100644 --- a/examples/v2/container-images/ListContainerImages.rb +++ b/examples/v2/container-images/ListContainerImages.rb @@ -1,5 +1,8 @@ # Get all Container Images returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainerImagesAPI.new p api_instance.list_container_images() diff --git a/examples/v2/container-images/ListContainerImages_3088586393.rb b/examples/v2/container-images/ListContainerImages_3088586393.rb index 403474258276..537dccf54270 100644 --- a/examples/v2/container-images/ListContainerImages_3088586393.rb +++ b/examples/v2/container-images/ListContainerImages_3088586393.rb @@ -1,6 +1,9 @@ # Get all Container Images returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainerImagesAPI.new opts = { page_size: 2, diff --git a/examples/v2/container-images/ListContainerImages_3974828736.rb b/examples/v2/container-images/ListContainerImages_3974828736.rb index ddcef04b8ab2..0febdfe0d2bd 100644 --- a/examples/v2/container-images/ListContainerImages_3974828736.rb +++ b/examples/v2/container-images/ListContainerImages_3974828736.rb @@ -1,6 +1,9 @@ # Get all Container Image groups returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainerImagesAPI.new opts = { group_by: "short_image", diff --git a/examples/v2/containers/ListContainers.rb b/examples/v2/containers/ListContainers.rb index b23ff4bcb17f..3d27684306c6 100644 --- a/examples/v2/containers/ListContainers.rb +++ b/examples/v2/containers/ListContainers.rb @@ -1,5 +1,8 @@ # Get All Containers returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainersAPI.new p api_instance.list_containers() diff --git a/examples/v2/containers/ListContainers_2175733917.rb b/examples/v2/containers/ListContainers_2175733917.rb index 2799ede26df8..a918143f8a07 100644 --- a/examples/v2/containers/ListContainers_2175733917.rb +++ b/examples/v2/containers/ListContainers_2175733917.rb @@ -1,6 +1,9 @@ # Get All Container groups returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainersAPI.new opts = { group_by: "short_image", diff --git a/examples/v2/containers/ListContainers_931009654.rb b/examples/v2/containers/ListContainers_931009654.rb index fff581e2ef5b..b3577901a0a1 100644 --- a/examples/v2/containers/ListContainers_931009654.rb +++ b/examples/v2/containers/ListContainers_931009654.rb @@ -1,6 +1,9 @@ # Get All Containers returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ContainersAPI.new opts = { page_size: 2, diff --git a/examples/v2/csm-agents/ListAllCSMAgents.rb b/examples/v2/csm-agents/ListAllCSMAgents.rb index 9d9b4d6d6e7d..9288e5f5c058 100644 --- a/examples/v2/csm-agents/ListAllCSMAgents.rb +++ b/examples/v2/csm-agents/ListAllCSMAgents.rb @@ -1,5 +1,8 @@ # Get all CSM Agents returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMAgentsAPI.new p api_instance.list_all_csm_agents() diff --git a/examples/v2/csm-agents/ListAllCSMServerlessAgents.rb b/examples/v2/csm-agents/ListAllCSMServerlessAgents.rb index 54620c9302fb..599cfbdf2713 100644 --- a/examples/v2/csm-agents/ListAllCSMServerlessAgents.rb +++ b/examples/v2/csm-agents/ListAllCSMServerlessAgents.rb @@ -1,5 +1,8 @@ # Get all CSM Serverless Agents returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMAgentsAPI.new p api_instance.list_all_csm_serverless_agents() diff --git a/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb b/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb index 033a98052303..8751fe6dea62 100644 --- a/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb +++ b/examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.rb @@ -1,5 +1,8 @@ # Get the CSM Cloud Accounts Coverage Analysis returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMCoverageAnalysisAPI.new p api_instance.get_csm_cloud_accounts_coverage_analysis() diff --git a/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb b/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb index 17ac56575abb..1e869b1ba3f5 100644 --- a/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb +++ b/examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.rb @@ -1,5 +1,8 @@ # Get the CSM Hosts and Containers Coverage Analysis returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMCoverageAnalysisAPI.new p api_instance.get_csm_hosts_and_containers_coverage_analysis() diff --git a/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb b/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb index 0b4b64653064..173a93fe7896 100644 --- a/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb +++ b/examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.rb @@ -1,5 +1,8 @@ # Get the CSM Serverless Coverage Analysis returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMCoverageAnalysisAPI.new p api_instance.get_csm_serverless_coverage_analysis() diff --git a/examples/v2/csm-ownership/CreateOwnershipFeedback.rb b/examples/v2/csm-ownership/CreateOwnershipFeedback.rb index 6493a149455a..bdca604e0fde 100644 --- a/examples/v2/csm-ownership/CreateOwnershipFeedback.rb +++ b/examples/v2/csm-ownership/CreateOwnershipFeedback.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_ownership_feedback".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/GetOwnershipEvidence.rb b/examples/v2/csm-ownership/GetOwnershipEvidence.rb index 13e130115777..5edb84377762 100644 --- a/examples/v2/csm-ownership/GetOwnershipEvidence.rb +++ b/examples/v2/csm-ownership/GetOwnershipEvidence.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ownership_evidence".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/GetOwnershipInference.rb b/examples/v2/csm-ownership/GetOwnershipInference.rb index 553e9cf59be2..6768a1333eac 100644 --- a/examples/v2/csm-ownership/GetOwnershipInference.rb +++ b/examples/v2/csm-ownership/GetOwnershipInference.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ownership_inference".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/GetOwnershipSettings.rb b/examples/v2/csm-ownership/GetOwnershipSettings.rb index d43d06ec10da..7e392af5d5ed 100644 --- a/examples/v2/csm-ownership/GetOwnershipSettings.rb +++ b/examples/v2/csm-ownership/GetOwnershipSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ownership_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/GetOwnershipUntaggedFindings.rb b/examples/v2/csm-ownership/GetOwnershipUntaggedFindings.rb index 2c8b34867a96..152e20bea66a 100644 --- a/examples/v2/csm-ownership/GetOwnershipUntaggedFindings.rb +++ b/examples/v2/csm-ownership/GetOwnershipUntaggedFindings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ownership_untagged_findings".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/ListOwnershipHistory.rb b/examples/v2/csm-ownership/ListOwnershipHistory.rb index 329243ce1f97..d7e3e1301489 100644 --- a/examples/v2/csm-ownership/ListOwnershipHistory.rb +++ b/examples/v2/csm-ownership/ListOwnershipHistory.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ownership_history".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/ListOwnershipHistoryByOwnerType.rb b/examples/v2/csm-ownership/ListOwnershipHistoryByOwnerType.rb index ba7c71ae339b..3e545afe0ad8 100644 --- a/examples/v2/csm-ownership/ListOwnershipHistoryByOwnerType.rb +++ b/examples/v2/csm-ownership/ListOwnershipHistoryByOwnerType.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ownership_history_by_owner_type".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/ListOwnershipInferences.rb b/examples/v2/csm-ownership/ListOwnershipInferences.rb index 74780cc31233..94644b3d042e 100644 --- a/examples/v2/csm-ownership/ListOwnershipInferences.rb +++ b/examples/v2/csm-ownership/ListOwnershipInferences.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ownership_inferences".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-ownership/PostOwnershipSettings.rb b/examples/v2/csm-ownership/PostOwnershipSettings.rb index 49c18689abdc..8f083e0b7d59 100644 --- a/examples/v2/csm-ownership/PostOwnershipSettings.rb +++ b/examples/v2/csm-ownership/PostOwnershipSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.post_ownership_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMOwnershipAPI.new diff --git a/examples/v2/csm-settings/GetCSMAgentlessHostFacetInfo.rb b/examples/v2/csm-settings/GetCSMAgentlessHostFacetInfo.rb index fabe91ae2319..e68c242f0390 100644 --- a/examples/v2/csm-settings/GetCSMAgentlessHostFacetInfo.rb +++ b/examples/v2/csm-settings/GetCSMAgentlessHostFacetInfo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_csm_agentless_host_facet_info".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-settings/GetCSMUnifiedHostFacetInfo.rb b/examples/v2/csm-settings/GetCSMUnifiedHostFacetInfo.rb index a3286c7e2113..8d75e3c7795c 100644 --- a/examples/v2/csm-settings/GetCSMUnifiedHostFacetInfo.rb +++ b/examples/v2/csm-settings/GetCSMUnifiedHostFacetInfo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_csm_unified_host_facet_info".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-settings/ListCSMAgentlessHostFacets.rb b/examples/v2/csm-settings/ListCSMAgentlessHostFacets.rb index 707c3c188b69..8eeca6f3de39 100644 --- a/examples/v2/csm-settings/ListCSMAgentlessHostFacets.rb +++ b/examples/v2/csm-settings/ListCSMAgentlessHostFacets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_csm_agentless_host_facets".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-settings/ListCSMAgentlessHosts.rb b/examples/v2/csm-settings/ListCSMAgentlessHosts.rb index cd71b32dd8f4..cdb3e04ce9bd 100644 --- a/examples/v2/csm-settings/ListCSMAgentlessHosts.rb +++ b/examples/v2/csm-settings/ListCSMAgentlessHosts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_csm_agentless_hosts".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-settings/ListCSMUnifiedHostFacets.rb b/examples/v2/csm-settings/ListCSMUnifiedHostFacets.rb index a43031b262e0..060bda0c1ba8 100644 --- a/examples/v2/csm-settings/ListCSMUnifiedHostFacets.rb +++ b/examples/v2/csm-settings/ListCSMUnifiedHostFacets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_csm_unified_host_facets".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-settings/ListCSMUnifiedHosts.rb b/examples/v2/csm-settings/ListCSMUnifiedHosts.rb index aa637faac9c4..b9260d3807aa 100644 --- a/examples/v2/csm-settings/ListCSMUnifiedHosts.rb +++ b/examples/v2/csm-settings/ListCSMUnifiedHosts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_csm_unified_hosts".to_sym] = true end api_instance = DatadogAPIClient::V2::CSMSettingsAPI.new diff --git a/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb b/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb index 8687d59637e1..2606227608c3 100644 --- a/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb +++ b/examples/v2/csm-threats/CreateCSMThreatsAgentPolicy.rb @@ -1,6 +1,9 @@ # Create a Workload Protection policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentPolicyCreateRequest.new({ diff --git a/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb b/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb index b5f7661acc48..35e69f65b21a 100644 --- a/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb +++ b/examples/v2/csm-threats/CreateCSMThreatsAgentRule.rb @@ -1,6 +1,9 @@ # Create a Workload Protection agent rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb b/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb index d7077e1aa8e5..486bf73ad909 100644 --- a/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb +++ b/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1295653933.rb @@ -1,6 +1,9 @@ # Create a Workload Protection agent rule with set action returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb b/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb index 7da610f1e168..b73097760a46 100644 --- a/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb +++ b/examples/v2/csm-threats/CreateCSMThreatsAgentRule_1363354233.rb @@ -1,6 +1,9 @@ # Create a Workload Protection agent rule with set action with expression returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb b/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb index be8a41b00fe0..5c4d5c693a9c 100644 --- a/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb +++ b/examples/v2/csm-threats/CreateCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,9 @@ # Create a Workload Protection agent rule (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new body = DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleCreateRequest.new({ diff --git a/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb b/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb index 912384b806db..5d867170f972 100644 --- a/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb +++ b/examples/v2/csm-threats/DeleteCSMThreatsAgentPolicy.rb @@ -1,6 +1,9 @@ # Delete a Workload Protection policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb b/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb index 02d787c967f0..ea50ee28926d 100644 --- a/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb +++ b/examples/v2/csm-threats/DeleteCSMThreatsAgentRule.rb @@ -1,6 +1,9 @@ # Delete a Workload Protection agent rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule_rc" in the system diff --git a/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb b/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb index 4d48991d8a5d..4c25a3cc1820 100644 --- a/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb +++ b/examples/v2/csm-threats/DeleteCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,9 @@ # Delete a Workload Protection agent rule (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule" in the system diff --git a/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb b/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb index fe13e420421e..a8f4044d7e97 100644 --- a/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb +++ b/examples/v2/csm-threats/DownloadCSMThreatsPolicy.rb @@ -1,5 +1,8 @@ # Download the Workload Protection policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new p api_instance.download_csm_threats_policy() diff --git a/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb b/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb index 22fad57a85ac..c76b879ef28e 100644 --- a/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb +++ b/examples/v2/csm-threats/DownloadCloudWorkloadPolicyFile.rb @@ -1,5 +1,8 @@ # Download the Workload Protection policy (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new p api_instance.download_cloud_workload_policy_file() diff --git a/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb b/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb index a4069b21b807..0d79c388740b 100644 --- a/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb +++ b/examples/v2/csm-threats/GetCSMThreatsAgentPolicy.rb @@ -1,6 +1,9 @@ # Get a Workload Protection policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb b/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb index 8aeae2c9dfaf..2d7e6b190313 100644 --- a/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb +++ b/examples/v2/csm-threats/GetCSMThreatsAgentRule.rb @@ -1,6 +1,9 @@ # Get a Workload Protection agent rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule_rc" in the system diff --git a/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb b/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb index dead79abfa8f..d3a2342428ca 100644 --- a/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb +++ b/examples/v2/csm-threats/GetCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,9 @@ # Get a Workload Protection agent rule (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule" in the system diff --git a/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb b/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb index c0a29202a8b8..46f438915cff 100644 --- a/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb +++ b/examples/v2/csm-threats/ListCSMThreatsAgentPolicies.rb @@ -1,5 +1,8 @@ # Get all Workload Protection policies returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new p api_instance.list_csm_threats_agent_policies() diff --git a/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb b/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb index 3927db4936ad..25ec978a9776 100644 --- a/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb +++ b/examples/v2/csm-threats/ListCSMThreatsAgentRules.rb @@ -1,5 +1,8 @@ # Get all Workload Protection agent rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new p api_instance.list_csm_threats_agent_rules() diff --git a/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb b/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb index 6a5b4360f619..393409f59a17 100644 --- a/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb +++ b/examples/v2/csm-threats/ListCloudWorkloadSecurityAgentRules.rb @@ -1,5 +1,8 @@ # Get all Workload Protection agent rules (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new p api_instance.list_cloud_workload_security_agent_rules() diff --git a/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb b/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb index aa5d164fcaff..b553ad795d6d 100644 --- a/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb +++ b/examples/v2/csm-threats/UpdateCSMThreatsAgentPolicy.rb @@ -1,6 +1,9 @@ # Update a Workload Protection policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "policy_rc" in the system diff --git a/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb b/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb index af306a2e67f4..24a91d221aba 100644 --- a/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb +++ b/examples/v2/csm-threats/UpdateCSMThreatsAgentRule.rb @@ -1,6 +1,9 @@ # Update a Workload Protection agent rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule_rc" in the system diff --git a/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb b/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb index f3dd6afc9756..a08e14e3f5d7 100644 --- a/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb +++ b/examples/v2/csm-threats/UpdateCloudWorkloadSecurityAgentRule.rb @@ -1,6 +1,9 @@ # Update a Workload Protection agent rule (US1-FED) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::CSMThreatsAPI.new # there is a valid "agent_rule" in the system diff --git a/examples/v2/customer-org/DisableCustomerOrg.rb b/examples/v2/customer-org/DisableCustomerOrg.rb index 196a8b82b428..a0d24180634f 100644 --- a/examples/v2/customer-org/DisableCustomerOrg.rb +++ b/examples/v2/customer-org/DisableCustomerOrg.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.disable_customer_org".to_sym] = true end api_instance = DatadogAPIClient::V2::CustomerOrgAPI.new diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems.rb b/examples/v2/dashboard-lists/CreateDashboardListItems.rb index 9fcec51f1119..0b5724903d8e 100644 --- a/examples/v2/dashboard-lists/CreateDashboardListItems.rb +++ b/examples/v2/dashboard-lists/CreateDashboardListItems.rb @@ -1,6 +1,9 @@ # Add Items to a Dashboard List returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new body = DatadogAPIClient::V2::DashboardListAddItemsRequest.new({ diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.rb b/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.rb index 28506b59d65c..df42465a8d8f 100644 --- a/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.rb +++ b/examples/v2/dashboard-lists/CreateDashboardListItems_3995409989.rb @@ -1,6 +1,9 @@ # Add custom timeboard dashboard to an existing dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.rb b/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.rb index 0e9ea6106ae4..3b9381dcf55b 100644 --- a/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.rb +++ b/examples/v2/dashboard-lists/CreateDashboardListItems_825696022.rb @@ -1,6 +1,9 @@ # Add custom screenboard dashboard to an existing dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems.rb index 9eca5a2d346b..9f778953abad 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems.rb @@ -1,6 +1,9 @@ # Delete items from a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new body = DatadogAPIClient::V2::DashboardListDeleteItemsRequest.new({ diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb index 56a0abfcf266..f139105da317 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems_2656706656.rb @@ -1,6 +1,9 @@ # Delete custom timeboard dashboard from an existing dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb b/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb index 5640ce7416c0..adefc82023e3 100644 --- a/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb +++ b/examples/v2/dashboard-lists/DeleteDashboardListItems_3851624753.rb @@ -1,6 +1,9 @@ # Delete custom screenboard dashboard from an existing dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-lists/GetDashboardListItems.rb b/examples/v2/dashboard-lists/GetDashboardListItems.rb index dc17b9ae8a09..ff8158e045b5 100644 --- a/examples/v2/dashboard-lists/GetDashboardListItems.rb +++ b/examples/v2/dashboard-lists/GetDashboardListItems.rb @@ -1,6 +1,9 @@ # Get items of a Dashboard List returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-lists/UpdateDashboardListItems.rb b/examples/v2/dashboard-lists/UpdateDashboardListItems.rb index 0202de338962..6641ddb810bb 100644 --- a/examples/v2/dashboard-lists/UpdateDashboardListItems.rb +++ b/examples/v2/dashboard-lists/UpdateDashboardListItems.rb @@ -1,6 +1,9 @@ # Update items of a dashboard list returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DashboardListsAPI.new # there is a valid "dashboard_list" in the system diff --git a/examples/v2/dashboard-secure-embed/CreateDashboardSecureEmbed.rb b/examples/v2/dashboard-secure-embed/CreateDashboardSecureEmbed.rb index a40ef019cc0c..ee098ac8541f 100644 --- a/examples/v2/dashboard-secure-embed/CreateDashboardSecureEmbed.rb +++ b/examples/v2/dashboard-secure-embed/CreateDashboardSecureEmbed.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_dashboard_secure_embed".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardSecureEmbedAPI.new diff --git a/examples/v2/dashboard-secure-embed/DeleteDashboardSecureEmbed.rb b/examples/v2/dashboard-secure-embed/DeleteDashboardSecureEmbed.rb index bb65183e9671..d444dcdf38d0 100644 --- a/examples/v2/dashboard-secure-embed/DeleteDashboardSecureEmbed.rb +++ b/examples/v2/dashboard-secure-embed/DeleteDashboardSecureEmbed.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_dashboard_secure_embed".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardSecureEmbedAPI.new diff --git a/examples/v2/dashboard-secure-embed/GetDashboardSecureEmbed.rb b/examples/v2/dashboard-secure-embed/GetDashboardSecureEmbed.rb index 313636bd944f..072c03db1118 100644 --- a/examples/v2/dashboard-secure-embed/GetDashboardSecureEmbed.rb +++ b/examples/v2/dashboard-secure-embed/GetDashboardSecureEmbed.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_dashboard_secure_embed".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardSecureEmbedAPI.new diff --git a/examples/v2/dashboard-secure-embed/UpdateDashboardSecureEmbed.rb b/examples/v2/dashboard-secure-embed/UpdateDashboardSecureEmbed.rb index 15aa31f6ae8f..352d9a8c5972 100644 --- a/examples/v2/dashboard-secure-embed/UpdateDashboardSecureEmbed.rb +++ b/examples/v2/dashboard-secure-embed/UpdateDashboardSecureEmbed.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_dashboard_secure_embed".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardSecureEmbedAPI.new diff --git a/examples/v2/dashboard-sharing/ListSharedDashboardsByDashboardId.rb b/examples/v2/dashboard-sharing/ListSharedDashboardsByDashboardId.rb index ffa29d52a732..f67ed7366670 100644 --- a/examples/v2/dashboard-sharing/ListSharedDashboardsByDashboardId.rb +++ b/examples/v2/dashboard-sharing/ListSharedDashboardsByDashboardId.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_shared_dashboards_by_dashboard_id".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardSharingAPI.new diff --git a/examples/v2/dashboards/GetDashboardUsage.rb b/examples/v2/dashboards/GetDashboardUsage.rb index 7c8373b9be68..89add4ccd2aa 100644 --- a/examples/v2/dashboards/GetDashboardUsage.rb +++ b/examples/v2/dashboards/GetDashboardUsage.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_dashboard_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/dashboards/ListDashboardsUsage.rb b/examples/v2/dashboards/ListDashboardsUsage.rb index 6ed7f3d15fe6..b52754dc224c 100644 --- a/examples/v2/dashboards/ListDashboardsUsage.rb +++ b/examples/v2/dashboards/ListDashboardsUsage.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_dashboards_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/dashboards/ListDashboardsUsage_3152353926.rb b/examples/v2/dashboards/ListDashboardsUsage_3152353926.rb index 82d24ed885e8..c60357dbbbb1 100644 --- a/examples/v2/dashboards/ListDashboardsUsage_3152353926.rb +++ b/examples/v2/dashboards/ListDashboardsUsage_3152353926.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_dashboards_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/dashboards/ListDashboardsUsage_3889372739.rb b/examples/v2/dashboards/ListDashboardsUsage_3889372739.rb index 876c3fad18f9..782f2f83ede1 100644 --- a/examples/v2/dashboards/ListDashboardsUsage_3889372739.rb +++ b/examples/v2/dashboards/ListDashboardsUsage_3889372739.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_dashboards_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/dashboards/ListDashboardsUsage_3946782296.rb b/examples/v2/dashboards/ListDashboardsUsage_3946782296.rb index 73b762c4f8d0..c57d6246963c 100644 --- a/examples/v2/dashboards/ListDashboardsUsage_3946782296.rb +++ b/examples/v2/dashboards/ListDashboardsUsage_3946782296.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_dashboards_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/dashboards/ListDashboardsUsage_4183300898.rb b/examples/v2/dashboards/ListDashboardsUsage_4183300898.rb index 453130481b4e..e86bf7245f67 100644 --- a/examples/v2/dashboards/ListDashboardsUsage_4183300898.rb +++ b/examples/v2/dashboards/ListDashboardsUsage_4183300898.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_dashboards_usage".to_sym] = true end api_instance = DatadogAPIClient::V2::DashboardsAPI.new diff --git a/examples/v2/data-deletion/CancelDataDeletionRequest.rb b/examples/v2/data-deletion/CancelDataDeletionRequest.rb index ca4fafbffdd1..6a5b169185a9 100644 --- a/examples/v2/data-deletion/CancelDataDeletionRequest.rb +++ b/examples/v2/data-deletion/CancelDataDeletionRequest.rb @@ -1,6 +1,9 @@ # Cancels a data deletion request returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DataDeletionAPI.new # there is a valid "deletion_request" in the system diff --git a/examples/v2/data-deletion/CreateDataDeletionRequest.rb b/examples/v2/data-deletion/CreateDataDeletionRequest.rb index 9f36bd283a1f..cb7f38bcbfe8 100644 --- a/examples/v2/data-deletion/CreateDataDeletionRequest.rb +++ b/examples/v2/data-deletion/CreateDataDeletionRequest.rb @@ -1,6 +1,9 @@ # Creates a data deletion request returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DataDeletionAPI.new body = DatadogAPIClient::V2::CreateDataDeletionRequestBody.new({ diff --git a/examples/v2/data-deletion/GetDataDeletionRequests.rb b/examples/v2/data-deletion/GetDataDeletionRequests.rb index 8f703aff8828..02823789c70f 100644 --- a/examples/v2/data-deletion/GetDataDeletionRequests.rb +++ b/examples/v2/data-deletion/GetDataDeletionRequests.rb @@ -1,5 +1,8 @@ # Gets a list of data deletion requests returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DataDeletionAPI.new p api_instance.get_data_deletion_requests() diff --git a/examples/v2/databricks-integration/CreateDatabricksIntegrationAccount.rb b/examples/v2/databricks-integration/CreateDatabricksIntegrationAccount.rb index 06bacb8a70a5..f9155767e7a6 100644 --- a/examples/v2/databricks-integration/CreateDatabricksIntegrationAccount.rb +++ b/examples/v2/databricks-integration/CreateDatabricksIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_databricks_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new diff --git a/examples/v2/databricks-integration/DeleteDatabricksIntegrationAccount.rb b/examples/v2/databricks-integration/DeleteDatabricksIntegrationAccount.rb index dd93baabe85c..4556ce45d7f1 100644 --- a/examples/v2/databricks-integration/DeleteDatabricksIntegrationAccount.rb +++ b/examples/v2/databricks-integration/DeleteDatabricksIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_databricks_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new diff --git a/examples/v2/databricks-integration/GetDatabricksIntegrationAccount.rb b/examples/v2/databricks-integration/GetDatabricksIntegrationAccount.rb index d724aa037d54..0f83702a3768 100644 --- a/examples/v2/databricks-integration/GetDatabricksIntegrationAccount.rb +++ b/examples/v2/databricks-integration/GetDatabricksIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_databricks_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new diff --git a/examples/v2/databricks-integration/ListDatabricksIntegrationAccounts.rb b/examples/v2/databricks-integration/ListDatabricksIntegrationAccounts.rb index 0be42548cf15..3e76b3215908 100644 --- a/examples/v2/databricks-integration/ListDatabricksIntegrationAccounts.rb +++ b/examples/v2/databricks-integration/ListDatabricksIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_databricks_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new diff --git a/examples/v2/databricks-integration/UpdateDatabricksIntegrationAccount.rb b/examples/v2/databricks-integration/UpdateDatabricksIntegrationAccount.rb index 9140453136b8..80db07e6024b 100644 --- a/examples/v2/databricks-integration/UpdateDatabricksIntegrationAccount.rb +++ b/examples/v2/databricks-integration/UpdateDatabricksIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_databricks_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new diff --git a/examples/v2/datasets/CreateDataset.rb b/examples/v2/datasets/CreateDataset.rb index 0d770f31b7cd..63739976f451 100644 --- a/examples/v2/datasets/CreateDataset.rb +++ b/examples/v2/datasets/CreateDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::DatasetsAPI.new diff --git a/examples/v2/datasets/DeleteDataset.rb b/examples/v2/datasets/DeleteDataset.rb index 06a13777c532..3d9fd3634991 100644 --- a/examples/v2/datasets/DeleteDataset.rb +++ b/examples/v2/datasets/DeleteDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::DatasetsAPI.new diff --git a/examples/v2/datasets/GetAllDatasets.rb b/examples/v2/datasets/GetAllDatasets.rb index 8930619fb5b0..0d6c2b0f12ee 100644 --- a/examples/v2/datasets/GetAllDatasets.rb +++ b/examples/v2/datasets/GetAllDatasets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_all_datasets".to_sym] = true end api_instance = DatadogAPIClient::V2::DatasetsAPI.new diff --git a/examples/v2/datasets/GetDataset.rb b/examples/v2/datasets/GetDataset.rb index f5e4f2b32889..db4a7db7e33f 100644 --- a/examples/v2/datasets/GetDataset.rb +++ b/examples/v2/datasets/GetDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::DatasetsAPI.new diff --git a/examples/v2/datasets/UpdateDataset.rb b/examples/v2/datasets/UpdateDataset.rb index f4530831d213..316c08e1633d 100644 --- a/examples/v2/datasets/UpdateDataset.rb +++ b/examples/v2/datasets/UpdateDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::DatasetsAPI.new diff --git a/examples/v2/dem/BatchGetJourneysByTestSuiteIDs.rb b/examples/v2/dem/BatchGetJourneysByTestSuiteIDs.rb index e578f96100a1..5de0086c01a2 100644 --- a/examples/v2/dem/BatchGetJourneysByTestSuiteIDs.rb +++ b/examples/v2/dem/BatchGetJourneysByTestSuiteIDs.rb @@ -1,6 +1,9 @@ # Batch get DEM journeys by test suite IDs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemBatchGetJourneysRequest.new({ diff --git a/examples/v2/dem/CreateJourney.rb b/examples/v2/dem/CreateJourney.rb index 4b8dfae59130..700333184019 100644 --- a/examples/v2/dem/CreateJourney.rb +++ b/examples/v2/dem/CreateJourney.rb @@ -1,6 +1,9 @@ # Create a DEM journey returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemJourneyCreateRequest.new({ diff --git a/examples/v2/dem/CreateJourneyVariant.rb b/examples/v2/dem/CreateJourneyVariant.rb index b057d238e95a..a1f75d5cb91e 100644 --- a/examples/v2/dem/CreateJourneyVariant.rb +++ b/examples/v2/dem/CreateJourneyVariant.rb @@ -1,6 +1,9 @@ # Create a DEM journey variant returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemVariantRequest.new({ diff --git a/examples/v2/dem/CreateTestSuiteForJourney.rb b/examples/v2/dem/CreateTestSuiteForJourney.rb index c81f14a90389..9e17439e9494 100644 --- a/examples/v2/dem/CreateTestSuiteForJourney.rb +++ b/examples/v2/dem/CreateTestSuiteForJourney.rb @@ -1,6 +1,9 @@ # Create a test suite for a DEM journey returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemCreateJourneyTestSuiteRequest.new({ diff --git a/examples/v2/dem/DeleteIgnoredInferredJourney.rb b/examples/v2/dem/DeleteIgnoredInferredJourney.rb index 3af8c022308e..f7ec50ff6e95 100644 --- a/examples/v2/dem/DeleteIgnoredInferredJourney.rb +++ b/examples/v2/dem/DeleteIgnoredInferredJourney.rb @@ -1,5 +1,8 @@ # Delete an ignored inferred DEM journey returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new api_instance.delete_ignored_inferred_journey("journey_id") diff --git a/examples/v2/dem/DeleteJourney.rb b/examples/v2/dem/DeleteJourney.rb index 2360d25d13bf..0cabe353a8ae 100644 --- a/examples/v2/dem/DeleteJourney.rb +++ b/examples/v2/dem/DeleteJourney.rb @@ -1,5 +1,8 @@ # Delete a DEM journey returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new api_instance.delete_journey("journey_id") diff --git a/examples/v2/dem/DeleteJourneyVariant.rb b/examples/v2/dem/DeleteJourneyVariant.rb index f24c38608261..035f2151907e 100644 --- a/examples/v2/dem/DeleteJourneyVariant.rb +++ b/examples/v2/dem/DeleteJourneyVariant.rb @@ -1,5 +1,8 @@ # Delete a DEM journey variant returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new api_instance.delete_journey_variant("variant_id") diff --git a/examples/v2/dem/GetJourney.rb b/examples/v2/dem/GetJourney.rb index e88cd283a92d..fc0bb3e5c2d6 100644 --- a/examples/v2/dem/GetJourney.rb +++ b/examples/v2/dem/GetJourney.rb @@ -1,5 +1,8 @@ # Get a DEM journey returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new p api_instance.get_journey("journey_id") diff --git a/examples/v2/dem/GetJourneyRecommendedTests.rb b/examples/v2/dem/GetJourneyRecommendedTests.rb index 642c0dd51051..fb5b32c72db2 100644 --- a/examples/v2/dem/GetJourneyRecommendedTests.rb +++ b/examples/v2/dem/GetJourneyRecommendedTests.rb @@ -1,5 +1,8 @@ # Get recommended tests for a DEM journey returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new p api_instance.get_journey_recommended_tests("journey_id") diff --git a/examples/v2/dem/IgnoreInferredJourney.rb b/examples/v2/dem/IgnoreInferredJourney.rb index a5df6005fec4..04d400338a86 100644 --- a/examples/v2/dem/IgnoreInferredJourney.rb +++ b/examples/v2/dem/IgnoreInferredJourney.rb @@ -1,5 +1,8 @@ # Ignore an inferred DEM journey returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new api_instance.ignore_inferred_journey("journey_id") diff --git a/examples/v2/dem/SearchInferredJourneys.rb b/examples/v2/dem/SearchInferredJourneys.rb index 778091af9e50..ccf507b17d50 100644 --- a/examples/v2/dem/SearchInferredJourneys.rb +++ b/examples/v2/dem/SearchInferredJourneys.rb @@ -1,5 +1,8 @@ # Search inferred DEM journeys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new p api_instance.search_inferred_journeys() diff --git a/examples/v2/dem/SearchJourneys.rb b/examples/v2/dem/SearchJourneys.rb index 6e7c07e8ce1a..1332aa035e32 100644 --- a/examples/v2/dem/SearchJourneys.rb +++ b/examples/v2/dem/SearchJourneys.rb @@ -1,5 +1,8 @@ # Search DEM journeys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new p api_instance.search_journeys() diff --git a/examples/v2/dem/UpdateJourney.rb b/examples/v2/dem/UpdateJourney.rb index 046bb2cb1ca6..19be15cd6cca 100644 --- a/examples/v2/dem/UpdateJourney.rb +++ b/examples/v2/dem/UpdateJourney.rb @@ -1,6 +1,9 @@ # Update a DEM journey returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemJourneyCreateRequest.new({ diff --git a/examples/v2/dem/UpdateJourneyVariant.rb b/examples/v2/dem/UpdateJourneyVariant.rb index c2bd1cd7f0b9..a7256ce3a8cd 100644 --- a/examples/v2/dem/UpdateJourneyVariant.rb +++ b/examples/v2/dem/UpdateJourneyVariant.rb @@ -1,6 +1,9 @@ # Update a DEM journey variant returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DEMAPI.new body = DatadogAPIClient::V2::DemVariantRequest.new({ diff --git a/examples/v2/deployment-gates/CreateDeploymentGate.rb b/examples/v2/deployment-gates/CreateDeploymentGate.rb index e0c723ed515e..e15e15cd87b3 100644 --- a/examples/v2/deployment-gates/CreateDeploymentGate.rb +++ b/examples/v2/deployment-gates/CreateDeploymentGate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_deployment_gate".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/CreateDeploymentRule.rb b/examples/v2/deployment-gates/CreateDeploymentRule.rb index bb70891e56fb..e9c45311cd8b 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule.rb +++ b/examples/v2/deployment-gates/CreateDeploymentRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.rb b/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.rb index e73c0a62e1c3..560a3c03f43e 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.rb +++ b/examples/v2/deployment-gates/CreateDeploymentRule_2423265690.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.rb b/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.rb index 8eb5d5ac6a4e..420c355c87da 100644 --- a/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.rb +++ b/examples/v2/deployment-gates/CreateDeploymentRule_4286388136.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/DeleteDeploymentGate.rb b/examples/v2/deployment-gates/DeleteDeploymentGate.rb index 6ecfd4421518..4ec65a351e22 100644 --- a/examples/v2/deployment-gates/DeleteDeploymentGate.rb +++ b/examples/v2/deployment-gates/DeleteDeploymentGate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_deployment_gate".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/DeleteDeploymentRule.rb b/examples/v2/deployment-gates/DeleteDeploymentRule.rb index 7147e9835cdb..6071a6d7e345 100644 --- a/examples/v2/deployment-gates/DeleteDeploymentRule.rb +++ b/examples/v2/deployment-gates/DeleteDeploymentRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/GetDeploymentGate.rb b/examples/v2/deployment-gates/GetDeploymentGate.rb index ef359d2d2c92..591f1d930915 100644 --- a/examples/v2/deployment-gates/GetDeploymentGate.rb +++ b/examples/v2/deployment-gates/GetDeploymentGate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_deployment_gate".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/GetDeploymentGateRules.rb b/examples/v2/deployment-gates/GetDeploymentGateRules.rb index b1fa5b9623d9..5c3e74ea98c5 100644 --- a/examples/v2/deployment-gates/GetDeploymentGateRules.rb +++ b/examples/v2/deployment-gates/GetDeploymentGateRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_deployment_gate_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.rb b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.rb index b20fb6a18db0..e62a7042ce8a 100644 --- a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.rb +++ b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_deployment_gates_evaluation_result".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.rb b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.rb index fef3e86b245f..5f6aea853c63 100644 --- a/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.rb +++ b/examples/v2/deployment-gates/GetDeploymentGatesEvaluationResult_3594131214.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_deployment_gates_evaluation_result".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/GetDeploymentRule.rb b/examples/v2/deployment-gates/GetDeploymentRule.rb index 35e85a2654d5..11e49c6deaef 100644 --- a/examples/v2/deployment-gates/GetDeploymentRule.rb +++ b/examples/v2/deployment-gates/GetDeploymentRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/ListDeploymentGates.rb b/examples/v2/deployment-gates/ListDeploymentGates.rb index 0a49841793d1..aa853aeee129 100644 --- a/examples/v2/deployment-gates/ListDeploymentGates.rb +++ b/examples/v2/deployment-gates/ListDeploymentGates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_deployment_gates".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.rb b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.rb index 73061e58cfca..63e2ddd8c17d 100644 --- a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.rb +++ b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.trigger_deployment_gates_evaluation".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.rb b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.rb index 8a685a8a12b2..3bf373eb1850 100644 --- a/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.rb +++ b/examples/v2/deployment-gates/TriggerDeploymentGatesEvaluation_691804290.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.trigger_deployment_gates_evaluation".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/UpdateDeploymentGate.rb b/examples/v2/deployment-gates/UpdateDeploymentGate.rb index ea4613fda7b7..427dcbe23bc4 100644 --- a/examples/v2/deployment-gates/UpdateDeploymentGate.rb +++ b/examples/v2/deployment-gates/UpdateDeploymentGate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_deployment_gate".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/deployment-gates/UpdateDeploymentRule.rb b/examples/v2/deployment-gates/UpdateDeploymentRule.rb index 962520f6406c..874643b0020a 100644 --- a/examples/v2/deployment-gates/UpdateDeploymentRule.rb +++ b/examples/v2/deployment-gates/UpdateDeploymentRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_deployment_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new diff --git a/examples/v2/domain-allowlist/GetDomainAllowlist.rb b/examples/v2/domain-allowlist/GetDomainAllowlist.rb index bb3efddf9f20..ef32d5593241 100644 --- a/examples/v2/domain-allowlist/GetDomainAllowlist.rb +++ b/examples/v2/domain-allowlist/GetDomainAllowlist.rb @@ -1,5 +1,8 @@ # Get Domain Allowlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new p api_instance.get_domain_allowlist() diff --git a/examples/v2/domain-allowlist/PatchDomainAllowlist.rb b/examples/v2/domain-allowlist/PatchDomainAllowlist.rb index 088d5c2a06d1..6d31a9d72302 100644 --- a/examples/v2/domain-allowlist/PatchDomainAllowlist.rb +++ b/examples/v2/domain-allowlist/PatchDomainAllowlist.rb @@ -1,6 +1,9 @@ # Sets Domain Allowlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DomainAllowlistAPI.new body = DatadogAPIClient::V2::DomainAllowlistRequest.new({ diff --git a/examples/v2/dora-metrics/DeleteDORADeployment.rb b/examples/v2/dora-metrics/DeleteDORADeployment.rb index 0e43817413ed..ff2a88a73b40 100644 --- a/examples/v2/dora-metrics/DeleteDORADeployment.rb +++ b/examples/v2/dora-metrics/DeleteDORADeployment.rb @@ -1,5 +1,8 @@ # Delete a deployment event returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new p api_instance.delete_dora_deployment("NO_VALUE") diff --git a/examples/v2/dora-metrics/DeleteDORAFailure.rb b/examples/v2/dora-metrics/DeleteDORAFailure.rb index ea3d72bc598b..d2bd35e97ecc 100644 --- a/examples/v2/dora-metrics/DeleteDORAFailure.rb +++ b/examples/v2/dora-metrics/DeleteDORAFailure.rb @@ -1,5 +1,8 @@ # Delete an incident event returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new p api_instance.delete_dora_failure("failure_id") diff --git a/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.rb b/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.rb index 17c01411d4a3..bac70426eb9a 100644 --- a/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.rb +++ b/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.rb @@ -1,5 +1,8 @@ # Delete a failure event returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new p api_instance.delete_dora_failure("NO_VALUE") diff --git a/examples/v2/dora-metrics/GetDORADeployment.rb b/examples/v2/dora-metrics/GetDORADeployment.rb index 92709fdc3334..f63300bc91ad 100644 --- a/examples/v2/dora-metrics/GetDORADeployment.rb +++ b/examples/v2/dora-metrics/GetDORADeployment.rb @@ -1,5 +1,8 @@ # Get a deployment event returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new p api_instance.get_dora_deployment("deployment_id") diff --git a/examples/v2/dora-metrics/GetDORAFailure.rb b/examples/v2/dora-metrics/GetDORAFailure.rb index 5cb592708b33..e6f5f6b94d07 100644 --- a/examples/v2/dora-metrics/GetDORAFailure.rb +++ b/examples/v2/dora-metrics/GetDORAFailure.rb @@ -1,5 +1,8 @@ # Get an incident event returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new p api_instance.get_dora_failure("failure_id") diff --git a/examples/v2/dora-metrics/ListDORADeployments.rb b/examples/v2/dora-metrics/ListDORADeployments.rb index ef90f093a20d..0be8861f7017 100644 --- a/examples/v2/dora-metrics/ListDORADeployments.rb +++ b/examples/v2/dora-metrics/ListDORADeployments.rb @@ -1,6 +1,9 @@ # Get a list of deployment events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORAListDeploymentsRequest.new({ diff --git a/examples/v2/dora-metrics/ListDORADeployments_1654201709.rb b/examples/v2/dora-metrics/ListDORADeployments_1654201709.rb index 6669697c7627..5b7bf82f62a6 100644 --- a/examples/v2/dora-metrics/ListDORADeployments_1654201709.rb +++ b/examples/v2/dora-metrics/ListDORADeployments_1654201709.rb @@ -1,6 +1,9 @@ # Get a list of deployment events returns deployments with date-time timestamps require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORAListDeploymentsRequest.new({ diff --git a/examples/v2/dora-metrics/ListDORAFailures.rb b/examples/v2/dora-metrics/ListDORAFailures.rb index 53e150216658..7f175ebfe490 100644 --- a/examples/v2/dora-metrics/ListDORAFailures.rb +++ b/examples/v2/dora-metrics/ListDORAFailures.rb @@ -1,6 +1,9 @@ # Get a list of incident events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORAListFailuresRequest.new({ diff --git a/examples/v2/dora-metrics/ListDORAFailures_3269988848.rb b/examples/v2/dora-metrics/ListDORAFailures_3269988848.rb index e3c9c276f9c0..8f9db6a88bfb 100644 --- a/examples/v2/dora-metrics/ListDORAFailures_3269988848.rb +++ b/examples/v2/dora-metrics/ListDORAFailures_3269988848.rb @@ -1,6 +1,9 @@ # Get a list of failure events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORAListFailuresRequest.new({ diff --git a/examples/v2/dora-metrics/PatchDORADeployment.rb b/examples/v2/dora-metrics/PatchDORADeployment.rb index a61a3907ebb3..da4d5e898f1e 100644 --- a/examples/v2/dora-metrics/PatchDORADeployment.rb +++ b/examples/v2/dora-metrics/PatchDORADeployment.rb @@ -1,6 +1,9 @@ # Patch a deployment event returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORADeploymentPatchRequest.new({ diff --git a/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb b/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb index c5a7da654ff6..c02dcfa07739 100644 --- a/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +++ b/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.patch_dora_deployment_by_version".to_sym] = true end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new diff --git a/examples/v2/downtimes/CancelDowntime.rb b/examples/v2/downtimes/CancelDowntime.rb index d3ba9b4a7b2c..364344c54800 100644 --- a/examples/v2/downtimes/CancelDowntime.rb +++ b/examples/v2/downtimes/CancelDowntime.rb @@ -1,6 +1,9 @@ # Cancel a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new # there is a valid "downtime_v2" in the system diff --git a/examples/v2/downtimes/CreateDowntime.rb b/examples/v2/downtimes/CreateDowntime.rb index e95eb103c551..700cc02a9855 100644 --- a/examples/v2/downtimes/CreateDowntime.rb +++ b/examples/v2/downtimes/CreateDowntime.rb @@ -1,6 +1,9 @@ # Schedule a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new body = DatadogAPIClient::V2::DowntimeCreateRequest.new({ diff --git a/examples/v2/downtimes/GetDowntime.rb b/examples/v2/downtimes/GetDowntime.rb index 112d3188e3af..be24b9ddfd85 100644 --- a/examples/v2/downtimes/GetDowntime.rb +++ b/examples/v2/downtimes/GetDowntime.rb @@ -1,6 +1,9 @@ # Get a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new # there is a valid "downtime_v2" in the system diff --git a/examples/v2/downtimes/ListDowntimes.rb b/examples/v2/downtimes/ListDowntimes.rb index 38adacfb5efa..e3e1fde2886e 100644 --- a/examples/v2/downtimes/ListDowntimes.rb +++ b/examples/v2/downtimes/ListDowntimes.rb @@ -1,5 +1,8 @@ # Get all downtimes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new p api_instance.list_downtimes() diff --git a/examples/v2/downtimes/ListDowntimes_805770330.rb b/examples/v2/downtimes/ListDowntimes_805770330.rb index d5cce8d7669d..504a6f1d36e7 100644 --- a/examples/v2/downtimes/ListDowntimes_805770330.rb +++ b/examples/v2/downtimes/ListDowntimes_805770330.rb @@ -1,6 +1,9 @@ # Get all downtimes returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new opts = { page_limit: 2, diff --git a/examples/v2/downtimes/ListMonitorDowntimes.rb b/examples/v2/downtimes/ListMonitorDowntimes.rb index 4232d15aa679..8f1928a2705c 100644 --- a/examples/v2/downtimes/ListMonitorDowntimes.rb +++ b/examples/v2/downtimes/ListMonitorDowntimes.rb @@ -1,5 +1,8 @@ # Get active downtimes for a monitor returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new p api_instance.list_monitor_downtimes(35534610) diff --git a/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb b/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb index a55823b9a4b0..c59abf526804 100644 --- a/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb +++ b/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb @@ -1,5 +1,8 @@ # Get active downtimes for a monitor returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new api_instance.list_monitor_downtimes_with_pagination(9223372036854775807) { |item| puts item } diff --git a/examples/v2/downtimes/UpdateDowntime.rb b/examples/v2/downtimes/UpdateDowntime.rb index da8045a1fde7..ac78d6e141dd 100644 --- a/examples/v2/downtimes/UpdateDowntime.rb +++ b/examples/v2/downtimes/UpdateDowntime.rb @@ -1,6 +1,9 @@ # Update a downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::DowntimesAPI.new # there is a valid "downtime_v2" in the system diff --git a/examples/v2/elastic-cloud-integration/CreateElasticCloudIntegrationAccount.rb b/examples/v2/elastic-cloud-integration/CreateElasticCloudIntegrationAccount.rb index 977355e03e2a..6e97564f1eba 100644 --- a/examples/v2/elastic-cloud-integration/CreateElasticCloudIntegrationAccount.rb +++ b/examples/v2/elastic-cloud-integration/CreateElasticCloudIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_elastic_cloud_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new diff --git a/examples/v2/elastic-cloud-integration/DeleteElasticCloudIntegrationAccount.rb b/examples/v2/elastic-cloud-integration/DeleteElasticCloudIntegrationAccount.rb index fbb308c4dec8..44bf44a02203 100644 --- a/examples/v2/elastic-cloud-integration/DeleteElasticCloudIntegrationAccount.rb +++ b/examples/v2/elastic-cloud-integration/DeleteElasticCloudIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_elastic_cloud_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new diff --git a/examples/v2/elastic-cloud-integration/GetElasticCloudIntegrationAccount.rb b/examples/v2/elastic-cloud-integration/GetElasticCloudIntegrationAccount.rb index 38dd73df60c5..3d102b0b6361 100644 --- a/examples/v2/elastic-cloud-integration/GetElasticCloudIntegrationAccount.rb +++ b/examples/v2/elastic-cloud-integration/GetElasticCloudIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_elastic_cloud_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new diff --git a/examples/v2/elastic-cloud-integration/ListElasticCloudIntegrationAccounts.rb b/examples/v2/elastic-cloud-integration/ListElasticCloudIntegrationAccounts.rb index 11533dfded2e..718c321098a8 100644 --- a/examples/v2/elastic-cloud-integration/ListElasticCloudIntegrationAccounts.rb +++ b/examples/v2/elastic-cloud-integration/ListElasticCloudIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_elastic_cloud_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new diff --git a/examples/v2/elastic-cloud-integration/UpdateElasticCloudIntegrationAccount.rb b/examples/v2/elastic-cloud-integration/UpdateElasticCloudIntegrationAccount.rb index 513da1f66d17..fb158a1ce4bf 100644 --- a/examples/v2/elastic-cloud-integration/UpdateElasticCloudIntegrationAccount.rb +++ b/examples/v2/elastic-cloud-integration/UpdateElasticCloudIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_elastic_cloud_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::ElasticCloudIntegrationAPI.new diff --git a/examples/v2/entity-integration-configs/DeleteEntityIntegrationConfig.rb b/examples/v2/entity-integration-configs/DeleteEntityIntegrationConfig.rb index fb0f5c3d623e..3f9e270f9bf8 100644 --- a/examples/v2/entity-integration-configs/DeleteEntityIntegrationConfig.rb +++ b/examples/v2/entity-integration-configs/DeleteEntityIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_entity_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::EntityIntegrationConfigsAPI.new diff --git a/examples/v2/entity-integration-configs/GetEntityIntegrationConfig.rb b/examples/v2/entity-integration-configs/GetEntityIntegrationConfig.rb index 6fc7d3661b08..f9f66ae24204 100644 --- a/examples/v2/entity-integration-configs/GetEntityIntegrationConfig.rb +++ b/examples/v2/entity-integration-configs/GetEntityIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_entity_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::EntityIntegrationConfigsAPI.new diff --git a/examples/v2/entity-integration-configs/UpdateEntityIntegrationConfig.rb b/examples/v2/entity-integration-configs/UpdateEntityIntegrationConfig.rb index 9a6b38799038..068f93664071 100644 --- a/examples/v2/entity-integration-configs/UpdateEntityIntegrationConfig.rb +++ b/examples/v2/entity-integration-configs/UpdateEntityIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_entity_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::EntityIntegrationConfigsAPI.new diff --git a/examples/v2/entity-risk-scores/GetEntityRiskScore.rb b/examples/v2/entity-risk-scores/GetEntityRiskScore.rb index 8495db26df40..a1db7c924305 100644 --- a/examples/v2/entity-risk-scores/GetEntityRiskScore.rb +++ b/examples/v2/entity-risk-scores/GetEntityRiskScore.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_entity_risk_score".to_sym] = true end api_instance = DatadogAPIClient::V2::EntityRiskScoresAPI.new diff --git a/examples/v2/entity-risk-scores/ListEntityRiskScores.rb b/examples/v2/entity-risk-scores/ListEntityRiskScores.rb index 13338bf5e2fe..49e459d854e7 100644 --- a/examples/v2/entity-risk-scores/ListEntityRiskScores.rb +++ b/examples/v2/entity-risk-scores/ListEntityRiskScores.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_entity_risk_scores".to_sym] = true end api_instance = DatadogAPIClient::V2::EntityRiskScoresAPI.new diff --git a/examples/v2/error-tracking/DeleteIssueAssignee.rb b/examples/v2/error-tracking/DeleteIssueAssignee.rb index 99ce40163308..ede93d0548e0 100644 --- a/examples/v2/error-tracking/DeleteIssueAssignee.rb +++ b/examples/v2/error-tracking/DeleteIssueAssignee.rb @@ -1,6 +1,9 @@ # Remove the assignee of an issue returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ErrorTrackingAPI.new # there is a valid "issue" in the system diff --git a/examples/v2/error-tracking/GetIssue.rb b/examples/v2/error-tracking/GetIssue.rb index 0179e6b4499f..8a58948149b5 100644 --- a/examples/v2/error-tracking/GetIssue.rb +++ b/examples/v2/error-tracking/GetIssue.rb @@ -1,6 +1,9 @@ # Get the details of an error tracking issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ErrorTrackingAPI.new # there is a valid "issue" in the system diff --git a/examples/v2/error-tracking/SearchIssues.rb b/examples/v2/error-tracking/SearchIssues.rb index 346d6c34f1bc..17ec464041f2 100644 --- a/examples/v2/error-tracking/SearchIssues.rb +++ b/examples/v2/error-tracking/SearchIssues.rb @@ -1,6 +1,9 @@ # Search error tracking issues returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ErrorTrackingAPI.new body = DatadogAPIClient::V2::IssuesSearchRequest.new({ diff --git a/examples/v2/error-tracking/UpdateIssueAssignee.rb b/examples/v2/error-tracking/UpdateIssueAssignee.rb index 06cca011179b..4e7c0562d2d6 100644 --- a/examples/v2/error-tracking/UpdateIssueAssignee.rb +++ b/examples/v2/error-tracking/UpdateIssueAssignee.rb @@ -1,6 +1,9 @@ # Update the assignee of an issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ErrorTrackingAPI.new # there is a valid "issue" in the system diff --git a/examples/v2/error-tracking/UpdateIssueState.rb b/examples/v2/error-tracking/UpdateIssueState.rb index 505f62b95549..60bca15409bb 100644 --- a/examples/v2/error-tracking/UpdateIssueState.rb +++ b/examples/v2/error-tracking/UpdateIssueState.rb @@ -1,6 +1,9 @@ # Update the state of an issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ErrorTrackingAPI.new # there is a valid "issue" in the system diff --git a/examples/v2/events/CreateEvent.rb b/examples/v2/events/CreateEvent.rb index 3b214d3b03cd..d01f82e244bf 100644 --- a/examples/v2/events/CreateEvent.rb +++ b/examples/v2/events/CreateEvent.rb @@ -1,6 +1,9 @@ # Post an event returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new body = DatadogAPIClient::V2::EventCreateRequestPayload.new({ diff --git a/examples/v2/events/GetEvent.rb b/examples/v2/events/GetEvent.rb index ad15b842dc79..24227b1d90ba 100644 --- a/examples/v2/events/GetEvent.rb +++ b/examples/v2/events/GetEvent.rb @@ -1,5 +1,8 @@ # Get an event returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new p api_instance.get_event("AZeF-nTCAABzkAgGXzYPtgAA") diff --git a/examples/v2/events/ListEvents.rb b/examples/v2/events/ListEvents.rb index 7e56179de0c8..6619ec7b2594 100644 --- a/examples/v2/events/ListEvents.rb +++ b/examples/v2/events/ListEvents.rb @@ -1,5 +1,8 @@ # Get a list of events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new p api_instance.list_events() diff --git a/examples/v2/events/ListEvents_1527584014.rb b/examples/v2/events/ListEvents_1527584014.rb index a17026447302..b0db21a160ed 100644 --- a/examples/v2/events/ListEvents_1527584014.rb +++ b/examples/v2/events/ListEvents_1527584014.rb @@ -1,6 +1,9 @@ # Get a list of events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new opts = { filter_from: "now-15m", diff --git a/examples/v2/events/ListEvents_2663715109.rb b/examples/v2/events/ListEvents_2663715109.rb index 642fa67821a2..ee98229a551d 100644 --- a/examples/v2/events/ListEvents_2663715109.rb +++ b/examples/v2/events/ListEvents_2663715109.rb @@ -1,6 +1,9 @@ # Get a quick list of events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new opts = { filter_query: "datadog-agent", diff --git a/examples/v2/events/SearchEvents.rb b/examples/v2/events/SearchEvents.rb index 5b7515bbc1a3..735a1b6f9502 100644 --- a/examples/v2/events/SearchEvents.rb +++ b/examples/v2/events/SearchEvents.rb @@ -1,6 +1,9 @@ # Search events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new body = DatadogAPIClient::V2::EventsListRequest.new({ diff --git a/examples/v2/events/SearchEvents_3856995058.rb b/examples/v2/events/SearchEvents_3856995058.rb index 6d98f5c820db..42b88d07194e 100644 --- a/examples/v2/events/SearchEvents_3856995058.rb +++ b/examples/v2/events/SearchEvents_3856995058.rb @@ -1,6 +1,9 @@ # Search events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::EventsAPI.new body = DatadogAPIClient::V2::EventsListRequest.new({ diff --git a/examples/v2/execution-policy/CreateExecutionPolicy.rb b/examples/v2/execution-policy/CreateExecutionPolicy.rb index 23f03f4f5e98..96c16b062499 100644 --- a/examples/v2/execution-policy/CreateExecutionPolicy.rb +++ b/examples/v2/execution-policy/CreateExecutionPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_execution_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/CreateExecutionPolicy_1075977289.rb b/examples/v2/execution-policy/CreateExecutionPolicy_1075977289.rb index 25b60c68d77b..313eefb58e96 100644 --- a/examples/v2/execution-policy/CreateExecutionPolicy_1075977289.rb +++ b/examples/v2/execution-policy/CreateExecutionPolicy_1075977289.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_execution_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/DeleteExecutionPolicy.rb b/examples/v2/execution-policy/DeleteExecutionPolicy.rb index 344ad672314b..6294facac7af 100644 --- a/examples/v2/execution-policy/DeleteExecutionPolicy.rb +++ b/examples/v2/execution-policy/DeleteExecutionPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_execution_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/GetExecutionPolicy.rb b/examples/v2/execution-policy/GetExecutionPolicy.rb index 619163d04961..064ed402a0a2 100644 --- a/examples/v2/execution-policy/GetExecutionPolicy.rb +++ b/examples/v2/execution-policy/GetExecutionPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_execution_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/ListExecutionPolicies.rb b/examples/v2/execution-policy/ListExecutionPolicies.rb index a93b751bbc3d..60788fe07df8 100644 --- a/examples/v2/execution-policy/ListExecutionPolicies.rb +++ b/examples/v2/execution-policy/ListExecutionPolicies.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_execution_policies".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/ListExecutionPolicies_1745885519.rb b/examples/v2/execution-policy/ListExecutionPolicies_1745885519.rb index 5d4a6afb7b09..4b5d2a07d1d3 100644 --- a/examples/v2/execution-policy/ListExecutionPolicies_1745885519.rb +++ b/examples/v2/execution-policy/ListExecutionPolicies_1745885519.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_execution_policies".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/execution-policy/UpdateExecutionPolicy.rb b/examples/v2/execution-policy/UpdateExecutionPolicy.rb index 3c20f2f53129..57b8f97e4048 100644 --- a/examples/v2/execution-policy/UpdateExecutionPolicy.rb +++ b/examples/v2/execution-policy/UpdateExecutionPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_execution_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::ExecutionPolicyAPI.new diff --git a/examples/v2/fastly-integration/CreateFastlyAccount.rb b/examples/v2/fastly-integration/CreateFastlyAccount.rb index 3ef5d4a54e2d..6ee9209ce67c 100644 --- a/examples/v2/fastly-integration/CreateFastlyAccount.rb +++ b/examples/v2/fastly-integration/CreateFastlyAccount.rb @@ -1,6 +1,9 @@ # Add Fastly account returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new body = DatadogAPIClient::V2::FastlyAccountCreateRequest.new({ diff --git a/examples/v2/fastly-integration/CreateFastlyService.rb b/examples/v2/fastly-integration/CreateFastlyService.rb index ce3b3a244647..efe652d37ba4 100644 --- a/examples/v2/fastly-integration/CreateFastlyService.rb +++ b/examples/v2/fastly-integration/CreateFastlyService.rb @@ -1,6 +1,9 @@ # Add Fastly service returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new body = DatadogAPIClient::V2::FastlyServiceRequest.new({ diff --git a/examples/v2/fastly-integration/DeleteFastlyAccount.rb b/examples/v2/fastly-integration/DeleteFastlyAccount.rb index 27e571ceaf81..ef2a0f64b831 100644 --- a/examples/v2/fastly-integration/DeleteFastlyAccount.rb +++ b/examples/v2/fastly-integration/DeleteFastlyAccount.rb @@ -1,5 +1,8 @@ # Delete Fastly account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new api_instance.delete_fastly_account("account_id") diff --git a/examples/v2/fastly-integration/DeleteFastlyService.rb b/examples/v2/fastly-integration/DeleteFastlyService.rb index 02c844562dd8..46ce2cb7d855 100644 --- a/examples/v2/fastly-integration/DeleteFastlyService.rb +++ b/examples/v2/fastly-integration/DeleteFastlyService.rb @@ -1,5 +1,8 @@ # Delete Fastly service returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new api_instance.delete_fastly_service("account_id", "service_id") diff --git a/examples/v2/fastly-integration/GetFastlyAccount.rb b/examples/v2/fastly-integration/GetFastlyAccount.rb index 0cc7a6b81611..20b1a8b1fc3d 100644 --- a/examples/v2/fastly-integration/GetFastlyAccount.rb +++ b/examples/v2/fastly-integration/GetFastlyAccount.rb @@ -1,6 +1,9 @@ # Get Fastly account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new # there is a valid "fastly_account" in the system diff --git a/examples/v2/fastly-integration/GetFastlyService.rb b/examples/v2/fastly-integration/GetFastlyService.rb index 48ded3bb075c..14321875e9ae 100644 --- a/examples/v2/fastly-integration/GetFastlyService.rb +++ b/examples/v2/fastly-integration/GetFastlyService.rb @@ -1,5 +1,8 @@ # Get Fastly service returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new p api_instance.get_fastly_service("account_id", "service_id") diff --git a/examples/v2/fastly-integration/ListFastlyAccounts.rb b/examples/v2/fastly-integration/ListFastlyAccounts.rb index deb1a9b2c9a8..6da9c301302b 100644 --- a/examples/v2/fastly-integration/ListFastlyAccounts.rb +++ b/examples/v2/fastly-integration/ListFastlyAccounts.rb @@ -1,5 +1,8 @@ # List Fastly accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new p api_instance.list_fastly_accounts() diff --git a/examples/v2/fastly-integration/ListFastlyServices.rb b/examples/v2/fastly-integration/ListFastlyServices.rb index 9d47b9a40650..c98c15a129a0 100644 --- a/examples/v2/fastly-integration/ListFastlyServices.rb +++ b/examples/v2/fastly-integration/ListFastlyServices.rb @@ -1,5 +1,8 @@ # List Fastly services returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new p api_instance.list_fastly_services("account_id") diff --git a/examples/v2/fastly-integration/UpdateFastlyAccount.rb b/examples/v2/fastly-integration/UpdateFastlyAccount.rb index 102c5d70b5e0..b81bbbe62bbb 100644 --- a/examples/v2/fastly-integration/UpdateFastlyAccount.rb +++ b/examples/v2/fastly-integration/UpdateFastlyAccount.rb @@ -1,6 +1,9 @@ # Update Fastly account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new # there is a valid "fastly_account" in the system diff --git a/examples/v2/fastly-integration/UpdateFastlyService.rb b/examples/v2/fastly-integration/UpdateFastlyService.rb index 937375eb1cc7..f1d97defab1d 100644 --- a/examples/v2/fastly-integration/UpdateFastlyService.rb +++ b/examples/v2/fastly-integration/UpdateFastlyService.rb @@ -1,6 +1,9 @@ # Update Fastly service returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FastlyIntegrationAPI.new body = DatadogAPIClient::V2::FastlyServiceRequest.new({ diff --git a/examples/v2/feature-flags/ArchiveFeatureFlag.rb b/examples/v2/feature-flags/ArchiveFeatureFlag.rb index ef2b6e4ffd6b..1b3d6b8c3ec8 100644 --- a/examples/v2/feature-flags/ArchiveFeatureFlag.rb +++ b/examples/v2/feature-flags/ArchiveFeatureFlag.rb @@ -1,6 +1,9 @@ # Archive a feature flag returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment.rb b/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment.rb index df32da29392b..e577a22ecb79 100644 --- a/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment.rb +++ b/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment.rb @@ -1,6 +1,9 @@ # Create targeting rules for a flag env returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::CreateAllocationsRequest.new({ diff --git a/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment_3662093014.rb b/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment_3662093014.rb index f03fcf3a0e66..cf65e848c411 100644 --- a/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment_3662093014.rb +++ b/examples/v2/feature-flags/CreateAllocationsForFeatureFlagInEnvironment_3662093014.rb @@ -1,6 +1,9 @@ # Create allocation for a flag in an environment returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/CreateFeatureFlag.rb b/examples/v2/feature-flags/CreateFeatureFlag.rb index 5001a4e96a7c..787a35c713f8 100644 --- a/examples/v2/feature-flags/CreateFeatureFlag.rb +++ b/examples/v2/feature-flags/CreateFeatureFlag.rb @@ -1,6 +1,9 @@ # Create a feature flag returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::CreateFeatureFlagRequest.new({ diff --git a/examples/v2/feature-flags/CreateFeatureFlagsEnvironment.rb b/examples/v2/feature-flags/CreateFeatureFlagsEnvironment.rb index 55b753084354..ca5ca34bfb11 100644 --- a/examples/v2/feature-flags/CreateFeatureFlagsEnvironment.rb +++ b/examples/v2/feature-flags/CreateFeatureFlagsEnvironment.rb @@ -1,6 +1,9 @@ # Create an environment returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::CreateEnvironmentRequest.new({ diff --git a/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb b/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb index 02367661520f..cc05d56145f5 100644 --- a/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb +++ b/examples/v2/feature-flags/CreateVariantForFeatureFlag.rb @@ -1,6 +1,9 @@ # Add a variant to a feature flag returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::CreateVariant.new({ diff --git a/examples/v2/feature-flags/DeleteFeatureFlagsEnvironment.rb b/examples/v2/feature-flags/DeleteFeatureFlagsEnvironment.rb index b8b51d80400c..2f136d58a644 100644 --- a/examples/v2/feature-flags/DeleteFeatureFlagsEnvironment.rb +++ b/examples/v2/feature-flags/DeleteFeatureFlagsEnvironment.rb @@ -1,6 +1,9 @@ # Delete an environment returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "environment" in the system diff --git a/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb b/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb index 07e1770ea9de..759111ddddfb 100644 --- a/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb +++ b/examples/v2/feature-flags/DeleteVariantFromFeatureFlag.rb @@ -1,5 +1,8 @@ # Delete a variant returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new api_instance.delete_variant_from_feature_flag("550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440002") diff --git a/examples/v2/feature-flags/DisableFeatureFlagEnvironment.rb b/examples/v2/feature-flags/DisableFeatureFlagEnvironment.rb index bc4f278108a7..7c1ee6e56ef2 100644 --- a/examples/v2/feature-flags/DisableFeatureFlagEnvironment.rb +++ b/examples/v2/feature-flags/DisableFeatureFlagEnvironment.rb @@ -1,6 +1,9 @@ # Disable a feature flag in an environment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/EnableFeatureFlagEnvironment.rb b/examples/v2/feature-flags/EnableFeatureFlagEnvironment.rb index 6b40ce4d9f0a..96decd03f9c5 100644 --- a/examples/v2/feature-flags/EnableFeatureFlagEnvironment.rb +++ b/examples/v2/feature-flags/EnableFeatureFlagEnvironment.rb @@ -1,6 +1,9 @@ # Enable a feature flag in an environment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/GetFeatureFlag.rb b/examples/v2/feature-flags/GetFeatureFlag.rb index bfa92bc43099..a38567a81928 100644 --- a/examples/v2/feature-flags/GetFeatureFlag.rb +++ b/examples/v2/feature-flags/GetFeatureFlag.rb @@ -1,6 +1,9 @@ # Get a feature flag returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/GetFeatureFlagsEnvironment.rb b/examples/v2/feature-flags/GetFeatureFlagsEnvironment.rb index 3a8dc8333334..74b558acd440 100644 --- a/examples/v2/feature-flags/GetFeatureFlagsEnvironment.rb +++ b/examples/v2/feature-flags/GetFeatureFlagsEnvironment.rb @@ -1,6 +1,9 @@ # Get an environment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "environment" in the system diff --git a/examples/v2/feature-flags/ListFeatureFlags.rb b/examples/v2/feature-flags/ListFeatureFlags.rb index ecd35b7da76c..1387db3b3b61 100644 --- a/examples/v2/feature-flags/ListFeatureFlags.rb +++ b/examples/v2/feature-flags/ListFeatureFlags.rb @@ -1,6 +1,9 @@ # List feature flags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new opts = { limit: 10, diff --git a/examples/v2/feature-flags/ListFeatureFlagsEnvironments.rb b/examples/v2/feature-flags/ListFeatureFlagsEnvironments.rb index d00517d32490..e8ea23646c1c 100644 --- a/examples/v2/feature-flags/ListFeatureFlagsEnvironments.rb +++ b/examples/v2/feature-flags/ListFeatureFlagsEnvironments.rb @@ -1,5 +1,8 @@ # List environments returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new p api_instance.list_feature_flags_environments() diff --git a/examples/v2/feature-flags/PauseExposureSchedule.rb b/examples/v2/feature-flags/PauseExposureSchedule.rb index b210025a38f5..37278d68ef9b 100644 --- a/examples/v2/feature-flags/PauseExposureSchedule.rb +++ b/examples/v2/feature-flags/PauseExposureSchedule.rb @@ -1,5 +1,8 @@ # Pause a progressive rollout returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new p api_instance.pause_exposure_schedule("550e8400-e29b-41d4-a716-446655440010") diff --git a/examples/v2/feature-flags/ResumeExposureSchedule.rb b/examples/v2/feature-flags/ResumeExposureSchedule.rb index 4ffb0df71509..b06a4d4328b9 100644 --- a/examples/v2/feature-flags/ResumeExposureSchedule.rb +++ b/examples/v2/feature-flags/ResumeExposureSchedule.rb @@ -1,5 +1,8 @@ # Resume a progressive rollout returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new p api_instance.resume_exposure_schedule("550e8400-e29b-41d4-a716-446655440010") diff --git a/examples/v2/feature-flags/StartExposureSchedule.rb b/examples/v2/feature-flags/StartExposureSchedule.rb index 54910a7ae3a8..c6bf8c558f1e 100644 --- a/examples/v2/feature-flags/StartExposureSchedule.rb +++ b/examples/v2/feature-flags/StartExposureSchedule.rb @@ -1,5 +1,8 @@ # Start a progressive rollout returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new p api_instance.start_exposure_schedule("550e8400-e29b-41d4-a716-446655440010") diff --git a/examples/v2/feature-flags/StopExposureSchedule.rb b/examples/v2/feature-flags/StopExposureSchedule.rb index 75e374315651..c25bd9471a4a 100644 --- a/examples/v2/feature-flags/StopExposureSchedule.rb +++ b/examples/v2/feature-flags/StopExposureSchedule.rb @@ -1,5 +1,8 @@ # Stop a progressive rollout returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new p api_instance.stop_exposure_schedule("550e8400-e29b-41d4-a716-446655440010") diff --git a/examples/v2/feature-flags/UnarchiveFeatureFlag.rb b/examples/v2/feature-flags/UnarchiveFeatureFlag.rb index 9dede0c814ee..64af38aac9fa 100644 --- a/examples/v2/feature-flags/UnarchiveFeatureFlag.rb +++ b/examples/v2/feature-flags/UnarchiveFeatureFlag.rb @@ -1,6 +1,9 @@ # Unarchive a feature flag returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment.rb b/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment.rb index 07de47f0e039..0aa41a303819 100644 --- a/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment.rb +++ b/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment.rb @@ -1,6 +1,9 @@ # Update targeting rules for a flag returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::OverwriteAllocationsRequest.new({ diff --git a/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment_3789036209.rb b/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment_3789036209.rb index 86fdb6604814..48abbcebc4a1 100644 --- a/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment_3789036209.rb +++ b/examples/v2/feature-flags/UpdateAllocationsForFeatureFlagInEnvironment_3789036209.rb @@ -1,6 +1,9 @@ # Update targeting rules for a flag in an environment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/UpdateFeatureFlag.rb b/examples/v2/feature-flags/UpdateFeatureFlag.rb index 063de479fc03..070bef945faa 100644 --- a/examples/v2/feature-flags/UpdateFeatureFlag.rb +++ b/examples/v2/feature-flags/UpdateFeatureFlag.rb @@ -1,6 +1,9 @@ # Update a feature flag returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "feature_flag" in the system diff --git a/examples/v2/feature-flags/UpdateFeatureFlagsEnvironment.rb b/examples/v2/feature-flags/UpdateFeatureFlagsEnvironment.rb index b5343991dfbc..8d08b6f6eca2 100644 --- a/examples/v2/feature-flags/UpdateFeatureFlagsEnvironment.rb +++ b/examples/v2/feature-flags/UpdateFeatureFlagsEnvironment.rb @@ -1,6 +1,9 @@ # Update an environment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new # there is a valid "environment" in the system diff --git a/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb b/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb index a4b841bbe967..4311a4bbfa49 100644 --- a/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb +++ b/examples/v2/feature-flags/UpdateVariantForFeatureFlag.rb @@ -1,6 +1,9 @@ # Update a variant returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FeatureFlagsAPI.new body = DatadogAPIClient::V2::UpdateVariantRequest.new({ diff --git a/examples/v2/fleet-automation/CancelFleetDeploymentV2.rb b/examples/v2/fleet-automation/CancelFleetDeploymentV2.rb index 0e8967ebd3b9..332fa127ea04 100644 --- a/examples/v2/fleet-automation/CancelFleetDeploymentV2.rb +++ b/examples/v2/fleet-automation/CancelFleetDeploymentV2.rb @@ -1,6 +1,9 @@ # Cancel a deployment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new # there is a valid "deployment" in the system diff --git a/examples/v2/fleet-automation/CreateFleetDeploymentConfigureV2.rb b/examples/v2/fleet-automation/CreateFleetDeploymentConfigureV2.rb index 06a40659fc64..7fecbbb74cfb 100644 --- a/examples/v2/fleet-automation/CreateFleetDeploymentConfigureV2.rb +++ b/examples/v2/fleet-automation/CreateFleetDeploymentConfigureV2.rb @@ -1,6 +1,9 @@ # Create a configuration deployment returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new body = DatadogAPIClient::V2::FleetDeploymentConfigureV2CreateRequest.new({ diff --git a/examples/v2/fleet-automation/CreateFleetDeploymentUpgradeV2.rb b/examples/v2/fleet-automation/CreateFleetDeploymentUpgradeV2.rb index 93b1f60339a6..e05c491d96e6 100644 --- a/examples/v2/fleet-automation/CreateFleetDeploymentUpgradeV2.rb +++ b/examples/v2/fleet-automation/CreateFleetDeploymentUpgradeV2.rb @@ -1,6 +1,9 @@ # Upgrade hosts returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new body = DatadogAPIClient::V2::FleetDeploymentPackageUpgradeV2CreateRequest.new({ diff --git a/examples/v2/fleet-automation/CreateFleetSchedule.rb b/examples/v2/fleet-automation/CreateFleetSchedule.rb index 047db0174061..0724ef0de10d 100644 --- a/examples/v2/fleet-automation/CreateFleetSchedule.rb +++ b/examples/v2/fleet-automation/CreateFleetSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_fleet_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/fleet-automation/DeleteFleetSchedule.rb b/examples/v2/fleet-automation/DeleteFleetSchedule.rb index e06d9999aee4..63c4e20fc9bd 100644 --- a/examples/v2/fleet-automation/DeleteFleetSchedule.rb +++ b/examples/v2/fleet-automation/DeleteFleetSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_fleet_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/fleet-automation/GetFleetAgentDetailV2.rb b/examples/v2/fleet-automation/GetFleetAgentDetailV2.rb index f88bc09beafc..e545da6bd680 100644 --- a/examples/v2/fleet-automation/GetFleetAgentDetailV2.rb +++ b/examples/v2/fleet-automation/GetFleetAgentDetailV2.rb @@ -1,5 +1,8 @@ # Get detailed information about an agent returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new p api_instance.get_fleet_agent_detail_v2("a1b2c3d4e5f67890a1b2c3d4e5f67890") diff --git a/examples/v2/fleet-automation/GetFleetDeploymentV2.rb b/examples/v2/fleet-automation/GetFleetDeploymentV2.rb index 788a1b28093d..7bf3e8270eb8 100644 --- a/examples/v2/fleet-automation/GetFleetDeploymentV2.rb +++ b/examples/v2/fleet-automation/GetFleetDeploymentV2.rb @@ -1,6 +1,9 @@ # Get a deployment by ID returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new # there is a valid "deployment" in the system diff --git a/examples/v2/fleet-automation/GetFleetScheduleV2.rb b/examples/v2/fleet-automation/GetFleetScheduleV2.rb index 066588f5a7ca..b614e967f059 100644 --- a/examples/v2/fleet-automation/GetFleetScheduleV2.rb +++ b/examples/v2/fleet-automation/GetFleetScheduleV2.rb @@ -1,6 +1,9 @@ # Get a schedule by ID returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new # there is a valid "fleet_schedule" in the system diff --git a/examples/v2/fleet-automation/ListFleetAgentTracers.rb b/examples/v2/fleet-automation/ListFleetAgentTracers.rb index abbdf9d28b39..21742a6a9e19 100644 --- a/examples/v2/fleet-automation/ListFleetAgentTracers.rb +++ b/examples/v2/fleet-automation/ListFleetAgentTracers.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_fleet_agent_tracers".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb b/examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb index e29abbd8e1ac..ae51d2a071ec 100644 --- a/examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb +++ b/examples/v2/fleet-automation/ListFleetAgentVersionsV2.rb @@ -1,5 +1,8 @@ # List available Datadog Agent versions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new p api_instance.list_fleet_agent_versions_v2() diff --git a/examples/v2/fleet-automation/ListFleetAgentsV2.rb b/examples/v2/fleet-automation/ListFleetAgentsV2.rb index 3881b0d8dd37..3684fd6183f2 100644 --- a/examples/v2/fleet-automation/ListFleetAgentsV2.rb +++ b/examples/v2/fleet-automation/ListFleetAgentsV2.rb @@ -1,5 +1,8 @@ # List all Datadog Agents returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new p api_instance.list_fleet_agents_v2() diff --git a/examples/v2/fleet-automation/ListFleetDeploymentsV2.rb b/examples/v2/fleet-automation/ListFleetDeploymentsV2.rb index 8e3efe159251..988f50a3491a 100644 --- a/examples/v2/fleet-automation/ListFleetDeploymentsV2.rb +++ b/examples/v2/fleet-automation/ListFleetDeploymentsV2.rb @@ -1,5 +1,8 @@ # List all deployments returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new p api_instance.list_fleet_deployments_v2() diff --git a/examples/v2/fleet-automation/ListFleetSchedulesV2.rb b/examples/v2/fleet-automation/ListFleetSchedulesV2.rb index c21c7b6d8e68..c072016df741 100644 --- a/examples/v2/fleet-automation/ListFleetSchedulesV2.rb +++ b/examples/v2/fleet-automation/ListFleetSchedulesV2.rb @@ -1,5 +1,8 @@ # List all schedules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new p api_instance.list_fleet_schedules_v2() diff --git a/examples/v2/fleet-automation/ListFleetTracers.rb b/examples/v2/fleet-automation/ListFleetTracers.rb index 15d3020ca113..02fa0b3a895b 100644 --- a/examples/v2/fleet-automation/ListFleetTracers.rb +++ b/examples/v2/fleet-automation/ListFleetTracers.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_fleet_tracers".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/fleet-automation/TriggerFleetSchedule.rb b/examples/v2/fleet-automation/TriggerFleetSchedule.rb index 75ef8d9cfacc..c77b60af9177 100644 --- a/examples/v2/fleet-automation/TriggerFleetSchedule.rb +++ b/examples/v2/fleet-automation/TriggerFleetSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.trigger_fleet_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/fleet-automation/UpdateFleetSchedule.rb b/examples/v2/fleet-automation/UpdateFleetSchedule.rb index a674f6c5dab7..db801045b2a3 100644 --- a/examples/v2/fleet-automation/UpdateFleetSchedule.rb +++ b/examples/v2/fleet-automation/UpdateFleetSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_fleet_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::FleetAutomationAPI.new diff --git a/examples/v2/forms/CloneForm.rb b/examples/v2/forms/CloneForm.rb index 122aaa8dd6d5..1ac81d6e4a76 100644 --- a/examples/v2/forms/CloneForm.rb +++ b/examples/v2/forms/CloneForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.clone_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/CreateAndPublishForm.rb b/examples/v2/forms/CreateAndPublishForm.rb index b8e70adcac46..8dbae40494ee 100644 --- a/examples/v2/forms/CreateAndPublishForm.rb +++ b/examples/v2/forms/CreateAndPublishForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_and_publish_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/CreateForm.rb b/examples/v2/forms/CreateForm.rb index ddfab5c92440..52c333547794 100644 --- a/examples/v2/forms/CreateForm.rb +++ b/examples/v2/forms/CreateForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/DeleteForm.rb b/examples/v2/forms/DeleteForm.rb index d2a05dce5c71..caa0405ec37c 100644 --- a/examples/v2/forms/DeleteForm.rb +++ b/examples/v2/forms/DeleteForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/GetForm.rb b/examples/v2/forms/GetForm.rb index a675fe08c601..4c167105ebce 100644 --- a/examples/v2/forms/GetForm.rb +++ b/examples/v2/forms/GetForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/ListForms.rb b/examples/v2/forms/ListForms.rb index 70ab9a7b0110..ac623fd818e7 100644 --- a/examples/v2/forms/ListForms.rb +++ b/examples/v2/forms/ListForms.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_forms".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/PublishForm.rb b/examples/v2/forms/PublishForm.rb index d3fd25ffea5b..39356f07649f 100644 --- a/examples/v2/forms/PublishForm.rb +++ b/examples/v2/forms/PublishForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.publish_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/UpdateForm.rb b/examples/v2/forms/UpdateForm.rb index 569eead70ec6..8d772fa51899 100644 --- a/examples/v2/forms/UpdateForm.rb +++ b/examples/v2/forms/UpdateForm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_form".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/UpsertAndPublishFormVersion.rb b/examples/v2/forms/UpsertAndPublishFormVersion.rb index 1ec6ef21b08c..8f5528d6a279 100644 --- a/examples/v2/forms/UpsertAndPublishFormVersion.rb +++ b/examples/v2/forms/UpsertAndPublishFormVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upsert_and_publish_form_version".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/forms/UpsertFormVersion.rb b/examples/v2/forms/UpsertFormVersion.rb index e483fc119792..f95ac77a0f65 100644 --- a/examples/v2/forms/UpsertFormVersion.rb +++ b/examples/v2/forms/UpsertFormVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upsert_form_version".to_sym] = true end api_instance = DatadogAPIClient::V2::FormsAPI.new diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount.rb index 3be5fb187885..6deb0e8abedc 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb index 36b5592b0ce5..a9421e22da5a 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with account_tags returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb index 1ae37e7220b0..49d28e0ee5e7 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with resource collection enabled returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb index bd32debb0327..652d66683986 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_194782945.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with cloud run revision filters enabled returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb index 839c5231ff02..a3b9949e25bb 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with security command center enabled returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_2882283621.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_2882283621.rb index a8b8cd42b950..5cb9a73c72af 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_2882283621.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_2882283621.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with org folder resource collection enabled returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb b/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb index c087fbe8dea0..6a89504ae4d2 100644 --- a/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +++ b/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb @@ -1,6 +1,9 @@ # Create a new entry for your service account with cspm enabled returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = DatadogAPIClient::V2::GCPSTSServiceAccountCreateRequest.new({ diff --git a/examples/v2/gcp-integration/DeleteGCPSTSAccount.rb b/examples/v2/gcp-integration/DeleteGCPSTSAccount.rb index 34d1548268ed..ba294368596b 100644 --- a/examples/v2/gcp-integration/DeleteGCPSTSAccount.rb +++ b/examples/v2/gcp-integration/DeleteGCPSTSAccount.rb @@ -1,5 +1,8 @@ # Delete an STS enabled GCP Account returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new api_instance.delete_gcpsts_account("account_id") diff --git a/examples/v2/gcp-integration/GetGCPSTSDelegate.rb b/examples/v2/gcp-integration/GetGCPSTSDelegate.rb index 1ee544c98085..3062483a9ede 100644 --- a/examples/v2/gcp-integration/GetGCPSTSDelegate.rb +++ b/examples/v2/gcp-integration/GetGCPSTSDelegate.rb @@ -1,5 +1,8 @@ # List delegate account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new p api_instance.get_gcpsts_delegate() diff --git a/examples/v2/gcp-integration/ListGCPSTSAccounts.rb b/examples/v2/gcp-integration/ListGCPSTSAccounts.rb index 4a264dd7a42c..003c4de311f8 100644 --- a/examples/v2/gcp-integration/ListGCPSTSAccounts.rb +++ b/examples/v2/gcp-integration/ListGCPSTSAccounts.rb @@ -1,5 +1,8 @@ # List all GCP STS-enabled service accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new p api_instance.list_gcpsts_accounts() diff --git a/examples/v2/gcp-integration/MakeGCPSTSDelegate.rb b/examples/v2/gcp-integration/MakeGCPSTSDelegate.rb index bf71a8ff7b3d..ab4af137c582 100644 --- a/examples/v2/gcp-integration/MakeGCPSTSDelegate.rb +++ b/examples/v2/gcp-integration/MakeGCPSTSDelegate.rb @@ -1,5 +1,8 @@ # Create a Datadog GCP principal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new p api_instance.make_gcpsts_delegate() diff --git a/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.rb b/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.rb index d44b823cf607..04462e0e3164 100644 --- a/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.rb +++ b/examples/v2/gcp-integration/MakeGCPSTSDelegate_962598975.rb @@ -1,6 +1,9 @@ # Create a Datadog GCP principal with empty body returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new body = {} diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb b/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb index 905537d76671..bf3779179a10 100644 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb +++ b/examples/v2/gcp-integration/UpdateGCPSTSAccount.rb @@ -1,6 +1,9 @@ # Update STS Service Account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new # there is a valid "gcp_sts_account" in the system diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb b/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb index 2ba5b4bdaafc..2efe71615fd3 100644 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb +++ b/examples/v2/gcp-integration/UpdateGCPSTSAccount_2241994060.rb @@ -1,6 +1,9 @@ # Update STS Service Account returns "OK" response with cloud run revision filters require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new # there is a valid "gcp_sts_account" in the system diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb b/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb index be2b882b3879..d3f3f6770341 100644 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +++ b/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb @@ -1,6 +1,9 @@ # Update STS Service Account returns "OK" response with enable resource collection turned on require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new # there is a valid "gcp_sts_account" in the system diff --git a/examples/v2/gcp-integration/UpdateGCPSTSAccount_4285997499.rb b/examples/v2/gcp-integration/UpdateGCPSTSAccount_4285997499.rb index 258feb15273e..673e1bdce3d8 100644 --- a/examples/v2/gcp-integration/UpdateGCPSTSAccount_4285997499.rb +++ b/examples/v2/gcp-integration/UpdateGCPSTSAccount_4285997499.rb @@ -1,6 +1,9 @@ # Update STS Service Account returns "OK" response with org folder resource collection enabled require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GCPIntegrationAPI.new # there is a valid "gcp_sts_account" in the system diff --git a/examples/v2/google-chat-integration/CreateGoogleChatTargetAudience.rb b/examples/v2/google-chat-integration/CreateGoogleChatTargetAudience.rb index 3320d7848598..e12a0bb6dd01 100644 --- a/examples/v2/google-chat-integration/CreateGoogleChatTargetAudience.rb +++ b/examples/v2/google-chat-integration/CreateGoogleChatTargetAudience.rb @@ -1,6 +1,9 @@ # Create a target audience returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new body = DatadogAPIClient::V2::GoogleChatTargetAudienceCreateRequest.new({ diff --git a/examples/v2/google-chat-integration/CreateOrganizationHandle.rb b/examples/v2/google-chat-integration/CreateOrganizationHandle.rb index 777862c9681c..ae063e226db9 100644 --- a/examples/v2/google-chat-integration/CreateOrganizationHandle.rb +++ b/examples/v2/google-chat-integration/CreateOrganizationHandle.rb @@ -1,6 +1,9 @@ # Create organization handle returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new body = DatadogAPIClient::V2::GoogleChatCreateOrganizationHandleRequest.new({ diff --git a/examples/v2/google-chat-integration/DeleteGoogleChatDelegatedUser.rb b/examples/v2/google-chat-integration/DeleteGoogleChatDelegatedUser.rb index 22ef17504f25..01491f9a9608 100644 --- a/examples/v2/google-chat-integration/DeleteGoogleChatDelegatedUser.rb +++ b/examples/v2/google-chat-integration/DeleteGoogleChatDelegatedUser.rb @@ -1,5 +1,8 @@ # Delete the delegated user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new api_instance.delete_google_chat_delegated_user("organization_binding_id") diff --git a/examples/v2/google-chat-integration/DeleteGoogleChatOrganization.rb b/examples/v2/google-chat-integration/DeleteGoogleChatOrganization.rb index 912f3fd38eae..7d505977413b 100644 --- a/examples/v2/google-chat-integration/DeleteGoogleChatOrganization.rb +++ b/examples/v2/google-chat-integration/DeleteGoogleChatOrganization.rb @@ -1,5 +1,8 @@ # Delete a Google Chat organization binding returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new api_instance.delete_google_chat_organization("organization_binding_id") diff --git a/examples/v2/google-chat-integration/DeleteGoogleChatTargetAudience.rb b/examples/v2/google-chat-integration/DeleteGoogleChatTargetAudience.rb index 1c213d4fa8c0..645b7ab8469c 100644 --- a/examples/v2/google-chat-integration/DeleteGoogleChatTargetAudience.rb +++ b/examples/v2/google-chat-integration/DeleteGoogleChatTargetAudience.rb @@ -1,5 +1,8 @@ # Delete a target audience returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new api_instance.delete_google_chat_target_audience("organization_binding_id", "target_audience_id") diff --git a/examples/v2/google-chat-integration/DeleteOrganizationHandle.rb b/examples/v2/google-chat-integration/DeleteOrganizationHandle.rb index fd047fe9499d..2359b0723fd3 100644 --- a/examples/v2/google-chat-integration/DeleteOrganizationHandle.rb +++ b/examples/v2/google-chat-integration/DeleteOrganizationHandle.rb @@ -1,6 +1,9 @@ # Delete organization handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new # there is a valid "organization_handle" in the system diff --git a/examples/v2/google-chat-integration/GetGoogleChatDelegatedUser.rb b/examples/v2/google-chat-integration/GetGoogleChatDelegatedUser.rb index c73a869ae90c..b4c8bea6dccf 100644 --- a/examples/v2/google-chat-integration/GetGoogleChatDelegatedUser.rb +++ b/examples/v2/google-chat-integration/GetGoogleChatDelegatedUser.rb @@ -1,5 +1,8 @@ # Get the delegated user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.get_google_chat_delegated_user("organization_binding_id") diff --git a/examples/v2/google-chat-integration/GetGoogleChatOrganization.rb b/examples/v2/google-chat-integration/GetGoogleChatOrganization.rb index 6a669117c202..1e74013b1af9 100644 --- a/examples/v2/google-chat-integration/GetGoogleChatOrganization.rb +++ b/examples/v2/google-chat-integration/GetGoogleChatOrganization.rb @@ -1,5 +1,8 @@ # Get a Google Chat organization binding returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.get_google_chat_organization("organization_binding_id") diff --git a/examples/v2/google-chat-integration/GetGoogleChatTargetAudience.rb b/examples/v2/google-chat-integration/GetGoogleChatTargetAudience.rb index 48054a0c28cf..3a74ae043785 100644 --- a/examples/v2/google-chat-integration/GetGoogleChatTargetAudience.rb +++ b/examples/v2/google-chat-integration/GetGoogleChatTargetAudience.rb @@ -1,5 +1,8 @@ # Get a target audience returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.get_google_chat_target_audience("organization_binding_id", "target_audience_id") diff --git a/examples/v2/google-chat-integration/GetOrganizationHandle.rb b/examples/v2/google-chat-integration/GetOrganizationHandle.rb index 1082553f3f30..dcb07d84c6af 100644 --- a/examples/v2/google-chat-integration/GetOrganizationHandle.rb +++ b/examples/v2/google-chat-integration/GetOrganizationHandle.rb @@ -1,6 +1,9 @@ # Get organization handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new # there is a valid "organization_handle" in the system diff --git a/examples/v2/google-chat-integration/GetSpaceByDisplayName.rb b/examples/v2/google-chat-integration/GetSpaceByDisplayName.rb index 8630ded5501a..366202b744ab 100644 --- a/examples/v2/google-chat-integration/GetSpaceByDisplayName.rb +++ b/examples/v2/google-chat-integration/GetSpaceByDisplayName.rb @@ -1,5 +1,8 @@ # Get space information by display name returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.get_space_by_display_name("datadog.ninja", "api-test-space") diff --git a/examples/v2/google-chat-integration/ListGoogleChatOrganizations.rb b/examples/v2/google-chat-integration/ListGoogleChatOrganizations.rb index d5fcba2a4a89..cf25feade94a 100644 --- a/examples/v2/google-chat-integration/ListGoogleChatOrganizations.rb +++ b/examples/v2/google-chat-integration/ListGoogleChatOrganizations.rb @@ -1,5 +1,8 @@ # Get all Google Chat organization bindings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.list_google_chat_organizations() diff --git a/examples/v2/google-chat-integration/ListGoogleChatTargetAudiences.rb b/examples/v2/google-chat-integration/ListGoogleChatTargetAudiences.rb index 24f477512609..890176439b71 100644 --- a/examples/v2/google-chat-integration/ListGoogleChatTargetAudiences.rb +++ b/examples/v2/google-chat-integration/ListGoogleChatTargetAudiences.rb @@ -1,5 +1,8 @@ # Get all target audiences returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.list_google_chat_target_audiences("organization_binding_id") diff --git a/examples/v2/google-chat-integration/ListOrganizationHandles.rb b/examples/v2/google-chat-integration/ListOrganizationHandles.rb index 430f89455b8d..77be783bbb43 100644 --- a/examples/v2/google-chat-integration/ListOrganizationHandles.rb +++ b/examples/v2/google-chat-integration/ListOrganizationHandles.rb @@ -1,5 +1,8 @@ # Get all organization handles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new p api_instance.list_organization_handles("e54cb570-c674-529c-769d-84b312288ed7") diff --git a/examples/v2/google-chat-integration/UpdateGoogleChatTargetAudience.rb b/examples/v2/google-chat-integration/UpdateGoogleChatTargetAudience.rb index a96ba1399803..ce3e8e59f157 100644 --- a/examples/v2/google-chat-integration/UpdateGoogleChatTargetAudience.rb +++ b/examples/v2/google-chat-integration/UpdateGoogleChatTargetAudience.rb @@ -1,6 +1,9 @@ # Update a target audience returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new body = DatadogAPIClient::V2::GoogleChatTargetAudienceUpdateRequest.new({ diff --git a/examples/v2/google-chat-integration/UpdateOrganizationHandle.rb b/examples/v2/google-chat-integration/UpdateOrganizationHandle.rb index b5e0074b741e..f25adb9dd56d 100644 --- a/examples/v2/google-chat-integration/UpdateOrganizationHandle.rb +++ b/examples/v2/google-chat-integration/UpdateOrganizationHandle.rb @@ -1,6 +1,9 @@ # Update organization handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::GoogleChatIntegrationAPI.new # there is a valid "organization_handle" in the system diff --git a/examples/v2/governance-console/GetGovernanceConfig.rb b/examples/v2/governance-console/GetGovernanceConfig.rb index 30b780c19930..2ae5e3eed16b 100644 --- a/examples/v2/governance-console/GetGovernanceConfig.rb +++ b/examples/v2/governance-console/GetGovernanceConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_governance_config".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/GetGovernanceControl.rb b/examples/v2/governance-console/GetGovernanceControl.rb index b771cd6041f2..5a190de16320 100644 --- a/examples/v2/governance-console/GetGovernanceControl.rb +++ b/examples/v2/governance-console/GetGovernanceControl.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_governance_control".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/GetGovernanceControlNotificationSettings.rb b/examples/v2/governance-console/GetGovernanceControlNotificationSettings.rb index 67a0a8bcbceb..1164c0bf6968 100644 --- a/examples/v2/governance-console/GetGovernanceControlNotificationSettings.rb +++ b/examples/v2/governance-console/GetGovernanceControlNotificationSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_governance_control_notification_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/GetGovernanceDetection.rb b/examples/v2/governance-console/GetGovernanceDetection.rb index 258bb4f00826..a6a49c26787f 100644 --- a/examples/v2/governance-console/GetGovernanceDetection.rb +++ b/examples/v2/governance-console/GetGovernanceDetection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_governance_detection".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/GetGovernanceNotificationSettings.rb b/examples/v2/governance-console/GetGovernanceNotificationSettings.rb index 38256d6c696b..5b1c8ad169e5 100644 --- a/examples/v2/governance-console/GetGovernanceNotificationSettings.rb +++ b/examples/v2/governance-console/GetGovernanceNotificationSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_governance_notification_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/ListGovernanceControlDetections.rb b/examples/v2/governance-console/ListGovernanceControlDetections.rb index e7f9f3b5033d..8af028698253 100644 --- a/examples/v2/governance-console/ListGovernanceControlDetections.rb +++ b/examples/v2/governance-console/ListGovernanceControlDetections.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_governance_control_detections".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/ListGovernanceControls.rb b/examples/v2/governance-console/ListGovernanceControls.rb index f590a4dab7ac..c0d38108eec0 100644 --- a/examples/v2/governance-console/ListGovernanceControls.rb +++ b/examples/v2/governance-console/ListGovernanceControls.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_governance_controls".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/ListGovernanceInsights.rb b/examples/v2/governance-console/ListGovernanceInsights.rb index a9a0c695e450..442c1d643507 100644 --- a/examples/v2/governance-console/ListGovernanceInsights.rb +++ b/examples/v2/governance-console/ListGovernanceInsights.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_governance_insights".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/MitigateGovernanceDetections.rb b/examples/v2/governance-console/MitigateGovernanceDetections.rb index 3012ee095d89..df739b34164c 100644 --- a/examples/v2/governance-console/MitigateGovernanceDetections.rb +++ b/examples/v2/governance-console/MitigateGovernanceDetections.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.mitigate_governance_detections".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/UpdateGovernanceControl.rb b/examples/v2/governance-console/UpdateGovernanceControl.rb index 9725781d496c..474a0fb205d1 100644 --- a/examples/v2/governance-console/UpdateGovernanceControl.rb +++ b/examples/v2/governance-console/UpdateGovernanceControl.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_governance_control".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/UpdateGovernanceControlNotificationSettings.rb b/examples/v2/governance-console/UpdateGovernanceControlNotificationSettings.rb index e1c2b5a07ea4..e3f328aa98dd 100644 --- a/examples/v2/governance-console/UpdateGovernanceControlNotificationSettings.rb +++ b/examples/v2/governance-console/UpdateGovernanceControlNotificationSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_governance_control_notification_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/UpdateGovernanceDetection.rb b/examples/v2/governance-console/UpdateGovernanceDetection.rb index db36e044175b..c0f6593ddbcd 100644 --- a/examples/v2/governance-console/UpdateGovernanceDetection.rb +++ b/examples/v2/governance-console/UpdateGovernanceDetection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_governance_detection".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/governance-console/UpdateGovernanceNotificationSettings.rb b/examples/v2/governance-console/UpdateGovernanceNotificationSettings.rb index 9f317097064c..adde34646189 100644 --- a/examples/v2/governance-console/UpdateGovernanceNotificationSettings.rb +++ b/examples/v2/governance-console/UpdateGovernanceNotificationSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_governance_notification_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::GovernanceConsoleAPI.new diff --git a/examples/v2/high-availability-multiregion/CreateHamrOrgConnection.rb b/examples/v2/high-availability-multiregion/CreateHamrOrgConnection.rb index fdd42149be11..5e610ac0790d 100644 --- a/examples/v2/high-availability-multiregion/CreateHamrOrgConnection.rb +++ b/examples/v2/high-availability-multiregion/CreateHamrOrgConnection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_hamr_org_connection".to_sym] = true end api_instance = DatadogAPIClient::V2::HighAvailabilityMultiRegionAPI.new diff --git a/examples/v2/high-availability-multiregion/GetHamrOrgConnection.rb b/examples/v2/high-availability-multiregion/GetHamrOrgConnection.rb index fd0a13c80f4e..c95fd894b3bc 100644 --- a/examples/v2/high-availability-multiregion/GetHamrOrgConnection.rb +++ b/examples/v2/high-availability-multiregion/GetHamrOrgConnection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_hamr_org_connection".to_sym] = true end api_instance = DatadogAPIClient::V2::HighAvailabilityMultiRegionAPI.new diff --git a/examples/v2/identity-providers/ListIdentityProviderUsers.rb b/examples/v2/identity-providers/ListIdentityProviderUsers.rb index f6e955161bd3..2eaa4d2c5af0 100644 --- a/examples/v2/identity-providers/ListIdentityProviderUsers.rb +++ b/examples/v2/identity-providers/ListIdentityProviderUsers.rb @@ -1,5 +1,8 @@ # List users with an identity provider override returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IdentityProvidersAPI.new p api_instance.list_identity_provider_users("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/identity-providers/ListIdentityProviderUsers_486416181.rb b/examples/v2/identity-providers/ListIdentityProviderUsers_486416181.rb index 5545fda10ab3..245e774d0884 100644 --- a/examples/v2/identity-providers/ListIdentityProviderUsers_486416181.rb +++ b/examples/v2/identity-providers/ListIdentityProviderUsers_486416181.rb @@ -1,5 +1,8 @@ # List users with an identity provider override returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IdentityProvidersAPI.new api_instance.list_identity_provider_users_with_pagination("00000000-0000-0000-0000-000000000001") { |item| puts item } diff --git a/examples/v2/identity-providers/ListIdentityProviders.rb b/examples/v2/identity-providers/ListIdentityProviders.rb index 00546a0f23f4..87953afcf420 100644 --- a/examples/v2/identity-providers/ListIdentityProviders.rb +++ b/examples/v2/identity-providers/ListIdentityProviders.rb @@ -1,5 +1,8 @@ # List identity providers returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IdentityProvidersAPI.new p api_instance.list_identity_providers() diff --git a/examples/v2/identity-providers/UpdateIdentityProvider.rb b/examples/v2/identity-providers/UpdateIdentityProvider.rb index 38cdd67e2a57..14666cb32dda 100644 --- a/examples/v2/identity-providers/UpdateIdentityProvider.rb +++ b/examples/v2/identity-providers/UpdateIdentityProvider.rb @@ -1,6 +1,9 @@ # Update an identity provider returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IdentityProvidersAPI.new body = DatadogAPIClient::V2::IdentityProviderUpdateRequest.new({ diff --git a/examples/v2/incidents/CreateGlobalIncidentHandle.rb b/examples/v2/incidents/CreateGlobalIncidentHandle.rb index bfe441cd6b98..ebb8ea4cb895 100644 --- a/examples/v2/incidents/CreateGlobalIncidentHandle.rb +++ b/examples/v2/incidents/CreateGlobalIncidentHandle.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_global_incident_handle".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncident.rb b/examples/v2/incidents/CreateIncident.rb index 61446ffd0bd1..6ffab48edb39 100644 --- a/examples/v2/incidents/CreateIncident.rb +++ b/examples/v2/incidents/CreateIncident.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentAttachment.rb b/examples/v2/incidents/CreateIncidentAttachment.rb index 8bc136fa445d..2f10db9f56e2 100644 --- a/examples/v2/incidents/CreateIncidentAttachment.rb +++ b/examples/v2/incidents/CreateIncidentAttachment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_attachment".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentImpact.rb b/examples/v2/incidents/CreateIncidentImpact.rb index 62b75045601f..d74313aa869c 100644 --- a/examples/v2/incidents/CreateIncidentImpact.rb +++ b/examples/v2/incidents/CreateIncidentImpact.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_impact".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentIntegration.rb b/examples/v2/incidents/CreateIncidentIntegration.rb index 18e5fe9c40fc..3e0fcd467b23 100644 --- a/examples/v2/incidents/CreateIncidentIntegration.rb +++ b/examples/v2/incidents/CreateIncidentIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentNotificationRule.rb b/examples/v2/incidents/CreateIncidentNotificationRule.rb index 77f60141da25..d088fefe8645 100644 --- a/examples/v2/incidents/CreateIncidentNotificationRule.rb +++ b/examples/v2/incidents/CreateIncidentNotificationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb b/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb index 3bd2f61c6fee..a9ad47258576 100644 --- a/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb +++ b/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentNotificationTemplate.rb b/examples/v2/incidents/CreateIncidentNotificationTemplate.rb index 7dd6671d3c1e..8652805b51a7 100644 --- a/examples/v2/incidents/CreateIncidentNotificationTemplate.rb +++ b/examples/v2/incidents/CreateIncidentNotificationTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_notification_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentPostmortemAttachment.rb b/examples/v2/incidents/CreateIncidentPostmortemAttachment.rb index 00a7b70a65e3..6abf901510d2 100644 --- a/examples/v2/incidents/CreateIncidentPostmortemAttachment.rb +++ b/examples/v2/incidents/CreateIncidentPostmortemAttachment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_postmortem_attachment".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb b/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb index 78cb71c6a0e1..cff0d94be8d0 100644 --- a/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb +++ b/examples/v2/incidents/CreateIncidentPostmortemTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_postmortem_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentTodo.rb b/examples/v2/incidents/CreateIncidentTodo.rb index aa51dadd07c5..4ac949b0acec 100644 --- a/examples/v2/incidents/CreateIncidentTodo.rb +++ b/examples/v2/incidents/CreateIncidentTodo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_todo".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentType.rb b/examples/v2/incidents/CreateIncidentType.rb index d5ec652ff99d..651246774c7b 100644 --- a/examples/v2/incidents/CreateIncidentType.rb +++ b/examples/v2/incidents/CreateIncidentType.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_type".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentUserDefinedField.rb b/examples/v2/incidents/CreateIncidentUserDefinedField.rb index 7ebfc7afd952..54e137b69519 100644 --- a/examples/v2/incidents/CreateIncidentUserDefinedField.rb +++ b/examples/v2/incidents/CreateIncidentUserDefinedField.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_user_defined_field".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/CreateIncidentUserDefinedRole.rb b/examples/v2/incidents/CreateIncidentUserDefinedRole.rb index 3d0ee20868f0..214aebfd6d0f 100644 --- a/examples/v2/incidents/CreateIncidentUserDefinedRole.rb +++ b/examples/v2/incidents/CreateIncidentUserDefinedRole.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_incident_user_defined_role".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteGlobalIncidentHandle.rb b/examples/v2/incidents/DeleteGlobalIncidentHandle.rb index 915ed755db85..b1e1b68b4750 100644 --- a/examples/v2/incidents/DeleteGlobalIncidentHandle.rb +++ b/examples/v2/incidents/DeleteGlobalIncidentHandle.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_global_incident_handle".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncident.rb b/examples/v2/incidents/DeleteIncident.rb index 32dfc5c19523..b323b34e555b 100644 --- a/examples/v2/incidents/DeleteIncident.rb +++ b/examples/v2/incidents/DeleteIncident.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentAttachment.rb b/examples/v2/incidents/DeleteIncidentAttachment.rb index 67680c88ded6..8e3935a475a2 100644 --- a/examples/v2/incidents/DeleteIncidentAttachment.rb +++ b/examples/v2/incidents/DeleteIncidentAttachment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_attachment".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentImpact.rb b/examples/v2/incidents/DeleteIncidentImpact.rb index 057874993ad0..2f5fb95f0111 100644 --- a/examples/v2/incidents/DeleteIncidentImpact.rb +++ b/examples/v2/incidents/DeleteIncidentImpact.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_impact".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentIntegration.rb b/examples/v2/incidents/DeleteIncidentIntegration.rb index 5c234a57009c..73790df9de17 100644 --- a/examples/v2/incidents/DeleteIncidentIntegration.rb +++ b/examples/v2/incidents/DeleteIncidentIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentNotificationRule.rb b/examples/v2/incidents/DeleteIncidentNotificationRule.rb index beb52da22f44..53a6f44d2b31 100644 --- a/examples/v2/incidents/DeleteIncidentNotificationRule.rb +++ b/examples/v2/incidents/DeleteIncidentNotificationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb b/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb index a12d63eefade..41c197ab9b9c 100644 --- a/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb +++ b/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb b/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb index 0220bc3274db..9576e7336029 100644 --- a/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb +++ b/examples/v2/incidents/DeleteIncidentNotificationTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_notification_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb b/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb index 3d93a03ec5a0..21e4bde34bfa 100644 --- a/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb +++ b/examples/v2/incidents/DeleteIncidentNotificationTemplate_1602689347.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_notification_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb b/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb index 3949583ee70b..376fa38973f1 100644 --- a/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb +++ b/examples/v2/incidents/DeleteIncidentPostmortemTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_postmortem_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentTodo.rb b/examples/v2/incidents/DeleteIncidentTodo.rb index 822d727fbbd4..70bfc2220b70 100644 --- a/examples/v2/incidents/DeleteIncidentTodo.rb +++ b/examples/v2/incidents/DeleteIncidentTodo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_todo".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentType.rb b/examples/v2/incidents/DeleteIncidentType.rb index 8a94e0b1e919..cff8f85c8023 100644 --- a/examples/v2/incidents/DeleteIncidentType.rb +++ b/examples/v2/incidents/DeleteIncidentType.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_type".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentUserDefinedField.rb b/examples/v2/incidents/DeleteIncidentUserDefinedField.rb index 962c4c1ef550..714d363dfee4 100644 --- a/examples/v2/incidents/DeleteIncidentUserDefinedField.rb +++ b/examples/v2/incidents/DeleteIncidentUserDefinedField.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_user_defined_field".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/DeleteIncidentUserDefinedRole.rb b/examples/v2/incidents/DeleteIncidentUserDefinedRole.rb index 65c01a600c2a..fd6249b6e26a 100644 --- a/examples/v2/incidents/DeleteIncidentUserDefinedRole.rb +++ b/examples/v2/incidents/DeleteIncidentUserDefinedRole.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_incident_user_defined_role".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetGlobalIncidentSettings.rb b/examples/v2/incidents/GetGlobalIncidentSettings.rb index 790f56c595e3..5329818d69af 100644 --- a/examples/v2/incidents/GetGlobalIncidentSettings.rb +++ b/examples/v2/incidents/GetGlobalIncidentSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_global_incident_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncident.rb b/examples/v2/incidents/GetIncident.rb index 794f176a2b0f..c587cfbefeea 100644 --- a/examples/v2/incidents/GetIncident.rb +++ b/examples/v2/incidents/GetIncident.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentIntegration.rb b/examples/v2/incidents/GetIncidentIntegration.rb index c2661c34e01d..312f5f395ee2 100644 --- a/examples/v2/incidents/GetIncidentIntegration.rb +++ b/examples/v2/incidents/GetIncidentIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentNotificationRule.rb b/examples/v2/incidents/GetIncidentNotificationRule.rb index 2ddf7747885a..5c615ec2411c 100644 --- a/examples/v2/incidents/GetIncidentNotificationRule.rb +++ b/examples/v2/incidents/GetIncidentNotificationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb b/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb index 703ffdfc62e5..0982530b6cfc 100644 --- a/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb +++ b/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentNotificationTemplate.rb b/examples/v2/incidents/GetIncidentNotificationTemplate.rb index 61415c86200e..a593b9076703 100644 --- a/examples/v2/incidents/GetIncidentNotificationTemplate.rb +++ b/examples/v2/incidents/GetIncidentNotificationTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_notification_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentPostmortemTemplate.rb b/examples/v2/incidents/GetIncidentPostmortemTemplate.rb index 820f5bfa93ef..0dc313c17b13 100644 --- a/examples/v2/incidents/GetIncidentPostmortemTemplate.rb +++ b/examples/v2/incidents/GetIncidentPostmortemTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_postmortem_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentTodo.rb b/examples/v2/incidents/GetIncidentTodo.rb index ce48fed1cc50..6cbbb4076f9d 100644 --- a/examples/v2/incidents/GetIncidentTodo.rb +++ b/examples/v2/incidents/GetIncidentTodo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_todo".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentType.rb b/examples/v2/incidents/GetIncidentType.rb index 7ddd499c60a1..a1fe3363d79b 100644 --- a/examples/v2/incidents/GetIncidentType.rb +++ b/examples/v2/incidents/GetIncidentType.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_type".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentUserDefinedField.rb b/examples/v2/incidents/GetIncidentUserDefinedField.rb index d00ed9560dfd..6028f60165f0 100644 --- a/examples/v2/incidents/GetIncidentUserDefinedField.rb +++ b/examples/v2/incidents/GetIncidentUserDefinedField.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_user_defined_field".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/GetIncidentUserDefinedRole.rb b/examples/v2/incidents/GetIncidentUserDefinedRole.rb index 6791e2cf9d65..fe6a7452a853 100644 --- a/examples/v2/incidents/GetIncidentUserDefinedRole.rb +++ b/examples/v2/incidents/GetIncidentUserDefinedRole.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_incident_user_defined_role".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ImportIncident.rb b/examples/v2/incidents/ImportIncident.rb index 4d79ec7c9ab1..f5994ff015e3 100644 --- a/examples/v2/incidents/ImportIncident.rb +++ b/examples/v2/incidents/ImportIncident.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.import_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListGlobalIncidentHandles.rb b/examples/v2/incidents/ListGlobalIncidentHandles.rb index 033c8911a81b..2e24cc0ffdee 100644 --- a/examples/v2/incidents/ListGlobalIncidentHandles.rb +++ b/examples/v2/incidents/ListGlobalIncidentHandles.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_global_incident_handles".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentAttachments.rb b/examples/v2/incidents/ListIncidentAttachments.rb index 2cd38429a4ba..44b8efd4d693 100644 --- a/examples/v2/incidents/ListIncidentAttachments.rb +++ b/examples/v2/incidents/ListIncidentAttachments.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_attachments".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentImpacts.rb b/examples/v2/incidents/ListIncidentImpacts.rb index 973d63c60a91..8e6466c5feb2 100644 --- a/examples/v2/incidents/ListIncidentImpacts.rb +++ b/examples/v2/incidents/ListIncidentImpacts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_impacts".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentIntegrations.rb b/examples/v2/incidents/ListIncidentIntegrations.rb index d9457aa56b52..291f37c7c01e 100644 --- a/examples/v2/incidents/ListIncidentIntegrations.rb +++ b/examples/v2/incidents/ListIncidentIntegrations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_integrations".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentNotificationRules.rb b/examples/v2/incidents/ListIncidentNotificationRules.rb index 89784c61b3bc..b37227bf53e9 100644 --- a/examples/v2/incidents/ListIncidentNotificationRules.rb +++ b/examples/v2/incidents/ListIncidentNotificationRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_notification_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentNotificationTemplates.rb b/examples/v2/incidents/ListIncidentNotificationTemplates.rb index 16cefc1cb480..c10a73847cd8 100644 --- a/examples/v2/incidents/ListIncidentNotificationTemplates.rb +++ b/examples/v2/incidents/ListIncidentNotificationTemplates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_notification_templates".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentPostmortemTemplates.rb b/examples/v2/incidents/ListIncidentPostmortemTemplates.rb index daf7012b1325..07d156d6a8d7 100644 --- a/examples/v2/incidents/ListIncidentPostmortemTemplates.rb +++ b/examples/v2/incidents/ListIncidentPostmortemTemplates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_postmortem_templates".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentTodos.rb b/examples/v2/incidents/ListIncidentTodos.rb index 3f793b0f2dc4..62ca50c8ba9c 100644 --- a/examples/v2/incidents/ListIncidentTodos.rb +++ b/examples/v2/incidents/ListIncidentTodos.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_todos".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentTypes.rb b/examples/v2/incidents/ListIncidentTypes.rb index 7e0df877ea58..52a7e11347f1 100644 --- a/examples/v2/incidents/ListIncidentTypes.rb +++ b/examples/v2/incidents/ListIncidentTypes.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_types".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentUserDefinedFields.rb b/examples/v2/incidents/ListIncidentUserDefinedFields.rb index 9e11ee0d359b..a2e59bff881d 100644 --- a/examples/v2/incidents/ListIncidentUserDefinedFields.rb +++ b/examples/v2/incidents/ListIncidentUserDefinedFields.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_user_defined_fields".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidentUserDefinedRoles.rb b/examples/v2/incidents/ListIncidentUserDefinedRoles.rb index 48c8b57b4c6a..63fab563f5fe 100644 --- a/examples/v2/incidents/ListIncidentUserDefinedRoles.rb +++ b/examples/v2/incidents/ListIncidentUserDefinedRoles.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incident_user_defined_roles".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidents.rb b/examples/v2/incidents/ListIncidents.rb index 6efd9f2f025d..7bf922e541c4 100644 --- a/examples/v2/incidents/ListIncidents.rb +++ b/examples/v2/incidents/ListIncidents.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incidents".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/ListIncidents_2665616954.rb b/examples/v2/incidents/ListIncidents_2665616954.rb index 2d5282b59cc9..730506d9e6ef 100644 --- a/examples/v2/incidents/ListIncidents_2665616954.rb +++ b/examples/v2/incidents/ListIncidents_2665616954.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_incidents".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/PatchIncidentImpact.rb b/examples/v2/incidents/PatchIncidentImpact.rb index 4d9e7835abd0..8044a738d451 100644 --- a/examples/v2/incidents/PatchIncidentImpact.rb +++ b/examples/v2/incidents/PatchIncidentImpact.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.patch_incident_impact".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/SearchIncidents.rb b/examples/v2/incidents/SearchIncidents.rb index 2359737f1fea..6df53a95550f 100644 --- a/examples/v2/incidents/SearchIncidents.rb +++ b/examples/v2/incidents/SearchIncidents.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_incidents".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/SearchIncidents_1931679109.rb b/examples/v2/incidents/SearchIncidents_1931679109.rb index f801a659c3aa..d7fcbe8117f8 100644 --- a/examples/v2/incidents/SearchIncidents_1931679109.rb +++ b/examples/v2/incidents/SearchIncidents_1931679109.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_incidents".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateGlobalIncidentHandle.rb b/examples/v2/incidents/UpdateGlobalIncidentHandle.rb index fb6f67998167..0e96b92a0b29 100644 --- a/examples/v2/incidents/UpdateGlobalIncidentHandle.rb +++ b/examples/v2/incidents/UpdateGlobalIncidentHandle.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_global_incident_handle".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateGlobalIncidentSettings.rb b/examples/v2/incidents/UpdateGlobalIncidentSettings.rb index c02035568d0f..e4b45d446c20 100644 --- a/examples/v2/incidents/UpdateGlobalIncidentSettings.rb +++ b/examples/v2/incidents/UpdateGlobalIncidentSettings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_global_incident_settings".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncident.rb b/examples/v2/incidents/UpdateIncident.rb index 575880e3f3f7..310ad214391e 100644 --- a/examples/v2/incidents/UpdateIncident.rb +++ b/examples/v2/incidents/UpdateIncident.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentAttachment.rb b/examples/v2/incidents/UpdateIncidentAttachment.rb index d8eb1da59545..a7604d02019a 100644 --- a/examples/v2/incidents/UpdateIncidentAttachment.rb +++ b/examples/v2/incidents/UpdateIncidentAttachment.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_attachment".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentIntegration.rb b/examples/v2/incidents/UpdateIncidentIntegration.rb index 2d9f23cf1d5a..1a9d34762a5b 100644 --- a/examples/v2/incidents/UpdateIncidentIntegration.rb +++ b/examples/v2/incidents/UpdateIncidentIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentNotificationRule.rb b/examples/v2/incidents/UpdateIncidentNotificationRule.rb index 96e9e00c3b2a..afd253aa7664 100644 --- a/examples/v2/incidents/UpdateIncidentNotificationRule.rb +++ b/examples/v2/incidents/UpdateIncidentNotificationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb b/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb index 7356e3f780db..1171dd92c7be 100644 --- a/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb +++ b/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_notification_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb b/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb index 59b74f25ff60..8336920ee3c3 100644 --- a/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb +++ b/examples/v2/incidents/UpdateIncidentNotificationTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_notification_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb b/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb index 95da4c73a54d..1d65bbdd9719 100644 --- a/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb +++ b/examples/v2/incidents/UpdateIncidentPostmortemTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_postmortem_template".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentTodo.rb b/examples/v2/incidents/UpdateIncidentTodo.rb index d551f2b9866d..18688dfc7773 100644 --- a/examples/v2/incidents/UpdateIncidentTodo.rb +++ b/examples/v2/incidents/UpdateIncidentTodo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_todo".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentType.rb b/examples/v2/incidents/UpdateIncidentType.rb index 42c7543a55e0..56ad87feff08 100644 --- a/examples/v2/incidents/UpdateIncidentType.rb +++ b/examples/v2/incidents/UpdateIncidentType.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_type".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentUserDefinedField.rb b/examples/v2/incidents/UpdateIncidentUserDefinedField.rb index 86195fbacadc..1b8d29db1eb5 100644 --- a/examples/v2/incidents/UpdateIncidentUserDefinedField.rb +++ b/examples/v2/incidents/UpdateIncidentUserDefinedField.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_user_defined_field".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncidentUserDefinedRole.rb b/examples/v2/incidents/UpdateIncidentUserDefinedRole.rb index 663e2d62bd3a..b0d13fe65b2d 100644 --- a/examples/v2/incidents/UpdateIncidentUserDefinedRole.rb +++ b/examples/v2/incidents/UpdateIncidentUserDefinedRole.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident_user_defined_role".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncident_1009194038.rb b/examples/v2/incidents/UpdateIncident_1009194038.rb index 659ba9826b1e..46a5c978d771 100644 --- a/examples/v2/incidents/UpdateIncident_1009194038.rb +++ b/examples/v2/incidents/UpdateIncident_1009194038.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/incidents/UpdateIncident_3369341440.rb b/examples/v2/incidents/UpdateIncident_3369341440.rb index 959924638ea3..a7776c44b595 100644 --- a/examples/v2/incidents/UpdateIncident_3369341440.rb +++ b/examples/v2/incidents/UpdateIncident_3369341440.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new diff --git a/examples/v2/integrations/ListIntegrations.rb b/examples/v2/integrations/ListIntegrations.rb index e26f103fa48f..422d7ec4a909 100644 --- a/examples/v2/integrations/ListIntegrations.rb +++ b/examples/v2/integrations/ListIntegrations.rb @@ -1,5 +1,8 @@ # List Integrations returns "Successful Response." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IntegrationsAPI.new p api_instance.list_integrations() diff --git a/examples/v2/ip-allowlist/GetIPAllowlist.rb b/examples/v2/ip-allowlist/GetIPAllowlist.rb index 8951fc67f479..790bad66b286 100644 --- a/examples/v2/ip-allowlist/GetIPAllowlist.rb +++ b/examples/v2/ip-allowlist/GetIPAllowlist.rb @@ -1,5 +1,8 @@ # Get IP Allowlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IPAllowlistAPI.new p api_instance.get_ip_allowlist() diff --git a/examples/v2/ip-allowlist/UpdateIPAllowlist.rb b/examples/v2/ip-allowlist/UpdateIPAllowlist.rb index 2ea0c8254f8e..8de8c8c7fc3e 100644 --- a/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +++ b/examples/v2/ip-allowlist/UpdateIPAllowlist.rb @@ -1,6 +1,9 @@ # Update IP Allowlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::IPAllowlistAPI.new body = DatadogAPIClient::V2::IPAllowlistUpdateRequest.new({ diff --git a/examples/v2/jira-integration/CreateJiraIssueTemplate.rb b/examples/v2/jira-integration/CreateJiraIssueTemplate.rb index f9d7e38eac39..1c935082a096 100644 --- a/examples/v2/jira-integration/CreateJiraIssueTemplate.rb +++ b/examples/v2/jira-integration/CreateJiraIssueTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_jira_issue_template".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/DeleteJiraAccount.rb b/examples/v2/jira-integration/DeleteJiraAccount.rb index 9a8784832849..71cf4bc53db2 100644 --- a/examples/v2/jira-integration/DeleteJiraAccount.rb +++ b/examples/v2/jira-integration/DeleteJiraAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_jira_account".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/DeleteJiraIssueTemplate.rb b/examples/v2/jira-integration/DeleteJiraIssueTemplate.rb index 055bbaf97692..2fe9155d724a 100644 --- a/examples/v2/jira-integration/DeleteJiraIssueTemplate.rb +++ b/examples/v2/jira-integration/DeleteJiraIssueTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_jira_issue_template".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/GetJiraIssueTemplate.rb b/examples/v2/jira-integration/GetJiraIssueTemplate.rb index 671dfc60de1e..68d968f3ac14 100644 --- a/examples/v2/jira-integration/GetJiraIssueTemplate.rb +++ b/examples/v2/jira-integration/GetJiraIssueTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_jira_issue_template".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/ListJiraAccounts.rb b/examples/v2/jira-integration/ListJiraAccounts.rb index 5e0fea026ea9..03fd3f6da67e 100644 --- a/examples/v2/jira-integration/ListJiraAccounts.rb +++ b/examples/v2/jira-integration/ListJiraAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_jira_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/ListJiraIssueTemplates.rb b/examples/v2/jira-integration/ListJiraIssueTemplates.rb index afa99857f146..32ef7c1b7804 100644 --- a/examples/v2/jira-integration/ListJiraIssueTemplates.rb +++ b/examples/v2/jira-integration/ListJiraIssueTemplates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_jira_issue_templates".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/jira-integration/UpdateJiraIssueTemplate.rb b/examples/v2/jira-integration/UpdateJiraIssueTemplate.rb index 41bf3f7fc6b4..7d2dcc17e61b 100644 --- a/examples/v2/jira-integration/UpdateJiraIssueTemplate.rb +++ b/examples/v2/jira-integration/UpdateJiraIssueTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_jira_issue_template".to_sym] = true end api_instance = DatadogAPIClient::V2::JiraIntegrationAPI.new diff --git a/examples/v2/key-management/CreateAPIKey.rb b/examples/v2/key-management/CreateAPIKey.rb index e8e9e8c71572..9af58da0955a 100644 --- a/examples/v2/key-management/CreateAPIKey.rb +++ b/examples/v2/key-management/CreateAPIKey.rb @@ -1,6 +1,9 @@ # Create an API key returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new body = DatadogAPIClient::V2::APIKeyCreateRequest.new({ diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey.rb b/examples/v2/key-management/CreateCurrentUserApplicationKey.rb index 59084aa37803..0587de77fb08 100644 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey.rb +++ b/examples/v2/key-management/CreateCurrentUserApplicationKey.rb @@ -1,6 +1,9 @@ # Create an application key for current user returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({ diff --git a/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb b/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb index 2279626dcab8..f86df5c47438 100644 --- a/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb +++ b/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb @@ -1,6 +1,9 @@ # Create an Application key with scopes for current user returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new body = DatadogAPIClient::V2::ApplicationKeyCreateRequest.new({ diff --git a/examples/v2/key-management/CreatePersonalAccessToken.rb b/examples/v2/key-management/CreatePersonalAccessToken.rb index ec0eca5b250d..73b6a1eb27fd 100644 --- a/examples/v2/key-management/CreatePersonalAccessToken.rb +++ b/examples/v2/key-management/CreatePersonalAccessToken.rb @@ -1,6 +1,9 @@ # Create a personal access token returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new body = DatadogAPIClient::V2::PersonalAccessTokenCreateRequest.new({ diff --git a/examples/v2/key-management/DeleteAPIKey.rb b/examples/v2/key-management/DeleteAPIKey.rb index 9b9ca59c1ab0..c8eb79e38cd0 100644 --- a/examples/v2/key-management/DeleteAPIKey.rb +++ b/examples/v2/key-management/DeleteAPIKey.rb @@ -1,6 +1,9 @@ # Delete an API key returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "api_key" in the system diff --git a/examples/v2/key-management/DeleteApplicationKey.rb b/examples/v2/key-management/DeleteApplicationKey.rb index dabe3cc4b72a..f1c54db40315 100644 --- a/examples/v2/key-management/DeleteApplicationKey.rb +++ b/examples/v2/key-management/DeleteApplicationKey.rb @@ -1,6 +1,9 @@ # Delete an application key returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb b/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb index 5c011f772429..240a2b9d31e0 100644 --- a/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb +++ b/examples/v2/key-management/DeleteCurrentUserApplicationKey.rb @@ -1,6 +1,9 @@ # Delete an application key owned by current user returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/GetAPIKey.rb b/examples/v2/key-management/GetAPIKey.rb index c6fe5e5cb748..9e0bd1b002ea 100644 --- a/examples/v2/key-management/GetAPIKey.rb +++ b/examples/v2/key-management/GetAPIKey.rb @@ -1,6 +1,9 @@ # Get API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "api_key" in the system diff --git a/examples/v2/key-management/GetApplicationKey.rb b/examples/v2/key-management/GetApplicationKey.rb index 75f455d42c51..f767fe82a009 100644 --- a/examples/v2/key-management/GetApplicationKey.rb +++ b/examples/v2/key-management/GetApplicationKey.rb @@ -1,6 +1,9 @@ # Get an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/GetCurrentUserApplicationKey.rb b/examples/v2/key-management/GetCurrentUserApplicationKey.rb index 1946652c2edc..d2b529f0e95d 100644 --- a/examples/v2/key-management/GetCurrentUserApplicationKey.rb +++ b/examples/v2/key-management/GetCurrentUserApplicationKey.rb @@ -1,6 +1,9 @@ # Get one application key owned by current user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/GetPersonalAccessToken.rb b/examples/v2/key-management/GetPersonalAccessToken.rb index ec5c07223fb8..7bed73816b50 100644 --- a/examples/v2/key-management/GetPersonalAccessToken.rb +++ b/examples/v2/key-management/GetPersonalAccessToken.rb @@ -1,6 +1,9 @@ # Get a personal access token returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "personal_access_token" in the system diff --git a/examples/v2/key-management/ListAPIKeys.rb b/examples/v2/key-management/ListAPIKeys.rb index 601c206d09e7..9262e69a7a9a 100644 --- a/examples/v2/key-management/ListAPIKeys.rb +++ b/examples/v2/key-management/ListAPIKeys.rb @@ -1,6 +1,9 @@ # Get all API keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "api_key" in the system diff --git a/examples/v2/key-management/ListApplicationKeys.rb b/examples/v2/key-management/ListApplicationKeys.rb index cc21ae072fcd..616060d42f7c 100644 --- a/examples/v2/key-management/ListApplicationKeys.rb +++ b/examples/v2/key-management/ListApplicationKeys.rb @@ -1,5 +1,8 @@ # Get all application keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new p api_instance.list_application_keys() diff --git a/examples/v2/key-management/ListCurrentUserApplicationKeys.rb b/examples/v2/key-management/ListCurrentUserApplicationKeys.rb index 9a7b5b573f41..b0fb75baaf55 100644 --- a/examples/v2/key-management/ListCurrentUserApplicationKeys.rb +++ b/examples/v2/key-management/ListCurrentUserApplicationKeys.rb @@ -1,5 +1,8 @@ # Get all application keys owned by current user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new p api_instance.list_current_user_application_keys() diff --git a/examples/v2/key-management/ListPersonalAccessTokens.rb b/examples/v2/key-management/ListPersonalAccessTokens.rb index f52118fbb05c..2a9c3533b154 100644 --- a/examples/v2/key-management/ListPersonalAccessTokens.rb +++ b/examples/v2/key-management/ListPersonalAccessTokens.rb @@ -1,5 +1,8 @@ # Get all access tokens returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new p api_instance.list_personal_access_tokens() diff --git a/examples/v2/key-management/ListPersonalAccessTokens_4153414404.rb b/examples/v2/key-management/ListPersonalAccessTokens_4153414404.rb index 72a58ce6b9a5..401acd74a89d 100644 --- a/examples/v2/key-management/ListPersonalAccessTokens_4153414404.rb +++ b/examples/v2/key-management/ListPersonalAccessTokens_4153414404.rb @@ -1,5 +1,8 @@ # Get all personal access tokens returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new p api_instance.list_personal_access_tokens() diff --git a/examples/v2/key-management/RevokePersonalAccessToken.rb b/examples/v2/key-management/RevokePersonalAccessToken.rb index 175ccbba36f3..b8100a076c65 100644 --- a/examples/v2/key-management/RevokePersonalAccessToken.rb +++ b/examples/v2/key-management/RevokePersonalAccessToken.rb @@ -1,6 +1,9 @@ # Revoke a personal access token returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "personal_access_token" in the system diff --git a/examples/v2/key-management/UpdateAPIKey.rb b/examples/v2/key-management/UpdateAPIKey.rb index 774c64164775..db5e04a9d974 100644 --- a/examples/v2/key-management/UpdateAPIKey.rb +++ b/examples/v2/key-management/UpdateAPIKey.rb @@ -1,6 +1,9 @@ # Edit an API key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "api_key" in the system diff --git a/examples/v2/key-management/UpdateApplicationKey.rb b/examples/v2/key-management/UpdateApplicationKey.rb index 9fe1ce3cc6eb..e300f6030609 100644 --- a/examples/v2/key-management/UpdateApplicationKey.rb +++ b/examples/v2/key-management/UpdateApplicationKey.rb @@ -1,6 +1,9 @@ # Edit an application key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/UpdateCurrentUserApplicationKey.rb b/examples/v2/key-management/UpdateCurrentUserApplicationKey.rb index 3fdd44271cbb..d2d70694dfc0 100644 --- a/examples/v2/key-management/UpdateCurrentUserApplicationKey.rb +++ b/examples/v2/key-management/UpdateCurrentUserApplicationKey.rb @@ -1,6 +1,9 @@ # Edit an application key owned by current user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "application_key" in the system diff --git a/examples/v2/key-management/UpdatePersonalAccessToken.rb b/examples/v2/key-management/UpdatePersonalAccessToken.rb index 82a1a7523769..fb73638a7707 100644 --- a/examples/v2/key-management/UpdatePersonalAccessToken.rb +++ b/examples/v2/key-management/UpdatePersonalAccessToken.rb @@ -1,6 +1,9 @@ # Update a personal access token returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new # there is a valid "personal_access_token" in the system diff --git a/examples/v2/key-management/ValidateAPIKey.rb b/examples/v2/key-management/ValidateAPIKey.rb index c679db7e97d6..aaa8cf3e6856 100644 --- a/examples/v2/key-management/ValidateAPIKey.rb +++ b/examples/v2/key-management/ValidateAPIKey.rb @@ -1,5 +1,8 @@ # Validate API and application keys returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::KeyManagementAPI.new p api_instance.validate_api_key() diff --git a/examples/v2/logs-archives/AddReadRoleToArchive.rb b/examples/v2/logs-archives/AddReadRoleToArchive.rb index 2e58d25c69ce..c1b9d271a508 100644 --- a/examples/v2/logs-archives/AddReadRoleToArchive.rb +++ b/examples/v2/logs-archives/AddReadRoleToArchive.rb @@ -1,6 +1,9 @@ # Grant role to an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::RelationshipToRole.new({ diff --git a/examples/v2/logs-archives/CreateLogsArchive.rb b/examples/v2/logs-archives/CreateLogsArchive.rb index 4fdf176494c3..36b5137e25fc 100644 --- a/examples/v2/logs-archives/CreateLogsArchive.rb +++ b/examples/v2/logs-archives/CreateLogsArchive.rb @@ -1,6 +1,9 @@ # Create an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new({ diff --git a/examples/v2/logs-archives/DeleteLogsArchive.rb b/examples/v2/logs-archives/DeleteLogsArchive.rb index 6234ca714aab..3bb845096983 100644 --- a/examples/v2/logs-archives/DeleteLogsArchive.rb +++ b/examples/v2/logs-archives/DeleteLogsArchive.rb @@ -1,5 +1,8 @@ # Delete an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new api_instance.delete_logs_archive("archive_id") diff --git a/examples/v2/logs-archives/GetLogsArchive.rb b/examples/v2/logs-archives/GetLogsArchive.rb index 463095c93417..24b47fdd3a73 100644 --- a/examples/v2/logs-archives/GetLogsArchive.rb +++ b/examples/v2/logs-archives/GetLogsArchive.rb @@ -1,5 +1,8 @@ # Get an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new p api_instance.get_logs_archive("archive_id") diff --git a/examples/v2/logs-archives/GetLogsArchiveOrder.rb b/examples/v2/logs-archives/GetLogsArchiveOrder.rb index 2c0e5f43dd19..a24eabb3534e 100644 --- a/examples/v2/logs-archives/GetLogsArchiveOrder.rb +++ b/examples/v2/logs-archives/GetLogsArchiveOrder.rb @@ -1,5 +1,8 @@ # Get archive order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new p api_instance.get_logs_archive_order() diff --git a/examples/v2/logs-archives/ListArchiveReadRoles.rb b/examples/v2/logs-archives/ListArchiveReadRoles.rb index a4c6a00bce67..3be28cb40145 100644 --- a/examples/v2/logs-archives/ListArchiveReadRoles.rb +++ b/examples/v2/logs-archives/ListArchiveReadRoles.rb @@ -1,5 +1,8 @@ # List read roles for an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new p api_instance.list_archive_read_roles("archive_id") diff --git a/examples/v2/logs-archives/ListLogsArchives.rb b/examples/v2/logs-archives/ListLogsArchives.rb index e2f5fbeb6ff9..9b444dc413b4 100644 --- a/examples/v2/logs-archives/ListLogsArchives.rb +++ b/examples/v2/logs-archives/ListLogsArchives.rb @@ -1,5 +1,8 @@ # Get all archives returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new p api_instance.list_logs_archives() diff --git a/examples/v2/logs-archives/RemoveRoleFromArchive.rb b/examples/v2/logs-archives/RemoveRoleFromArchive.rb index 0adfc345507d..0a0a7a4ad92d 100644 --- a/examples/v2/logs-archives/RemoveRoleFromArchive.rb +++ b/examples/v2/logs-archives/RemoveRoleFromArchive.rb @@ -1,6 +1,9 @@ # Revoke role from an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::RelationshipToRole.new({ diff --git a/examples/v2/logs-archives/UpdateLogsArchive.rb b/examples/v2/logs-archives/UpdateLogsArchive.rb index 4ba52ec83065..dd848bfc99b7 100644 --- a/examples/v2/logs-archives/UpdateLogsArchive.rb +++ b/examples/v2/logs-archives/UpdateLogsArchive.rb @@ -1,6 +1,9 @@ # Update an archive returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new({ diff --git a/examples/v2/logs-archives/UpdateLogsArchiveOrder.rb b/examples/v2/logs-archives/UpdateLogsArchiveOrder.rb index f30aaa31af01..14c0700b9d9a 100644 --- a/examples/v2/logs-archives/UpdateLogsArchiveOrder.rb +++ b/examples/v2/logs-archives/UpdateLogsArchiveOrder.rb @@ -1,6 +1,9 @@ # Update archive order returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsArchivesAPI.new body = DatadogAPIClient::V2::LogsArchiveOrder.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb index ec71b86b927d..95b19ede5bf2 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination.rb @@ -1,6 +1,9 @@ # Create a custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb index 2c23ae90d6f9..3de9f134a52e 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1091442807.rb @@ -1,6 +1,9 @@ # Create a Custom Header HTTP custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb index f51ef11bbefa..aabc7c714045 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1288180912.rb @@ -1,6 +1,9 @@ # Create a Splunk custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_140188544.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_140188544.rb index e99b7fa20244..4aa696896efc 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_140188544.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_140188544.rb @@ -1,6 +1,9 @@ # Create a Splunk custom destination with a sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb index 894a6d0643ff..d2d18cc785a6 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_141236188.rb @@ -1,6 +1,9 @@ # Create an Elasticsearch custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1718754520.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1718754520.rb index 5d82302ab6c5..1613b4d33786 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1718754520.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1718754520.rb @@ -1,6 +1,9 @@ # Create a Splunk custom destination without a sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb index b1755f8a0083..ecac3d330e13 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_1735989579.rb @@ -1,6 +1,9 @@ # Create a Microsoft Sentinel custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb index 2ce61c925cf8..6ec6a7b9f299 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2184123765.rb @@ -1,6 +1,9 @@ # Create a Basic HTTP custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2534546779.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2534546779.rb index 7cc9e2b3873b..7bd5500feb25 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2534546779.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_2534546779.rb @@ -1,6 +1,9 @@ # Create a Splunk custom destination with a null sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_3120242932.rb b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_3120242932.rb index 19ea5d2d19c2..9bb1332db54b 100644 --- a/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_3120242932.rb +++ b/examples/v2/logs-custom-destinations/CreateLogsCustomDestination_3120242932.rb @@ -1,6 +1,9 @@ # Create a Splunk custom destination with an empty string sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({ diff --git a/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb b/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb index a823994ad35a..fde437348d89 100644 --- a/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb +++ b/examples/v2/logs-custom-destinations/DeleteLogsCustomDestination.rb @@ -1,6 +1,9 @@ # Delete a custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination" in the system diff --git a/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb b/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb index a726f7372a86..19ff00090adf 100644 --- a/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb +++ b/examples/v2/logs-custom-destinations/GetLogsCustomDestination.rb @@ -1,6 +1,9 @@ # Get a custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination" in the system diff --git a/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb b/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb index cd86220b6226..2a5760a3aad7 100644 --- a/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb +++ b/examples/v2/logs-custom-destinations/ListLogsCustomDestinations.rb @@ -1,5 +1,8 @@ # Get all custom destinations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new p api_instance.list_logs_custom_destinations() diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb index dacbc16d2b32..0bd8ad51e49f 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination.rb @@ -1,6 +1,9 @@ # Update a custom destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination" in the system diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2034509257.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2034509257.rb index c67a5652895c..ab9a4d7f642b 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2034509257.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2034509257.rb @@ -1,6 +1,9 @@ # Update a Splunk custom destination's destination preserves the null sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination_splunk_with_null_sourcetype" in the system diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_213195663.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_213195663.rb index f3083f8d39d9..156d9702b12b 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_213195663.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_213195663.rb @@ -1,6 +1,9 @@ # Update a Splunk custom destination with a sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination_splunk" in the system diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2612469098.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2612469098.rb index ab7ec0c1f543..cf1eef575a8c 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2612469098.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2612469098.rb @@ -1,6 +1,9 @@ # Update a Splunk custom destination with a null sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination_splunk_with_sourcetype" in the system diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2701272624.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2701272624.rb index fce9aea81f4b..c417be9fa271 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2701272624.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_2701272624.rb @@ -1,6 +1,9 @@ # Update a Splunk custom destination's attributes preserves the absent sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination_splunk" in the system diff --git a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_3227001838.rb b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_3227001838.rb index e55e1ebbe207..1407fd10223d 100644 --- a/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_3227001838.rb +++ b/examples/v2/logs-custom-destinations/UpdateLogsCustomDestination_3227001838.rb @@ -1,6 +1,9 @@ # Update a Splunk custom destination's destination preserves the sourcetype returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new # there is a valid "custom_destination_splunk_with_sourcetype" in the system diff --git a/examples/v2/logs-metrics/CreateLogsMetric.rb b/examples/v2/logs-metrics/CreateLogsMetric.rb index dd130666a560..2b9146f1e59e 100644 --- a/examples/v2/logs-metrics/CreateLogsMetric.rb +++ b/examples/v2/logs-metrics/CreateLogsMetric.rb @@ -1,6 +1,9 @@ # Create a log-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new body = DatadogAPIClient::V2::LogsMetricCreateRequest.new({ diff --git a/examples/v2/logs-metrics/DeleteLogsMetric.rb b/examples/v2/logs-metrics/DeleteLogsMetric.rb index f384d4cd1170..03007d7cca15 100644 --- a/examples/v2/logs-metrics/DeleteLogsMetric.rb +++ b/examples/v2/logs-metrics/DeleteLogsMetric.rb @@ -1,6 +1,9 @@ # Delete a log-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new # there is a valid "logs_metric" in the system diff --git a/examples/v2/logs-metrics/GetLogsMetric.rb b/examples/v2/logs-metrics/GetLogsMetric.rb index 829d106d648e..8d3c10920430 100644 --- a/examples/v2/logs-metrics/GetLogsMetric.rb +++ b/examples/v2/logs-metrics/GetLogsMetric.rb @@ -1,6 +1,9 @@ # Get a log-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new # there is a valid "logs_metric" in the system diff --git a/examples/v2/logs-metrics/ListLogsMetrics.rb b/examples/v2/logs-metrics/ListLogsMetrics.rb index 557939ae45a4..c187fc8be43e 100644 --- a/examples/v2/logs-metrics/ListLogsMetrics.rb +++ b/examples/v2/logs-metrics/ListLogsMetrics.rb @@ -1,5 +1,8 @@ # Get all log-based metrics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new p api_instance.list_logs_metrics() diff --git a/examples/v2/logs-metrics/UpdateLogsMetric.rb b/examples/v2/logs-metrics/UpdateLogsMetric.rb index 475f02a3ef76..5b3fa1ec974a 100644 --- a/examples/v2/logs-metrics/UpdateLogsMetric.rb +++ b/examples/v2/logs-metrics/UpdateLogsMetric.rb @@ -1,6 +1,9 @@ # Update a log-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new # there is a valid "logs_metric" in the system diff --git a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb b/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb index e6723e6d70d8..2498bf914f70 100644 --- a/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb +++ b/examples/v2/logs-metrics/UpdateLogsMetric_1901534424.rb @@ -1,6 +1,9 @@ # Update a log-based metric with include_percentiles field returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsMetricsAPI.new # there is a valid "logs_metric_percentile" in the system diff --git a/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb b/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb index fd873f8bc4ae..549c13d3547b 100644 --- a/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/AddRoleToRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.add_role_to_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb b/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb index aaeb09d88703..90d4d1679d0a 100644 --- a/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/CreateRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb b/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb index 0d0c2be194c5..21a9a67b2f05 100644 --- a/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/DeleteRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb b/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb index 94c9aad0e580..b32f8eb24c5e 100644 --- a/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/GetRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb b/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb index 229012a9f1d2..598f49b68c9e 100644 --- a/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/GetRoleRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_role_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb b/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb index 8fd35d278bfd..7cdc28c4cff3 100644 --- a/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb +++ b/examples/v2/logs-restriction-queries/ListRestrictionQueries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_restriction_queries".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb b/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb index 0f7a67337df4..d1e2523c5993 100644 --- a/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb +++ b/examples/v2/logs-restriction-queries/ListRestrictionQueryRoles.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_restriction_query_roles".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb b/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb index 4137e9ab0182..504b89ac7670 100644 --- a/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb +++ b/examples/v2/logs-restriction-queries/ListUserRestrictionQueries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_user_restriction_queries".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb b/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb index 956a5bf1b798..5eee5948b30a 100644 --- a/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/RemoveRoleFromRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.remove_role_from_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb b/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb index 39ae74837e64..23a9441f43ab 100644 --- a/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/ReplaceRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.replace_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb b/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb index 41e204920c26..a17506bc8c53 100644 --- a/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb +++ b/examples/v2/logs-restriction-queries/UpdateRestrictionQuery.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_restriction_query".to_sym] = true end api_instance = DatadogAPIClient::V2::LogsRestrictionQueriesAPI.new diff --git a/examples/v2/logs/AggregateLogs.rb b/examples/v2/logs/AggregateLogs.rb index 95e0f30ada08..af24be11fd49 100644 --- a/examples/v2/logs/AggregateLogs.rb +++ b/examples/v2/logs/AggregateLogs.rb @@ -1,6 +1,9 @@ # Aggregate events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsAggregateRequest.new({ diff --git a/examples/v2/logs/AggregateLogs_2527007002.rb b/examples/v2/logs/AggregateLogs_2527007002.rb index 1aa708348c02..b084cee8a4ea 100644 --- a/examples/v2/logs/AggregateLogs_2527007002.rb +++ b/examples/v2/logs/AggregateLogs_2527007002.rb @@ -1,6 +1,9 @@ # Aggregate compute events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsAggregateRequest.new({ diff --git a/examples/v2/logs/AggregateLogs_2955613758.rb b/examples/v2/logs/AggregateLogs_2955613758.rb index 5cfba01f1f31..6b8eed12fdc8 100644 --- a/examples/v2/logs/AggregateLogs_2955613758.rb +++ b/examples/v2/logs/AggregateLogs_2955613758.rb @@ -1,6 +1,9 @@ # Aggregate compute events with group by returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsAggregateRequest.new({ diff --git a/examples/v2/logs/ListLogs.rb b/examples/v2/logs/ListLogs.rb index 9b703f998a8f..3676b4ce1de0 100644 --- a/examples/v2/logs/ListLogs.rb +++ b/examples/v2/logs/ListLogs.rb @@ -1,6 +1,9 @@ # Search logs (POST) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsListRequest.new({ diff --git a/examples/v2/logs/ListLogsGet.rb b/examples/v2/logs/ListLogsGet.rb index 6432c26b29c5..985d27dbdd61 100644 --- a/examples/v2/logs/ListLogsGet.rb +++ b/examples/v2/logs/ListLogsGet.rb @@ -1,5 +1,8 @@ # Search logs (GET) returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new p api_instance.list_logs_get() diff --git a/examples/v2/logs/ListLogsGet_175182691.rb b/examples/v2/logs/ListLogsGet_175182691.rb index 642f83a4c41b..aa834c42e9a0 100644 --- a/examples/v2/logs/ListLogsGet_175182691.rb +++ b/examples/v2/logs/ListLogsGet_175182691.rb @@ -1,5 +1,8 @@ # Search logs (GET) returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new api_instance.list_logs_get_with_pagination() { |item| puts item } diff --git a/examples/v2/logs/ListLogsGet_2034110533.rb b/examples/v2/logs/ListLogsGet_2034110533.rb index 25f318e159da..0e6c71529462 100644 --- a/examples/v2/logs/ListLogsGet_2034110533.rb +++ b/examples/v2/logs/ListLogsGet_2034110533.rb @@ -1,6 +1,9 @@ # Get a quick list of logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new opts = { filter_query: "datadog-agent", diff --git a/examples/v2/logs/ListLogsGet_738202670.rb b/examples/v2/logs/ListLogsGet_738202670.rb index 8fc2a862aadd..44cfd94f6fdc 100644 --- a/examples/v2/logs/ListLogsGet_738202670.rb +++ b/examples/v2/logs/ListLogsGet_738202670.rb @@ -1,6 +1,9 @@ # Get a list of logs returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new opts = { page_limit: 2, diff --git a/examples/v2/logs/ListLogs_3138392594.rb b/examples/v2/logs/ListLogs_3138392594.rb index 6d2fb76e17b4..c452bdb4fd19 100644 --- a/examples/v2/logs/ListLogs_3138392594.rb +++ b/examples/v2/logs/ListLogs_3138392594.rb @@ -1,6 +1,9 @@ # Search logs returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsListRequest.new({ diff --git a/examples/v2/logs/ListLogs_3400928236.rb b/examples/v2/logs/ListLogs_3400928236.rb index df7aad3f8583..18f05e2ac055 100644 --- a/examples/v2/logs/ListLogs_3400928236.rb +++ b/examples/v2/logs/ListLogs_3400928236.rb @@ -1,6 +1,9 @@ # Search logs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsListRequest.new({ diff --git a/examples/v2/logs/ListLogs_534975433.rb b/examples/v2/logs/ListLogs_534975433.rb index b37b2dec7893..a812ab7c6a35 100644 --- a/examples/v2/logs/ListLogs_534975433.rb +++ b/examples/v2/logs/ListLogs_534975433.rb @@ -1,6 +1,9 @@ # Search logs (POST) returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::LogsAPI.new body = DatadogAPIClient::V2::LogsListRequest.new({ diff --git a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb b/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb index eded094bc6ab..e082bff8854e 100644 --- a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb +++ b/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb @@ -1,6 +1,9 @@ # Configure tags for multiple metrics returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "user" in the system diff --git a/examples/v2/metrics/CreateHistoricalMetricsConfiguration.rb b/examples/v2/metrics/CreateHistoricalMetricsConfiguration.rb index 6e3d5c6d8cb7..eb5e0641da52 100644 --- a/examples/v2/metrics/CreateHistoricalMetricsConfiguration.rb +++ b/examples/v2/metrics/CreateHistoricalMetricsConfiguration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_historical_metrics_configuration".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/CreateTagConfiguration.rb b/examples/v2/metrics/CreateTagConfiguration.rb index 5a7deb8de0e7..a4e8649f6246 100644 --- a/examples/v2/metrics/CreateTagConfiguration.rb +++ b/examples/v2/metrics/CreateTagConfiguration.rb @@ -1,6 +1,9 @@ # Create a tag configuration returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::MetricTagConfigurationCreateRequest.new({ diff --git a/examples/v2/metrics/CreateTagIndexingRule.rb b/examples/v2/metrics/CreateTagIndexingRule.rb index 3730ac650917..710e7f168d11 100644 --- a/examples/v2/metrics/CreateTagIndexingRule.rb +++ b/examples/v2/metrics/CreateTagIndexingRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb index 43729d2a43bb..b4d59e09f432 100644 --- a/examples/v2/metrics/CreateTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/CreateTagIndexingRuleExemption.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_tag_indexing_rule_exemption".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/CreateTagIndexingRule_2435129406.rb b/examples/v2/metrics/CreateTagIndexingRule_2435129406.rb index b8a6b06fff88..a7d953730af4 100644 --- a/examples/v2/metrics/CreateTagIndexingRule_2435129406.rb +++ b/examples/v2/metrics/CreateTagIndexingRule_2435129406.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.rb b/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.rb index 3c8841a0eb21..927ecc0d4774 100644 --- a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.rb +++ b/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.rb @@ -1,6 +1,9 @@ # Delete tags for multiple metrics returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::MetricBulkTagConfigDeleteRequest.new({ diff --git a/examples/v2/metrics/DeleteHistoricalMetricsConfiguration.rb b/examples/v2/metrics/DeleteHistoricalMetricsConfiguration.rb index ab4271d9a5bf..7fb5b7f11154 100644 --- a/examples/v2/metrics/DeleteHistoricalMetricsConfiguration.rb +++ b/examples/v2/metrics/DeleteHistoricalMetricsConfiguration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_historical_metrics_configuration".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/DeleteTagConfiguration.rb b/examples/v2/metrics/DeleteTagConfiguration.rb index 508c8457f3c3..349f7a1db84d 100644 --- a/examples/v2/metrics/DeleteTagConfiguration.rb +++ b/examples/v2/metrics/DeleteTagConfiguration.rb @@ -1,5 +1,8 @@ # Delete a tag configuration returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new api_instance.delete_tag_configuration("ExampleMetric") diff --git a/examples/v2/metrics/DeleteTagIndexingRule.rb b/examples/v2/metrics/DeleteTagIndexingRule.rb index bf9c50c75e6a..2b882484a579 100644 --- a/examples/v2/metrics/DeleteTagIndexingRule.rb +++ b/examples/v2/metrics/DeleteTagIndexingRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb index b5fdaeb480a9..79c59f287d42 100644 --- a/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/DeleteTagIndexingRuleExemption.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_tag_indexing_rule_exemption".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/EstimateMetricsOutputSeries.rb b/examples/v2/metrics/EstimateMetricsOutputSeries.rb index e3007ec43063..dacfc5345480 100644 --- a/examples/v2/metrics/EstimateMetricsOutputSeries.rb +++ b/examples/v2/metrics/EstimateMetricsOutputSeries.rb @@ -1,6 +1,9 @@ # Tag Configuration Cardinality Estimator returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new opts = { filter_groups: "app,host", diff --git a/examples/v2/metrics/GetHistoricalMetricsConfiguration.rb b/examples/v2/metrics/GetHistoricalMetricsConfiguration.rb index 125d67c8b3a2..67da2ec1be6a 100644 --- a/examples/v2/metrics/GetHistoricalMetricsConfiguration.rb +++ b/examples/v2/metrics/GetHistoricalMetricsConfiguration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_historical_metrics_configuration".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/GetMetricTagCardinalityDetails.rb b/examples/v2/metrics/GetMetricTagCardinalityDetails.rb index 465eba658033..b81105ea9212 100644 --- a/examples/v2/metrics/GetMetricTagCardinalityDetails.rb +++ b/examples/v2/metrics/GetMetricTagCardinalityDetails.rb @@ -1,5 +1,8 @@ # Get tag key cardinality details returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.get_metric_tag_cardinality_details("metric_name") diff --git a/examples/v2/metrics/GetTagIndexingRule.rb b/examples/v2/metrics/GetTagIndexingRule.rb index afd1c564dde2..e0968190b10b 100644 --- a/examples/v2/metrics/GetTagIndexingRule.rb +++ b/examples/v2/metrics/GetTagIndexingRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/GetTagIndexingRuleExemption.rb b/examples/v2/metrics/GetTagIndexingRuleExemption.rb index ac287c25eae0..7e5af0a39042 100644 --- a/examples/v2/metrics/GetTagIndexingRuleExemption.rb +++ b/examples/v2/metrics/GetTagIndexingRuleExemption.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_tag_indexing_rule_exemption".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/ListActiveMetricConfigurations.rb b/examples/v2/metrics/ListActiveMetricConfigurations.rb index dee02130f192..c51c29a44a84 100644 --- a/examples/v2/metrics/ListActiveMetricConfigurations.rb +++ b/examples/v2/metrics/ListActiveMetricConfigurations.rb @@ -1,5 +1,8 @@ # List active tags and aggregations returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_active_metric_configurations("static_test_metric_donotdelete") diff --git a/examples/v2/metrics/ListMetricAssets.rb b/examples/v2/metrics/ListMetricAssets.rb index e0b5014e7a96..d7de15f2bed4 100644 --- a/examples/v2/metrics/ListMetricAssets.rb +++ b/examples/v2/metrics/ListMetricAssets.rb @@ -1,5 +1,8 @@ # Related Assets to a Metric returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_metric_assets("system.cpu.user") diff --git a/examples/v2/metrics/ListTagConfigurationByName.rb b/examples/v2/metrics/ListTagConfigurationByName.rb index 638d5ba5a8a2..573f2578767a 100644 --- a/examples/v2/metrics/ListTagConfigurationByName.rb +++ b/examples/v2/metrics/ListTagConfigurationByName.rb @@ -1,6 +1,9 @@ # List tag configuration by name returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "metric_tag_configuration" in the system diff --git a/examples/v2/metrics/ListTagConfigurations.rb b/examples/v2/metrics/ListTagConfigurations.rb index e6ff8dc3946d..cecee9ab06e1 100644 --- a/examples/v2/metrics/ListTagConfigurations.rb +++ b/examples/v2/metrics/ListTagConfigurations.rb @@ -1,5 +1,8 @@ # Get a list of metrics returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_tag_configurations() diff --git a/examples/v2/metrics/ListTagConfigurations_265033704.rb b/examples/v2/metrics/ListTagConfigurations_265033704.rb index 18b62875e2b8..9bf931f3c3b7 100644 --- a/examples/v2/metrics/ListTagConfigurations_265033704.rb +++ b/examples/v2/metrics/ListTagConfigurations_265033704.rb @@ -1,6 +1,9 @@ # Get a list of metrics with a tag filter returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new opts = { filter_tags: "ExampleMetric", diff --git a/examples/v2/metrics/ListTagConfigurations_2739018321.rb b/examples/v2/metrics/ListTagConfigurations_2739018321.rb index 679db001b6aa..14fb9ff0d8dd 100644 --- a/examples/v2/metrics/ListTagConfigurations_2739018321.rb +++ b/examples/v2/metrics/ListTagConfigurations_2739018321.rb @@ -1,6 +1,9 @@ # Get a list of metrics with configured filter returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new opts = { filter_configured: true, diff --git a/examples/v2/metrics/ListTagConfigurations_3969783727.rb b/examples/v2/metrics/ListTagConfigurations_3969783727.rb index ba7971b60551..775a4d540ecf 100644 --- a/examples/v2/metrics/ListTagConfigurations_3969783727.rb +++ b/examples/v2/metrics/ListTagConfigurations_3969783727.rb @@ -1,6 +1,9 @@ # Get a list of metrics returns "Success" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new opts = { page_size: 2, diff --git a/examples/v2/metrics/ListTagIndexingRules.rb b/examples/v2/metrics/ListTagIndexingRules.rb index a123f4185fea..8b38ef7ffb31 100644 --- a/examples/v2/metrics/ListTagIndexingRules.rb +++ b/examples/v2/metrics/ListTagIndexingRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_tag_indexing_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb index 975b570aae31..61fbea7468f4 100644 --- a/examples/v2/metrics/ListTagIndexingRulesForMetric.rb +++ b/examples/v2/metrics/ListTagIndexingRulesForMetric.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_tag_indexing_rules_for_metric".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/ListTagsByMetricName.rb b/examples/v2/metrics/ListTagsByMetricName.rb index 940aad196fdc..7a9d88324e39 100644 --- a/examples/v2/metrics/ListTagsByMetricName.rb +++ b/examples/v2/metrics/ListTagsByMetricName.rb @@ -1,6 +1,9 @@ # List tags by metric name returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "metric_tag_configuration" in the system diff --git a/examples/v2/metrics/ListVolumesByMetricName.rb b/examples/v2/metrics/ListVolumesByMetricName.rb index cb027ff95c39..9a52ab27b649 100644 --- a/examples/v2/metrics/ListVolumesByMetricName.rb +++ b/examples/v2/metrics/ListVolumesByMetricName.rb @@ -1,5 +1,8 @@ # List distinct metric volumes by metric name returns "Success" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new p api_instance.list_volumes_by_metric_name("static_test_metric_donotdelete") diff --git a/examples/v2/metrics/QueryScalarData.rb b/examples/v2/metrics/QueryScalarData.rb index c5290030e020..f5617934aadc 100644 --- a/examples/v2/metrics/QueryScalarData.rb +++ b/examples/v2/metrics/QueryScalarData.rb @@ -1,6 +1,9 @@ # Query scalar data across multiple products returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_1479548882.rb b/examples/v2/metrics/QueryScalarData_1479548882.rb index ad75f61dd445..c7b21e5b6f7a 100644 --- a/examples/v2/metrics/QueryScalarData_1479548882.rb +++ b/examples/v2/metrics/QueryScalarData_1479548882.rb @@ -1,6 +1,9 @@ # Scalar cross product query with apm_resource_stats data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_1904811219.rb b/examples/v2/metrics/QueryScalarData_1904811219.rb index a41ec8acac18..0c4ce597b09a 100644 --- a/examples/v2/metrics/QueryScalarData_1904811219.rb +++ b/examples/v2/metrics/QueryScalarData_1904811219.rb @@ -1,6 +1,9 @@ # Scalar cross product query with apm_metrics data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_2086017331.rb b/examples/v2/metrics/QueryScalarData_2086017331.rb index 57b06de34f05..941c892122e6 100644 --- a/examples/v2/metrics/QueryScalarData_2086017331.rb +++ b/examples/v2/metrics/QueryScalarData_2086017331.rb @@ -1,6 +1,9 @@ # Scalar cross product query with RUM data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_2298288525.rb b/examples/v2/metrics/QueryScalarData_2298288525.rb index ad17f10d82df..ede3576dd4cc 100644 --- a/examples/v2/metrics/QueryScalarData_2298288525.rb +++ b/examples/v2/metrics/QueryScalarData_2298288525.rb @@ -1,6 +1,9 @@ # Scalar cross product query with slo data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_2398494003.rb b/examples/v2/metrics/QueryScalarData_2398494003.rb index 8e968f78f312..0006a211494b 100644 --- a/examples/v2/metrics/QueryScalarData_2398494003.rb +++ b/examples/v2/metrics/QueryScalarData_2398494003.rb @@ -1,6 +1,9 @@ # Scalar cross product query with ci_pipelines data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_2533499017.rb b/examples/v2/metrics/QueryScalarData_2533499017.rb index fdd682c140ba..c85e0e7e4e9b 100644 --- a/examples/v2/metrics/QueryScalarData_2533499017.rb +++ b/examples/v2/metrics/QueryScalarData_2533499017.rb @@ -1,6 +1,9 @@ # Scalar cross product query with apm_dependency_stats data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_2757564916.rb b/examples/v2/metrics/QueryScalarData_2757564916.rb index 9da0f3fd538c..8f642f17aa6c 100644 --- a/examples/v2/metrics/QueryScalarData_2757564916.rb +++ b/examples/v2/metrics/QueryScalarData_2757564916.rb @@ -1,6 +1,9 @@ # Scalar cross product query with logs data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_3112571352.rb b/examples/v2/metrics/QueryScalarData_3112571352.rb index 28441b8ed20e..1f202c7f57a1 100644 --- a/examples/v2/metrics/QueryScalarData_3112571352.rb +++ b/examples/v2/metrics/QueryScalarData_3112571352.rb @@ -1,6 +1,9 @@ # Scalar cross product query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_3210877526.rb b/examples/v2/metrics/QueryScalarData_3210877526.rb index af8720e03c1a..be9f02f68255 100644 --- a/examples/v2/metrics/QueryScalarData_3210877526.rb +++ b/examples/v2/metrics/QueryScalarData_3210877526.rb @@ -1,6 +1,9 @@ # Scalar cross product query with audit data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_3246660196.rb b/examples/v2/metrics/QueryScalarData_3246660196.rb index d24f00906ca1..75edf473751b 100644 --- a/examples/v2/metrics/QueryScalarData_3246660196.rb +++ b/examples/v2/metrics/QueryScalarData_3246660196.rb @@ -1,6 +1,9 @@ # Scalar cross product query with spans data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_3470073355.rb b/examples/v2/metrics/QueryScalarData_3470073355.rb index cfeeeda45f20..df6e07abdc5d 100644 --- a/examples/v2/metrics/QueryScalarData_3470073355.rb +++ b/examples/v2/metrics/QueryScalarData_3470073355.rb @@ -1,6 +1,9 @@ # Scalar cross product query with on_call_events data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_3740015316.rb b/examples/v2/metrics/QueryScalarData_3740015316.rb index 674cf42a4916..785e47b7bd00 100644 --- a/examples/v2/metrics/QueryScalarData_3740015316.rb +++ b/examples/v2/metrics/QueryScalarData_3740015316.rb @@ -1,6 +1,9 @@ # Scalar cross product query with events data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_394862343.rb b/examples/v2/metrics/QueryScalarData_394862343.rb index e12c89bd0ed8..cfac86759f52 100644 --- a/examples/v2/metrics/QueryScalarData_394862343.rb +++ b/examples/v2/metrics/QueryScalarData_394862343.rb @@ -1,6 +1,9 @@ # Scalar cross product query with security_signals data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_397220765.rb b/examples/v2/metrics/QueryScalarData_397220765.rb index 212cdc3e5f1e..aa235539a57f 100644 --- a/examples/v2/metrics/QueryScalarData_397220765.rb +++ b/examples/v2/metrics/QueryScalarData_397220765.rb @@ -1,6 +1,9 @@ # Scalar cross product query with ci_tests data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_420944803.rb b/examples/v2/metrics/QueryScalarData_420944803.rb index 1bc35be1c713..c6e4410cca76 100644 --- a/examples/v2/metrics/QueryScalarData_420944803.rb +++ b/examples/v2/metrics/QueryScalarData_420944803.rb @@ -1,6 +1,9 @@ # Scalar cross product query with profiles data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_4230617918.rb b/examples/v2/metrics/QueryScalarData_4230617918.rb index 9a3a1544120b..0e6eaf985f74 100644 --- a/examples/v2/metrics/QueryScalarData_4230617918.rb +++ b/examples/v2/metrics/QueryScalarData_4230617918.rb @@ -1,6 +1,9 @@ # Scalar cross product query with process data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_4257291081.rb b/examples/v2/metrics/QueryScalarData_4257291081.rb index a04ed8033799..416c4a56967a 100644 --- a/examples/v2/metrics/QueryScalarData_4257291081.rb +++ b/examples/v2/metrics/QueryScalarData_4257291081.rb @@ -1,6 +1,9 @@ # Scalar cross product query with network data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_779493885.rb b/examples/v2/metrics/QueryScalarData_779493885.rb index f4b555f1de4b..f6545fecbd6d 100644 --- a/examples/v2/metrics/QueryScalarData_779493885.rb +++ b/examples/v2/metrics/QueryScalarData_779493885.rb @@ -1,6 +1,9 @@ # Scalar cross product query with apm_metrics data source and span_kind returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_891952130.rb b/examples/v2/metrics/QueryScalarData_891952130.rb index 30aae1eb90c0..7c966b97760d 100644 --- a/examples/v2/metrics/QueryScalarData_891952130.rb +++ b/examples/v2/metrics/QueryScalarData_891952130.rb @@ -1,6 +1,9 @@ # Scalar cross product query with container data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryScalarData_922754919.rb b/examples/v2/metrics/QueryScalarData_922754919.rb index 306896dfa70b..706787b138db 100644 --- a/examples/v2/metrics/QueryScalarData_922754919.rb +++ b/examples/v2/metrics/QueryScalarData_922754919.rb @@ -1,6 +1,9 @@ # Scalar cross product query with product_analytics data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::ScalarFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData.rb b/examples/v2/metrics/QueryTimeseriesData.rb index c30659699b90..ba898e470e99 100644 --- a/examples/v2/metrics/QueryTimeseriesData.rb +++ b/examples/v2/metrics/QueryTimeseriesData.rb @@ -1,6 +1,9 @@ # Query timeseries data across multiple products returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_1080761370.rb b/examples/v2/metrics/QueryTimeseriesData_1080761370.rb index 97f2eba170d4..fd7b7a28676a 100644 --- a/examples/v2/metrics/QueryTimeseriesData_1080761370.rb +++ b/examples/v2/metrics/QueryTimeseriesData_1080761370.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with audit data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_108927825.rb b/examples/v2/metrics/QueryTimeseriesData_108927825.rb index fc3e070232f4..4f4f81e0ba8a 100644 --- a/examples/v2/metrics/QueryTimeseriesData_108927825.rb +++ b/examples/v2/metrics/QueryTimeseriesData_108927825.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with slo data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_1116544040.rb b/examples/v2/metrics/QueryTimeseriesData_1116544040.rb index 4291159eb5b9..acbb9195bcef 100644 --- a/examples/v2/metrics/QueryTimeseriesData_1116544040.rb +++ b/examples/v2/metrics/QueryTimeseriesData_1116544040.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with spans data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_1606557647.rb b/examples/v2/metrics/QueryTimeseriesData_1606557647.rb index e8a9944a1ca1..5337c9588ee8 100644 --- a/examples/v2/metrics/QueryTimeseriesData_1606557647.rb +++ b/examples/v2/metrics/QueryTimeseriesData_1606557647.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with on_call_events data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_1639521432.rb b/examples/v2/metrics/QueryTimeseriesData_1639521432.rb index f4eb5e89430d..e315a45d6990 100644 --- a/examples/v2/metrics/QueryTimeseriesData_1639521432.rb +++ b/examples/v2/metrics/QueryTimeseriesData_1639521432.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with events data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_2159746306.rb b/examples/v2/metrics/QueryTimeseriesData_2159746306.rb index 08ebb10eaa0e..5bed43ac5dae 100644 --- a/examples/v2/metrics/QueryTimeseriesData_2159746306.rb +++ b/examples/v2/metrics/QueryTimeseriesData_2159746306.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with process data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_2186419469.rb b/examples/v2/metrics/QueryTimeseriesData_2186419469.rb index 9387f0717ba0..aa89c770592e 100644 --- a/examples/v2/metrics/QueryTimeseriesData_2186419469.rb +++ b/examples/v2/metrics/QueryTimeseriesData_2186419469.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with network data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_2649955681.rb b/examples/v2/metrics/QueryTimeseriesData_2649955681.rb index 9f26a8ff15ca..4bc65f44cf9c 100644 --- a/examples/v2/metrics/QueryTimeseriesData_2649955681.rb +++ b/examples/v2/metrics/QueryTimeseriesData_2649955681.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with ci_tests data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_2673679719.rb b/examples/v2/metrics/QueryTimeseriesData_2673679719.rb index 667fa96c4806..090df8197b99 100644 --- a/examples/v2/metrics/QueryTimeseriesData_2673679719.rb +++ b/examples/v2/metrics/QueryTimeseriesData_2673679719.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with profiles data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_2884575435.rb b/examples/v2/metrics/QueryTimeseriesData_2884575435.rb index dcb2b9dff3d5..f81c41bba479 100644 --- a/examples/v2/metrics/QueryTimeseriesData_2884575435.rb +++ b/examples/v2/metrics/QueryTimeseriesData_2884575435.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with security_signals data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_301142940.rb b/examples/v2/metrics/QueryTimeseriesData_301142940.rb index ebaeecd779cf..c60a15c23721 100644 --- a/examples/v2/metrics/QueryTimeseriesData_301142940.rb +++ b/examples/v2/metrics/QueryTimeseriesData_301142940.rb @@ -1,6 +1,9 @@ # Timeseries cross product query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_3174309318.rb b/examples/v2/metrics/QueryTimeseriesData_3174309318.rb index f6bfd4897d8d..5418051cbbb6 100644 --- a/examples/v2/metrics/QueryTimeseriesData_3174309318.rb +++ b/examples/v2/metrics/QueryTimeseriesData_3174309318.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with container data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_3442090283.rb b/examples/v2/metrics/QueryTimeseriesData_3442090283.rb index a5e2009d0aa9..fe320af452bf 100644 --- a/examples/v2/metrics/QueryTimeseriesData_3442090283.rb +++ b/examples/v2/metrics/QueryTimeseriesData_3442090283.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with product_analytics data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_3535807425.rb b/examples/v2/metrics/QueryTimeseriesData_3535807425.rb index 5d9a671444b2..68d202225cbd 100644 --- a/examples/v2/metrics/QueryTimeseriesData_3535807425.rb +++ b/examples/v2/metrics/QueryTimeseriesData_3535807425.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with apm_metrics data source and span_kind returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_4028506518.rb b/examples/v2/metrics/QueryTimeseriesData_4028506518.rb index 4778273e3b47..1146fe0f6ebf 100644 --- a/examples/v2/metrics/QueryTimeseriesData_4028506518.rb +++ b/examples/v2/metrics/QueryTimeseriesData_4028506518.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with apm_resource_stats data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_4190640887.rb b/examples/v2/metrics/QueryTimeseriesData_4190640887.rb index 68ab5a4e9a2e..c0bd4e718ca5 100644 --- a/examples/v2/metrics/QueryTimeseriesData_4190640887.rb +++ b/examples/v2/metrics/QueryTimeseriesData_4190640887.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with RUM data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_4246412951.rb b/examples/v2/metrics/QueryTimeseriesData_4246412951.rb index 6ebd045780a1..2cb9e2ada5a4 100644 --- a/examples/v2/metrics/QueryTimeseriesData_4246412951.rb +++ b/examples/v2/metrics/QueryTimeseriesData_4246412951.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with apm_metrics data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_475733751.rb b/examples/v2/metrics/QueryTimeseriesData_475733751.rb index b8f394b8caec..6a050b3dae95 100644 --- a/examples/v2/metrics/QueryTimeseriesData_475733751.rb +++ b/examples/v2/metrics/QueryTimeseriesData_475733751.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with ci_pipelines data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_597826488.rb b/examples/v2/metrics/QueryTimeseriesData_597826488.rb index 3fec94e2ccb3..99cdedf45dc5 100644 --- a/examples/v2/metrics/QueryTimeseriesData_597826488.rb +++ b/examples/v2/metrics/QueryTimeseriesData_597826488.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with logs data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/QueryTimeseriesData_847716941.rb b/examples/v2/metrics/QueryTimeseriesData_847716941.rb index 0da1ab729885..2f8c4353d33c 100644 --- a/examples/v2/metrics/QueryTimeseriesData_847716941.rb +++ b/examples/v2/metrics/QueryTimeseriesData_847716941.rb @@ -1,6 +1,9 @@ # Timeseries cross product query with apm_dependency_stats data source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new body = DatadogAPIClient::V2::TimeseriesFormulaQueryRequest.new({ diff --git a/examples/v2/metrics/ReorderTagIndexingRules.rb b/examples/v2/metrics/ReorderTagIndexingRules.rb index 547c01f78c95..03868665ff3e 100644 --- a/examples/v2/metrics/ReorderTagIndexingRules.rb +++ b/examples/v2/metrics/ReorderTagIndexingRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_tag_indexing_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/UpdateTagConfiguration.rb b/examples/v2/metrics/UpdateTagConfiguration.rb index 00579df4df8b..f99640b2543b 100644 --- a/examples/v2/metrics/UpdateTagConfiguration.rb +++ b/examples/v2/metrics/UpdateTagConfiguration.rb @@ -1,6 +1,9 @@ # Update a tag configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MetricsAPI.new # there is a valid "metric_tag_configuration" in the system diff --git a/examples/v2/metrics/UpdateTagIndexingRule.rb b/examples/v2/metrics/UpdateTagIndexingRule.rb index 1a09c33899cb..07e89b17fdfd 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule.rb +++ b/examples/v2/metrics/UpdateTagIndexingRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.rb b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.rb index a3d43b57f152..4a257b31ac7f 100644 --- a/examples/v2/metrics/UpdateTagIndexingRule_4127399471.rb +++ b/examples/v2/metrics/UpdateTagIndexingRule_4127399471.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_tag_indexing_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::MetricsAPI.new diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb index 9b173de97464..e8f977fcc6da 100644 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb +++ b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle.rb @@ -1,6 +1,9 @@ # Create tenant-based handle returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsCreateTenantBasedHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb index 515e98d1bc45..8a52f710e863 100644 --- a/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb +++ b/examples/v2/microsoft-teams-integration/CreateTenantBasedHandle_1540689753.rb @@ -1,6 +1,9 @@ # Create api handle returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsCreateTenantBasedHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb index 63d9887d0be7..c73dd56e360d 100644 --- a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb +++ b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle.rb @@ -1,6 +1,9 @@ # Create Workflows webhook handle returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb index 498c9142b5c1..b7a612437cae 100644 --- a/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb +++ b/examples/v2/microsoft-teams-integration/CreateWorkflowsWebhookHandle_1716851881.rb @@ -1,6 +1,9 @@ # Create workflow webhook handle returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsCreateWorkflowsWebhookHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/DeleteMSTeamsUserBinding.rb b/examples/v2/microsoft-teams-integration/DeleteMSTeamsUserBinding.rb index 4ce0af15516a..66619a352112 100644 --- a/examples/v2/microsoft-teams-integration/DeleteMSTeamsUserBinding.rb +++ b/examples/v2/microsoft-teams-integration/DeleteMSTeamsUserBinding.rb @@ -1,5 +1,8 @@ # Delete user binding returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new api_instance.delete_ms_teams_user_binding("tenant_id") diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb index d4af1f6c1be2..99161113e260 100644 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb +++ b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle.rb @@ -1,5 +1,8 @@ # Delete tenant-based handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new api_instance.delete_tenant_based_handle("handle_id") diff --git a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb index 48400c0a2798..745d7d1c31f2 100644 --- a/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb +++ b/examples/v2/microsoft-teams-integration/DeleteTenantBasedHandle_377884154.rb @@ -1,6 +1,9 @@ # Delete api handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "tenant_based_handle" in the system diff --git a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb index 27e4432185a5..078ebc3b2c68 100644 --- a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb +++ b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle.rb @@ -1,5 +1,8 @@ # Delete Workflows webhook handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new api_instance.delete_workflows_webhook_handle("handle_id") diff --git a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb index 6851919010d9..7250ee0b5b88 100644 --- a/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb +++ b/examples/v2/microsoft-teams-integration/DeleteWorkflowsWebhookHandle_107549514.rb @@ -1,6 +1,9 @@ # Delete workflow webhook handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "workflows_webhook_handle" in the system diff --git a/examples/v2/microsoft-teams-integration/GetChannelByName.rb b/examples/v2/microsoft-teams-integration/GetChannelByName.rb index 6c71317f512d..db1e37bd7821 100644 --- a/examples/v2/microsoft-teams-integration/GetChannelByName.rb +++ b/examples/v2/microsoft-teams-integration/GetChannelByName.rb @@ -1,5 +1,8 @@ # Get channel information by name returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.get_channel_by_name("tenant_name", "team_name", "channel_name") diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb index 417bbc413233..cfc9037d2db7 100644 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb +++ b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle.rb @@ -1,5 +1,8 @@ # Get tenant-based handle information returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.get_tenant_based_handle("handle_id") diff --git a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb index b01f5ad0703d..c2f504ac585b 100644 --- a/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb +++ b/examples/v2/microsoft-teams-integration/GetTenantBasedHandle_2883785101.rb @@ -1,6 +1,9 @@ # Get api handle information returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "tenant_based_handle" in the system diff --git a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb index 2b8fc79e7f6f..8426f3729b3a 100644 --- a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb +++ b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle.rb @@ -1,5 +1,8 @@ # Get Workflows webhook handle information returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.get_workflows_webhook_handle("handle_id") diff --git a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb index bd358dc66043..ac68e6bd23c0 100644 --- a/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb +++ b/examples/v2/microsoft-teams-integration/GetWorkflowsWebhookHandle_3421443805.rb @@ -1,6 +1,9 @@ # Get workflow webhook handle information returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "workflows_webhook_handle" in the system diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb index ff7e95664300..5be749afc215 100644 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb +++ b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles.rb @@ -1,5 +1,8 @@ # Get all tenant-based handles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.list_tenant_based_handles() diff --git a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb index 96fecd2c71cf..fa57a87a1435 100644 --- a/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb +++ b/examples/v2/microsoft-teams-integration/ListTenantBasedHandles_769592979.rb @@ -1,5 +1,8 @@ # Get all api handles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.list_tenant_based_handles() diff --git a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb index ca5c90608998..68b8e18dc620 100644 --- a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb +++ b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles.rb @@ -1,5 +1,8 @@ # Get all Workflows webhook handles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.list_workflows_webhook_handles() diff --git a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb index 8a19c5e248ab..8cf44fea3aec 100644 --- a/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb +++ b/examples/v2/microsoft-teams-integration/ListWorkflowsWebhookHandles_620762083.rb @@ -1,5 +1,8 @@ # Get all workflow webhook handles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new p api_instance.list_workflows_webhook_handles() diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb index 0373012667b3..d163ab6094cc 100644 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb +++ b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle.rb @@ -1,6 +1,9 @@ # Update tenant-based handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsUpdateTenantBasedHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb index 3f4e8c0b4889..a657379cdc32 100644 --- a/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb +++ b/examples/v2/microsoft-teams-integration/UpdateTenantBasedHandle_419892746.rb @@ -1,6 +1,9 @@ # Update api handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "tenant_based_handle" in the system diff --git a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb index 397160aabe36..0f2eb069cb2b 100644 --- a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb +++ b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle.rb @@ -1,6 +1,9 @@ # Update Workflows webhook handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new body = DatadogAPIClient::V2::MicrosoftTeamsUpdateWorkflowsWebhookHandleRequest.new({ diff --git a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb index 15d38301d47b..a7000146ed3a 100644 --- a/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb +++ b/examples/v2/microsoft-teams-integration/UpdateWorkflowsWebhookHandle_163189594.rb @@ -1,6 +1,9 @@ # Update workflow webhook handle returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MicrosoftTeamsIntegrationAPI.new # there is a valid "workflows_webhook_handle" in the system diff --git a/examples/v2/model-lab-api/DeleteModelLabRun.rb b/examples/v2/model-lab-api/DeleteModelLabRun.rb index b46dce34aae8..d85d93b5c97c 100644 --- a/examples/v2/model-lab-api/DeleteModelLabRun.rb +++ b/examples/v2/model-lab-api/DeleteModelLabRun.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_model_lab_run".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/GetModelLabArtifactContent.rb b/examples/v2/model-lab-api/GetModelLabArtifactContent.rb index a6109d38004f..ddf68810e9d9 100644 --- a/examples/v2/model-lab-api/GetModelLabArtifactContent.rb +++ b/examples/v2/model-lab-api/GetModelLabArtifactContent.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_model_lab_artifact_content".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/GetModelLabArtifactContent_2858422658.rb b/examples/v2/model-lab-api/GetModelLabArtifactContent_2858422658.rb index bc38a95f362c..8bd94b22b827 100644 --- a/examples/v2/model-lab-api/GetModelLabArtifactContent_2858422658.rb +++ b/examples/v2/model-lab-api/GetModelLabArtifactContent_2858422658.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_model_lab_artifact_content".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/GetModelLabProject.rb b/examples/v2/model-lab-api/GetModelLabProject.rb index 2d9f90ac7ddb..0550783ce815 100644 --- a/examples/v2/model-lab-api/GetModelLabProject.rb +++ b/examples/v2/model-lab-api/GetModelLabProject.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_model_lab_project".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/GetModelLabRun.rb b/examples/v2/model-lab-api/GetModelLabRun.rb index 0ece59cba39d..03922770a882 100644 --- a/examples/v2/model-lab-api/GetModelLabRun.rb +++ b/examples/v2/model-lab-api/GetModelLabRun.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_model_lab_run".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabProjectArtifacts.rb b/examples/v2/model-lab-api/ListModelLabProjectArtifacts.rb index 0d916011c4a2..1cfd9b0e0c9d 100644 --- a/examples/v2/model-lab-api/ListModelLabProjectArtifacts.rb +++ b/examples/v2/model-lab-api/ListModelLabProjectArtifacts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_project_artifacts".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabProjectFacetKeys.rb b/examples/v2/model-lab-api/ListModelLabProjectFacetKeys.rb index a38058d30a16..e5a38ea34f7b 100644 --- a/examples/v2/model-lab-api/ListModelLabProjectFacetKeys.rb +++ b/examples/v2/model-lab-api/ListModelLabProjectFacetKeys.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_project_facet_keys".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabProjectFacetValues.rb b/examples/v2/model-lab-api/ListModelLabProjectFacetValues.rb index 6de19fcf011e..68368f27f5d3 100644 --- a/examples/v2/model-lab-api/ListModelLabProjectFacetValues.rb +++ b/examples/v2/model-lab-api/ListModelLabProjectFacetValues.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_project_facet_values".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabProjects.rb b/examples/v2/model-lab-api/ListModelLabProjects.rb index f3e4b6d1f7a3..8f6e283dc8a4 100644 --- a/examples/v2/model-lab-api/ListModelLabProjects.rb +++ b/examples/v2/model-lab-api/ListModelLabProjects.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_projects".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabRunArtifacts.rb b/examples/v2/model-lab-api/ListModelLabRunArtifacts.rb index 904867b30c08..cfc87b1da5c1 100644 --- a/examples/v2/model-lab-api/ListModelLabRunArtifacts.rb +++ b/examples/v2/model-lab-api/ListModelLabRunArtifacts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_run_artifacts".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabRunFacetKeys.rb b/examples/v2/model-lab-api/ListModelLabRunFacetKeys.rb index 61e3bfba5c92..20bce3c91d22 100644 --- a/examples/v2/model-lab-api/ListModelLabRunFacetKeys.rb +++ b/examples/v2/model-lab-api/ListModelLabRunFacetKeys.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_run_facet_keys".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabRunFacetValues.rb b/examples/v2/model-lab-api/ListModelLabRunFacetValues.rb index cdac6953c120..fe0c93981ebf 100644 --- a/examples/v2/model-lab-api/ListModelLabRunFacetValues.rb +++ b/examples/v2/model-lab-api/ListModelLabRunFacetValues.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_run_facet_values".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/ListModelLabRuns.rb b/examples/v2/model-lab-api/ListModelLabRuns.rb index e56640e16b5a..8b3e3dd4d6aa 100644 --- a/examples/v2/model-lab-api/ListModelLabRuns.rb +++ b/examples/v2/model-lab-api/ListModelLabRuns.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_model_lab_runs".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/PinModelLabRun.rb b/examples/v2/model-lab-api/PinModelLabRun.rb index 14e179faea90..b843b70ef974 100644 --- a/examples/v2/model-lab-api/PinModelLabRun.rb +++ b/examples/v2/model-lab-api/PinModelLabRun.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.pin_model_lab_run".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/StarModelLabProject.rb b/examples/v2/model-lab-api/StarModelLabProject.rb index d244910b97b2..9fc645de683b 100644 --- a/examples/v2/model-lab-api/StarModelLabProject.rb +++ b/examples/v2/model-lab-api/StarModelLabProject.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.star_model_lab_project".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/UnpinModelLabRun.rb b/examples/v2/model-lab-api/UnpinModelLabRun.rb index a7c840746525..a166c114cf92 100644 --- a/examples/v2/model-lab-api/UnpinModelLabRun.rb +++ b/examples/v2/model-lab-api/UnpinModelLabRun.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.unpin_model_lab_run".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/UnstarModelLabProject.rb b/examples/v2/model-lab-api/UnstarModelLabProject.rb index f1d71e017162..b9f13ee7680d 100644 --- a/examples/v2/model-lab-api/UnstarModelLabProject.rb +++ b/examples/v2/model-lab-api/UnstarModelLabProject.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.unstar_model_lab_project".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/model-lab-api/UnstarModelLabProject_931927092.rb b/examples/v2/model-lab-api/UnstarModelLabProject_931927092.rb index e6067e264b59..7093cd8ca74a 100644 --- a/examples/v2/model-lab-api/UnstarModelLabProject_931927092.rb +++ b/examples/v2/model-lab-api/UnstarModelLabProject_931927092.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.unstar_model_lab_project".to_sym] = true end api_instance = DatadogAPIClient::V2::ModelLabAPIAPI.new diff --git a/examples/v2/monitors/CreateMonitorConfigPolicy.rb b/examples/v2/monitors/CreateMonitorConfigPolicy.rb index b8da5e495590..4b90848dd1e9 100644 --- a/examples/v2/monitors/CreateMonitorConfigPolicy.rb +++ b/examples/v2/monitors/CreateMonitorConfigPolicy.rb @@ -1,6 +1,9 @@ # Create a monitor configuration policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorConfigPolicyCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorConfigPolicy_1934105875.rb b/examples/v2/monitors/CreateMonitorConfigPolicy_1934105875.rb index c65433a566b3..f0eeb6404d25 100644 --- a/examples/v2/monitors/CreateMonitorConfigPolicy_1934105875.rb +++ b/examples/v2/monitors/CreateMonitorConfigPolicy_1934105875.rb @@ -1,6 +1,9 @@ # Create a downtime duration monitor configuration policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorConfigPolicyCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorNotificationRule.rb b/examples/v2/monitors/CreateMonitorNotificationRule.rb index 913ec7e95c6d..c604c81e81d0 100644 --- a/examples/v2/monitors/CreateMonitorNotificationRule.rb +++ b/examples/v2/monitors/CreateMonitorNotificationRule.rb @@ -1,6 +1,9 @@ # Create a monitor notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorNotificationRuleCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb b/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb index fb4f4753b567..e3573b007fc2 100644 --- a/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb +++ b/examples/v2/monitors/CreateMonitorNotificationRule_1181818787.rb @@ -1,6 +1,9 @@ # Create a monitor notification rule with conditional recipients returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorNotificationRuleCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb b/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb index 8dd4f365f97b..fbf82ec2ba54 100644 --- a/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb +++ b/examples/v2/monitors/CreateMonitorNotificationRule_1379932371.rb @@ -1,6 +1,9 @@ # Create a monitor notification rule with scope returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorNotificationRuleCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorNotificationRule_678042569.rb b/examples/v2/monitors/CreateMonitorNotificationRule_678042569.rb index 4068bebe4369..9a6d50e5747e 100644 --- a/examples/v2/monitors/CreateMonitorNotificationRule_678042569.rb +++ b/examples/v2/monitors/CreateMonitorNotificationRule_678042569.rb @@ -1,6 +1,9 @@ # Create a monitor notification rule with bundle config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new body = DatadogAPIClient::V2::MonitorNotificationRuleCreateRequest.new({ diff --git a/examples/v2/monitors/CreateMonitorUserTemplate.rb b/examples/v2/monitors/CreateMonitorUserTemplate.rb index 1856e3f8d58f..aff4d1684368 100644 --- a/examples/v2/monitors/CreateMonitorUserTemplate.rb +++ b/examples/v2/monitors/CreateMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/DeleteMonitorConfigPolicy.rb b/examples/v2/monitors/DeleteMonitorConfigPolicy.rb index d008de9ee904..db8b0ca46e26 100644 --- a/examples/v2/monitors/DeleteMonitorConfigPolicy.rb +++ b/examples/v2/monitors/DeleteMonitorConfigPolicy.rb @@ -1,6 +1,9 @@ # Delete a monitor configuration policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_configuration_policy" in the system diff --git a/examples/v2/monitors/DeleteMonitorNotificationRule.rb b/examples/v2/monitors/DeleteMonitorNotificationRule.rb index 1b82878b96f9..1e6b0d155910 100644 --- a/examples/v2/monitors/DeleteMonitorNotificationRule.rb +++ b/examples/v2/monitors/DeleteMonitorNotificationRule.rb @@ -1,6 +1,9 @@ # Delete a monitor notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/DeleteMonitorUserTemplate.rb b/examples/v2/monitors/DeleteMonitorUserTemplate.rb index 3ba5acce449a..c6a36c0ceb75 100644 --- a/examples/v2/monitors/DeleteMonitorUserTemplate.rb +++ b/examples/v2/monitors/DeleteMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/GetMonitorConfigPolicy.rb b/examples/v2/monitors/GetMonitorConfigPolicy.rb index 9c1f0a179ad7..1dbf38c95d6d 100644 --- a/examples/v2/monitors/GetMonitorConfigPolicy.rb +++ b/examples/v2/monitors/GetMonitorConfigPolicy.rb @@ -1,6 +1,9 @@ # Get a monitor configuration policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_configuration_policy" in the system diff --git a/examples/v2/monitors/GetMonitorNotificationRule.rb b/examples/v2/monitors/GetMonitorNotificationRule.rb index e25f238dc712..2f674a46ef7d 100644 --- a/examples/v2/monitors/GetMonitorNotificationRule.rb +++ b/examples/v2/monitors/GetMonitorNotificationRule.rb @@ -1,6 +1,9 @@ # Get a monitor notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/GetMonitorNotificationRules.rb b/examples/v2/monitors/GetMonitorNotificationRules.rb index fec229830902..1c3dbda83c54 100644 --- a/examples/v2/monitors/GetMonitorNotificationRules.rb +++ b/examples/v2/monitors/GetMonitorNotificationRules.rb @@ -1,5 +1,8 @@ # Get all monitor notification rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new p api_instance.get_monitor_notification_rules() diff --git a/examples/v2/monitors/GetMonitorUserTemplate.rb b/examples/v2/monitors/GetMonitorUserTemplate.rb index 6a2af8989f05..2e03bd7573e8 100644 --- a/examples/v2/monitors/GetMonitorUserTemplate.rb +++ b/examples/v2/monitors/GetMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/ListMonitorConfigPolicies.rb b/examples/v2/monitors/ListMonitorConfigPolicies.rb index f78157ccc1bc..842f1e42bb35 100644 --- a/examples/v2/monitors/ListMonitorConfigPolicies.rb +++ b/examples/v2/monitors/ListMonitorConfigPolicies.rb @@ -1,5 +1,8 @@ # Get all monitor configuration policies returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new p api_instance.list_monitor_config_policies() diff --git a/examples/v2/monitors/ListMonitorUserTemplates.rb b/examples/v2/monitors/ListMonitorUserTemplates.rb index 876e0bcb4ea4..2d9443e05a85 100644 --- a/examples/v2/monitors/ListMonitorUserTemplates.rb +++ b/examples/v2/monitors/ListMonitorUserTemplates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_monitor_user_templates".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/UpdateMonitorConfigPolicy.rb b/examples/v2/monitors/UpdateMonitorConfigPolicy.rb index bdfee520f427..4952a2383128 100644 --- a/examples/v2/monitors/UpdateMonitorConfigPolicy.rb +++ b/examples/v2/monitors/UpdateMonitorConfigPolicy.rb @@ -1,6 +1,9 @@ # Edit a monitor configuration policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_configuration_policy" in the system diff --git a/examples/v2/monitors/UpdateMonitorNotificationRule.rb b/examples/v2/monitors/UpdateMonitorNotificationRule.rb index f9271a1f1b2c..08ef9ac8dd37 100644 --- a/examples/v2/monitors/UpdateMonitorNotificationRule.rb +++ b/examples/v2/monitors/UpdateMonitorNotificationRule.rb @@ -1,6 +1,9 @@ # Update a monitor notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb b/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb index 43389d8da967..a54e43541f2f 100644 --- a/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb +++ b/examples/v2/monitors/UpdateMonitorNotificationRule_1400905713.rb @@ -1,6 +1,9 @@ # Update a monitor notification rule with conditional_recipients returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb b/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb index 6a046cf0935b..dc974bdf863b 100644 --- a/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb +++ b/examples/v2/monitors/UpdateMonitorNotificationRule_1446058210.rb @@ -1,6 +1,9 @@ # Update a monitor notification rule with scope returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/UpdateMonitorNotificationRule_752032728.rb b/examples/v2/monitors/UpdateMonitorNotificationRule_752032728.rb index 981edc61b51d..f1c4e95d6ff5 100644 --- a/examples/v2/monitors/UpdateMonitorNotificationRule_752032728.rb +++ b/examples/v2/monitors/UpdateMonitorNotificationRule_752032728.rb @@ -1,6 +1,9 @@ # Update a monitor notification rule with bundle config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::MonitorsAPI.new # there is a valid "monitor_notification_rule" in the system diff --git a/examples/v2/monitors/UpdateMonitorUserTemplate.rb b/examples/v2/monitors/UpdateMonitorUserTemplate.rb index bfae87a83880..c3dda6c02a0d 100644 --- a/examples/v2/monitors/UpdateMonitorUserTemplate.rb +++ b/examples/v2/monitors/UpdateMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/ValidateExistingMonitorUserTemplate.rb b/examples/v2/monitors/ValidateExistingMonitorUserTemplate.rb index bec367597cae..6d8f6db14655 100644 --- a/examples/v2/monitors/ValidateExistingMonitorUserTemplate.rb +++ b/examples/v2/monitors/ValidateExistingMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.validate_existing_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/monitors/ValidateMonitorUserTemplate.rb b/examples/v2/monitors/ValidateMonitorUserTemplate.rb index bb557ed28adf..09c36fb83934 100644 --- a/examples/v2/monitors/ValidateMonitorUserTemplate.rb +++ b/examples/v2/monitors/ValidateMonitorUserTemplate.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.validate_monitor_user_template".to_sym] = true end api_instance = DatadogAPIClient::V2::MonitorsAPI.new diff --git a/examples/v2/network-device-monitoring/GetDevice.rb b/examples/v2/network-device-monitoring/GetDevice.rb index dd84b34176f4..05d3e268f31e 100644 --- a/examples/v2/network-device-monitoring/GetDevice.rb +++ b/examples/v2/network-device-monitoring/GetDevice.rb @@ -1,5 +1,8 @@ # Get the device details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new p api_instance.get_device("default_device") diff --git a/examples/v2/network-device-monitoring/GetInterfaces.rb b/examples/v2/network-device-monitoring/GetInterfaces.rb index 8f8107cd69c9..867bd9047b5e 100644 --- a/examples/v2/network-device-monitoring/GetInterfaces.rb +++ b/examples/v2/network-device-monitoring/GetInterfaces.rb @@ -1,6 +1,9 @@ # Get the list of interfaces of the device returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new opts = { get_ip_addresses: true, diff --git a/examples/v2/network-device-monitoring/ListDeviceUserTags.rb b/examples/v2/network-device-monitoring/ListDeviceUserTags.rb index 1d000e6c28c3..649e1c67d4ec 100644 --- a/examples/v2/network-device-monitoring/ListDeviceUserTags.rb +++ b/examples/v2/network-device-monitoring/ListDeviceUserTags.rb @@ -1,5 +1,8 @@ # Get the list of tags for a device returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new p api_instance.list_device_user_tags("default_device") diff --git a/examples/v2/network-device-monitoring/ListDevices.rb b/examples/v2/network-device-monitoring/ListDevices.rb index 0da8da1ca848..4d4e28ebfc52 100644 --- a/examples/v2/network-device-monitoring/ListDevices.rb +++ b/examples/v2/network-device-monitoring/ListDevices.rb @@ -1,6 +1,9 @@ # Get the list of devices returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new opts = { page_size: 1, diff --git a/examples/v2/network-device-monitoring/ListDevices_2712868412.rb b/examples/v2/network-device-monitoring/ListDevices_2712868412.rb index 0314db145d32..eab68c2894d6 100644 --- a/examples/v2/network-device-monitoring/ListDevices_2712868412.rb +++ b/examples/v2/network-device-monitoring/ListDevices_2712868412.rb @@ -1,5 +1,8 @@ # Get the list of devices returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new api_instance.list_devices_with_pagination() { |item| puts item } diff --git a/examples/v2/network-device-monitoring/ListInterfaceUserTags.rb b/examples/v2/network-device-monitoring/ListInterfaceUserTags.rb index 9954c4dadfb1..082600a7a88b 100644 --- a/examples/v2/network-device-monitoring/ListInterfaceUserTags.rb +++ b/examples/v2/network-device-monitoring/ListInterfaceUserTags.rb @@ -1,5 +1,8 @@ # List tags for an interface returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new p api_instance.list_interface_user_tags("example:1.2.3.4:1") diff --git a/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb b/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb index 6af5d2d08a8d..a0fcc9279c1a 100644 --- a/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb +++ b/examples/v2/network-device-monitoring/UpdateDeviceUserTags.rb @@ -1,6 +1,9 @@ # Update the tags for a device returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new body = DatadogAPIClient::V2::ListTagsResponse.new({ diff --git a/examples/v2/network-device-monitoring/UpdateInterfaceUserTags.rb b/examples/v2/network-device-monitoring/UpdateInterfaceUserTags.rb index 7853a58a9e86..d97d5ef6aaef 100644 --- a/examples/v2/network-device-monitoring/UpdateInterfaceUserTags.rb +++ b/examples/v2/network-device-monitoring/UpdateInterfaceUserTags.rb @@ -1,6 +1,9 @@ # Update the tags for an interface returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::NetworkDeviceMonitoringAPI.new body = DatadogAPIClient::V2::ListInterfaceTagsResponse.new({ diff --git a/examples/v2/network-health-insights/ListNetworkHealthInsights.rb b/examples/v2/network-health-insights/ListNetworkHealthInsights.rb index 2ba6c2b6b050..7a0278a65c52 100644 --- a/examples/v2/network-health-insights/ListNetworkHealthInsights.rb +++ b/examples/v2/network-health-insights/ListNetworkHealthInsights.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_network_health_insights".to_sym] = true end api_instance = DatadogAPIClient::V2::NetworkHealthInsightsAPI.new diff --git a/examples/v2/oauth2-client-public/DeleteScopesRestriction.rb b/examples/v2/oauth2-client-public/DeleteScopesRestriction.rb index 19ef9539a0ad..fd0e9ab41bfe 100644 --- a/examples/v2/oauth2-client-public/DeleteScopesRestriction.rb +++ b/examples/v2/oauth2-client-public/DeleteScopesRestriction.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_scopes_restriction".to_sym] = true end api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new diff --git a/examples/v2/oauth2-client-public/GetScopesRestriction.rb b/examples/v2/oauth2-client-public/GetScopesRestriction.rb index f959d785e912..00d2bafd0532 100644 --- a/examples/v2/oauth2-client-public/GetScopesRestriction.rb +++ b/examples/v2/oauth2-client-public/GetScopesRestriction.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_scopes_restriction".to_sym] = true end api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new diff --git a/examples/v2/oauth2-client-public/UpsertScopesRestriction.rb b/examples/v2/oauth2-client-public/UpsertScopesRestriction.rb index 157b32764346..8743d2395f3f 100644 --- a/examples/v2/oauth2-client-public/UpsertScopesRestriction.rb +++ b/examples/v2/oauth2-client-public/UpsertScopesRestriction.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.upsert_scopes_restriction".to_sym] = true end api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new diff --git a/examples/v2/observability-pipelines/CreatePipeline.rb b/examples/v2/observability-pipelines/CreatePipeline.rb index f4f589b8f20a..291900791eeb 100644 --- a/examples/v2/observability-pipelines/CreatePipeline.rb +++ b/examples/v2/observability-pipelines/CreatePipeline.rb @@ -1,6 +1,9 @@ # Create a new pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/CreatePipeline_3363445359.rb b/examples/v2/observability-pipelines/CreatePipeline_3363445359.rb index cde2caf56ffc..1a031b87bb55 100644 --- a/examples/v2/observability-pipelines/CreatePipeline_3363445359.rb +++ b/examples/v2/observability-pipelines/CreatePipeline_3363445359.rb @@ -1,6 +1,9 @@ # Create a pipeline with dedupe processor with cache returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/CreatePipeline_581245895.rb b/examples/v2/observability-pipelines/CreatePipeline_581245895.rb index 9e2857867df6..315dcd3ce77a 100644 --- a/examples/v2/observability-pipelines/CreatePipeline_581245895.rb +++ b/examples/v2/observability-pipelines/CreatePipeline_581245895.rb @@ -1,6 +1,9 @@ # Create a pipeline with dedupe processor without cache returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/DeletePipeline.rb b/examples/v2/observability-pipelines/DeletePipeline.rb index 998c2a97f6a7..0e3510b79482 100644 --- a/examples/v2/observability-pipelines/DeletePipeline.rb +++ b/examples/v2/observability-pipelines/DeletePipeline.rb @@ -1,6 +1,9 @@ # Delete a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new # there is a valid "pipeline" in the system diff --git a/examples/v2/observability-pipelines/GetPipeline.rb b/examples/v2/observability-pipelines/GetPipeline.rb index 87ee52bc427e..ba1ec568ab88 100644 --- a/examples/v2/observability-pipelines/GetPipeline.rb +++ b/examples/v2/observability-pipelines/GetPipeline.rb @@ -1,6 +1,9 @@ # Get a specific pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new # there is a valid "pipeline" in the system diff --git a/examples/v2/observability-pipelines/ListPipelines.rb b/examples/v2/observability-pipelines/ListPipelines.rb index 53db543e93b7..c056dd5ac5f9 100644 --- a/examples/v2/observability-pipelines/ListPipelines.rb +++ b/examples/v2/observability-pipelines/ListPipelines.rb @@ -1,5 +1,8 @@ # List pipelines returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new p api_instance.list_pipelines() diff --git a/examples/v2/observability-pipelines/UpdatePipeline.rb b/examples/v2/observability-pipelines/UpdatePipeline.rb index 2840af955ca6..c20939706af8 100644 --- a/examples/v2/observability-pipelines/UpdatePipeline.rb +++ b/examples/v2/observability-pipelines/UpdatePipeline.rb @@ -1,6 +1,9 @@ # Update a pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new # there is a valid "pipeline" in the system diff --git a/examples/v2/observability-pipelines/ValidatePipeline.rb b/examples/v2/observability-pipelines/ValidatePipeline.rb index 6884c77931c9..9a05626f25b5 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1070998129.rb b/examples/v2/observability-pipelines/ValidatePipeline_1070998129.rb index c482c4e03b4d..c790852bf430 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1070998129.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1070998129.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with cloud_prem destination buffer returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1130701356.rb b/examples/v2/observability-pipelines/ValidatePipeline_1130701356.rb index e8512229ebe7..04483a559748 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1130701356.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1130701356.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with Splunk HEC source valid_tokens returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb b/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb index 96cb4b2c75df..8aac3f4aa12f 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1238441879.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with ClickHouse destination returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1267410221.rb b/examples/v2/observability-pipelines/ValidatePipeline_1267410221.rb index 4ff91199b2aa..d9c51774ac30 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1267410221.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1267410221.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with Splunk HEC destination token_strategy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1330454428.rb b/examples/v2/observability-pipelines/ValidatePipeline_1330454428.rb index a6bb2d3e49df..c48e72b13138 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1330454428.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1330454428.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with destination secret key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1785209526.rb b/examples/v2/observability-pipelines/ValidatePipeline_1785209526.rb index a1fac9c16a26..93c1924d56c2 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1785209526.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1785209526.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with HTTP server source valid_tokens returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_1874470273.rb b/examples/v2/observability-pipelines/ValidatePipeline_1874470273.rb index 1649da4caa4b..c46452c9f5ca 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_1874470273.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_1874470273.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with Splunk HEC destination endpoint_target returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb b/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb index b74fe32e68ec..c2d046d121f2 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_253109967.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with ClickHouse destination with all fields set returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_2899320203.rb b/examples/v2/observability-pipelines/ValidatePipeline_2899320203.rb index 696237cbaa25..798ef818da8e 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_2899320203.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_2899320203.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with source secret key returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_2960728933.rb b/examples/v2/observability-pipelines/ValidatePipeline_2960728933.rb index 409ca5f53414..d6def2452f9a 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_2960728933.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_2960728933.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with Splunk HEC source store_hec_token returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3024756866.rb b/examples/v2/observability-pipelines/ValidatePipeline_3024756866.rb index 2599a64b2e7b..dceb51107c69 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3024756866.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3024756866.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with OCSF mapper custom mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3067748504.rb b/examples/v2/observability-pipelines/ValidatePipeline_3067748504.rb index ef24116eb20f..75dd927c93d8 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3067748504.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3067748504.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with OCSF mapper keep_unmatched returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3116312807.rb b/examples/v2/observability-pipelines/ValidatePipeline_3116312807.rb index 523499575287..2a8fa17d3ab0 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3116312807.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3116312807.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with Splunk TCP source max_connection_duration_secs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3345949653.rb b/examples/v2/observability-pipelines/ValidatePipeline_3345949653.rb index 57e5d4158841..a93a3e581a1f 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3345949653.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3345949653.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with parse grok processor source rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb b/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb index 71a7792d58bb..11ad0deab804 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_337125830.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with websocket source bearer auth returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3565101276.rb b/examples/v2/observability-pipelines/ValidatePipeline_3565101276.rb index 3f984c89c207..ac1d4e668c5a 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3565101276.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3565101276.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with OCSF mapper library mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_3928499240.rb b/examples/v2/observability-pipelines/ValidatePipeline_3928499240.rb index 88e409a34f09..43322ab135d2 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_3928499240.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_3928499240.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with parse grok processor include rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb b/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb index f1874c6384d4..d3f15bb75bc4 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_620504950.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with ClickHouse destination arrow_stream format returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_815080644.rb b/examples/v2/observability-pipelines/ValidatePipeline_815080644.rb index 6e94f2dfac56..bde60503bf06 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_815080644.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_815080644.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with enrichment table secret field lookup returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb b/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb index 0a6c3d0e78a5..bba6d3bc999f 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_884022323.rb @@ -1,6 +1,9 @@ # Validate a metrics pipeline with opentelemetry source returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/observability-pipelines/ValidatePipeline_99164570.rb b/examples/v2/observability-pipelines/ValidatePipeline_99164570.rb index bc337a5a11c4..6ea2ff195522 100644 --- a/examples/v2/observability-pipelines/ValidatePipeline_99164570.rb +++ b/examples/v2/observability-pipelines/ValidatePipeline_99164570.rb @@ -1,6 +1,9 @@ # Validate an observability pipeline with amazon S3 source compression returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ObservabilityPipelinesAPI.new body = DatadogAPIClient::V2::ObservabilityPipelineSpec.new({ diff --git a/examples/v2/oci-integration/CreateTenancyConfig.rb b/examples/v2/oci-integration/CreateTenancyConfig.rb index 08aef21c7eff..5892f51dbcc9 100644 --- a/examples/v2/oci-integration/CreateTenancyConfig.rb +++ b/examples/v2/oci-integration/CreateTenancyConfig.rb @@ -1,6 +1,9 @@ # Create tenancy config returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new body = DatadogAPIClient::V2::CreateTenancyConfigRequest.new({ diff --git a/examples/v2/oci-integration/DeleteTenancyConfig.rb b/examples/v2/oci-integration/DeleteTenancyConfig.rb index de2304e55e9a..f46b1526b428 100644 --- a/examples/v2/oci-integration/DeleteTenancyConfig.rb +++ b/examples/v2/oci-integration/DeleteTenancyConfig.rb @@ -1,5 +1,8 @@ # Delete tenancy config returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new api_instance.delete_tenancy_config("tenancy_ocid") diff --git a/examples/v2/oci-integration/GetTenancyConfig.rb b/examples/v2/oci-integration/GetTenancyConfig.rb index 758e5199698c..c266c78da214 100644 --- a/examples/v2/oci-integration/GetTenancyConfig.rb +++ b/examples/v2/oci-integration/GetTenancyConfig.rb @@ -1,5 +1,8 @@ # Get tenancy config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new p api_instance.get_tenancy_config("tenancy_ocid") diff --git a/examples/v2/oci-integration/GetTenancyConfigs.rb b/examples/v2/oci-integration/GetTenancyConfigs.rb index 680f29c5bd71..718534537227 100644 --- a/examples/v2/oci-integration/GetTenancyConfigs.rb +++ b/examples/v2/oci-integration/GetTenancyConfigs.rb @@ -1,5 +1,8 @@ # Get tenancy configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new p api_instance.get_tenancy_configs() diff --git a/examples/v2/oci-integration/ListTenancyProducts.rb b/examples/v2/oci-integration/ListTenancyProducts.rb index cd91f40135c2..4ceb4fb47946 100644 --- a/examples/v2/oci-integration/ListTenancyProducts.rb +++ b/examples/v2/oci-integration/ListTenancyProducts.rb @@ -1,5 +1,8 @@ # List tenancy products returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new p api_instance.list_tenancy_products("productKeys") diff --git a/examples/v2/oci-integration/UpdateTenancyConfig.rb b/examples/v2/oci-integration/UpdateTenancyConfig.rb index 916f57858cbd..68dd2ddee8db 100644 --- a/examples/v2/oci-integration/UpdateTenancyConfig.rb +++ b/examples/v2/oci-integration/UpdateTenancyConfig.rb @@ -1,6 +1,9 @@ # Update tenancy config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OCIIntegrationAPI.new body = DatadogAPIClient::V2::UpdateTenancyConfigRequest.new({ diff --git a/examples/v2/okta-integration/CreateOktaAccount.rb b/examples/v2/okta-integration/CreateOktaAccount.rb index 67cc40455824..a33e49314c41 100644 --- a/examples/v2/okta-integration/CreateOktaAccount.rb +++ b/examples/v2/okta-integration/CreateOktaAccount.rb @@ -1,6 +1,9 @@ # Add Okta account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OktaIntegrationAPI.new body = DatadogAPIClient::V2::OktaAccountRequest.new({ diff --git a/examples/v2/okta-integration/DeleteOktaAccount.rb b/examples/v2/okta-integration/DeleteOktaAccount.rb index 893187f25854..fd4c758effff 100644 --- a/examples/v2/okta-integration/DeleteOktaAccount.rb +++ b/examples/v2/okta-integration/DeleteOktaAccount.rb @@ -1,5 +1,8 @@ # Delete Okta account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OktaIntegrationAPI.new api_instance.delete_okta_account("account_id") diff --git a/examples/v2/okta-integration/GetOktaAccount.rb b/examples/v2/okta-integration/GetOktaAccount.rb index 4fc74766f4e1..e38a132e8e6c 100644 --- a/examples/v2/okta-integration/GetOktaAccount.rb +++ b/examples/v2/okta-integration/GetOktaAccount.rb @@ -1,6 +1,9 @@ # Get Okta account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OktaIntegrationAPI.new # there is a valid "okta_account" in the system diff --git a/examples/v2/okta-integration/ListOktaAccounts.rb b/examples/v2/okta-integration/ListOktaAccounts.rb index 032db800c59f..83746d9cbc86 100644 --- a/examples/v2/okta-integration/ListOktaAccounts.rb +++ b/examples/v2/okta-integration/ListOktaAccounts.rb @@ -1,5 +1,8 @@ # List Okta accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OktaIntegrationAPI.new p api_instance.list_okta_accounts() diff --git a/examples/v2/okta-integration/UpdateOktaAccount.rb b/examples/v2/okta-integration/UpdateOktaAccount.rb index a5677d974e0c..536603a5ce9f 100644 --- a/examples/v2/okta-integration/UpdateOktaAccount.rb +++ b/examples/v2/okta-integration/UpdateOktaAccount.rb @@ -1,6 +1,9 @@ # Update Okta account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OktaIntegrationAPI.new # there is a valid "okta_account" in the system diff --git a/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb b/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb index 1f3565a80fd7..4635d5781a2f 100644 --- a/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb +++ b/examples/v2/on-call-paging/AcknowledgeOnCallPage.rb @@ -1,5 +1,8 @@ # Acknowledge On-Call Page returns "Accepted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new p api_instance.acknowledge_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/examples/v2/on-call-paging/CreateOnCallPage.rb b/examples/v2/on-call-paging/CreateOnCallPage.rb index 57b8dae7a443..dd71853221f5 100644 --- a/examples/v2/on-call-paging/CreateOnCallPage.rb +++ b/examples/v2/on-call-paging/CreateOnCallPage.rb @@ -1,6 +1,9 @@ # Create On-Call Page returns "OK." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new body = DatadogAPIClient::V2::CreatePageRequest.new({ diff --git a/examples/v2/on-call-paging/EscalateOnCallPage.rb b/examples/v2/on-call-paging/EscalateOnCallPage.rb index d5999ec4eff1..63c1cac4574e 100644 --- a/examples/v2/on-call-paging/EscalateOnCallPage.rb +++ b/examples/v2/on-call-paging/EscalateOnCallPage.rb @@ -1,5 +1,8 @@ # Escalate On-Call Page returns "Accepted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new p api_instance.escalate_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/examples/v2/on-call-paging/ResolveOnCallPage.rb b/examples/v2/on-call-paging/ResolveOnCallPage.rb index 6c0d6b7f015e..821c15b2019e 100644 --- a/examples/v2/on-call-paging/ResolveOnCallPage.rb +++ b/examples/v2/on-call-paging/ResolveOnCallPage.rb @@ -1,5 +1,8 @@ # Resolve On-Call Page returns "Accepted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallPagingAPI.new p api_instance.resolve_on_call_page("15e74b8b-f865-48d0-bcc5-453323ed2c8f") diff --git a/examples/v2/on-call/CreateOnCallEscalationPolicy.rb b/examples/v2/on-call/CreateOnCallEscalationPolicy.rb index 324a603ec4ac..7968e76258ef 100644 --- a/examples/v2/on-call/CreateOnCallEscalationPolicy.rb +++ b/examples/v2/on-call/CreateOnCallEscalationPolicy.rb @@ -1,6 +1,9 @@ # Create On-Call escalation policy returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/CreateOnCallSchedule.rb b/examples/v2/on-call/CreateOnCallSchedule.rb index 4812849ee195..7f3e08b39850 100644 --- a/examples/v2/on-call/CreateOnCallSchedule.rb +++ b/examples/v2/on-call/CreateOnCallSchedule.rb @@ -1,6 +1,9 @@ # Create On-Call schedule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/CreateUserNotificationChannel.rb b/examples/v2/on-call/CreateUserNotificationChannel.rb index 3549f8ce261b..91baac22283c 100644 --- a/examples/v2/on-call/CreateUserNotificationChannel.rb +++ b/examples/v2/on-call/CreateUserNotificationChannel.rb @@ -1,6 +1,9 @@ # Create an On-Call notification channel for a user returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/CreateUserNotificationRule.rb b/examples/v2/on-call/CreateUserNotificationRule.rb index 5e8fc97cc0f9..83ffd85e40a1 100644 --- a/examples/v2/on-call/CreateUserNotificationRule.rb +++ b/examples/v2/on-call/CreateUserNotificationRule.rb @@ -1,6 +1,9 @@ # Create an On-Call notification rule for a user returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb b/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb index e27d8c651f03..217d84f9f825 100644 --- a/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb +++ b/examples/v2/on-call/DeleteOnCallEscalationPolicy.rb @@ -1,6 +1,9 @@ # Delete On-Call escalation policy returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "escalation_policy" in the system diff --git a/examples/v2/on-call/DeleteOnCallSchedule.rb b/examples/v2/on-call/DeleteOnCallSchedule.rb index 6b9178a140a1..dfc475c5f8db 100644 --- a/examples/v2/on-call/DeleteOnCallSchedule.rb +++ b/examples/v2/on-call/DeleteOnCallSchedule.rb @@ -1,6 +1,9 @@ # Delete On-Call schedule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "schedule" in the system diff --git a/examples/v2/on-call/DeleteUserNotificationChannel.rb b/examples/v2/on-call/DeleteUserNotificationChannel.rb index 102dda274e8a..fc625a99d011 100644 --- a/examples/v2/on-call/DeleteUserNotificationChannel.rb +++ b/examples/v2/on-call/DeleteUserNotificationChannel.rb @@ -1,6 +1,9 @@ # Delete an On-Call notification channel for a user returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/DeleteUserNotificationRule.rb b/examples/v2/on-call/DeleteUserNotificationRule.rb index 744cf7519082..0a47e607ab25 100644 --- a/examples/v2/on-call/DeleteUserNotificationRule.rb +++ b/examples/v2/on-call/DeleteUserNotificationRule.rb @@ -1,6 +1,9 @@ # Delete an On-Call notification rule for a user returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/GetOnCallEscalationPolicy.rb b/examples/v2/on-call/GetOnCallEscalationPolicy.rb index 338d814fd83a..55690f279d78 100644 --- a/examples/v2/on-call/GetOnCallEscalationPolicy.rb +++ b/examples/v2/on-call/GetOnCallEscalationPolicy.rb @@ -1,6 +1,9 @@ # Get On-Call escalation policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "escalation_policy" in the system diff --git a/examples/v2/on-call/GetOnCallSchedule.rb b/examples/v2/on-call/GetOnCallSchedule.rb index fb9ebd30a06f..96cc6743c1fb 100644 --- a/examples/v2/on-call/GetOnCallSchedule.rb +++ b/examples/v2/on-call/GetOnCallSchedule.rb @@ -1,6 +1,9 @@ # Get On-Call schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "schedule" in the system diff --git a/examples/v2/on-call/GetOnCallTeamRoutingRules.rb b/examples/v2/on-call/GetOnCallTeamRoutingRules.rb index 93a4317fd62b..f16a3b2912b0 100644 --- a/examples/v2/on-call/GetOnCallTeamRoutingRules.rb +++ b/examples/v2/on-call/GetOnCallTeamRoutingRules.rb @@ -1,5 +1,8 @@ # Get On-Call team routing rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new p api_instance.get_on_call_team_routing_rules("27590dae-47be-4a7d-9abf-8f4e45124020") diff --git a/examples/v2/on-call/GetScheduleOnCallResponders.rb b/examples/v2/on-call/GetScheduleOnCallResponders.rb index 1c59713b2ded..11c6b410f315 100644 --- a/examples/v2/on-call/GetScheduleOnCallResponders.rb +++ b/examples/v2/on-call/GetScheduleOnCallResponders.rb @@ -1,6 +1,9 @@ # Get on-call responders for a schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "schedule" in the system diff --git a/examples/v2/on-call/GetScheduleOnCallUser.rb b/examples/v2/on-call/GetScheduleOnCallUser.rb index 8b109c8320da..d5a2e06ee104 100644 --- a/examples/v2/on-call/GetScheduleOnCallUser.rb +++ b/examples/v2/on-call/GetScheduleOnCallUser.rb @@ -1,6 +1,9 @@ # Get scheduled on-call user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "schedule" in the system diff --git a/examples/v2/on-call/GetTeamOnCallUsers.rb b/examples/v2/on-call/GetTeamOnCallUsers.rb index 1467f5294743..58a0377976de 100644 --- a/examples/v2/on-call/GetTeamOnCallUsers.rb +++ b/examples/v2/on-call/GetTeamOnCallUsers.rb @@ -1,6 +1,9 @@ # Get team on-call users returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there are valid "routing_rules" in the system diff --git a/examples/v2/on-call/GetUserNotificationChannel.rb b/examples/v2/on-call/GetUserNotificationChannel.rb index b48c7af4fa08..0aff7448dae9 100644 --- a/examples/v2/on-call/GetUserNotificationChannel.rb +++ b/examples/v2/on-call/GetUserNotificationChannel.rb @@ -1,6 +1,9 @@ # Get an On-Call notification channel for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/GetUserNotificationRule.rb b/examples/v2/on-call/GetUserNotificationRule.rb index 52f42d5b6ab6..c3a08e0f9420 100644 --- a/examples/v2/on-call/GetUserNotificationRule.rb +++ b/examples/v2/on-call/GetUserNotificationRule.rb @@ -1,6 +1,9 @@ # Get an On-Call notification rule for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/ListOnCallSchedules.rb b/examples/v2/on-call/ListOnCallSchedules.rb index 084692bab312..63309b312bf0 100644 --- a/examples/v2/on-call/ListOnCallSchedules.rb +++ b/examples/v2/on-call/ListOnCallSchedules.rb @@ -1,5 +1,8 @@ # List On-Call schedules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new p api_instance.list_on_call_schedules() diff --git a/examples/v2/on-call/ListOnCallSchedules_2357269993.rb b/examples/v2/on-call/ListOnCallSchedules_2357269993.rb index fb212525ced9..e84e44316d3a 100644 --- a/examples/v2/on-call/ListOnCallSchedules_2357269993.rb +++ b/examples/v2/on-call/ListOnCallSchedules_2357269993.rb @@ -1,5 +1,8 @@ # List On-Call schedules returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new api_instance.list_on_call_schedules_with_pagination() { |item| puts item } diff --git a/examples/v2/on-call/ListUserNotificationChannels.rb b/examples/v2/on-call/ListUserNotificationChannels.rb index 46af9551608d..f9e1afecac22 100644 --- a/examples/v2/on-call/ListUserNotificationChannels.rb +++ b/examples/v2/on-call/ListUserNotificationChannels.rb @@ -1,6 +1,9 @@ # List On-Call notification channels for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/ListUserNotificationRules.rb b/examples/v2/on-call/ListUserNotificationRules.rb index 55d291be31b9..763ae94e41ef 100644 --- a/examples/v2/on-call/ListUserNotificationRules.rb +++ b/examples/v2/on-call/ListUserNotificationRules.rb @@ -1,6 +1,9 @@ # List On-Call notification rules for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/on-call/SetOnCallTeamRoutingRules.rb b/examples/v2/on-call/SetOnCallTeamRoutingRules.rb index cbad2925d04b..021607f993e5 100644 --- a/examples/v2/on-call/SetOnCallTeamRoutingRules.rb +++ b/examples/v2/on-call/SetOnCallTeamRoutingRules.rb @@ -1,6 +1,9 @@ # Set On-Call team routing rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb b/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb index 6021fd0c45ae..976022d50dd7 100644 --- a/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb +++ b/examples/v2/on-call/UpdateOnCallEscalationPolicy.rb @@ -1,6 +1,9 @@ # Update On-Call escalation policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "escalation_policy" in the system diff --git a/examples/v2/on-call/UpdateOnCallSchedule.rb b/examples/v2/on-call/UpdateOnCallSchedule.rb index bba2f3e488ce..7ebce7a77ae3 100644 --- a/examples/v2/on-call/UpdateOnCallSchedule.rb +++ b/examples/v2/on-call/UpdateOnCallSchedule.rb @@ -1,6 +1,9 @@ # Update On-Call schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "schedule" in the system diff --git a/examples/v2/on-call/UpdateUserNotificationRule.rb b/examples/v2/on-call/UpdateUserNotificationRule.rb index 179d5a528f82..7f09f9540d53 100644 --- a/examples/v2/on-call/UpdateUserNotificationRule.rb +++ b/examples/v2/on-call/UpdateUserNotificationRule.rb @@ -1,6 +1,9 @@ # Update an On-Call notification rule for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OnCallAPI.new # there is a valid "user" in the system diff --git a/examples/v2/opsgenie-integration/CreateOpsgenieAccount.rb b/examples/v2/opsgenie-integration/CreateOpsgenieAccount.rb index fdd0193d161b..e09ffdc9e0f8 100644 --- a/examples/v2/opsgenie-integration/CreateOpsgenieAccount.rb +++ b/examples/v2/opsgenie-integration/CreateOpsgenieAccount.rb @@ -1,6 +1,9 @@ # Create a new Opsgenie account returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new body = DatadogAPIClient::V2::OpsgenieAccountCreateRequest.new({ diff --git a/examples/v2/opsgenie-integration/CreateOpsgenieService.rb b/examples/v2/opsgenie-integration/CreateOpsgenieService.rb index 701d59fbae2f..a3282da35f94 100644 --- a/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +++ b/examples/v2/opsgenie-integration/CreateOpsgenieService.rb @@ -1,6 +1,9 @@ # Create a new service object returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new body = DatadogAPIClient::V2::OpsgenieServiceCreateRequest.new({ diff --git a/examples/v2/opsgenie-integration/DeleteOpsgenieAccount.rb b/examples/v2/opsgenie-integration/DeleteOpsgenieAccount.rb index c87ac19690af..5195fd721f67 100644 --- a/examples/v2/opsgenie-integration/DeleteOpsgenieAccount.rb +++ b/examples/v2/opsgenie-integration/DeleteOpsgenieAccount.rb @@ -1,5 +1,8 @@ # Delete an Opsgenie account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new api_instance.delete_opsgenie_account("account_id") diff --git a/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb b/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb index ac0534b46949..9f7e319a08c9 100644 --- a/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb +++ b/examples/v2/opsgenie-integration/DeleteOpsgenieService.rb @@ -1,6 +1,9 @@ # Delete a single service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new # there is a valid "opsgenie_service" in the system diff --git a/examples/v2/opsgenie-integration/GetOpsgenieService.rb b/examples/v2/opsgenie-integration/GetOpsgenieService.rb index 01d7a01c2327..c200e8e4ba88 100644 --- a/examples/v2/opsgenie-integration/GetOpsgenieService.rb +++ b/examples/v2/opsgenie-integration/GetOpsgenieService.rb @@ -1,6 +1,9 @@ # Get a single service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new # there is a valid "opsgenie_service" in the system diff --git a/examples/v2/opsgenie-integration/ListOpsgenieAccounts.rb b/examples/v2/opsgenie-integration/ListOpsgenieAccounts.rb index 35e5cada8d12..e0cec9deba6b 100644 --- a/examples/v2/opsgenie-integration/ListOpsgenieAccounts.rb +++ b/examples/v2/opsgenie-integration/ListOpsgenieAccounts.rb @@ -1,5 +1,8 @@ # Get all Opsgenie accounts returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new p api_instance.list_opsgenie_accounts() diff --git a/examples/v2/opsgenie-integration/ListOpsgenieServices.rb b/examples/v2/opsgenie-integration/ListOpsgenieServices.rb index dfd8ce1201fb..dfb62eb33430 100644 --- a/examples/v2/opsgenie-integration/ListOpsgenieServices.rb +++ b/examples/v2/opsgenie-integration/ListOpsgenieServices.rb @@ -1,5 +1,8 @@ # Get all service objects returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new p api_instance.list_opsgenie_services() diff --git a/examples/v2/opsgenie-integration/UpdateOpsgenieAccount.rb b/examples/v2/opsgenie-integration/UpdateOpsgenieAccount.rb index d30e72fde9d2..e4ac661c31bc 100644 --- a/examples/v2/opsgenie-integration/UpdateOpsgenieAccount.rb +++ b/examples/v2/opsgenie-integration/UpdateOpsgenieAccount.rb @@ -1,6 +1,9 @@ # Update an Opsgenie account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new body = DatadogAPIClient::V2::OpsgenieAccountUpdateRequest.new({ diff --git a/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb b/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb index c4b3c75ab07e..e651efca4f9a 100644 --- a/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb +++ b/examples/v2/opsgenie-integration/UpdateOpsgenieService.rb @@ -1,6 +1,9 @@ # Update a single service object returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OpsgenieIntegrationAPI.new # there is a valid "opsgenie_service" in the system diff --git a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClient.rb b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClient.rb index 39249cdd76da..42844f25b94a 100644 --- a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClient.rb +++ b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClient.rb @@ -1,5 +1,8 @@ # Delete an org authorized client returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new api_instance.delete_org_authorized_client("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientAllUserAuthorizations.rb b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientAllUserAuthorizations.rb index fe072e08475e..a009ecbd9acc 100644 --- a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientAllUserAuthorizations.rb +++ b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientAllUserAuthorizations.rb @@ -1,5 +1,8 @@ # Delete a user's authorizations for a client returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new api_instance.delete_org_authorized_client_all_user_authorizations("00000000-0000-0000-0000-000000000001", "00000000-0000-9999-0000-000000000001") diff --git a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientUserAuthorization.rb b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientUserAuthorization.rb index 9e1ed3c4a219..baeac0631400 100644 --- a/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientUserAuthorization.rb +++ b/examples/v2/org-authorized-clients/DeleteOrgAuthorizedClientUserAuthorization.rb @@ -1,5 +1,8 @@ # Delete a user authorization for a client returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new api_instance.delete_org_authorized_client_user_authorization("00000000-0000-0000-0000-000000000001", "00000000-0000-0000-0000-000000000002") diff --git a/examples/v2/org-authorized-clients/GetOrgAuthorizedClient.rb b/examples/v2/org-authorized-clients/GetOrgAuthorizedClient.rb index 3f984249ee69..455c43696220 100644 --- a/examples/v2/org-authorized-clients/GetOrgAuthorizedClient.rb +++ b/examples/v2/org-authorized-clients/GetOrgAuthorizedClient.rb @@ -1,5 +1,8 @@ # Get an org authorized client returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new p api_instance.get_org_authorized_client("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations.rb b/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations.rb index fe1f56009c32..33cbab440a9d 100644 --- a/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations.rb +++ b/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations.rb @@ -1,5 +1,8 @@ # List user authorizations for a client returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new p api_instance.list_org_authorized_client_user_authorizations("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations_742202381.rb b/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations_742202381.rb index ecea4ba10e1a..bbbbf7e0353f 100644 --- a/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations_742202381.rb +++ b/examples/v2/org-authorized-clients/ListOrgAuthorizedClientUserAuthorizations_742202381.rb @@ -1,5 +1,8 @@ # List user authorizations for a client returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new api_instance.list_org_authorized_client_user_authorizations_with_pagination("00000000-0000-0000-0000-000000000001") { |item| puts item } diff --git a/examples/v2/org-authorized-clients/ListOrgAuthorizedClients.rb b/examples/v2/org-authorized-clients/ListOrgAuthorizedClients.rb index 8a22b5241453..6ab26a3dc9c7 100644 --- a/examples/v2/org-authorized-clients/ListOrgAuthorizedClients.rb +++ b/examples/v2/org-authorized-clients/ListOrgAuthorizedClients.rb @@ -1,5 +1,8 @@ # List org authorized clients returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new p api_instance.list_org_authorized_clients() diff --git a/examples/v2/org-authorized-clients/ListOrgAuthorizedClients_547493980.rb b/examples/v2/org-authorized-clients/ListOrgAuthorizedClients_547493980.rb index a5a8c41acccc..1c4ccb0f4ad7 100644 --- a/examples/v2/org-authorized-clients/ListOrgAuthorizedClients_547493980.rb +++ b/examples/v2/org-authorized-clients/ListOrgAuthorizedClients_547493980.rb @@ -1,5 +1,8 @@ # List org authorized clients returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new api_instance.list_org_authorized_clients_with_pagination() { |item| puts item } diff --git a/examples/v2/org-authorized-clients/UpdateOrgAuthorizedClient.rb b/examples/v2/org-authorized-clients/UpdateOrgAuthorizedClient.rb index 3a3841698bd3..6785464d7606 100644 --- a/examples/v2/org-authorized-clients/UpdateOrgAuthorizedClient.rb +++ b/examples/v2/org-authorized-clients/UpdateOrgAuthorizedClient.rb @@ -1,6 +1,9 @@ # Update an org authorized client returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgAuthorizedClientsAPI.new body = DatadogAPIClient::V2::OrgAuthorizedClientUpdateRequest.new({ diff --git a/examples/v2/org-connections/CreateOrgConnections.rb b/examples/v2/org-connections/CreateOrgConnections.rb index 4b5dc3c449fb..02498cf87d00 100644 --- a/examples/v2/org-connections/CreateOrgConnections.rb +++ b/examples/v2/org-connections/CreateOrgConnections.rb @@ -1,6 +1,9 @@ # Create Org Connection returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgConnectionsAPI.new body = DatadogAPIClient::V2::OrgConnectionCreateRequest.new({ diff --git a/examples/v2/org-connections/DeleteOrgConnections.rb b/examples/v2/org-connections/DeleteOrgConnections.rb index d7d9406681a2..fb90226cb6af 100644 --- a/examples/v2/org-connections/DeleteOrgConnections.rb +++ b/examples/v2/org-connections/DeleteOrgConnections.rb @@ -1,6 +1,9 @@ # Delete Org Connection returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgConnectionsAPI.new # there is a valid "org_connection" in the system diff --git a/examples/v2/org-connections/ListOrgConnections.rb b/examples/v2/org-connections/ListOrgConnections.rb index 8f4dfb497339..6580a6da2b4c 100644 --- a/examples/v2/org-connections/ListOrgConnections.rb +++ b/examples/v2/org-connections/ListOrgConnections.rb @@ -1,5 +1,8 @@ # List Org Connections returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgConnectionsAPI.new p api_instance.list_org_connections() diff --git a/examples/v2/org-connections/UpdateOrgConnections.rb b/examples/v2/org-connections/UpdateOrgConnections.rb index 9ba3e4b48cbf..8e562f3509ca 100644 --- a/examples/v2/org-connections/UpdateOrgConnections.rb +++ b/examples/v2/org-connections/UpdateOrgConnections.rb @@ -1,6 +1,9 @@ # Update Org Connection returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrgConnectionsAPI.new # there is a valid "org_connection" in the system diff --git a/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.rb b/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.rb index c3128154964a..d3ff6a579916 100644 --- a/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.rb +++ b/examples/v2/org-groups/BulkUpdateOrgGroupMemberships.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.bulk_update_org_group_memberships".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/CreateOrgGroup.rb b/examples/v2/org-groups/CreateOrgGroup.rb index 86804d4984c3..1e52d9ef039a 100644 --- a/examples/v2/org-groups/CreateOrgGroup.rb +++ b/examples/v2/org-groups/CreateOrgGroup.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_org_group".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/CreateOrgGroupPolicy.rb b/examples/v2/org-groups/CreateOrgGroupPolicy.rb index 095a7f55df13..80b68a165350 100644 --- a/examples/v2/org-groups/CreateOrgGroupPolicy.rb +++ b/examples/v2/org-groups/CreateOrgGroupPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_org_group_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/CreateOrgGroupPolicyOverride.rb b/examples/v2/org-groups/CreateOrgGroupPolicyOverride.rb index 16736de9efdf..7e2c437578c2 100644 --- a/examples/v2/org-groups/CreateOrgGroupPolicyOverride.rb +++ b/examples/v2/org-groups/CreateOrgGroupPolicyOverride.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_org_group_policy_override".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/DeleteOrgGroup.rb b/examples/v2/org-groups/DeleteOrgGroup.rb index a8172dc30977..00df29035d9f 100644 --- a/examples/v2/org-groups/DeleteOrgGroup.rb +++ b/examples/v2/org-groups/DeleteOrgGroup.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_org_group".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/DeleteOrgGroupPolicy.rb b/examples/v2/org-groups/DeleteOrgGroupPolicy.rb index f04a60ea6cca..77a647c6e0e8 100644 --- a/examples/v2/org-groups/DeleteOrgGroupPolicy.rb +++ b/examples/v2/org-groups/DeleteOrgGroupPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_org_group_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/DeleteOrgGroupPolicyOverride.rb b/examples/v2/org-groups/DeleteOrgGroupPolicyOverride.rb index bf353da68c55..f2a63cc9da81 100644 --- a/examples/v2/org-groups/DeleteOrgGroupPolicyOverride.rb +++ b/examples/v2/org-groups/DeleteOrgGroupPolicyOverride.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_org_group_policy_override".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/GetOrgGroup.rb b/examples/v2/org-groups/GetOrgGroup.rb index dc181c56b97c..741ad056ecaa 100644 --- a/examples/v2/org-groups/GetOrgGroup.rb +++ b/examples/v2/org-groups/GetOrgGroup.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_org_group".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/GetOrgGroupMembership.rb b/examples/v2/org-groups/GetOrgGroupMembership.rb index 77ec54792f9e..69da33c73e9e 100644 --- a/examples/v2/org-groups/GetOrgGroupMembership.rb +++ b/examples/v2/org-groups/GetOrgGroupMembership.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_org_group_membership".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/GetOrgGroupPolicy.rb b/examples/v2/org-groups/GetOrgGroupPolicy.rb index 82cbabb2f764..22f49173c794 100644 --- a/examples/v2/org-groups/GetOrgGroupPolicy.rb +++ b/examples/v2/org-groups/GetOrgGroupPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_org_group_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/GetOrgGroupPolicyOverride.rb b/examples/v2/org-groups/GetOrgGroupPolicyOverride.rb index d3e89c51e6d7..f5ff8c0647ce 100644 --- a/examples/v2/org-groups/GetOrgGroupPolicyOverride.rb +++ b/examples/v2/org-groups/GetOrgGroupPolicyOverride.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_org_group_policy_override".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroupMemberships.rb b/examples/v2/org-groups/ListOrgGroupMemberships.rb index d12ad5330c22..c9aa1b46c9c3 100644 --- a/examples/v2/org-groups/ListOrgGroupMemberships.rb +++ b/examples/v2/org-groups/ListOrgGroupMemberships.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_group_memberships".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroupPolicies.rb b/examples/v2/org-groups/ListOrgGroupPolicies.rb index e2f8d33fa3b1..b9c43e10d3b7 100644 --- a/examples/v2/org-groups/ListOrgGroupPolicies.rb +++ b/examples/v2/org-groups/ListOrgGroupPolicies.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_group_policies".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroupPolicyConfigs.rb b/examples/v2/org-groups/ListOrgGroupPolicyConfigs.rb index d966bd2833f1..72fe226c2867 100644 --- a/examples/v2/org-groups/ListOrgGroupPolicyConfigs.rb +++ b/examples/v2/org-groups/ListOrgGroupPolicyConfigs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_group_policy_configs".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroupPolicyOverrides.rb b/examples/v2/org-groups/ListOrgGroupPolicyOverrides.rb index 9172cf413483..8d815b4fb467 100644 --- a/examples/v2/org-groups/ListOrgGroupPolicyOverrides.rb +++ b/examples/v2/org-groups/ListOrgGroupPolicyOverrides.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_group_policy_overrides".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroupPolicySuggestions.rb b/examples/v2/org-groups/ListOrgGroupPolicySuggestions.rb index a749986bb635..ace0ae4830d3 100644 --- a/examples/v2/org-groups/ListOrgGroupPolicySuggestions.rb +++ b/examples/v2/org-groups/ListOrgGroupPolicySuggestions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_group_policy_suggestions".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/ListOrgGroups.rb b/examples/v2/org-groups/ListOrgGroups.rb index 3cdf3632f505..75850e187863 100644 --- a/examples/v2/org-groups/ListOrgGroups.rb +++ b/examples/v2/org-groups/ListOrgGroups.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_org_groups".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/UpdateOrgGroup.rb b/examples/v2/org-groups/UpdateOrgGroup.rb index cc6b02490957..fbcf488c7094 100644 --- a/examples/v2/org-groups/UpdateOrgGroup.rb +++ b/examples/v2/org-groups/UpdateOrgGroup.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_org_group".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/UpdateOrgGroupMembership.rb b/examples/v2/org-groups/UpdateOrgGroupMembership.rb index 2d7b019d0203..f59c9fdc4e61 100644 --- a/examples/v2/org-groups/UpdateOrgGroupMembership.rb +++ b/examples/v2/org-groups/UpdateOrgGroupMembership.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_org_group_membership".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/UpdateOrgGroupPolicy.rb b/examples/v2/org-groups/UpdateOrgGroupPolicy.rb index 19b1c803506a..535540662461 100644 --- a/examples/v2/org-groups/UpdateOrgGroupPolicy.rb +++ b/examples/v2/org-groups/UpdateOrgGroupPolicy.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_org_group_policy".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.rb b/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.rb index d4c9afbd9bf3..d2f30c6aa435 100644 --- a/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.rb +++ b/examples/v2/org-groups/UpdateOrgGroupPolicyOverride.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_org_group_policy_override".to_sym] = true end api_instance = DatadogAPIClient::V2::OrgGroupsAPI.new diff --git a/examples/v2/organizations/GetOrgConfig.rb b/examples/v2/organizations/GetOrgConfig.rb index dbd128c1c1de..cc40fd00814a 100644 --- a/examples/v2/organizations/GetOrgConfig.rb +++ b/examples/v2/organizations/GetOrgConfig.rb @@ -1,5 +1,8 @@ # Get a specific Org Config value returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.get_org_config("custom_roles") diff --git a/examples/v2/organizations/GetSAMLConfiguration.rb b/examples/v2/organizations/GetSAMLConfiguration.rb index 779e710e1af0..b528e290e4cf 100644 --- a/examples/v2/organizations/GetSAMLConfiguration.rb +++ b/examples/v2/organizations/GetSAMLConfiguration.rb @@ -1,5 +1,8 @@ # Get a SAML configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.get_saml_configuration("3653d3c6-0c75-11ea-ad28-fb5701eabc7d") diff --git a/examples/v2/organizations/ListGlobalOrgs.rb b/examples/v2/organizations/ListGlobalOrgs.rb index 043d2405c695..a556290ba915 100644 --- a/examples/v2/organizations/ListGlobalOrgs.rb +++ b/examples/v2/organizations/ListGlobalOrgs.rb @@ -1,5 +1,8 @@ # List global orgs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.list_global_orgs("user@example.com") diff --git a/examples/v2/organizations/ListGlobalOrgs_465966063.rb b/examples/v2/organizations/ListGlobalOrgs_465966063.rb index 611f7b866305..744b9e46dbd4 100644 --- a/examples/v2/organizations/ListGlobalOrgs_465966063.rb +++ b/examples/v2/organizations/ListGlobalOrgs_465966063.rb @@ -1,5 +1,8 @@ # List global orgs returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new api_instance.list_global_orgs_with_pagination("user@example.com") { |item| puts item } diff --git a/examples/v2/organizations/ListOrgConfigs.rb b/examples/v2/organizations/ListOrgConfigs.rb index 2fa2125f7bd2..fc21dcf6cd56 100644 --- a/examples/v2/organizations/ListOrgConfigs.rb +++ b/examples/v2/organizations/ListOrgConfigs.rb @@ -1,5 +1,8 @@ # List Org Configs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.list_org_configs() diff --git a/examples/v2/organizations/ListOrgs.rb b/examples/v2/organizations/ListOrgs.rb index efd03d6b5e87..6ce1882ee593 100644 --- a/examples/v2/organizations/ListOrgs.rb +++ b/examples/v2/organizations/ListOrgs.rb @@ -1,5 +1,8 @@ # List your managed organizations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.list_orgs() diff --git a/examples/v2/organizations/ListSAMLConfigurations.rb b/examples/v2/organizations/ListSAMLConfigurations.rb index 41175f17d552..b8134be4a904 100644 --- a/examples/v2/organizations/ListSAMLConfigurations.rb +++ b/examples/v2/organizations/ListSAMLConfigurations.rb @@ -1,5 +1,8 @@ # List SAML configurations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new p api_instance.list_saml_configurations() diff --git a/examples/v2/organizations/UpdateLoginOrgConfigsMaxSessionDuration.rb b/examples/v2/organizations/UpdateLoginOrgConfigsMaxSessionDuration.rb index 31e916298798..a6da91e64eeb 100644 --- a/examples/v2/organizations/UpdateLoginOrgConfigsMaxSessionDuration.rb +++ b/examples/v2/organizations/UpdateLoginOrgConfigsMaxSessionDuration.rb @@ -1,6 +1,9 @@ # Update the maximum session duration returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new body = DatadogAPIClient::V2::MaxSessionDurationUpdateRequest.new({ diff --git a/examples/v2/organizations/UpdateOrgConfig.rb b/examples/v2/organizations/UpdateOrgConfig.rb index a3e40500f28b..6783f8c2e1d2 100644 --- a/examples/v2/organizations/UpdateOrgConfig.rb +++ b/examples/v2/organizations/UpdateOrgConfig.rb @@ -1,6 +1,9 @@ # Update a specific Org Config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new body = DatadogAPIClient::V2::OrgConfigWriteRequest.new({ diff --git a/examples/v2/organizations/UpdateOrgSamlConfigurations.rb b/examples/v2/organizations/UpdateOrgSamlConfigurations.rb index c9b601202719..c0e23bc13e13 100644 --- a/examples/v2/organizations/UpdateOrgSamlConfigurations.rb +++ b/examples/v2/organizations/UpdateOrgSamlConfigurations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_org_saml_configurations".to_sym] = true end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new diff --git a/examples/v2/organizations/UpdateSAMLConfiguration.rb b/examples/v2/organizations/UpdateSAMLConfiguration.rb index 3bc2df3f2ade..40b3316bc479 100644 --- a/examples/v2/organizations/UpdateSAMLConfiguration.rb +++ b/examples/v2/organizations/UpdateSAMLConfiguration.rb @@ -1,6 +1,9 @@ # Update a SAML configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new body = DatadogAPIClient::V2::SAMLConfigurationUpdateRequest.new({ diff --git a/examples/v2/organizations/UploadIdPMetadata.rb b/examples/v2/organizations/UploadIdPMetadata.rb index 4bb996bf706b..f9b721cb9013 100644 --- a/examples/v2/organizations/UploadIdPMetadata.rb +++ b/examples/v2/organizations/UploadIdPMetadata.rb @@ -1,6 +1,9 @@ # Upload IdP metadata returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::OrganizationsAPI.new opts = { idp_file: File.open("fixtures/organizations/saml_configurations/valid_idp_metadata.xml", "r"), diff --git a/examples/v2/powerpack/CreatePowerpack.rb b/examples/v2/powerpack/CreatePowerpack.rb index 872ef343d49f..f7edd6bd0306 100644 --- a/examples/v2/powerpack/CreatePowerpack.rb +++ b/examples/v2/powerpack/CreatePowerpack.rb @@ -1,6 +1,9 @@ # Create a new powerpack returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new body = DatadogAPIClient::V2::Powerpack.new({ diff --git a/examples/v2/powerpack/DeletePowerpack.rb b/examples/v2/powerpack/DeletePowerpack.rb index db0de5929157..00bf0b3a10de 100644 --- a/examples/v2/powerpack/DeletePowerpack.rb +++ b/examples/v2/powerpack/DeletePowerpack.rb @@ -1,6 +1,9 @@ # Delete a powerpack returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new # there is a valid "powerpack" in the system diff --git a/examples/v2/powerpack/GetPowerpack.rb b/examples/v2/powerpack/GetPowerpack.rb index 9513e8f11937..1c1a8e0c7b37 100644 --- a/examples/v2/powerpack/GetPowerpack.rb +++ b/examples/v2/powerpack/GetPowerpack.rb @@ -1,6 +1,9 @@ # Get a Powerpack returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new # there is a valid "powerpack" in the system diff --git a/examples/v2/powerpack/ListPowerpacks.rb b/examples/v2/powerpack/ListPowerpacks.rb index dff538ec8268..6a39690cad3c 100644 --- a/examples/v2/powerpack/ListPowerpacks.rb +++ b/examples/v2/powerpack/ListPowerpacks.rb @@ -1,6 +1,9 @@ # Get all powerpacks returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new opts = { page_limit: 1000, diff --git a/examples/v2/powerpack/ListPowerpacks_1173755071.rb b/examples/v2/powerpack/ListPowerpacks_1173755071.rb index 850bf2d2b1d8..fef016d6c852 100644 --- a/examples/v2/powerpack/ListPowerpacks_1173755071.rb +++ b/examples/v2/powerpack/ListPowerpacks_1173755071.rb @@ -1,6 +1,9 @@ # Get all powerpacks returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new opts = { page_limit: 2, diff --git a/examples/v2/powerpack/UpdatePowerpack.rb b/examples/v2/powerpack/UpdatePowerpack.rb index 38d699e31f42..c882935f9b56 100644 --- a/examples/v2/powerpack/UpdatePowerpack.rb +++ b/examples/v2/powerpack/UpdatePowerpack.rb @@ -1,6 +1,9 @@ # Update a powerpack returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::PowerpackAPI.new # there is a valid "powerpack" in the system diff --git a/examples/v2/processes/ListProcesses.rb b/examples/v2/processes/ListProcesses.rb index c7ece3ae5c9e..9a5e5af2b312 100644 --- a/examples/v2/processes/ListProcesses.rb +++ b/examples/v2/processes/ListProcesses.rb @@ -1,6 +1,9 @@ # Get all processes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ProcessesAPI.new opts = { search: "process-agent", diff --git a/examples/v2/processes/ListProcesses_797840471.rb b/examples/v2/processes/ListProcesses_797840471.rb index 7c529c25be33..401853ddb702 100644 --- a/examples/v2/processes/ListProcesses_797840471.rb +++ b/examples/v2/processes/ListProcesses_797840471.rb @@ -1,6 +1,9 @@ # Get all processes returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ProcessesAPI.new opts = { page_limit: 2, diff --git a/examples/v2/product-analytics/QueryProductAnalyticsJourneyFunnel.rb b/examples/v2/product-analytics/QueryProductAnalyticsJourneyFunnel.rb index 72f1e4593627..9f6cae6b9a07 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsJourneyFunnel.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsJourneyFunnel.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_journey_funnel".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsJourneyList.rb b/examples/v2/product-analytics/QueryProductAnalyticsJourneyList.rb index 773e61f18c4d..ca84fa6d4341 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsJourneyList.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsJourneyList.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_journey_list".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsJourneyScalar.rb b/examples/v2/product-analytics/QueryProductAnalyticsJourneyScalar.rb index 3600490b6f73..fa3cebb0ad37 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsJourneyScalar.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsJourneyScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_journey_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsJourneyTimeseries.rb b/examples/v2/product-analytics/QueryProductAnalyticsJourneyTimeseries.rb index e50d339d286c..b27ace4292fb 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsJourneyTimeseries.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsJourneyTimeseries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_journey_timeseries".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsList.rb b/examples/v2/product-analytics/QueryProductAnalyticsList.rb index 09fd86313523..bacb79f0326f 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsList.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsList.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_list".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsRetentionGrid.rb b/examples/v2/product-analytics/QueryProductAnalyticsRetentionGrid.rb index 534de05ea631..124af8f31b77 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsRetentionGrid.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsRetentionGrid.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_retention_grid".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsRetentionList.rb b/examples/v2/product-analytics/QueryProductAnalyticsRetentionList.rb index 6ecfb1b0941c..bc437f9b1f5a 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsRetentionList.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsRetentionList.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_retention_list".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsRetentionScalar.rb b/examples/v2/product-analytics/QueryProductAnalyticsRetentionScalar.rb index ea462caae69d..6f5bda4f2755 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsRetentionScalar.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsRetentionScalar.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_retention_scalar".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsRetentionTimeseries.rb b/examples/v2/product-analytics/QueryProductAnalyticsRetentionTimeseries.rb index a2213ef9527d..7cc9afacb14d 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsRetentionTimeseries.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsRetentionTimeseries.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_retention_timeseries".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsSankey.rb b/examples/v2/product-analytics/QueryProductAnalyticsSankey.rb index 633177af2510..746f82dc00fe 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsSankey.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsSankey.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_product_analytics_sankey".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new diff --git a/examples/v2/product-analytics/QueryProductAnalyticsScalar.rb b/examples/v2/product-analytics/QueryProductAnalyticsScalar.rb index 02d79d1bc8f7..51c8b54cbc56 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsScalar.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsScalar.rb @@ -1,6 +1,9 @@ # Compute scalar analytics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new body = DatadogAPIClient::V2::ProductAnalyticsAnalyticsRequest.new({ diff --git a/examples/v2/product-analytics/QueryProductAnalyticsTimeseries.rb b/examples/v2/product-analytics/QueryProductAnalyticsTimeseries.rb index fc731272938e..94bcb2994471 100644 --- a/examples/v2/product-analytics/QueryProductAnalyticsTimeseries.rb +++ b/examples/v2/product-analytics/QueryProductAnalyticsTimeseries.rb @@ -1,6 +1,9 @@ # Compute timeseries analytics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ProductAnalyticsAPI.new body = DatadogAPIClient::V2::ProductAnalyticsAnalyticsRequest.new({ diff --git a/examples/v2/product-catalog/ListProductCatalogSKUs.rb b/examples/v2/product-catalog/ListProductCatalogSKUs.rb index 066f95e7ea3f..79def5cb7358 100644 --- a/examples/v2/product-catalog/ListProductCatalogSKUs.rb +++ b/examples/v2/product-catalog/ListProductCatalogSKUs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_product_catalog_sk_us".to_sym] = true end api_instance = DatadogAPIClient::V2::ProductCatalogAPI.new diff --git a/examples/v2/reference-tables/BatchRowsQuery.rb b/examples/v2/reference-tables/BatchRowsQuery.rb index e1db529ef671..3f9e04e50e2e 100644 --- a/examples/v2/reference-tables/BatchRowsQuery.rb +++ b/examples/v2/reference-tables/BatchRowsQuery.rb @@ -2,6 +2,9 @@ # rows in the included section." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::BatchRowsQueryRequest.new({ diff --git a/examples/v2/reference-tables/CreateReferenceTable.rb b/examples/v2/reference-tables/CreateReferenceTable.rb index 4ca8e9990cbc..5be858a69a48 100644 --- a/examples/v2/reference-tables/CreateReferenceTable.rb +++ b/examples/v2/reference-tables/CreateReferenceTable.rb @@ -1,6 +1,9 @@ # Create reference table returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::CreateTableRequest.new({ diff --git a/examples/v2/reference-tables/CreateReferenceTableUpload.rb b/examples/v2/reference-tables/CreateReferenceTableUpload.rb index 9a1213cc7863..c7f7c1b204ac 100644 --- a/examples/v2/reference-tables/CreateReferenceTableUpload.rb +++ b/examples/v2/reference-tables/CreateReferenceTableUpload.rb @@ -1,6 +1,9 @@ # Create reference table upload returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::CreateUploadRequest.new({ diff --git a/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb b/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb index d5792010bff4..cccb146251bb 100644 --- a/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb +++ b/examples/v2/reference-tables/CreateReferenceTable_3196130987.rb @@ -1,6 +1,9 @@ # Create reference table with upload returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::CreateTableRequest.new({ diff --git a/examples/v2/reference-tables/DeleteRows.rb b/examples/v2/reference-tables/DeleteRows.rb index 6b9d8224b4f2..fa3deecd862e 100644 --- a/examples/v2/reference-tables/DeleteRows.rb +++ b/examples/v2/reference-tables/DeleteRows.rb @@ -1,6 +1,9 @@ # Delete rows returns "Rows deleted successfully" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::BatchDeleteRowsRequestArray.new({ diff --git a/examples/v2/reference-tables/DeleteTable.rb b/examples/v2/reference-tables/DeleteTable.rb index 44870b846336..9ce5774c365d 100644 --- a/examples/v2/reference-tables/DeleteTable.rb +++ b/examples/v2/reference-tables/DeleteTable.rb @@ -1,5 +1,8 @@ # Delete table returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new p api_instance.delete_table("id") diff --git a/examples/v2/reference-tables/GetRowsByID.rb b/examples/v2/reference-tables/GetRowsByID.rb index 59436730fc9b..64dc8f6af18a 100644 --- a/examples/v2/reference-tables/GetRowsByID.rb +++ b/examples/v2/reference-tables/GetRowsByID.rb @@ -1,5 +1,8 @@ # Get rows by id returns "Some or all requested rows were found." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new p api_instance.get_rows_by_id("id", []) diff --git a/examples/v2/reference-tables/GetTable.rb b/examples/v2/reference-tables/GetTable.rb index 4c0266feedc4..494926da125a 100644 --- a/examples/v2/reference-tables/GetTable.rb +++ b/examples/v2/reference-tables/GetTable.rb @@ -1,5 +1,8 @@ # Get table returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new p api_instance.get_table("id") diff --git a/examples/v2/reference-tables/ListReferenceTableRows.rb b/examples/v2/reference-tables/ListReferenceTableRows.rb index c07ce192e480..6b6a81e9e1c4 100644 --- a/examples/v2/reference-tables/ListReferenceTableRows.rb +++ b/examples/v2/reference-tables/ListReferenceTableRows.rb @@ -1,5 +1,8 @@ # List rows returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new p api_instance.list_reference_table_rows("id") diff --git a/examples/v2/reference-tables/ListTables.rb b/examples/v2/reference-tables/ListTables.rb index 4ce11b25aa4a..1a88dc89d55d 100644 --- a/examples/v2/reference-tables/ListTables.rb +++ b/examples/v2/reference-tables/ListTables.rb @@ -1,5 +1,8 @@ # List tables returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new p api_instance.list_tables() diff --git a/examples/v2/reference-tables/UpdateReferenceTable.rb b/examples/v2/reference-tables/UpdateReferenceTable.rb index 7da8bb44a555..c3293b7e13f8 100644 --- a/examples/v2/reference-tables/UpdateReferenceTable.rb +++ b/examples/v2/reference-tables/UpdateReferenceTable.rb @@ -1,6 +1,9 @@ # Update reference table returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::PatchTableRequest.new({ diff --git a/examples/v2/reference-tables/UpsertRows.rb b/examples/v2/reference-tables/UpsertRows.rb index 4e39959454b0..e50526c08f9e 100644 --- a/examples/v2/reference-tables/UpsertRows.rb +++ b/examples/v2/reference-tables/UpsertRows.rb @@ -1,6 +1,9 @@ # Upsert rows returns "Rows created or updated successfully" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReferenceTablesAPI.new body = DatadogAPIClient::V2::BatchUpsertRowsRequestArray.new({ diff --git a/examples/v2/report-schedules/CreateReportSchedule.rb b/examples/v2/report-schedules/CreateReportSchedule.rb index 9fa645c6461b..0bd7c400f0c1 100644 --- a/examples/v2/report-schedules/CreateReportSchedule.rb +++ b/examples/v2/report-schedules/CreateReportSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_report_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new diff --git a/examples/v2/report-schedules/DeleteReportSchedule.rb b/examples/v2/report-schedules/DeleteReportSchedule.rb index e9b15a76f1fd..a86dcbfbba60 100644 --- a/examples/v2/report-schedules/DeleteReportSchedule.rb +++ b/examples/v2/report-schedules/DeleteReportSchedule.rb @@ -1,5 +1,8 @@ # Delete a report schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new p api_instance.delete_report_schedule("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/report-schedules/GetReportSchedule.rb b/examples/v2/report-schedules/GetReportSchedule.rb index 00202876c4fd..352adacb861f 100644 --- a/examples/v2/report-schedules/GetReportSchedule.rb +++ b/examples/v2/report-schedules/GetReportSchedule.rb @@ -1,5 +1,8 @@ # Get a report schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new p api_instance.get_report_schedule("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/report-schedules/GetReportSchedulesForResource.rb b/examples/v2/report-schedules/GetReportSchedulesForResource.rb index df3bf899e198..9073c3fda9e6 100644 --- a/examples/v2/report-schedules/GetReportSchedulesForResource.rb +++ b/examples/v2/report-schedules/GetReportSchedulesForResource.rb @@ -1,5 +1,8 @@ # Get report schedules for a resource returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new p api_instance.get_report_schedules_for_resource(ReportScheduleResourceType::DASHBOARD, "resource_id") diff --git a/examples/v2/report-schedules/ListDatasetReportSchedules.rb b/examples/v2/report-schedules/ListDatasetReportSchedules.rb index 85583597d257..cc906b6da565 100644 --- a/examples/v2/report-schedules/ListDatasetReportSchedules.rb +++ b/examples/v2/report-schedules/ListDatasetReportSchedules.rb @@ -1,5 +1,8 @@ # List dataset report schedules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new p api_instance.list_dataset_report_schedules("dataset_id") diff --git a/examples/v2/report-schedules/ListReportSchedules.rb b/examples/v2/report-schedules/ListReportSchedules.rb index e7277f365961..27c6de92ad33 100644 --- a/examples/v2/report-schedules/ListReportSchedules.rb +++ b/examples/v2/report-schedules/ListReportSchedules.rb @@ -1,5 +1,8 @@ # List report schedules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new p api_instance.list_report_schedules() diff --git a/examples/v2/report-schedules/PatchReportSchedule.rb b/examples/v2/report-schedules/PatchReportSchedule.rb index 31fc99214f46..4c55ca59b517 100644 --- a/examples/v2/report-schedules/PatchReportSchedule.rb +++ b/examples/v2/report-schedules/PatchReportSchedule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.patch_report_schedule".to_sym] = true end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new diff --git a/examples/v2/report-schedules/PrintReport.rb b/examples/v2/report-schedules/PrintReport.rb index 53c5badc8137..ff2b8c63838a 100644 --- a/examples/v2/report-schedules/PrintReport.rb +++ b/examples/v2/report-schedules/PrintReport.rb @@ -1,6 +1,9 @@ # Print a report returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new body = DatadogAPIClient::V2::PrintReportRequest.new({ diff --git a/examples/v2/report-schedules/ToggleReportSchedule.rb b/examples/v2/report-schedules/ToggleReportSchedule.rb index 5be1242e590a..5e4f5b7e9395 100644 --- a/examples/v2/report-schedules/ToggleReportSchedule.rb +++ b/examples/v2/report-schedules/ToggleReportSchedule.rb @@ -1,6 +1,9 @@ # Toggle a report schedule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new body = DatadogAPIClient::V2::ReportScheduleToggleRequest.new({ diff --git a/examples/v2/reporting-and-sharing/CreateSnapshot.rb b/examples/v2/reporting-and-sharing/CreateSnapshot.rb index 6da4257cda9f..9b486d6965b6 100644 --- a/examples/v2/reporting-and-sharing/CreateSnapshot.rb +++ b/examples/v2/reporting-and-sharing/CreateSnapshot.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_snapshot".to_sym] = true end api_instance = DatadogAPIClient::V2::ReportingAndSharingAPI.new diff --git a/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb b/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb index fdbc3f13017b..1dee902a349b 100644 --- a/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb +++ b/examples/v2/restriction-policies/DeleteRestrictionPolicy.rb @@ -1,5 +1,8 @@ # Delete a restriction policy returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RestrictionPoliciesAPI.new api_instance.delete_restriction_policy("dashboard:test-delete") diff --git a/examples/v2/restriction-policies/GetRestrictionPolicy.rb b/examples/v2/restriction-policies/GetRestrictionPolicy.rb index 1e491512670c..d34083b2bf0d 100644 --- a/examples/v2/restriction-policies/GetRestrictionPolicy.rb +++ b/examples/v2/restriction-policies/GetRestrictionPolicy.rb @@ -1,5 +1,8 @@ # Get a restriction policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RestrictionPoliciesAPI.new p api_instance.get_restriction_policy("dashboard:test-get") diff --git a/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb b/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb index ffde39ef20ed..1d391021e230 100644 --- a/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb +++ b/examples/v2/restriction-policies/UpdateRestrictionPolicy.rb @@ -1,6 +1,9 @@ # Update a restriction policy returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RestrictionPoliciesAPI.new # there is a valid "user" in the system diff --git a/examples/v2/roles/AddPermissionToRole.rb b/examples/v2/roles/AddPermissionToRole.rb index ca16214c3413..cb41a8c24f7a 100644 --- a/examples/v2/roles/AddPermissionToRole.rb +++ b/examples/v2/roles/AddPermissionToRole.rb @@ -1,6 +1,9 @@ # Grant permission to a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/AddUserToRole.rb b/examples/v2/roles/AddUserToRole.rb index fd82f46478be..d773f027189d 100644 --- a/examples/v2/roles/AddUserToRole.rb +++ b/examples/v2/roles/AddUserToRole.rb @@ -1,6 +1,9 @@ # Add a user to a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/CloneRole.rb b/examples/v2/roles/CloneRole.rb index 025cac884d14..debe9ccfb3ef 100644 --- a/examples/v2/roles/CloneRole.rb +++ b/examples/v2/roles/CloneRole.rb @@ -1,6 +1,9 @@ # Create a new role by cloning an existing role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/CreateRole.rb b/examples/v2/roles/CreateRole.rb index f7185f096951..c8325d466a60 100644 --- a/examples/v2/roles/CreateRole.rb +++ b/examples/v2/roles/CreateRole.rb @@ -1,6 +1,9 @@ # Create role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new body = DatadogAPIClient::V2::RoleCreateRequest.new({ diff --git a/examples/v2/roles/CreateRole_3862893229.rb b/examples/v2/roles/CreateRole_3862893229.rb index d2669f4b0221..05587be1c2ac 100644 --- a/examples/v2/roles/CreateRole_3862893229.rb +++ b/examples/v2/roles/CreateRole_3862893229.rb @@ -1,6 +1,9 @@ # Create role with a permission returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "permission" in the system diff --git a/examples/v2/roles/DeleteRole.rb b/examples/v2/roles/DeleteRole.rb index 225695359d40..4c262be5412b 100644 --- a/examples/v2/roles/DeleteRole.rb +++ b/examples/v2/roles/DeleteRole.rb @@ -1,6 +1,9 @@ # Delete role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/GetRole.rb b/examples/v2/roles/GetRole.rb index 6dfdef5cb9b6..a75cfa64f669 100644 --- a/examples/v2/roles/GetRole.rb +++ b/examples/v2/roles/GetRole.rb @@ -1,6 +1,9 @@ # Get a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/ListPermissions.rb b/examples/v2/roles/ListPermissions.rb index f54fa8ebe59f..b58c7ed8cae0 100644 --- a/examples/v2/roles/ListPermissions.rb +++ b/examples/v2/roles/ListPermissions.rb @@ -1,5 +1,8 @@ # List permissions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new p api_instance.list_permissions() diff --git a/examples/v2/roles/ListPermissions_1350046915.rb b/examples/v2/roles/ListPermissions_1350046915.rb index a36501bc504e..4ebf72a00628 100644 --- a/examples/v2/roles/ListPermissions_1350046915.rb +++ b/examples/v2/roles/ListPermissions_1350046915.rb @@ -1,6 +1,9 @@ # List permissions including scopes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new opts = { include_scopes: true, diff --git a/examples/v2/roles/ListRolePermissions.rb b/examples/v2/roles/ListRolePermissions.rb index 78d2b90f9e6b..c7cfb562ad7b 100644 --- a/examples/v2/roles/ListRolePermissions.rb +++ b/examples/v2/roles/ListRolePermissions.rb @@ -1,6 +1,9 @@ # List permissions for a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/ListRoleTemplates.rb b/examples/v2/roles/ListRoleTemplates.rb index 6d07658e578c..96f445b0d876 100644 --- a/examples/v2/roles/ListRoleTemplates.rb +++ b/examples/v2/roles/ListRoleTemplates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_role_templates".to_sym] = true end api_instance = DatadogAPIClient::V2::RolesAPI.new diff --git a/examples/v2/roles/ListRoleUsers.rb b/examples/v2/roles/ListRoleUsers.rb index 8859a03e2142..bfb0f1fa4087 100644 --- a/examples/v2/roles/ListRoleUsers.rb +++ b/examples/v2/roles/ListRoleUsers.rb @@ -1,6 +1,9 @@ # Get all users of a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/ListRoles.rb b/examples/v2/roles/ListRoles.rb index 464ee220298b..83ec4665f055 100644 --- a/examples/v2/roles/ListRoles.rb +++ b/examples/v2/roles/ListRoles.rb @@ -1,6 +1,9 @@ # List roles returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/RemovePermissionFromRole.rb b/examples/v2/roles/RemovePermissionFromRole.rb index 787a21a3c4c9..78735ba86c05 100644 --- a/examples/v2/roles/RemovePermissionFromRole.rb +++ b/examples/v2/roles/RemovePermissionFromRole.rb @@ -1,6 +1,9 @@ # Revoke permission returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/RemoveUserFromRole.rb b/examples/v2/roles/RemoveUserFromRole.rb index e774ba927851..2746fb238c8f 100644 --- a/examples/v2/roles/RemoveUserFromRole.rb +++ b/examples/v2/roles/RemoveUserFromRole.rb @@ -1,6 +1,9 @@ # Remove a user from a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/roles/UpdateRole.rb b/examples/v2/roles/UpdateRole.rb index 8cc09a7a85cd..2c62e6fbf541 100644 --- a/examples/v2/roles/UpdateRole.rb +++ b/examples/v2/roles/UpdateRole.rb @@ -1,6 +1,9 @@ # Update a role returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RolesAPI.new # there is a valid "role" in the system diff --git a/examples/v2/rum-audience-management/CreateConnection.rb b/examples/v2/rum-audience-management/CreateConnection.rb index e51fc17e9df9..fc0b93c1579f 100644 --- a/examples/v2/rum-audience-management/CreateConnection.rb +++ b/examples/v2/rum-audience-management/CreateConnection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_connection".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/DeleteConnection.rb b/examples/v2/rum-audience-management/DeleteConnection.rb index 18436fcd91a6..97011d4b1b83 100644 --- a/examples/v2/rum-audience-management/DeleteConnection.rb +++ b/examples/v2/rum-audience-management/DeleteConnection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_connection".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/GetAccountFacetInfo.rb b/examples/v2/rum-audience-management/GetAccountFacetInfo.rb index c9919fb4be90..dbe7eb27a4fb 100644 --- a/examples/v2/rum-audience-management/GetAccountFacetInfo.rb +++ b/examples/v2/rum-audience-management/GetAccountFacetInfo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_account_facet_info".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/GetMapping.rb b/examples/v2/rum-audience-management/GetMapping.rb index 2353294cab9c..0d946593b6b9 100644 --- a/examples/v2/rum-audience-management/GetMapping.rb +++ b/examples/v2/rum-audience-management/GetMapping.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_mapping".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/GetUserFacetInfo.rb b/examples/v2/rum-audience-management/GetUserFacetInfo.rb index dcb9b0474b10..279e5ef0cc6b 100644 --- a/examples/v2/rum-audience-management/GetUserFacetInfo.rb +++ b/examples/v2/rum-audience-management/GetUserFacetInfo.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_user_facet_info".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/ListConnections.rb b/examples/v2/rum-audience-management/ListConnections.rb index 3f0c7e32dc1e..3300dcb63a3d 100644 --- a/examples/v2/rum-audience-management/ListConnections.rb +++ b/examples/v2/rum-audience-management/ListConnections.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_connections".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/QueryAccounts.rb b/examples/v2/rum-audience-management/QueryAccounts.rb index 7d8daa3e16c5..3b69735dc4e1 100644 --- a/examples/v2/rum-audience-management/QueryAccounts.rb +++ b/examples/v2/rum-audience-management/QueryAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb b/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb index abf126a00fe4..fc0054a0e4c4 100644 --- a/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb +++ b/examples/v2/rum-audience-management/QueryEventFilteredUsers.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_event_filtered_users".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/QueryUsers.rb b/examples/v2/rum-audience-management/QueryUsers.rb index eb70d905912d..f9ed1f676a9d 100644 --- a/examples/v2/rum-audience-management/QueryUsers.rb +++ b/examples/v2/rum-audience-management/QueryUsers.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_users".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-audience-management/UpdateConnection.rb b/examples/v2/rum-audience-management/UpdateConnection.rb index 1ed71e5e3f0a..0bc17c794fb6 100644 --- a/examples/v2/rum-audience-management/UpdateConnection.rb +++ b/examples/v2/rum-audience-management/UpdateConnection.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_connection".to_sym] = true end api_instance = DatadogAPIClient::V2::RumAudienceManagementAPI.new diff --git a/examples/v2/rum-config/CreateRumConfig.rb b/examples/v2/rum-config/CreateRumConfig.rb index d69b7713a141..14c308e8fb79 100644 --- a/examples/v2/rum-config/CreateRumConfig.rb +++ b/examples/v2/rum-config/CreateRumConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_rum_config".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMConfigAPI.new diff --git a/examples/v2/rum-config/GetRumConfig.rb b/examples/v2/rum-config/GetRumConfig.rb index ace6afef6c2d..812cd33b829f 100644 --- a/examples/v2/rum-config/GetRumConfig.rb +++ b/examples/v2/rum-config/GetRumConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rum_config".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMConfigAPI.new diff --git a/examples/v2/rum-config/UpdateRumConfig.rb b/examples/v2/rum-config/UpdateRumConfig.rb index ab462c335c76..7e8b65a58488 100644 --- a/examples/v2/rum-config/UpdateRumConfig.rb +++ b/examples/v2/rum-config/UpdateRumConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_rum_config".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMConfigAPI.new diff --git a/examples/v2/rum-insights/QueryAggregatedLongTasks.rb b/examples/v2/rum-insights/QueryAggregatedLongTasks.rb index 2c71b4358e3c..d032755da6e5 100644 --- a/examples/v2/rum-insights/QueryAggregatedLongTasks.rb +++ b/examples/v2/rum-insights/QueryAggregatedLongTasks.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_aggregated_long_tasks".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMInsightsAPI.new diff --git a/examples/v2/rum-insights/QueryAggregatedSignalsProblems.rb b/examples/v2/rum-insights/QueryAggregatedSignalsProblems.rb index f80c5996d269..f4f7b878eea0 100644 --- a/examples/v2/rum-insights/QueryAggregatedSignalsProblems.rb +++ b/examples/v2/rum-insights/QueryAggregatedSignalsProblems.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_aggregated_signals_problems".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMInsightsAPI.new diff --git a/examples/v2/rum-insights/QueryAggregatedWaterfall.rb b/examples/v2/rum-insights/QueryAggregatedWaterfall.rb index 74375d65bd53..e585cdaa37f8 100644 --- a/examples/v2/rum-insights/QueryAggregatedWaterfall.rb +++ b/examples/v2/rum-insights/QueryAggregatedWaterfall.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.query_aggregated_waterfall".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMInsightsAPI.new diff --git a/examples/v2/rum-metrics/CreateRumMetric.rb b/examples/v2/rum-metrics/CreateRumMetric.rb index 68e6ec0ff52a..edb6278cfe5a 100644 --- a/examples/v2/rum-metrics/CreateRumMetric.rb +++ b/examples/v2/rum-metrics/CreateRumMetric.rb @@ -1,6 +1,9 @@ # Create a RUM-based metric returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumMetricsAPI.new body = DatadogAPIClient::V2::RumMetricCreateRequest.new({ diff --git a/examples/v2/rum-metrics/DeleteRumMetric.rb b/examples/v2/rum-metrics/DeleteRumMetric.rb index 1790931720f2..c0bb8ed0d6ea 100644 --- a/examples/v2/rum-metrics/DeleteRumMetric.rb +++ b/examples/v2/rum-metrics/DeleteRumMetric.rb @@ -1,6 +1,9 @@ # Delete a RUM-based metric returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumMetricsAPI.new # there is a valid "rum_metric" in the system diff --git a/examples/v2/rum-metrics/GetRumMetric.rb b/examples/v2/rum-metrics/GetRumMetric.rb index 74f773565960..1d22ee653591 100644 --- a/examples/v2/rum-metrics/GetRumMetric.rb +++ b/examples/v2/rum-metrics/GetRumMetric.rb @@ -1,6 +1,9 @@ # Get a RUM-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumMetricsAPI.new # there is a valid "rum_metric" in the system diff --git a/examples/v2/rum-metrics/ListRumMetrics.rb b/examples/v2/rum-metrics/ListRumMetrics.rb index 6bae33120352..d6bcbd7bb634 100644 --- a/examples/v2/rum-metrics/ListRumMetrics.rb +++ b/examples/v2/rum-metrics/ListRumMetrics.rb @@ -1,5 +1,8 @@ # Get all RUM-based metrics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumMetricsAPI.new p api_instance.list_rum_metrics() diff --git a/examples/v2/rum-metrics/UpdateRumMetric.rb b/examples/v2/rum-metrics/UpdateRumMetric.rb index 35faa1162f73..0a159fa04a0e 100644 --- a/examples/v2/rum-metrics/UpdateRumMetric.rb +++ b/examples/v2/rum-metrics/UpdateRumMetric.rb @@ -1,6 +1,9 @@ # Update a RUM-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumMetricsAPI.new # there is a valid "rum_metric" in the system diff --git a/examples/v2/rum-operations/CreateRUMOperation.rb b/examples/v2/rum-operations/CreateRUMOperation.rb index 3cafb0add324..175cbb1b1b94 100644 --- a/examples/v2/rum-operations/CreateRUMOperation.rb +++ b/examples/v2/rum-operations/CreateRUMOperation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_rum_operation".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/CreateRUMOperationStrongLink.rb b/examples/v2/rum-operations/CreateRUMOperationStrongLink.rb index 26112ad40e06..06add8506896 100644 --- a/examples/v2/rum-operations/CreateRUMOperationStrongLink.rb +++ b/examples/v2/rum-operations/CreateRUMOperationStrongLink.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_rum_operation_strong_link".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/DeleteRUMOperation.rb b/examples/v2/rum-operations/DeleteRUMOperation.rb index 23fb60229546..2c1b3b170f79 100644 --- a/examples/v2/rum-operations/DeleteRUMOperation.rb +++ b/examples/v2/rum-operations/DeleteRUMOperation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_rum_operation".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.rb b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.rb index 2ebb1b2d1fff..3c124d23672a 100644 --- a/examples/v2/rum-operations/DeleteRUMOperationStrongLink.rb +++ b/examples/v2/rum-operations/DeleteRUMOperationStrongLink.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_rum_operation_strong_link".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/GetRUMOperation.rb b/examples/v2/rum-operations/GetRUMOperation.rb index 9e31c2cd373b..d273d469a8a6 100644 --- a/examples/v2/rum-operations/GetRUMOperation.rb +++ b/examples/v2/rum-operations/GetRUMOperation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rum_operation".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/GetRUMOperationByName.rb b/examples/v2/rum-operations/GetRUMOperationByName.rb index 0ec5ed3016ff..3bf159d64820 100644 --- a/examples/v2/rum-operations/GetRUMOperationByName.rb +++ b/examples/v2/rum-operations/GetRUMOperationByName.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rum_operation_by_name".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/ListRUMOperationStrongLinks.rb b/examples/v2/rum-operations/ListRUMOperationStrongLinks.rb index e6486aff441d..6e4df0b12a1d 100644 --- a/examples/v2/rum-operations/ListRUMOperationStrongLinks.rb +++ b/examples/v2/rum-operations/ListRUMOperationStrongLinks.rb @@ -1,5 +1,8 @@ # List RUM operation strong links returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new p api_instance.list_rum_operation_strong_links() diff --git a/examples/v2/rum-operations/ListRUMOperations.rb b/examples/v2/rum-operations/ListRUMOperations.rb index fd37483e94ca..6e17c858dfe6 100644 --- a/examples/v2/rum-operations/ListRUMOperations.rb +++ b/examples/v2/rum-operations/ListRUMOperations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_rum_operations".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/UpdateRUMOperation.rb b/examples/v2/rum-operations/UpdateRUMOperation.rb index 8bc4cc97c7a3..59244f51994e 100644 --- a/examples/v2/rum-operations/UpdateRUMOperation.rb +++ b/examples/v2/rum-operations/UpdateRUMOperation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_rum_operation".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb index e35bc9e50e5a..3cfe210bd98b 100644 --- a/examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb +++ b/examples/v2/rum-operations/UpdateRUMOperationStrongLink.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_rum_operation_strong_link".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMOperationsAPI.new diff --git a/examples/v2/rum-remote-config/GetRumSdkConfig.rb b/examples/v2/rum-remote-config/GetRumSdkConfig.rb index 70cfb135bbed..07e01455c697 100644 --- a/examples/v2/rum-remote-config/GetRumSdkConfig.rb +++ b/examples/v2/rum-remote-config/GetRumSdkConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rum_sdk_config".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMRemoteConfigAPI.new diff --git a/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb b/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb index da6e0afe42b8..d91af5eea837 100644 --- a/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb +++ b/examples/v2/rum-remote-config/UpdateRumSdkConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_rum_sdk_config".to_sym] = true end api_instance = DatadogAPIClient::V2::RUMRemoteConfigAPI.new diff --git a/examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb b/examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb index b0596bfd96bd..acff722ddecc 100644 --- a/examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb +++ b/examples/v2/rum-replay-heatmaps/CreateReplayHeatmapSnapshot.rb @@ -1,6 +1,9 @@ # Create replay heatmap snapshot returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new body = DatadogAPIClient::V2::SnapshotCreateRequest.new({ diff --git a/examples/v2/rum-replay-heatmaps/DeleteReplayHeatmapSnapshot.rb b/examples/v2/rum-replay-heatmaps/DeleteReplayHeatmapSnapshot.rb index 88ad93ad14d2..d89b0b539cb9 100644 --- a/examples/v2/rum-replay-heatmaps/DeleteReplayHeatmapSnapshot.rb +++ b/examples/v2/rum-replay-heatmaps/DeleteReplayHeatmapSnapshot.rb @@ -1,5 +1,8 @@ # Delete replay heatmap snapshot returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new api_instance.delete_replay_heatmap_snapshot("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb b/examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb index 1ae529b500ea..ad76c9b4bb6a 100644 --- a/examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb +++ b/examples/v2/rum-replay-heatmaps/ListReplayHeatmapSnapshots.rb @@ -1,5 +1,8 @@ # List replay heatmap snapshots returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new p api_instance.list_replay_heatmap_snapshots("/home") diff --git a/examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb b/examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb index 0a5d1793ce85..9065f3fd8b9a 100644 --- a/examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb +++ b/examples/v2/rum-replay-heatmaps/UpdateReplayHeatmapSnapshot.rb @@ -1,6 +1,9 @@ # Update replay heatmap snapshot returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayHeatmapsAPI.new body = DatadogAPIClient::V2::SnapshotUpdateRequest.new({ diff --git a/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.rb b/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.rb index 2d789f792208..d7ae3d95c44a 100644 --- a/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.rb +++ b/examples/v2/rum-replay-playlists/AddRumReplaySessionToPlaylist.rb @@ -1,5 +1,8 @@ # Add RUM replay session to playlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new p api_instance.add_rum_replay_session_to_playlist(1704067200000, 1234567, "00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.rb b/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.rb index f41abe8df8f8..0dcdebdd73ed 100644 --- a/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.rb +++ b/examples/v2/rum-replay-playlists/BulkRemoveRumReplayPlaylistSessions.rb @@ -1,6 +1,9 @@ # Bulk remove RUM replay playlist sessions returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new body = DatadogAPIClient::V2::SessionIdArray.new({ diff --git a/examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb b/examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb index 2e678346042d..82644d04b25d 100644 --- a/examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb +++ b/examples/v2/rum-replay-playlists/CreateRumReplayPlaylist.rb @@ -1,6 +1,9 @@ # Create RUM replay playlist returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new body = DatadogAPIClient::V2::Playlist.new({ diff --git a/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb b/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb index 1310d6e83974..10a926c4f9d2 100644 --- a/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb +++ b/examples/v2/rum-replay-playlists/DeleteRumReplayPlaylist.rb @@ -1,5 +1,8 @@ # Delete RUM replay playlist returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new api_instance.delete_rum_replay_playlist(1234567) diff --git a/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb b/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb index d6c6630dfb7c..cb20bd1b30c2 100644 --- a/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb +++ b/examples/v2/rum-replay-playlists/GetRumReplayPlaylist.rb @@ -1,5 +1,8 @@ # Get RUM replay playlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new p api_instance.get_rum_replay_playlist(1234567) diff --git a/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.rb b/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.rb index e0e6ccb4fe75..83c3d86fbabf 100644 --- a/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.rb +++ b/examples/v2/rum-replay-playlists/ListRumReplayPlaylistSessions.rb @@ -1,5 +1,8 @@ # List RUM replay playlist sessions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new p api_instance.list_rum_replay_playlist_sessions(1234567) diff --git a/examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb b/examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb index 8e3bb95322c8..36a434783e32 100644 --- a/examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb +++ b/examples/v2/rum-replay-playlists/ListRumReplayPlaylists.rb @@ -1,5 +1,8 @@ # List RUM replay playlists returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new p api_instance.list_rum_replay_playlists() diff --git a/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.rb b/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.rb index 06e99e53993d..96069c7e17b8 100644 --- a/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.rb +++ b/examples/v2/rum-replay-playlists/RemoveRumReplaySessionFromPlaylist.rb @@ -1,5 +1,8 @@ # Remove RUM replay session from playlist returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new api_instance.remove_rum_replay_session_from_playlist(1234567, "00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb b/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb index 1c9e5e1e62a9..1191942e643f 100644 --- a/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb +++ b/examples/v2/rum-replay-playlists/UpdateRumReplayPlaylist.rb @@ -1,6 +1,9 @@ # Update RUM replay playlist returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayPlaylistsAPI.new body = DatadogAPIClient::V2::Playlist.new({ diff --git a/examples/v2/rum-replay-sessions/GetSegments.rb b/examples/v2/rum-replay-sessions/GetSegments.rb index 76dd4d8cc242..a11cd600148c 100644 --- a/examples/v2/rum-replay-sessions/GetSegments.rb +++ b/examples/v2/rum-replay-sessions/GetSegments.rb @@ -1,5 +1,8 @@ # Get segments returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplaySessionsAPI.new p api_instance.get_segments("00000000-0000-0000-0000-000000000002", "00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb b/examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb index bf511cf7519c..07cd966de857 100644 --- a/examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb +++ b/examples/v2/rum-replay-viewership/CreateRumReplaySessionWatch.rb @@ -1,6 +1,9 @@ # Create RUM replay session watch returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new body = DatadogAPIClient::V2::Watch.new({ diff --git a/examples/v2/rum-replay-viewership/DeleteRumReplaySessionWatch.rb b/examples/v2/rum-replay-viewership/DeleteRumReplaySessionWatch.rb index e767b9ea4559..b9f1a9e95686 100644 --- a/examples/v2/rum-replay-viewership/DeleteRumReplaySessionWatch.rb +++ b/examples/v2/rum-replay-viewership/DeleteRumReplaySessionWatch.rb @@ -1,5 +1,8 @@ # Delete RUM replay session watch returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new api_instance.delete_rum_replay_session_watch("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-viewership/ListRumReplaySessionWatchers.rb b/examples/v2/rum-replay-viewership/ListRumReplaySessionWatchers.rb index 7f78e4daa179..d9e16d683164 100644 --- a/examples/v2/rum-replay-viewership/ListRumReplaySessionWatchers.rb +++ b/examples/v2/rum-replay-viewership/ListRumReplaySessionWatchers.rb @@ -1,5 +1,8 @@ # List RUM replay session watchers returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new p api_instance.list_rum_replay_session_watchers("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/rum-replay-viewership/ListRumReplayViewershipHistorySessions.rb b/examples/v2/rum-replay-viewership/ListRumReplayViewershipHistorySessions.rb index 0f858a04151e..822a6c4ed839 100644 --- a/examples/v2/rum-replay-viewership/ListRumReplayViewershipHistorySessions.rb +++ b/examples/v2/rum-replay-viewership/ListRumReplayViewershipHistorySessions.rb @@ -1,5 +1,8 @@ # List RUM replay viewership history sessions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumReplayViewershipAPI.new p api_instance.list_rum_replay_viewership_history_sessions() diff --git a/examples/v2/rum-retention-filters/CreateExclusionFilter.rb b/examples/v2/rum-retention-filters/CreateExclusionFilter.rb index 826625d2772a..d0aa5bc5f8cd 100644 --- a/examples/v2/rum-retention-filters/CreateExclusionFilter.rb +++ b/examples/v2/rum-retention-filters/CreateExclusionFilter.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_exclusion_filter".to_sym] = true end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new diff --git a/examples/v2/rum-retention-filters/CreateRetentionFilter.rb b/examples/v2/rum-retention-filters/CreateRetentionFilter.rb index 000a4cb0295d..1cc30b04cd2b 100644 --- a/examples/v2/rum-retention-filters/CreateRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/CreateRetentionFilter.rb @@ -1,6 +1,9 @@ # Create a RUM retention filter returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new body = DatadogAPIClient::V2::RumRetentionFilterCreateRequest.new({ diff --git a/examples/v2/rum-retention-filters/DeleteExclusionFilter.rb b/examples/v2/rum-retention-filters/DeleteExclusionFilter.rb index bcfd32637ade..7630fe903c81 100644 --- a/examples/v2/rum-retention-filters/DeleteExclusionFilter.rb +++ b/examples/v2/rum-retention-filters/DeleteExclusionFilter.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_exclusion_filter".to_sym] = true end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new diff --git a/examples/v2/rum-retention-filters/DeleteRetentionFilter.rb b/examples/v2/rum-retention-filters/DeleteRetentionFilter.rb index d6013619330f..1144002eec92 100644 --- a/examples/v2/rum-retention-filters/DeleteRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/DeleteRetentionFilter.rb @@ -1,5 +1,8 @@ # Delete a RUM retention filter returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new api_instance.delete_retention_filter("a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", "fe34ee09-14cf-4976-9362-08044c0dea80") diff --git a/examples/v2/rum-retention-filters/GetExclusionFilter.rb b/examples/v2/rum-retention-filters/GetExclusionFilter.rb index 0514b9057151..02151fff91c2 100644 --- a/examples/v2/rum-retention-filters/GetExclusionFilter.rb +++ b/examples/v2/rum-retention-filters/GetExclusionFilter.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_exclusion_filter".to_sym] = true end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new diff --git a/examples/v2/rum-retention-filters/GetPermanentRetentionFilter.rb b/examples/v2/rum-retention-filters/GetPermanentRetentionFilter.rb index 258af67a22d1..bd6689307f8d 100644 --- a/examples/v2/rum-retention-filters/GetPermanentRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/GetPermanentRetentionFilter.rb @@ -1,5 +1,8 @@ # Get a permanent RUM retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new p api_instance.get_permanent_retention_filter("app_id", RumPermanentRetentionFilterID::SYNTHETICS_SESSIONS) diff --git a/examples/v2/rum-retention-filters/GetRetentionFilter.rb b/examples/v2/rum-retention-filters/GetRetentionFilter.rb index 5dab3c1d32b4..5108d206f9af 100644 --- a/examples/v2/rum-retention-filters/GetRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/GetRetentionFilter.rb @@ -1,5 +1,8 @@ # Get a RUM retention filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new p api_instance.get_retention_filter("a33671aa-24fd-4dcd-ba4b-5bbdbafe7690", "4b95d361-f65d-4515-9824-c9aaeba5ac2a") diff --git a/examples/v2/rum-retention-filters/ListExclusionFilters.rb b/examples/v2/rum-retention-filters/ListExclusionFilters.rb index 953a4ee594ea..6c6313933b2f 100644 --- a/examples/v2/rum-retention-filters/ListExclusionFilters.rb +++ b/examples/v2/rum-retention-filters/ListExclusionFilters.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_exclusion_filters".to_sym] = true end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new diff --git a/examples/v2/rum-retention-filters/ListPermanentRetentionFilters.rb b/examples/v2/rum-retention-filters/ListPermanentRetentionFilters.rb index ff8060e61043..dd0f0b930113 100644 --- a/examples/v2/rum-retention-filters/ListPermanentRetentionFilters.rb +++ b/examples/v2/rum-retention-filters/ListPermanentRetentionFilters.rb @@ -1,5 +1,8 @@ # Get all permanent RUM retention filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new p api_instance.list_permanent_retention_filters("app_id") diff --git a/examples/v2/rum-retention-filters/ListRetentionFilters.rb b/examples/v2/rum-retention-filters/ListRetentionFilters.rb index 012116523fc0..32d8c1cf013c 100644 --- a/examples/v2/rum-retention-filters/ListRetentionFilters.rb +++ b/examples/v2/rum-retention-filters/ListRetentionFilters.rb @@ -1,5 +1,8 @@ # Get all RUM retention filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new p api_instance.list_retention_filters("1d4b9c34-7ac4-423a-91cf-9902d926e9b3") diff --git a/examples/v2/rum-retention-filters/OrderRetentionFilters.rb b/examples/v2/rum-retention-filters/OrderRetentionFilters.rb index 52c1acb8b53b..699faf21ff7a 100644 --- a/examples/v2/rum-retention-filters/OrderRetentionFilters.rb +++ b/examples/v2/rum-retention-filters/OrderRetentionFilters.rb @@ -1,6 +1,9 @@ # Order RUM retention filters returns "Ordered" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new body = DatadogAPIClient::V2::RumRetentionFiltersOrderRequest.new({ diff --git a/examples/v2/rum-retention-filters/UpdateExclusionFilter.rb b/examples/v2/rum-retention-filters/UpdateExclusionFilter.rb index b20fac41009a..3087e28b3c59 100644 --- a/examples/v2/rum-retention-filters/UpdateExclusionFilter.rb +++ b/examples/v2/rum-retention-filters/UpdateExclusionFilter.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_exclusion_filter".to_sym] = true end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new diff --git a/examples/v2/rum-retention-filters/UpdatePermanentRetentionFilter.rb b/examples/v2/rum-retention-filters/UpdatePermanentRetentionFilter.rb index d09f95133fc6..c70745d8a510 100644 --- a/examples/v2/rum-retention-filters/UpdatePermanentRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/UpdatePermanentRetentionFilter.rb @@ -1,6 +1,9 @@ # Update a permanent RUM retention filter returns "Updated" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new body = DatadogAPIClient::V2::RumPermanentRetentionFilterUpdateRequest.new({ diff --git a/examples/v2/rum-retention-filters/UpdateRetentionFilter.rb b/examples/v2/rum-retention-filters/UpdateRetentionFilter.rb index 4365539b20d5..2d4e4df26554 100644 --- a/examples/v2/rum-retention-filters/UpdateRetentionFilter.rb +++ b/examples/v2/rum-retention-filters/UpdateRetentionFilter.rb @@ -1,6 +1,9 @@ # Update a RUM retention filter returns "Updated" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumRetentionFiltersAPI.new body = DatadogAPIClient::V2::RumRetentionFilterUpdateRequest.new({ diff --git a/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.rb b/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.rb index 7f6b283e33fe..ee3a417e708d 100644 --- a/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.rb +++ b/examples/v2/rum-retention-quotas/DeleteRumQuotaConfig.rb @@ -1,5 +1,8 @@ # Delete a RUM retention quota configuration returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMRetentionQuotasAPI.new api_instance.delete_rum_quota_config(RumRetentionQuotaScopeType::APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b") diff --git a/examples/v2/rum-retention-quotas/GetRumQuotaConfig.rb b/examples/v2/rum-retention-quotas/GetRumQuotaConfig.rb index da600a5155ad..15119e004bb5 100644 --- a/examples/v2/rum-retention-quotas/GetRumQuotaConfig.rb +++ b/examples/v2/rum-retention-quotas/GetRumQuotaConfig.rb @@ -1,5 +1,8 @@ # Get a RUM retention quota configuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMRetentionQuotasAPI.new p api_instance.get_rum_quota_config(RumRetentionQuotaScopeType::APPLICATION, "cd73a516-a481-4af5-8352-9b577465c77b") diff --git a/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.rb b/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.rb index e550d8bf4764..47e60d62097f 100644 --- a/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.rb +++ b/examples/v2/rum-retention-quotas/UpsertRumQuotaConfig.rb @@ -1,6 +1,9 @@ # Create or update a RUM retention quota config returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMRetentionQuotasAPI.new body = DatadogAPIClient::V2::RumRetentionQuotaConfigUpdateRequest.new({ diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.rb b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.rb index b94673ffd7a5..aa68f7f97418 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.rb +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_teams_ownership_mapping".to_sym] = true end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.rb b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.rb index a827bdc026e3..f8254582c3ae 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.rb +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMapping_1881412984.rb @@ -1,6 +1,9 @@ # Create teams ownership mapping returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new body = DatadogAPIClient::V2::TeamsOwnershipMappingCreateRequest.new({ diff --git a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.rb b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.rb index 63aba4326040..6cdfce8d56f3 100644 --- a/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.rb +++ b/examples/v2/rum-teams-ownership/CreateTeamsOwnershipMappingsBatch.rb @@ -1,6 +1,9 @@ # Bulk create and remove teams ownership mappings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new body = DatadogAPIClient::V2::TeamsOwnershipMappingBatchRequest.new({ diff --git a/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.rb b/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.rb index e297325bc3c8..0d89286de8a1 100644 --- a/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.rb +++ b/examples/v2/rum-teams-ownership/DeleteTeamsOwnershipMapping.rb @@ -1,6 +1,9 @@ # Delete a teams ownership mapping returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new # there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.rb b/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.rb index 1c34b498779f..80b08bcd2bde 100644 --- a/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.rb +++ b/examples/v2/rum-teams-ownership/GetTeamsOwnershipMapping.rb @@ -1,6 +1,9 @@ # Get a teams ownership mapping returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new # there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.rb b/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.rb index 3931885f4b8b..e69dcb682760 100644 --- a/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.rb +++ b/examples/v2/rum-teams-ownership/ListTeamsOwnershipMappings.rb @@ -1,6 +1,9 @@ # List teams ownership mappings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new # there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.rb b/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.rb index 377fcc4031e0..54d7a6bd4313 100644 --- a/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.rb +++ b/examples/v2/rum-teams-ownership/ListTeamsOwnershipRules.rb @@ -1,6 +1,9 @@ # List teams ownership rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RumTeamsOwnershipAPI.new # there is a valid "teams_ownership_mapping" in the system diff --git a/examples/v2/rum/AggregateRUMEvents.rb b/examples/v2/rum/AggregateRUMEvents.rb index ee24f88dd191..19bd5c027e26 100644 --- a/examples/v2/rum/AggregateRUMEvents.rb +++ b/examples/v2/rum/AggregateRUMEvents.rb @@ -1,6 +1,9 @@ # Aggregate RUM events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new body = DatadogAPIClient::V2::RUMAggregateRequest.new({ diff --git a/examples/v2/rum/CreateRUMApplication.rb b/examples/v2/rum/CreateRUMApplication.rb index d3696ef75c2f..164ed5ab044c 100644 --- a/examples/v2/rum/CreateRUMApplication.rb +++ b/examples/v2/rum/CreateRUMApplication.rb @@ -1,6 +1,9 @@ # Create a new RUM application returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new body = DatadogAPIClient::V2::RUMApplicationCreateRequest.new({ diff --git a/examples/v2/rum/CreateRUMApplication_1946294560.rb b/examples/v2/rum/CreateRUMApplication_1946294560.rb index 286dc19ec010..28d0ae85a892 100644 --- a/examples/v2/rum/CreateRUMApplication_1946294560.rb +++ b/examples/v2/rum/CreateRUMApplication_1946294560.rb @@ -1,6 +1,9 @@ # Create a new RUM application with Product Scales returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new body = DatadogAPIClient::V2::RUMApplicationCreateRequest.new({ diff --git a/examples/v2/rum/DeleteRUMApplication.rb b/examples/v2/rum/DeleteRUMApplication.rb index 95c6d70e0870..de84ccce86b3 100644 --- a/examples/v2/rum/DeleteRUMApplication.rb +++ b/examples/v2/rum/DeleteRUMApplication.rb @@ -1,6 +1,9 @@ # Delete a RUM application returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new # there is a valid "rum_application" in the system diff --git a/examples/v2/rum/GetRUMApplication.rb b/examples/v2/rum/GetRUMApplication.rb index 4ce3cf2918dd..96434efc7031 100644 --- a/examples/v2/rum/GetRUMApplication.rb +++ b/examples/v2/rum/GetRUMApplication.rb @@ -1,6 +1,9 @@ # Get a RUM application returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new # there is a valid "rum_application" in the system diff --git a/examples/v2/rum/GetRUMApplications.rb b/examples/v2/rum/GetRUMApplications.rb index ef46a08e6029..dc3502bf5539 100644 --- a/examples/v2/rum/GetRUMApplications.rb +++ b/examples/v2/rum/GetRUMApplications.rb @@ -1,5 +1,8 @@ # List all the RUM applications returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new p api_instance.get_rum_applications() diff --git a/examples/v2/rum/ListRUMEvents.rb b/examples/v2/rum/ListRUMEvents.rb index 9089175907f5..9d5f21834e14 100644 --- a/examples/v2/rum/ListRUMEvents.rb +++ b/examples/v2/rum/ListRUMEvents.rb @@ -1,5 +1,8 @@ # Get a list of RUM events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new p api_instance.list_rum_events() diff --git a/examples/v2/rum/ListRUMEvents_2680821282.rb b/examples/v2/rum/ListRUMEvents_2680821282.rb index e051ef1b3454..6266419efe31 100644 --- a/examples/v2/rum/ListRUMEvents_2680821282.rb +++ b/examples/v2/rum/ListRUMEvents_2680821282.rb @@ -1,6 +1,9 @@ # Get a list of RUM events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new opts = { page_limit: 2, diff --git a/examples/v2/rum/SearchRUMEvents.rb b/examples/v2/rum/SearchRUMEvents.rb index c8c307efc638..eb5dcb2e46b0 100644 --- a/examples/v2/rum/SearchRUMEvents.rb +++ b/examples/v2/rum/SearchRUMEvents.rb @@ -1,6 +1,9 @@ # Search RUM events returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new body = DatadogAPIClient::V2::RUMSearchEventsRequest.new({ diff --git a/examples/v2/rum/SearchRUMEvents_574690310.rb b/examples/v2/rum/SearchRUMEvents_574690310.rb index 15a54867a200..59d7f6b2f71c 100644 --- a/examples/v2/rum/SearchRUMEvents_574690310.rb +++ b/examples/v2/rum/SearchRUMEvents_574690310.rb @@ -1,6 +1,9 @@ # Search RUM events returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new body = DatadogAPIClient::V2::RUMSearchEventsRequest.new({ diff --git a/examples/v2/rum/UpdateRUMApplication.rb b/examples/v2/rum/UpdateRUMApplication.rb index 80566289b01f..d416d06cf65b 100644 --- a/examples/v2/rum/UpdateRUMApplication.rb +++ b/examples/v2/rum/UpdateRUMApplication.rb @@ -1,6 +1,9 @@ # Update a RUM application returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new # there is a valid "rum_application" in the system diff --git a/examples/v2/rum/UpdateRUMApplication_394074053.rb b/examples/v2/rum/UpdateRUMApplication_394074053.rb index cdaaed7c3a59..7b7cd8cfcc42 100644 --- a/examples/v2/rum/UpdateRUMApplication_394074053.rb +++ b/examples/v2/rum/UpdateRUMApplication_394074053.rb @@ -1,6 +1,9 @@ # Update a RUM application with Product Scales returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::RUMAPI.new # there is a valid "rum_application" in the system diff --git a/examples/v2/salesforce-integration/CreateIncidentTemplate.rb b/examples/v2/salesforce-integration/CreateIncidentTemplate.rb index fca6f278616d..e894a5cb783a 100644 --- a/examples/v2/salesforce-integration/CreateIncidentTemplate.rb +++ b/examples/v2/salesforce-integration/CreateIncidentTemplate.rb @@ -1,6 +1,9 @@ # Create a Salesforce incident template returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new body = DatadogAPIClient::V2::SalesforceIncidentsTemplateCreateRequest.new({ diff --git a/examples/v2/salesforce-integration/DeleteIncidentTemplate.rb b/examples/v2/salesforce-integration/DeleteIncidentTemplate.rb index e1b791a71075..11b20fcf2a59 100644 --- a/examples/v2/salesforce-integration/DeleteIncidentTemplate.rb +++ b/examples/v2/salesforce-integration/DeleteIncidentTemplate.rb @@ -1,5 +1,8 @@ # Delete a Salesforce incident template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new api_instance.delete_incident_template("incident_template_id") diff --git a/examples/v2/salesforce-integration/DeleteSalesforceOrganization.rb b/examples/v2/salesforce-integration/DeleteSalesforceOrganization.rb index 53ceaa24b48d..fcddec041189 100644 --- a/examples/v2/salesforce-integration/DeleteSalesforceOrganization.rb +++ b/examples/v2/salesforce-integration/DeleteSalesforceOrganization.rb @@ -1,5 +1,8 @@ # Delete a connected Salesforce organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new api_instance.delete_salesforce_organization("salesforce_org_id") diff --git a/examples/v2/salesforce-integration/GetIncidentTemplates.rb b/examples/v2/salesforce-integration/GetIncidentTemplates.rb index e651cba18488..8b4630e31074 100644 --- a/examples/v2/salesforce-integration/GetIncidentTemplates.rb +++ b/examples/v2/salesforce-integration/GetIncidentTemplates.rb @@ -1,5 +1,8 @@ # Get all Salesforce incident templates returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new p api_instance.get_incident_templates() diff --git a/examples/v2/salesforce-integration/GetSalesforceOrganizations.rb b/examples/v2/salesforce-integration/GetSalesforceOrganizations.rb index 1682efba1eda..7776b32358a0 100644 --- a/examples/v2/salesforce-integration/GetSalesforceOrganizations.rb +++ b/examples/v2/salesforce-integration/GetSalesforceOrganizations.rb @@ -1,5 +1,8 @@ # Get all connected Salesforce organizations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new p api_instance.get_salesforce_organizations() diff --git a/examples/v2/salesforce-integration/UpdateIncidentTemplate.rb b/examples/v2/salesforce-integration/UpdateIncidentTemplate.rb index def7d9e24346..7d93cc8bfb09 100644 --- a/examples/v2/salesforce-integration/UpdateIncidentTemplate.rb +++ b/examples/v2/salesforce-integration/UpdateIncidentTemplate.rb @@ -1,6 +1,9 @@ # Update a Salesforce incident template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SalesforceIntegrationAPI.new body = DatadogAPIClient::V2::SalesforceIncidentsTemplateUpdateRequest.new({ diff --git a/examples/v2/scorecards/CreateScorecardCampaign.rb b/examples/v2/scorecards/CreateScorecardCampaign.rb index 70532d161392..2e26064ed12f 100644 --- a/examples/v2/scorecards/CreateScorecardCampaign.rb +++ b/examples/v2/scorecards/CreateScorecardCampaign.rb @@ -1,6 +1,9 @@ # Create a new campaign returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new body = DatadogAPIClient::V2::CreateCampaignRequest.new({ diff --git a/examples/v2/scorecards/CreateScorecardOutcomesBatch.rb b/examples/v2/scorecards/CreateScorecardOutcomesBatch.rb index 4623b37eb964..6dde021e02b8 100644 --- a/examples/v2/scorecards/CreateScorecardOutcomesBatch.rb +++ b/examples/v2/scorecards/CreateScorecardOutcomesBatch.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_scorecard_outcomes_batch".to_sym] = true end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new diff --git a/examples/v2/scorecards/CreateScorecardRule.rb b/examples/v2/scorecards/CreateScorecardRule.rb index 2d2b8db08955..e1d7853f4a3a 100644 --- a/examples/v2/scorecards/CreateScorecardRule.rb +++ b/examples/v2/scorecards/CreateScorecardRule.rb @@ -1,6 +1,9 @@ # Create a new rule returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new body = DatadogAPIClient::V2::CreateRuleRequest.new({ diff --git a/examples/v2/scorecards/DeleteScorecardCampaign.rb b/examples/v2/scorecards/DeleteScorecardCampaign.rb index fd9ae112ea6d..03e25fbfb8d3 100644 --- a/examples/v2/scorecards/DeleteScorecardCampaign.rb +++ b/examples/v2/scorecards/DeleteScorecardCampaign.rb @@ -1,5 +1,8 @@ # Delete a campaign returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new api_instance.delete_scorecard_campaign("c10ODp0VCrrIpXmz") diff --git a/examples/v2/scorecards/DeleteScorecardRule.rb b/examples/v2/scorecards/DeleteScorecardRule.rb index 7fade85ba17d..e2ef83ce90b5 100644 --- a/examples/v2/scorecards/DeleteScorecardRule.rb +++ b/examples/v2/scorecards/DeleteScorecardRule.rb @@ -1,6 +1,9 @@ # Delete a rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new # there is a valid "create_scorecard_rule" in the system diff --git a/examples/v2/scorecards/GetScorecardCampaign.rb b/examples/v2/scorecards/GetScorecardCampaign.rb index aeb486c2e225..cb0ab7f8aafb 100644 --- a/examples/v2/scorecards/GetScorecardCampaign.rb +++ b/examples/v2/scorecards/GetScorecardCampaign.rb @@ -1,5 +1,8 @@ # Get a campaign returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.get_scorecard_campaign("c10ODp0VCrrIpXmz") diff --git a/examples/v2/scorecards/ListScorecardCampaigns.rb b/examples/v2/scorecards/ListScorecardCampaigns.rb index 74f867627505..32f86e32abbf 100644 --- a/examples/v2/scorecards/ListScorecardCampaigns.rb +++ b/examples/v2/scorecards/ListScorecardCampaigns.rb @@ -1,5 +1,8 @@ # List all campaigns returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.list_scorecard_campaigns() diff --git a/examples/v2/scorecards/ListScorecardOutcomes.rb b/examples/v2/scorecards/ListScorecardOutcomes.rb index 1230b4093c3e..46b5d75785a0 100644 --- a/examples/v2/scorecards/ListScorecardOutcomes.rb +++ b/examples/v2/scorecards/ListScorecardOutcomes.rb @@ -1,5 +1,8 @@ # List all rule outcomes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.list_scorecard_outcomes() diff --git a/examples/v2/scorecards/ListScorecardOutcomes_2663454275.rb b/examples/v2/scorecards/ListScorecardOutcomes_2663454275.rb index 055bd348358f..6343294ceec9 100644 --- a/examples/v2/scorecards/ListScorecardOutcomes_2663454275.rb +++ b/examples/v2/scorecards/ListScorecardOutcomes_2663454275.rb @@ -1,6 +1,9 @@ # List all rule outcomes returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new opts = { page_size: 2, diff --git a/examples/v2/scorecards/ListScorecardRules.rb b/examples/v2/scorecards/ListScorecardRules.rb index 4eab75c66aca..24cc124d7330 100644 --- a/examples/v2/scorecards/ListScorecardRules.rb +++ b/examples/v2/scorecards/ListScorecardRules.rb @@ -1,5 +1,8 @@ # List all rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.list_scorecard_rules() diff --git a/examples/v2/scorecards/ListScorecardRules_4057666343.rb b/examples/v2/scorecards/ListScorecardRules_4057666343.rb index c149fccc8fd0..2fc30dcbb9b0 100644 --- a/examples/v2/scorecards/ListScorecardRules_4057666343.rb +++ b/examples/v2/scorecards/ListScorecardRules_4057666343.rb @@ -1,6 +1,9 @@ # List all rules returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new opts = { page_size: 2, diff --git a/examples/v2/scorecards/ListScorecardScores.rb b/examples/v2/scorecards/ListScorecardScores.rb index 8358a5f4fd8d..a989644ab45d 100644 --- a/examples/v2/scorecards/ListScorecardScores.rb +++ b/examples/v2/scorecards/ListScorecardScores.rb @@ -1,5 +1,8 @@ # List all scores returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.list_scorecard_scores(ScorecardScoresAggregation::BY_ENTITY) diff --git a/examples/v2/scorecards/ListScorecards.rb b/examples/v2/scorecards/ListScorecards.rb index 83bc5ab78652..9856c69cfe50 100644 --- a/examples/v2/scorecards/ListScorecards.rb +++ b/examples/v2/scorecards/ListScorecards.rb @@ -1,5 +1,8 @@ # List all scorecards returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new p api_instance.list_scorecards() diff --git a/examples/v2/scorecards/UpdateScorecardCampaign.rb b/examples/v2/scorecards/UpdateScorecardCampaign.rb index 60f77aca65ed..864e88c60236 100644 --- a/examples/v2/scorecards/UpdateScorecardCampaign.rb +++ b/examples/v2/scorecards/UpdateScorecardCampaign.rb @@ -1,6 +1,9 @@ # Update a campaign returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new body = DatadogAPIClient::V2::UpdateCampaignRequest.new({ diff --git a/examples/v2/scorecards/UpdateScorecardOutcomes.rb b/examples/v2/scorecards/UpdateScorecardOutcomes.rb index 940af6f9f517..90341f550a5a 100644 --- a/examples/v2/scorecards/UpdateScorecardOutcomes.rb +++ b/examples/v2/scorecards/UpdateScorecardOutcomes.rb @@ -1,6 +1,9 @@ # Update Scorecard outcomes returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new body = DatadogAPIClient::V2::UpdateOutcomesAsyncRequest.new({ diff --git a/examples/v2/scorecards/UpdateScorecardOutcomes_2262047257.rb b/examples/v2/scorecards/UpdateScorecardOutcomes_2262047257.rb index 69dcca50558d..e96a63a2001c 100644 --- a/examples/v2/scorecards/UpdateScorecardOutcomes_2262047257.rb +++ b/examples/v2/scorecards/UpdateScorecardOutcomes_2262047257.rb @@ -1,6 +1,9 @@ # Update Scorecard outcomes asynchronously returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new # there is a valid "create_scorecard_rule" in the system diff --git a/examples/v2/scorecards/UpdateScorecardRule.rb b/examples/v2/scorecards/UpdateScorecardRule.rb index 75d274b6caa0..204f874eda7a 100644 --- a/examples/v2/scorecards/UpdateScorecardRule.rb +++ b/examples/v2/scorecards/UpdateScorecardRule.rb @@ -1,6 +1,9 @@ # Update an existing scorecard rule returns "Rule updated successfully" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new body = DatadogAPIClient::V2::UpdateRuleRequest.new({ diff --git a/examples/v2/scorecards/UpdateScorecardRule_1831541184.rb b/examples/v2/scorecards/UpdateScorecardRule_1831541184.rb index bbfc8f63a19e..f501ac6f876b 100644 --- a/examples/v2/scorecards/UpdateScorecardRule_1831541184.rb +++ b/examples/v2/scorecards/UpdateScorecardRule_1831541184.rb @@ -1,6 +1,9 @@ # Update an existing rule returns "Rule updated successfully" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ScorecardsAPI.new # there is a valid "create_scorecard_rule" in the system diff --git a/examples/v2/seats/AssignSeatsUser.rb b/examples/v2/seats/AssignSeatsUser.rb index b819d5b99d45..abab2d59e0c5 100644 --- a/examples/v2/seats/AssignSeatsUser.rb +++ b/examples/v2/seats/AssignSeatsUser.rb @@ -1,6 +1,9 @@ # Assign seats to users returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SeatsAPI.new # there is a valid "user" in the system diff --git a/examples/v2/seats/GetSeatsUsers.rb b/examples/v2/seats/GetSeatsUsers.rb index 0db05d5a239e..948a565c207e 100644 --- a/examples/v2/seats/GetSeatsUsers.rb +++ b/examples/v2/seats/GetSeatsUsers.rb @@ -1,6 +1,9 @@ # Get users with seats returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SeatsAPI.new opts = { page_limit: 100, diff --git a/examples/v2/seats/UnassignSeatsUser.rb b/examples/v2/seats/UnassignSeatsUser.rb index 615cc5c2c41b..20c7a5cd0f56 100644 --- a/examples/v2/seats/UnassignSeatsUser.rb +++ b/examples/v2/seats/UnassignSeatsUser.rb @@ -1,6 +1,9 @@ # Unassign seats from users returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SeatsAPI.new # there is a valid "user" in the system diff --git a/examples/v2/security-monitoring/ActivateContentPack.rb b/examples/v2/security-monitoring/ActivateContentPack.rb index 8196884e4df7..d37a358ef8f7 100644 --- a/examples/v2/security-monitoring/ActivateContentPack.rb +++ b/examples/v2/security-monitoring/ActivateContentPack.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.activate_content_pack".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ActivateIntegration.rb b/examples/v2/security-monitoring/ActivateIntegration.rb index b36144b94243..4a6e171fc8d6 100644 --- a/examples/v2/security-monitoring/ActivateIntegration.rb +++ b/examples/v2/security-monitoring/ActivateIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.activate_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/AttachCase.rb b/examples/v2/security-monitoring/AttachCase.rb index 860653be0ef8..dd01d6cbf6ea 100644 --- a/examples/v2/security-monitoring/AttachCase.rb +++ b/examples/v2/security-monitoring/AttachCase.rb @@ -1,6 +1,9 @@ # Attach security findings to a case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachCaseRequest.new({ diff --git a/examples/v2/security-monitoring/AttachCase_897782765.rb b/examples/v2/security-monitoring/AttachCase_897782765.rb index 34f9e1bfeccf..46b13a715517 100644 --- a/examples/v2/security-monitoring/AttachCase_897782765.rb +++ b/examples/v2/security-monitoring/AttachCase_897782765.rb @@ -1,6 +1,9 @@ # Attach security finding to a case returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachCaseRequest.new({ diff --git a/examples/v2/security-monitoring/AttachJiraIssue.rb b/examples/v2/security-monitoring/AttachJiraIssue.rb index a44840d6b630..cedbf4dd7fa5 100644 --- a/examples/v2/security-monitoring/AttachJiraIssue.rb +++ b/examples/v2/security-monitoring/AttachJiraIssue.rb @@ -1,6 +1,9 @@ # Attach security findings to a Jira issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachJiraIssueRequest.new({ diff --git a/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb b/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb index 15d65393039f..511547d79f0f 100644 --- a/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb +++ b/examples/v2/security-monitoring/AttachJiraIssue_3042842144.rb @@ -1,6 +1,9 @@ # Attach security finding to a Jira issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachJiraIssueRequest.new({ diff --git a/examples/v2/security-monitoring/AttachLinearIssue.rb b/examples/v2/security-monitoring/AttachLinearIssue.rb index 3e0569a2a363..97e52b80cff4 100644 --- a/examples/v2/security-monitoring/AttachLinearIssue.rb +++ b/examples/v2/security-monitoring/AttachLinearIssue.rb @@ -1,6 +1,9 @@ # Attach security findings to a Linear issue returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachLinearIssueRequest.new({ diff --git a/examples/v2/security-monitoring/AttachServiceNowTicket.rb b/examples/v2/security-monitoring/AttachServiceNowTicket.rb index 92981be61fd4..02aa8fa713ee 100644 --- a/examples/v2/security-monitoring/AttachServiceNowTicket.rb +++ b/examples/v2/security-monitoring/AttachServiceNowTicket.rb @@ -1,6 +1,9 @@ # Attach security findings to a ServiceNow ticket returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::AttachServiceNowTicketRequest.new({ diff --git a/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.rb b/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.rb index f01de9ffeb66..d46e83594deb 100644 --- a/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.rb +++ b/examples/v2/security-monitoring/BatchGetSecurityMonitoringDatasetDependencies.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.batch_get_security_monitoring_dataset_dependencies".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/BulkConvertExistingSecurityMonitoringRules.rb b/examples/v2/security-monitoring/BulkConvertExistingSecurityMonitoringRules.rb index a34db2bb8bb3..cb6170f54d57 100644 --- a/examples/v2/security-monitoring/BulkConvertExistingSecurityMonitoringRules.rb +++ b/examples/v2/security-monitoring/BulkConvertExistingSecurityMonitoringRules.rb @@ -1,6 +1,9 @@ # Bulk convert rules to Terraform returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringRuleConvertBulkPayload.new({ diff --git a/examples/v2/security-monitoring/BulkCreateSampleLogGenerationSubscriptions.rb b/examples/v2/security-monitoring/BulkCreateSampleLogGenerationSubscriptions.rb index 3cc111019aab..1b64b812de33 100644 --- a/examples/v2/security-monitoring/BulkCreateSampleLogGenerationSubscriptions.rb +++ b/examples/v2/security-monitoring/BulkCreateSampleLogGenerationSubscriptions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.bulk_create_sample_log_generation_subscriptions".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb b/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb index 449fd4e9975d..8e6d2a30fa52 100644 --- a/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb +++ b/examples/v2/security-monitoring/BulkDeleteSecurityMonitoringRules.rb @@ -1,6 +1,9 @@ # Bulk delete security monitoring rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringRuleBulkDeletePayload.new({ diff --git a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignals.rb b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignals.rb index a0bb02fc9866..f5ea4a87229a 100644 --- a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignals.rb +++ b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignals.rb @@ -1,6 +1,9 @@ # Bulk update security signals returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalsBulkUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsAssignee.rb b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsAssignee.rb index 268776e1839a..a08b25b0b170 100644 --- a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsAssignee.rb +++ b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsAssignee.rb @@ -1,6 +1,9 @@ # Bulk update triage assignee of security signals returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalsBulkAssigneeUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsState.rb b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsState.rb index 1160d05fb41b..9fc3be72e303 100644 --- a/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsState.rb +++ b/examples/v2/security-monitoring/BulkEditSecurityMonitoringSignalsState.rb @@ -1,6 +1,9 @@ # Bulk update triage state of security signals returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalsBulkStateUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/BulkExportSecurityMonitoringRules.rb b/examples/v2/security-monitoring/BulkExportSecurityMonitoringRules.rb index fc246e50aa16..e801c0169f02 100644 --- a/examples/v2/security-monitoring/BulkExportSecurityMonitoringRules.rb +++ b/examples/v2/security-monitoring/BulkExportSecurityMonitoringRules.rb @@ -1,6 +1,9 @@ # Bulk export security monitoring rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/BulkExportSecurityMonitoringTerraformResources.rb b/examples/v2/security-monitoring/BulkExportSecurityMonitoringTerraformResources.rb index 8e834d1c52e5..132eee5efdd7 100644 --- a/examples/v2/security-monitoring/BulkExportSecurityMonitoringTerraformResources.rb +++ b/examples/v2/security-monitoring/BulkExportSecurityMonitoringTerraformResources.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.bulk_export_security_monitoring_terraform_resources".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CancelHistoricalJob.rb b/examples/v2/security-monitoring/CancelHistoricalJob.rb index df53e38ced96..aa16e61f22a9 100644 --- a/examples/v2/security-monitoring/CancelHistoricalJob.rb +++ b/examples/v2/security-monitoring/CancelHistoricalJob.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.cancel_historical_job".to_sym] = true config.unstable_operations["v2.run_historical_job".to_sym] = true end diff --git a/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb b/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb index a9303957fe70..7e67cb49d92b 100644 --- a/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/ConvertExistingSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Convert an existing rule from JSON to Terraform returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule_hash" in the system diff --git a/examples/v2/security-monitoring/ConvertJobResultToSignal.rb b/examples/v2/security-monitoring/ConvertJobResultToSignal.rb index cb8e75361d52..ea3477c53d10 100644 --- a/examples/v2/security-monitoring/ConvertJobResultToSignal.rb +++ b/examples/v2/security-monitoring/ConvertJobResultToSignal.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.convert_job_result_to_signal".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb b/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb index 9fdbb450eca8..06b1029e5dce 100644 --- a/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb +++ b/examples/v2/security-monitoring/ConvertSecurityMonitoringRuleFromJSONToTerraform.rb @@ -1,6 +1,9 @@ # Convert a rule from JSON to Terraform returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload.new({ diff --git a/examples/v2/security-monitoring/ConvertSecurityMonitoringTerraformResource.rb b/examples/v2/security-monitoring/ConvertSecurityMonitoringTerraformResource.rb index 31aefc69c6bb..cd19970d1800 100644 --- a/examples/v2/security-monitoring/ConvertSecurityMonitoringTerraformResource.rb +++ b/examples/v2/security-monitoring/ConvertSecurityMonitoringTerraformResource.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.convert_security_monitoring_terraform_resource".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateCases.rb b/examples/v2/security-monitoring/CreateCases.rb index 0f2cf57d3d8d..dfdab9325224 100644 --- a/examples/v2/security-monitoring/CreateCases.rb +++ b/examples/v2/security-monitoring/CreateCases.rb @@ -1,6 +1,9 @@ # Create cases for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateCaseRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateCases_2385516013.rb b/examples/v2/security-monitoring/CreateCases_2385516013.rb index 853d8d2cd72b..9b3cf8a73b0e 100644 --- a/examples/v2/security-monitoring/CreateCases_2385516013.rb +++ b/examples/v2/security-monitoring/CreateCases_2385516013.rb @@ -1,6 +1,9 @@ # Create case for security finding returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateCaseRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateCases_2798851680.rb b/examples/v2/security-monitoring/CreateCases_2798851680.rb index a828a0fc3d91..4308c69452c3 100644 --- a/examples/v2/security-monitoring/CreateCases_2798851680.rb +++ b/examples/v2/security-monitoring/CreateCases_2798851680.rb @@ -1,6 +1,9 @@ # Create case for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateCaseRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateCustomFramework.rb b/examples/v2/security-monitoring/CreateCustomFramework.rb index 66dacd990bf8..5d6f664ed54f 100644 --- a/examples/v2/security-monitoring/CreateCustomFramework.rb +++ b/examples/v2/security-monitoring/CreateCustomFramework.rb @@ -1,6 +1,9 @@ # Create a custom framework returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateCustomFrameworkRequest.new({ diff --git a/examples/v2/security-monitoring/CreateIoCTriageState.rb b/examples/v2/security-monitoring/CreateIoCTriageState.rb index 9a5655b670b6..26868d18293d 100644 --- a/examples/v2/security-monitoring/CreateIoCTriageState.rb +++ b/examples/v2/security-monitoring/CreateIoCTriageState.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_io_c_triage_state".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateJiraIssues.rb b/examples/v2/security-monitoring/CreateJiraIssues.rb index 7bb0e5e7bbd4..ef122e665994 100644 --- a/examples/v2/security-monitoring/CreateJiraIssues.rb +++ b/examples/v2/security-monitoring/CreateJiraIssues.rb @@ -1,6 +1,9 @@ # Create Jira issues for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb b/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb index 37ee9743c938..2deab096d95c 100644 --- a/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb +++ b/examples/v2/security-monitoring/CreateJiraIssues_379590688.rb @@ -1,6 +1,9 @@ # Create Jira issue for security finding returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb b/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb index f4b543cf2ab7..8e0e085019b1 100644 --- a/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb +++ b/examples/v2/security-monitoring/CreateJiraIssues_829823123.rb @@ -1,6 +1,9 @@ # Create Jira issue for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateJiraIssueRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateLinearIssues.rb b/examples/v2/security-monitoring/CreateLinearIssues.rb index cfbfe4cd3c75..a43bc1a5c94c 100644 --- a/examples/v2/security-monitoring/CreateLinearIssues.rb +++ b/examples/v2/security-monitoring/CreateLinearIssues.rb @@ -1,6 +1,9 @@ # Create Linear issues for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateLinearIssueRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateSampleLogGenerationSubscription.rb b/examples/v2/security-monitoring/CreateSampleLogGenerationSubscription.rb index 35a674ee543c..00f591a4f0c4 100644 --- a/examples/v2/security-monitoring/CreateSampleLogGenerationSubscription.rb +++ b/examples/v2/security-monitoring/CreateSampleLogGenerationSubscription.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_sample_log_generation_subscription".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityFilter.rb b/examples/v2/security-monitoring/CreateSecurityFilter.rb index 5ef43210492d..c67ea746c7c7 100644 --- a/examples/v2/security-monitoring/CreateSecurityFilter.rb +++ b/examples/v2/security-monitoring/CreateSecurityFilter.rb @@ -1,6 +1,9 @@ # Create a security filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityFilterCreateRequest.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb index 33f1bd15d476..b5ef2c19b5e0 100644 --- a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationDueDateRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_findings_automation_due_date_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationInboxRule.rb b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationInboxRule.rb index 45b8d7d98774..ed8bcae73c9b 100644 --- a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationInboxRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_findings_automation_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb index de5f7e3a6022..2c2df089ccff 100644 --- a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationMuteRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_findings_automation_mute_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationSeverityModifierRule.rb b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationSeverityModifierRule.rb index 45bd66932191..1fcc70288f65 100644 --- a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationSeverityModifierRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationSeverityModifierRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_findings_automation_severity_modifier_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb index 6d0895a11201..6ee57dde2b78 100644 --- a/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityFindingsAutomationTicketCreationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_findings_automation_ticket_creation_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb index 00d1e6bf7a2a..d0caeee875a0 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringCriticalAsset.rb @@ -1,6 +1,9 @@ # Create a critical asset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringCriticalAssetCreateRequest.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.rb index 484517f1e623..42cf03e4a5bd 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_monitoring_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringIntegrationConfig.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringIntegrationConfig.rb index 3642c73ae0ab..db345aad787a 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringIntegrationConfig.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_security_monitoring_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb index 458f9f789825..24e76c26f8cc 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Create a detection rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb index 82978d732686..b748f47b65b2 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb @@ -1,6 +1,9 @@ # Create a cloud_configuration rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CloudConfigurationRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb index 042b2d32f753..c05811bdbe2b 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1965169892.rb @@ -1,6 +1,9 @@ # Create a detection rule with type 'application_security 'returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb index 999a42be4f36..3a9122ddb683 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb @@ -1,6 +1,9 @@ # Create a detection rule with detection method 'anomaly_detection' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb index b2868e9a02e6..2e9d6a7be3bb 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb @@ -1,6 +1,9 @@ # Create a detection rule with detection method 'sequence_detection' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3243059428.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3243059428.rb index 36a913e57765..e27e02494b1e 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3243059428.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3243059428.rb @@ -1,6 +1,9 @@ # Create a detection rule with type 'impossible_travel' and baselineUserLocationsDuration returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3355193622.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3355193622.rb index fd382ef14056..82161adddc45 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3355193622.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3355193622.rb @@ -2,6 +2,9 @@ # "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb index 0a5e9bba3256..263526d53280 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb @@ -1,6 +1,9 @@ # Create a detection rule with detection method 'third_party' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb index 082ed6f3958d..78df292ebd1c 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb @@ -1,6 +1,9 @@ # Create a detection rule with type 'impossible_travel' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb index 63982706faf1..20ea1aac269f 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb @@ -1,6 +1,9 @@ # Create a detection rule with type 'workload_security' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb index e5c3bf20fa19..6e9e51da4f21 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringRule_868881438.rb @@ -1,6 +1,9 @@ # Create a scheduled detection rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb index 509e21647cfe..3c47867a354c 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression.rb @@ -1,6 +1,9 @@ # Create a suppression rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({ diff --git a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb index ce274a978d15..6a3b99d5e165 100644 --- a/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb +++ b/examples/v2/security-monitoring/CreateSecurityMonitoringSuppression_3192265332.rb @@ -1,6 +1,9 @@ # Create a suppression rule with an exclusion query returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({ diff --git a/examples/v2/security-monitoring/CreateServiceNowTickets.rb b/examples/v2/security-monitoring/CreateServiceNowTickets.rb index 65f672481970..8cff5a84c064 100644 --- a/examples/v2/security-monitoring/CreateServiceNowTickets.rb +++ b/examples/v2/security-monitoring/CreateServiceNowTickets.rb @@ -1,6 +1,9 @@ # Create ServiceNow tickets for security findings returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateServiceNowTicketRequestArray.new({ diff --git a/examples/v2/security-monitoring/CreateSignalNotificationRule.rb b/examples/v2/security-monitoring/CreateSignalNotificationRule.rb index 5a2e5d5514e4..57828accee7a 100644 --- a/examples/v2/security-monitoring/CreateSignalNotificationRule.rb +++ b/examples/v2/security-monitoring/CreateSignalNotificationRule.rb @@ -1,6 +1,9 @@ # Create a new signal-based notification rule returns "Successfully created the notification rule." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateNotificationRuleParameters.new({ diff --git a/examples/v2/security-monitoring/CreateStaticAnalysisAst.rb b/examples/v2/security-monitoring/CreateStaticAnalysisAst.rb index c3a0c3ed46d5..283f596c2cdf 100644 --- a/examples/v2/security-monitoring/CreateStaticAnalysisAst.rb +++ b/examples/v2/security-monitoring/CreateStaticAnalysisAst.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_static_analysis_ast".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateStaticAnalysisServerAnalysis.rb b/examples/v2/security-monitoring/CreateStaticAnalysisServerAnalysis.rb index bbe04a76ab4e..6f0b75f1ffb7 100644 --- a/examples/v2/security-monitoring/CreateStaticAnalysisServerAnalysis.rb +++ b/examples/v2/security-monitoring/CreateStaticAnalysisServerAnalysis.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_static_analysis_server_analysis".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb b/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb index 7f28b93fe366..7602e3672df3 100644 --- a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb +++ b/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule.rb @@ -1,6 +1,9 @@ # Create a new vulnerability-based notification rule returns "Successfully created the notification rule." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateNotificationRuleParameters.new({ diff --git a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule_2417112739.rb b/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule_2417112739.rb index 837a5f37f534..0eea37071c37 100644 --- a/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule_2417112739.rb +++ b/examples/v2/security-monitoring/CreateVulnerabilityNotificationRule_2417112739.rb @@ -2,6 +2,9 @@ # notification rule." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateNotificationRuleParameters.new({ diff --git a/examples/v2/security-monitoring/DeactivateContentPack.rb b/examples/v2/security-monitoring/DeactivateContentPack.rb index e8d9dd953100..4745ee986ca2 100644 --- a/examples/v2/security-monitoring/DeactivateContentPack.rb +++ b/examples/v2/security-monitoring/DeactivateContentPack.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.deactivate_content_pack".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeactivateIntegration.rb b/examples/v2/security-monitoring/DeactivateIntegration.rb index ed302be52978..188b6868502a 100644 --- a/examples/v2/security-monitoring/DeactivateIntegration.rb +++ b/examples/v2/security-monitoring/DeactivateIntegration.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.deactivate_integration".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteCustomFramework.rb b/examples/v2/security-monitoring/DeleteCustomFramework.rb index cfe64f31a641..87b0ee73e9e8 100644 --- a/examples/v2/security-monitoring/DeleteCustomFramework.rb +++ b/examples/v2/security-monitoring/DeleteCustomFramework.rb @@ -1,5 +1,8 @@ # Delete a custom framework returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.delete_custom_framework("create-framework-new", "10") diff --git a/examples/v2/security-monitoring/DeleteHistoricalJob.rb b/examples/v2/security-monitoring/DeleteHistoricalJob.rb index 42a09848cc76..658c3481cebe 100644 --- a/examples/v2/security-monitoring/DeleteHistoricalJob.rb +++ b/examples/v2/security-monitoring/DeleteHistoricalJob.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_historical_job".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSampleLogGenerationSubscription.rb b/examples/v2/security-monitoring/DeleteSampleLogGenerationSubscription.rb index fd70dc15647e..2747229907e2 100644 --- a/examples/v2/security-monitoring/DeleteSampleLogGenerationSubscription.rb +++ b/examples/v2/security-monitoring/DeleteSampleLogGenerationSubscription.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_sample_log_generation_subscription".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFilter.rb b/examples/v2/security-monitoring/DeleteSecurityFilter.rb index 7fbf2b549d2a..76fbaba46124 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFilter.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFilter.rb @@ -1,5 +1,8 @@ # Delete a security filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new api_instance.delete_security_filter("security_filter_id") diff --git a/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.rb b/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.rb index 2eb5fae699df..0f54c3862383 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFilter_555029489.rb @@ -1,6 +1,9 @@ # Delete a security filter returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_filter" in the system diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb index 6a333bbeb3a6..d4292bcf8447 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_due_date_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule_1294276849.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule_1294276849.rb index b49f3c747f4f..ce893d951505 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule_1294276849.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationDueDateRule_1294276849.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_due_date_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationInboxRule.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationInboxRule.rb index 79bf247d6a99..fdf8f9ff94d1 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationInboxRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb index 0e8594bb61c6..23f9e405e70f 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_mute_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule_4166916016.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule_4166916016.rb index 24ab4ed668d7..95c3300f18e3 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule_4166916016.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationMuteRule_4166916016.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_mute_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule.rb index 1ec9130a2223..c393d996c784 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_severity_modifier_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule_1187257521.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule_1187257521.rb index 393ae3081971..8b70ef9b5ce7 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule_1187257521.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationSeverityModifierRule_1187257521.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_severity_modifier_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb index b5de2f1cc909..d3577493a40f 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_ticket_creation_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule_476126190.rb b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule_476126190.rb index 3a11642530f5..7d13cf8fa74b 100644 --- a/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule_476126190.rb +++ b/examples/v2/security-monitoring/DeleteSecurityFindingsAutomationTicketCreationRule_476126190.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_findings_automation_ticket_creation_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb b/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb index a80c01a0d49a..6f832e7f5650 100644 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb +++ b/examples/v2/security-monitoring/DeleteSecurityMonitoringCriticalAsset.rb @@ -1,6 +1,9 @@ # Delete a critical asset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "critical_asset" in the system diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.rb b/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.rb index d5a02ff3fe1e..dced4bfeb587 100644 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.rb +++ b/examples/v2/security-monitoring/DeleteSecurityMonitoringDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_monitoring_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringIntegrationConfig.rb b/examples/v2/security-monitoring/DeleteSecurityMonitoringIntegrationConfig.rb index 8f7298fd1801..c9ea957be9b1 100644 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringIntegrationConfig.rb +++ b/examples/v2/security-monitoring/DeleteSecurityMonitoringIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_security_monitoring_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.rb b/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.rb index ab2ae5c93501..8966a3a9af0e 100644 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/DeleteSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Delete an existing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb b/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb index 0e345d0569f4..3a688f8579c0 100644 --- a/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb +++ b/examples/v2/security-monitoring/DeleteSecurityMonitoringSuppression.rb @@ -1,6 +1,9 @@ # Delete a suppression rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb b/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb index 442352f2fc65..38c59eff08c7 100644 --- a/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb +++ b/examples/v2/security-monitoring/DeleteSignalNotificationRule.rb @@ -1,6 +1,9 @@ # Delete a signal-based notification rule returns "Rule successfully deleted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_signal_notification_rule" in the system diff --git a/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb b/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb index 5e191171a441..dce5c348188a 100644 --- a/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb +++ b/examples/v2/security-monitoring/DeleteVulnerabilityNotificationRule.rb @@ -1,6 +1,9 @@ # Delete a vulnerability-based notification rule returns "Rule successfully deleted." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_vulnerability_notification_rule" in the system diff --git a/examples/v2/security-monitoring/DetachCase.rb b/examples/v2/security-monitoring/DetachCase.rb index e39475a93e75..8607712b73d1 100644 --- a/examples/v2/security-monitoring/DetachCase.rb +++ b/examples/v2/security-monitoring/DetachCase.rb @@ -1,6 +1,9 @@ # Detach security findings from their case returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::DetachCaseRequest.new({ diff --git a/examples/v2/security-monitoring/DisableSecurityFindingsAutomationDefaultInboxRule.rb b/examples/v2/security-monitoring/DisableSecurityFindingsAutomationDefaultInboxRule.rb index 8dc852ffc0dc..c5b7a39a4376 100644 --- a/examples/v2/security-monitoring/DisableSecurityFindingsAutomationDefaultInboxRule.rb +++ b/examples/v2/security-monitoring/DisableSecurityFindingsAutomationDefaultInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.disable_security_findings_automation_default_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignal.rb b/examples/v2/security-monitoring/EditSecurityMonitoringSignal.rb index 837e1b966895..f32ed6c63383 100644 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignal.rb +++ b/examples/v2/security-monitoring/EditSecurityMonitoringSignal.rb @@ -1,6 +1,9 @@ # Update security signal triage state or assignee returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb b/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb index 6c01adc50e02..fe9c8298f499 100644 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb +++ b/examples/v2/security-monitoring/EditSecurityMonitoringSignalAssignee.rb @@ -1,6 +1,9 @@ # Modify the triage assignee of a security signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalAssigneeUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb b/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb index eb01bc6bf2f6..fae8f623376a 100644 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb +++ b/examples/v2/security-monitoring/EditSecurityMonitoringSignalIncidents.rb @@ -1,6 +1,9 @@ # Change the related incidents of a security signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalIncidentsUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb b/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb index 9d2ec609a75c..5968b4a04303 100644 --- a/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb +++ b/examples/v2/security-monitoring/EditSecurityMonitoringSignalState.rb @@ -1,6 +1,9 @@ # Change the triage state of a security signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalStateUpdateRequest.new({ diff --git a/examples/v2/security-monitoring/EnableSecurityFindingsAutomationDefaultInboxRule.rb b/examples/v2/security-monitoring/EnableSecurityFindingsAutomationDefaultInboxRule.rb index e105083cded8..5a23325ba74d 100644 --- a/examples/v2/security-monitoring/EnableSecurityFindingsAutomationDefaultInboxRule.rb +++ b/examples/v2/security-monitoring/EnableSecurityFindingsAutomationDefaultInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.enable_security_findings_automation_default_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ExportSecurityMonitoringTerraformResource.rb b/examples/v2/security-monitoring/ExportSecurityMonitoringTerraformResource.rb index 3eff4ace14d7..dd8507a8c458 100644 --- a/examples/v2/security-monitoring/ExportSecurityMonitoringTerraformResource.rb +++ b/examples/v2/security-monitoring/ExportSecurityMonitoringTerraformResource.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.export_security_monitoring_terraform_resource".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetContentPacksStates.rb b/examples/v2/security-monitoring/GetContentPacksStates.rb index d1c78d12fc58..de5544a6b3d3 100644 --- a/examples/v2/security-monitoring/GetContentPacksStates.rb +++ b/examples/v2/security-monitoring/GetContentPacksStates.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_content_packs_states".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb b/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb index 035c7b31b8c1..5fef907e1975 100644 --- a/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb +++ b/examples/v2/security-monitoring/GetCriticalAssetsAffectingRule.rb @@ -1,6 +1,9 @@ # Get critical assets affecting a specific rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/GetCustomFramework.rb b/examples/v2/security-monitoring/GetCustomFramework.rb index 8849033240be..9c504a5f98e9 100644 --- a/examples/v2/security-monitoring/GetCustomFramework.rb +++ b/examples/v2/security-monitoring/GetCustomFramework.rb @@ -1,5 +1,8 @@ # Get a custom framework returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_custom_framework("create-framework-new", "10") diff --git a/examples/v2/security-monitoring/GetEntityContext.rb b/examples/v2/security-monitoring/GetEntityContext.rb index bc4910b0cf18..f82d91ccd8ad 100644 --- a/examples/v2/security-monitoring/GetEntityContext.rb +++ b/examples/v2/security-monitoring/GetEntityContext.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_entity_context".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetEntraIdAzureAppRegistrations.rb b/examples/v2/security-monitoring/GetEntraIdAzureAppRegistrations.rb index 7c2f65b3d6a0..c0f6495dd0a0 100644 --- a/examples/v2/security-monitoring/GetEntraIdAzureAppRegistrations.rb +++ b/examples/v2/security-monitoring/GetEntraIdAzureAppRegistrations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_entra_id_azure_app_registrations".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetFinding.rb b/examples/v2/security-monitoring/GetFinding.rb index 820fa46a24e3..a8165a8b6271 100644 --- a/examples/v2/security-monitoring/GetFinding.rb +++ b/examples/v2/security-monitoring/GetFinding.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_finding".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetHistoricalJob.rb b/examples/v2/security-monitoring/GetHistoricalJob.rb index d9a1b76ec918..ae012a01a38a 100644 --- a/examples/v2/security-monitoring/GetHistoricalJob.rb +++ b/examples/v2/security-monitoring/GetHistoricalJob.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_historical_job".to_sym] = true config.unstable_operations["v2.run_historical_job".to_sym] = true end diff --git a/examples/v2/security-monitoring/GetIndicatorOfCompromise.rb b/examples/v2/security-monitoring/GetIndicatorOfCompromise.rb index 6960a33efefa..1383af0722d0 100644 --- a/examples/v2/security-monitoring/GetIndicatorOfCompromise.rb +++ b/examples/v2/security-monitoring/GetIndicatorOfCompromise.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_indicator_of_compromise".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetInvestigationLogQueriesMatchingSignal.rb b/examples/v2/security-monitoring/GetInvestigationLogQueriesMatchingSignal.rb index a0f8403990f5..048ed04e34ee 100644 --- a/examples/v2/security-monitoring/GetInvestigationLogQueriesMatchingSignal.rb +++ b/examples/v2/security-monitoring/GetInvestigationLogQueriesMatchingSignal.rb @@ -1,5 +1,8 @@ # Get investigation queries for a signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_investigation_log_queries_matching_signal("AQAAAYG1bl5K4HuUewAAAABBWUcxYmw1S0FBQmt2RmhRN0V4ZUVnQUE") diff --git a/examples/v2/security-monitoring/GetMatchingSignals.rb b/examples/v2/security-monitoring/GetMatchingSignals.rb index 5c75ad7bffe0..96cde346047a 100644 --- a/examples/v2/security-monitoring/GetMatchingSignals.rb +++ b/examples/v2/security-monitoring/GetMatchingSignals.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_matching_signals".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb b/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb index 020534bcd37f..aaddfc13e43b 100644 --- a/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb +++ b/examples/v2/security-monitoring/GetResourceEvaluationFilters.rb @@ -1,6 +1,9 @@ # List resource filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { cloud_provider: "aws", diff --git a/examples/v2/security-monitoring/GetRuleVersionHistory.rb b/examples/v2/security-monitoring/GetRuleVersionHistory.rb index 0e04f6a7de65..7411359a796b 100644 --- a/examples/v2/security-monitoring/GetRuleVersionHistory.rb +++ b/examples/v2/security-monitoring/GetRuleVersionHistory.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rule_version_history".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb b/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb index 729b08f86aee..9356eec42c0d 100644 --- a/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb +++ b/examples/v2/security-monitoring/GetRuleVersionHistory_2467565841.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_rule_version_history".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSBOM.rb b/examples/v2/security-monitoring/GetSBOM.rb index 482d25f7da7c..c1f5e9ebfe28 100644 --- a/examples/v2/security-monitoring/GetSBOM.rb +++ b/examples/v2/security-monitoring/GetSBOM.rb @@ -1,5 +1,8 @@ # Get SBOM returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_sbom(AssetType::REPOSITORY, "github.com/datadog/datadog-agent") diff --git a/examples/v2/security-monitoring/GetSecretsRules.rb b/examples/v2/security-monitoring/GetSecretsRules.rb index 81abeff8809d..1534bb7b084a 100644 --- a/examples/v2/security-monitoring/GetSecretsRules.rb +++ b/examples/v2/security-monitoring/GetSecretsRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_secrets_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFilter.rb b/examples/v2/security-monitoring/GetSecurityFilter.rb index 47e4cb414d6a..9e0d6fd7cc4b 100644 --- a/examples/v2/security-monitoring/GetSecurityFilter.rb +++ b/examples/v2/security-monitoring/GetSecurityFilter.rb @@ -1,6 +1,9 @@ # Get a security filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_filter" in the system diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationDefaultInboxRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationDefaultInboxRule.rb index b72f4f266d3e..829f8551d332 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationDefaultInboxRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationDefaultInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_default_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb index 56782e9a8d8b..8949386fa6c6 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationDueDateRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_due_date_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationInboxRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationInboxRule.rb index b419e555070f..e3d2689bc0a5 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationInboxRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb index 5e826293f6f5..181f008f8007 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationMuteRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_mute_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationSeverityModifierRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationSeverityModifierRule.rb index 4f4ec197e558..bfd546735285 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationSeverityModifierRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationSeverityModifierRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_severity_modifier_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb b/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb index 394d9dfc380b..12460cf43ae9 100644 --- a/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb +++ b/examples/v2/security-monitoring/GetSecurityFindingsAutomationTicketCreationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_findings_automation_ticket_creation_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb b/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb index 5d5db1dba142..ec750091c83f 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringCriticalAsset.rb @@ -1,6 +1,9 @@ # Get a critical asset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "critical_asset" in the system diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringDataset.rb b/examples/v2/security-monitoring/GetSecurityMonitoringDataset.rb index a45797fc3c3d..3b9214b5707c 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDataset.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.rb b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.rb index a766fe1a38b9..e8bf95c7e10b 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetByVersion.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_dataset_by_version".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.rb b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.rb index 0e139aa4e91f..7862c78adf52 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringDatasetVersionHistory.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_dataset_version_history".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb b/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb index f4f8814424f9..a83147954097 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringHistsignal.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_histsignal".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb b/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb index 93004ca3b66f..7a1ec14f6d4a 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringHistsignalsByJobId.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_histsignals_by_job_id".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringIntegrationConfig.rb b/examples/v2/security-monitoring/GetSecurityMonitoringIntegrationConfig.rb index c14f834c2929..eac7f2592172 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringIntegrationConfig.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_security_monitoring_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb b/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb index 12613a297e71..b1a19232fcfb 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Get a rule's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb b/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb index b47d9181bfe1..859a410f997d 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringRule_3370522281.rb @@ -1,6 +1,9 @@ # Get a cloud configuration rule's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "cloud_configuration_rule" in the system diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb b/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb index f6b25d092d9c..21af2a456453 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringSignal.rb @@ -1,5 +1,8 @@ # Get a signal's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_security_monitoring_signal("AQAAAYNqUBVU4-rffwAAAABBWU5xVUJWVUFBQjJBd3ptMDdQUnF3QUE") diff --git a/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb b/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb index 2b927721cec1..4df48e37b3bf 100644 --- a/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb +++ b/examples/v2/security-monitoring/GetSecurityMonitoringSuppression.rb @@ -1,6 +1,9 @@ # Get a suppression rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/GetSignalEntities.rb b/examples/v2/security-monitoring/GetSignalEntities.rb index 568da5262ed7..e9696acd232a 100644 --- a/examples/v2/security-monitoring/GetSignalEntities.rb +++ b/examples/v2/security-monitoring/GetSignalEntities.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_signal_entities".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSignalNotificationRule.rb b/examples/v2/security-monitoring/GetSignalNotificationRule.rb index 9a76b2542c8f..cd7b7800e89a 100644 --- a/examples/v2/security-monitoring/GetSignalNotificationRule.rb +++ b/examples/v2/security-monitoring/GetSignalNotificationRule.rb @@ -1,6 +1,9 @@ # Get details of a signal-based notification rule returns "Notification rule details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_signal_notification_rule" in the system diff --git a/examples/v2/security-monitoring/GetSignalNotificationRules.rb b/examples/v2/security-monitoring/GetSignalNotificationRules.rb index 01216248ae07..35174d01847a 100644 --- a/examples/v2/security-monitoring/GetSignalNotificationRules.rb +++ b/examples/v2/security-monitoring/GetSignalNotificationRules.rb @@ -1,5 +1,8 @@ # Get the list of signal-based notification rules returns "The list of notification rules." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_signal_notification_rules() diff --git a/examples/v2/security-monitoring/GetSingleEntityContext.rb b/examples/v2/security-monitoring/GetSingleEntityContext.rb index 5b388a088513..252605a7aa71 100644 --- a/examples/v2/security-monitoring/GetSingleEntityContext.rb +++ b/examples/v2/security-monitoring/GetSingleEntityContext.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_single_entity_context".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetStaticAnalysisDefaultRulesets.rb b/examples/v2/security-monitoring/GetStaticAnalysisDefaultRulesets.rb index cfe954b5177f..a50ff95c3dc2 100644 --- a/examples/v2/security-monitoring/GetStaticAnalysisDefaultRulesets.rb +++ b/examples/v2/security-monitoring/GetStaticAnalysisDefaultRulesets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_static_analysis_default_rulesets".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetStaticAnalysisNodeTypes.rb b/examples/v2/security-monitoring/GetStaticAnalysisNodeTypes.rb index 85a048a1bc02..90b2276bdeaa 100644 --- a/examples/v2/security-monitoring/GetStaticAnalysisNodeTypes.rb +++ b/examples/v2/security-monitoring/GetStaticAnalysisNodeTypes.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_static_analysis_node_types".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetStaticAnalysisRuleset.rb b/examples/v2/security-monitoring/GetStaticAnalysisRuleset.rb index 05e235e4dbd4..8b663a9b7068 100644 --- a/examples/v2/security-monitoring/GetStaticAnalysisRuleset.rb +++ b/examples/v2/security-monitoring/GetStaticAnalysisRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_static_analysis_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetStaticAnalysisTreeSitterWasm.rb b/examples/v2/security-monitoring/GetStaticAnalysisTreeSitterWasm.rb index 6ad0ee97d62b..3eac0edf758b 100644 --- a/examples/v2/security-monitoring/GetStaticAnalysisTreeSitterWasm.rb +++ b/examples/v2/security-monitoring/GetStaticAnalysisTreeSitterWasm.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_static_analysis_tree_sitter_wasm".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/GetSuggestedActionsMatchingSignal.rb b/examples/v2/security-monitoring/GetSuggestedActionsMatchingSignal.rb index ae6c0246f5ad..09721b48d320 100644 --- a/examples/v2/security-monitoring/GetSuggestedActionsMatchingSignal.rb +++ b/examples/v2/security-monitoring/GetSuggestedActionsMatchingSignal.rb @@ -1,5 +1,8 @@ # Get suggested actions for a signal returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_suggested_actions_matching_signal("AQAAAYG1bl5K4HuUewAAAABBWUcxYmw1S0FBQmt2RmhRN0V4ZUVnQUE") diff --git a/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb b/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb index ffd45c6fa65f..0831e9f0b0eb 100644 --- a/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb +++ b/examples/v2/security-monitoring/GetSuppressionVersionHistory.rb @@ -1,6 +1,9 @@ # Get a suppression's version history returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb b/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb index 6a906204123c..561bfd13c5d0 100644 --- a/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb +++ b/examples/v2/security-monitoring/GetSuppressionsAffectingFutureRule.rb @@ -1,6 +1,9 @@ # Get suppressions affecting future rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRuleCreatePayload.new({ diff --git a/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb b/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb index e3ab86328869..cc51f68f1e2e 100644 --- a/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb +++ b/examples/v2/security-monitoring/GetSuppressionsAffectingRule.rb @@ -1,6 +1,9 @@ # Get suppressions affecting a specific rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb b/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb index ff391fb43dfc..36dbdd59e724 100644 --- a/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb +++ b/examples/v2/security-monitoring/GetVulnerabilityNotificationRule.rb @@ -1,6 +1,9 @@ # Get details of a vulnerability notification rule returns "Notification rule details." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_vulnerability_notification_rule" in the system diff --git a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb b/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb index c2819fb72e7a..ce222ca6444b 100644 --- a/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb +++ b/examples/v2/security-monitoring/GetVulnerabilityNotificationRules.rb @@ -1,5 +1,8 @@ # Get the list of vulnerability notification rules returns "The list of notification rules." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.get_vulnerability_notification_rules() diff --git a/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb b/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb index 86ab98f6a915..615a3f7b2b78 100644 --- a/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb +++ b/examples/v2/security-monitoring/ImportSecurityVulnerabilities.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.import_security_vulnerabilities".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListAssetsSBOMs.rb b/examples/v2/security-monitoring/ListAssetsSBOMs.rb index d80cb4f294e6..49bf5e6b8114 100644 --- a/examples/v2/security-monitoring/ListAssetsSBOMs.rb +++ b/examples/v2/security-monitoring/ListAssetsSBOMs.rb @@ -1,6 +1,9 @@ # List assets SBOMs returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { filter_package_name: "pandas", diff --git a/examples/v2/security-monitoring/ListFindings.rb b/examples/v2/security-monitoring/ListFindings.rb index fe156bc05514..544b2b1b8a13 100644 --- a/examples/v2/security-monitoring/ListFindings.rb +++ b/examples/v2/security-monitoring/ListFindings.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_findings".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListFindings_1668290866.rb b/examples/v2/security-monitoring/ListFindings_1668290866.rb index 2fbceb00350f..ee0f7a94274f 100644 --- a/examples/v2/security-monitoring/ListFindings_1668290866.rb +++ b/examples/v2/security-monitoring/ListFindings_1668290866.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_findings".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListFindings_2932019633.rb b/examples/v2/security-monitoring/ListFindings_2932019633.rb index 2cd2a4eea777..84cd96fc5697 100644 --- a/examples/v2/security-monitoring/ListFindings_2932019633.rb +++ b/examples/v2/security-monitoring/ListFindings_2932019633.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_findings".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListFindings_3865842421.rb b/examples/v2/security-monitoring/ListFindings_3865842421.rb index 616a5add94f4..4b4193c32810 100644 --- a/examples/v2/security-monitoring/ListFindings_3865842421.rb +++ b/examples/v2/security-monitoring/ListFindings_3865842421.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_findings".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListHistoricalJobs.rb b/examples/v2/security-monitoring/ListHistoricalJobs.rb index a6a395117084..86eb76eb9941 100644 --- a/examples/v2/security-monitoring/ListHistoricalJobs.rb +++ b/examples/v2/security-monitoring/ListHistoricalJobs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_historical_jobs".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListIndicatorsOfCompromise.rb b/examples/v2/security-monitoring/ListIndicatorsOfCompromise.rb index ad44ec34b6ee..e12a8f607d0c 100644 --- a/examples/v2/security-monitoring/ListIndicatorsOfCompromise.rb +++ b/examples/v2/security-monitoring/ListIndicatorsOfCompromise.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_indicators_of_compromise".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListMultipleRulesets.rb b/examples/v2/security-monitoring/ListMultipleRulesets.rb index d0a108eb775b..07ed7b0a3041 100644 --- a/examples/v2/security-monitoring/ListMultipleRulesets.rb +++ b/examples/v2/security-monitoring/ListMultipleRulesets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_multiple_rulesets".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSampleLogGenerationSubscriptions.rb b/examples/v2/security-monitoring/ListSampleLogGenerationSubscriptions.rb index 56a91b979335..71095f0ee5c5 100644 --- a/examples/v2/security-monitoring/ListSampleLogGenerationSubscriptions.rb +++ b/examples/v2/security-monitoring/ListSampleLogGenerationSubscriptions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_sample_log_generation_subscriptions".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb b/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb index 44f09467fe56..87c6b9836f3e 100644 --- a/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb +++ b/examples/v2/security-monitoring/ListScannedAssetsMetadata.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_scanned_assets_metadata".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFilterVersions.rb b/examples/v2/security-monitoring/ListSecurityFilterVersions.rb index fedeb2290a8a..02b796bec9f7 100644 --- a/examples/v2/security-monitoring/ListSecurityFilterVersions.rb +++ b/examples/v2/security-monitoring/ListSecurityFilterVersions.rb @@ -1,5 +1,8 @@ # Get the version history of security filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_filter_versions() diff --git a/examples/v2/security-monitoring/ListSecurityFilters.rb b/examples/v2/security-monitoring/ListSecurityFilters.rb index afcdf3ba6a65..5dbef0b7a6f1 100644 --- a/examples/v2/security-monitoring/ListSecurityFilters.rb +++ b/examples/v2/security-monitoring/ListSecurityFilters.rb @@ -1,5 +1,8 @@ # Get all security filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_filters() diff --git a/examples/v2/security-monitoring/ListSecurityFindings.rb b/examples/v2/security-monitoring/ListSecurityFindings.rb index 6d43d8d37247..461163c2b7ea 100644 --- a/examples/v2/security-monitoring/ListSecurityFindings.rb +++ b/examples/v2/security-monitoring/ListSecurityFindings.rb @@ -1,5 +1,8 @@ # List security findings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_findings() diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationDefaultInboxRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationDefaultInboxRules.rb index 756daacc6f80..ac998e8bf488 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationDefaultInboxRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationDefaultInboxRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_default_inbox_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb index ca32aa3e13d6..7f63cbb8e3ae 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationDueDateRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_due_date_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationInboxRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationInboxRules.rb index 3616ffc0f391..4b1552dbbdd8 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationInboxRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationInboxRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_inbox_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb index 9078d3c56daa..131d206c99bc 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationMuteRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_mute_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationSeverityModifierRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationSeverityModifierRules.rb index 937bf5535d3d..4d11e1c936a7 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationSeverityModifierRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationSeverityModifierRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_severity_modifier_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb b/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb index f27fde8a2840..f08fe47434fc 100644 --- a/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb +++ b/examples/v2/security-monitoring/ListSecurityFindingsAutomationTicketCreationRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_findings_automation_ticket_creation_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb b/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb index 3a35b7d6135d..564e2ab1ec1d 100644 --- a/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb +++ b/examples/v2/security-monitoring/ListSecurityFindings_2925663885.rb @@ -1,6 +1,9 @@ # List security findings returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { page_limit: 5, diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb b/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb index b82c94baf89a..fe6b4f5d6b74 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringCriticalAssets.rb @@ -1,5 +1,8 @@ # Get all critical assets returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_monitoring_critical_assets() diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.rb b/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.rb index 95f686f338a9..032ea70c3b7a 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringDatasets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_monitoring_datasets".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb b/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb index eacf635a1f3a..14100a4bae74 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringHistsignals.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_monitoring_histsignals".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringIntegrationConfigs.rb b/examples/v2/security-monitoring/ListSecurityMonitoringIntegrationConfigs.rb index fd038b4fb0d2..17764f39735d 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringIntegrationConfigs.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringIntegrationConfigs.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_security_monitoring_integration_configs".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringRules.rb b/examples/v2/security-monitoring/ListSecurityMonitoringRules.rb index 1627270ac0e2..b6e2d484346a 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringRules.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringRules.rb @@ -1,5 +1,8 @@ # List rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_monitoring_rules() diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb index 3a630a9313e9..9e668b96947f 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSignals.rb @@ -1,5 +1,8 @@ # Get a quick list of security signals returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_monitoring_signals() diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb index afbab6e28810..5188335ee449 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSignals_3960412991.rb @@ -1,6 +1,9 @@ # Get a quick list of security signals returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new opts = { page_limit: 2, diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb index f990a2e09632..b2431c19f060 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions.rb @@ -1,5 +1,8 @@ # Get all suppression rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new p api_instance.list_security_monitoring_suppressions() diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.rb index e4d8b50b439c..e7d4a8385116 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1315707136.rb @@ -1,6 +1,9 @@ # Get all suppression rules returns "OK" response with sort ascending require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.rb index ea5cdb65b906..dd9453721406 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_1741429096.rb @@ -1,6 +1,9 @@ # Get all suppression rules returns "OK" response with sort descending require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.rb b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.rb index 5e38d9bb5715..f779a06f4772 100644 --- a/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.rb +++ b/examples/v2/security-monitoring/ListSecurityMonitoringSuppressions_3985905558.rb @@ -1,6 +1,9 @@ # Get all suppression rules returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/ListStaticAnalysisCodegenRulesets.rb b/examples/v2/security-monitoring/ListStaticAnalysisCodegenRulesets.rb index d5615d42aa9c..9c1d22e33dff 100644 --- a/examples/v2/security-monitoring/ListStaticAnalysisCodegenRulesets.rb +++ b/examples/v2/security-monitoring/ListStaticAnalysisCodegenRulesets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_static_analysis_codegen_rulesets".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListVulnerabilities.rb b/examples/v2/security-monitoring/ListVulnerabilities.rb index c1910cdd47bb..5160bb6a7c07 100644 --- a/examples/v2/security-monitoring/ListVulnerabilities.rb +++ b/examples/v2/security-monitoring/ListVulnerabilities.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_vulnerabilities".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ListVulnerableAssets.rb b/examples/v2/security-monitoring/ListVulnerableAssets.rb index 9b0f963a02d9..32d0bc73e227 100644 --- a/examples/v2/security-monitoring/ListVulnerableAssets.rb +++ b/examples/v2/security-monitoring/ListVulnerableAssets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_vulnerable_assets".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/MuteSecurityFindings.rb b/examples/v2/security-monitoring/MuteSecurityFindings.rb index 7b3f016dc9d1..2d879bfb67a7 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings.rb +++ b/examples/v2/security-monitoring/MuteSecurityFindings.rb @@ -1,6 +1,9 @@ # Mute or unmute security findings returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::MuteFindingsRequest.new({ diff --git a/examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb b/examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb index fb369f6805df..c3b0fa008dd8 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb +++ b/examples/v2/security-monitoring/MuteSecurityFindings_298521544.rb @@ -1,6 +1,9 @@ # Unmute security findings returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::MuteFindingsRequest.new({ diff --git a/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb b/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb index 9a3859e996c4..7b74ff3c24ff 100644 --- a/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb +++ b/examples/v2/security-monitoring/MuteSecurityFindings_3830190821.rb @@ -1,6 +1,9 @@ # Mute security findings returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::MuteFindingsRequest.new({ diff --git a/examples/v2/security-monitoring/PatchSignalNotificationRule.rb b/examples/v2/security-monitoring/PatchSignalNotificationRule.rb index 32be0ee3851d..f176fd1d3191 100644 --- a/examples/v2/security-monitoring/PatchSignalNotificationRule.rb +++ b/examples/v2/security-monitoring/PatchSignalNotificationRule.rb @@ -1,6 +1,9 @@ # Patch a signal-based notification rule returns "Notification rule successfully patched." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_signal_notification_rule" in the system diff --git a/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb b/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb index b14a5fd81400..2ece71bef117 100644 --- a/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb +++ b/examples/v2/security-monitoring/PatchVulnerabilityNotificationRule.rb @@ -1,6 +1,9 @@ # Patch a vulnerability-based notification rule returns "Notification rule successfully patched." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "valid_vulnerability_notification_rule" in the system diff --git a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb index 7c58dfa43dcc..74223bcd1e46 100644 --- a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb +++ b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationDueDateRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_security_findings_automation_due_date_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationInboxRules.rb b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationInboxRules.rb index 769e4e5a8b74..8b70e59c23c8 100644 --- a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationInboxRules.rb +++ b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationInboxRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_security_findings_automation_inbox_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb index 96e799841e52..3a4200a9c92d 100644 --- a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb +++ b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationMuteRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_security_findings_automation_mute_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationSeverityModifierRules.rb b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationSeverityModifierRules.rb index 980ed5be2b87..838e40451040 100644 --- a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationSeverityModifierRules.rb +++ b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationSeverityModifierRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_security_findings_automation_severity_modifier_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb index 4a5b46f4a0ef..8d5a30763cf1 100644 --- a/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb +++ b/examples/v2/security-monitoring/ReorderSecurityFindingsAutomationTicketCreationRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.reorder_security_findings_automation_ticket_creation_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/RestoreSecurityMonitoringRule.rb b/examples/v2/security-monitoring/RestoreSecurityMonitoringRule.rb index 694fe6199cd2..0e69fd151167 100644 --- a/examples/v2/security-monitoring/RestoreSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/RestoreSecurityMonitoringRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.restore_security_monitoring_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/RunHistoricalJob.rb b/examples/v2/security-monitoring/RunHistoricalJob.rb index f4e8904f907d..757a1ba92e89 100644 --- a/examples/v2/security-monitoring/RunHistoricalJob.rb +++ b/examples/v2/security-monitoring/RunHistoricalJob.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.run_historical_job".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/SearchSecurityFindings.rb b/examples/v2/security-monitoring/SearchSecurityFindings.rb index 956cb6f68747..e1c9327f1b6a 100644 --- a/examples/v2/security-monitoring/SearchSecurityFindings.rb +++ b/examples/v2/security-monitoring/SearchSecurityFindings.rb @@ -1,6 +1,9 @@ # Search security findings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityFindingsSearchRequest.new({ diff --git a/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb b/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb index 0fd679d62686..4828386a7b08 100644 --- a/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb +++ b/examples/v2/security-monitoring/SearchSecurityFindings_3678541639.rb @@ -1,6 +1,9 @@ # Search security findings returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityFindingsSearchRequest.new({ diff --git a/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb b/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb index f267d51c78ad..55ffc3299bdc 100644 --- a/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb +++ b/examples/v2/security-monitoring/SearchSecurityMonitoringHistsignals.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_security_monitoring_histsignals".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb index 04fca90fbf14..8c0a5991ed47 100644 --- a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb +++ b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals.rb @@ -1,6 +1,9 @@ # Get a list of security signals returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalListRequest.new({ diff --git a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb index e5ad600167cb..682316f01639 100644 --- a/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb +++ b/examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb @@ -1,6 +1,9 @@ # Get a list of security signals returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSignalListRequest.new({ diff --git a/examples/v2/security-monitoring/SendSecurityMonitoringNotificationPreview.rb b/examples/v2/security-monitoring/SendSecurityMonitoringNotificationPreview.rb index 211e81fbb778..ae1a98d50a73 100644 --- a/examples/v2/security-monitoring/SendSecurityMonitoringNotificationPreview.rb +++ b/examples/v2/security-monitoring/SendSecurityMonitoringNotificationPreview.rb @@ -1,6 +1,9 @@ # Test a notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::CreateNotificationRuleParameters.new({ diff --git a/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.rb b/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.rb index c9e71f490d87..b4074d2c4103 100644 --- a/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/TestExistingSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Test an existing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringRuleTestRequest.new({ diff --git a/examples/v2/security-monitoring/TestSecurityMonitoringRule.rb b/examples/v2/security-monitoring/TestSecurityMonitoringRule.rb index a368457c8862..8ca60e25fb1f 100644 --- a/examples/v2/security-monitoring/TestSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/TestSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Test a rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringRuleTestRequest.new({ diff --git a/examples/v2/security-monitoring/UpdateCustomFramework.rb b/examples/v2/security-monitoring/UpdateCustomFramework.rb index 293d2bf67ecc..1b35642c3674 100644 --- a/examples/v2/security-monitoring/UpdateCustomFramework.rb +++ b/examples/v2/security-monitoring/UpdateCustomFramework.rb @@ -1,6 +1,9 @@ # Update a custom framework returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::UpdateCustomFrameworkRequest.new({ diff --git a/examples/v2/security-monitoring/UpdateFindingsAssignee.rb b/examples/v2/security-monitoring/UpdateFindingsAssignee.rb index 497cc0046178..0fea1c6f3f14 100644 --- a/examples/v2/security-monitoring/UpdateFindingsAssignee.rb +++ b/examples/v2/security-monitoring/UpdateFindingsAssignee.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_findings_assignee".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb b/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb index d34c7f6a7fb9..d1742aa03209 100644 --- a/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb +++ b/examples/v2/security-monitoring/UpdateResourceEvaluationFilters.rb @@ -1,6 +1,9 @@ # Update resource filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::UpdateResourceEvaluationFiltersRequest.new({ diff --git a/examples/v2/security-monitoring/UpdateSecurityFilter.rb b/examples/v2/security-monitoring/UpdateSecurityFilter.rb index 984a7c16aae6..562218a72c20 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFilter.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFilter.rb @@ -1,6 +1,9 @@ # Update a security filter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_filter" in the system diff --git a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb index d72968d432d4..673bfb1eb96b 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationDueDateRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_findings_automation_due_date_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationInboxRule.rb b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationInboxRule.rb index e8d650662de1..2adcb5c924ec 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationInboxRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationInboxRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_findings_automation_inbox_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb index 44329f1281d0..01ed3a55acec 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationMuteRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_findings_automation_mute_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationSeverityModifierRule.rb b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationSeverityModifierRule.rb index 7414d861437c..81291ab473cf 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationSeverityModifierRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationSeverityModifierRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_findings_automation_severity_modifier_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb index 562e0545035d..1368643cb972 100644 --- a/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityFindingsAutomationTicketCreationRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_findings_automation_ticket_creation_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb index fc57b2c61b53..af1dc7208b16 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringCriticalAsset.rb @@ -1,6 +1,9 @@ # Update a critical asset returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "critical_asset" in the system diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.rb index d0730f97e4f8..1c0dbfce2600 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringDataset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_monitoring_dataset".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringIntegrationConfig.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringIntegrationConfig.rb index 92c6459be2ec..723086ce9577 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringIntegrationConfig.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_security_monitoring_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb index 842c8c6a3905..6680fb6cdb66 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Update an existing rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "security_rule" in the system diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb index ea2d8ab9f879..5f7f9480ca87 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb @@ -1,6 +1,9 @@ # Update a cloud configuration rule's details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "cloud_configuration_rule" in the system diff --git a/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb b/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb index 6cde65d6c509..ca4450d7d63d 100644 --- a/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb +++ b/examples/v2/security-monitoring/UpdateSecurityMonitoringSuppression.rb @@ -1,6 +1,9 @@ # Update a suppression rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationConfig.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationConfig.rb index d1400e1ffcab..142a26094e6b 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationConfig.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationConfig.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.validate_security_monitoring_integration_config".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationCredentials.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationCredentials.rb index 1f7173a910f2..259028dcbec8 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationCredentials.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringIntegrationCredentials.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.validate_security_monitoring_integration_credentials".to_sym] = true end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb index 59796bda5d43..cf17d66f2c98 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule.rb @@ -1,6 +1,9 @@ # Validate a detection rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload.new({ diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb index b8b52651787e..73aa1c09b538 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb @@ -2,6 +2,9 @@ # response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload.new({ diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb index c097b0762adb..81ab8362ce22 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb @@ -1,6 +1,9 @@ # Validate a detection rule with detection method 'sequence_detection' returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringStandardRulePayload.new({ diff --git a/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb b/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb index c8f15789d72e..9d61926aa71f 100644 --- a/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb +++ b/examples/v2/security-monitoring/ValidateSecurityMonitoringSuppression.rb @@ -1,6 +1,9 @@ # Validate a suppression rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new body = DatadogAPIClient::V2::SecurityMonitoringSuppressionCreateRequest.new({ diff --git a/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb b/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb index 7e29d7293ad3..133e8af1a9f4 100644 --- a/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +++ b/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb @@ -1,6 +1,9 @@ # Create Scanning Group returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # a valid "configuration" in the system diff --git a/examples/v2/sensitive-data-scanner/CreateScanningRule.rb b/examples/v2/sensitive-data-scanner/CreateScanningRule.rb index c0a57ddf3654..ca0b2a9e5e46 100644 --- a/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +++ b/examples/v2/sensitive-data-scanner/CreateScanningRule.rb @@ -1,6 +1,9 @@ # Create Scanning Rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # there is a valid "scanning_group" in the system diff --git a/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb b/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb index 35280315670a..e47c1a1fb22b 100644 --- a/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb +++ b/examples/v2/sensitive-data-scanner/CreateScanningRule_502667299.rb @@ -1,6 +1,9 @@ # Create Scanning Rule with should_save_match returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # there is a valid "scanning_group" in the system diff --git a/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb b/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb index 266d87f0a551..4b106a5812e9 100644 --- a/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb +++ b/examples/v2/sensitive-data-scanner/DeleteScanningGroup.rb @@ -1,6 +1,9 @@ # Delete Scanning Group returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # there is a valid "scanning_group" in the system diff --git a/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb b/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb index ed56f679c43f..cbd9f10e81a9 100644 --- a/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb +++ b/examples/v2/sensitive-data-scanner/DeleteScanningRule.rb @@ -1,6 +1,9 @@ # Delete Scanning Rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # the "scanning_group" has a "scanning_rule" diff --git a/examples/v2/sensitive-data-scanner/ListScanningGroups.rb b/examples/v2/sensitive-data-scanner/ListScanningGroups.rb index 43d60f3ea4cd..53afb94c378b 100644 --- a/examples/v2/sensitive-data-scanner/ListScanningGroups.rb +++ b/examples/v2/sensitive-data-scanner/ListScanningGroups.rb @@ -1,5 +1,8 @@ # List Scanning Groups returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new p api_instance.list_scanning_groups() diff --git a/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb b/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb index 1237efd27b7d..53a32a247eb7 100644 --- a/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb +++ b/examples/v2/sensitive-data-scanner/ListStandardPatterns.rb @@ -1,5 +1,8 @@ # List standard patterns returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new p api_instance.list_standard_patterns() diff --git a/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb b/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb index 08b0297b1da3..53509865dcb5 100644 --- a/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb +++ b/examples/v2/sensitive-data-scanner/ReorderScanningGroups.rb @@ -1,6 +1,9 @@ # Reorder Groups returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # there is a valid "scanning_group" in the system diff --git a/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb b/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb index cfcb98a7af86..8d60402a8aaa 100644 --- a/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +++ b/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb @@ -1,6 +1,9 @@ # Update Scanning Group returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # there is a valid "scanning_group" in the system diff --git a/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb b/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb index cc6848aaf43c..cb4d60b56739 100644 --- a/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +++ b/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb @@ -1,6 +1,9 @@ # Update Scanning Rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SensitiveDataScannerAPI.new # the "scanning_group" has a "scanning_rule" diff --git a/examples/v2/service-accounts/CreateServiceAccount.rb b/examples/v2/service-accounts/CreateServiceAccount.rb index cb5582bf18ef..5a942a957213 100644 --- a/examples/v2/service-accounts/CreateServiceAccount.rb +++ b/examples/v2/service-accounts/CreateServiceAccount.rb @@ -1,6 +1,9 @@ # Create a service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "role" in the system diff --git a/examples/v2/service-accounts/CreateServiceAccountAccessToken.rb b/examples/v2/service-accounts/CreateServiceAccountAccessToken.rb index c3442398256b..f5e7a3a5e094 100644 --- a/examples/v2/service-accounts/CreateServiceAccountAccessToken.rb +++ b/examples/v2/service-accounts/CreateServiceAccountAccessToken.rb @@ -1,6 +1,9 @@ # Create an access token for a service account returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb b/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb index 68f503113de3..8eecaf6b3d92 100644 --- a/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +++ b/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb @@ -1,6 +1,9 @@ # Create an application key for this service account returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb b/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb index f339912e9aeb..c1593b17dc46 100644 --- a/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb +++ b/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb @@ -1,6 +1,9 @@ # Create an application key with scopes for this service account returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb b/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb index 86b346ff6d4e..c73e33f6ec64 100644 --- a/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +++ b/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb @@ -1,6 +1,9 @@ # Delete an application key for this service account returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/GetServiceAccountAccessToken.rb b/examples/v2/service-accounts/GetServiceAccountAccessToken.rb index db27633430dd..2660cf29a6c9 100644 --- a/examples/v2/service-accounts/GetServiceAccountAccessToken.rb +++ b/examples/v2/service-accounts/GetServiceAccountAccessToken.rb @@ -1,6 +1,9 @@ # Get an access token for a service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb b/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb index 80233da83525..f14de21c76d4 100644 --- a/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +++ b/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb @@ -1,6 +1,9 @@ # Get one application key for this service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/ListServiceAccountAccessTokens.rb b/examples/v2/service-accounts/ListServiceAccountAccessTokens.rb index 22b534aebf8b..90f0a5e5ef10 100644 --- a/examples/v2/service-accounts/ListServiceAccountAccessTokens.rb +++ b/examples/v2/service-accounts/ListServiceAccountAccessTokens.rb @@ -1,6 +1,9 @@ # List access tokens for a service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb b/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb index e71380da87bc..cf5e691d2f7f 100644 --- a/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +++ b/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb @@ -1,6 +1,9 @@ # List application keys for this service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/RevokeServiceAccountAccessToken.rb b/examples/v2/service-accounts/RevokeServiceAccountAccessToken.rb index 00b83b92810f..ba215f133616 100644 --- a/examples/v2/service-accounts/RevokeServiceAccountAccessToken.rb +++ b/examples/v2/service-accounts/RevokeServiceAccountAccessToken.rb @@ -1,6 +1,9 @@ # Revoke an access token for a service account returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/UpdateServiceAccountAccessToken.rb b/examples/v2/service-accounts/UpdateServiceAccountAccessToken.rb index 73bbad6a0063..266879eeb5f2 100644 --- a/examples/v2/service-accounts/UpdateServiceAccountAccessToken.rb +++ b/examples/v2/service-accounts/UpdateServiceAccountAccessToken.rb @@ -1,6 +1,9 @@ # Update an access token for a service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb b/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb index 0446ebf068bf..541fec48258e 100644 --- a/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +++ b/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb @@ -1,6 +1,9 @@ # Edit an application key for this service account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceAccountsAPI.new # there is a valid "service_account_user" in the system diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb index 0eb747791796..976be51bba9a 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb @@ -1,6 +1,9 @@ # Create or update service definition returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new body = DatadogAPIClient::V2::ServiceDefinitionV2Dot2.new({ diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb index b73863ef6422..8f95b60e432a 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb @@ -1,6 +1,9 @@ # Create or update service definition using schema v2 returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new body = DatadogAPIClient::V2::ServiceDefinitionV2.new({ diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb index 466ac3dda7c8..0538ca3e1c79 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb @@ -1,6 +1,9 @@ # Create or update service definition using schema v2-1 returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new body = DatadogAPIClient::V2::ServiceDefinitionV2Dot1.new({ diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb index 45713ad6662c..5cf30aae1b61 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb @@ -1,6 +1,9 @@ # Create or update service definition using schema v2-2 returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new body = DatadogAPIClient::V2::ServiceDefinitionV2Dot2.new({ diff --git a/examples/v2/service-definition/DeleteServiceDefinition.rb b/examples/v2/service-definition/DeleteServiceDefinition.rb index 75335a7e1eb4..ff73aef42c38 100644 --- a/examples/v2/service-definition/DeleteServiceDefinition.rb +++ b/examples/v2/service-definition/DeleteServiceDefinition.rb @@ -1,5 +1,8 @@ # Delete a single service definition returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new api_instance.delete_service_definition("service-definition-test") diff --git a/examples/v2/service-definition/GetServiceDefinition.rb b/examples/v2/service-definition/GetServiceDefinition.rb index f47a34ed7c92..9410f29775f3 100644 --- a/examples/v2/service-definition/GetServiceDefinition.rb +++ b/examples/v2/service-definition/GetServiceDefinition.rb @@ -1,6 +1,9 @@ # Get a single service definition returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new opts = { schema_version: ServiceDefinitionSchemaVersions::V2_1, diff --git a/examples/v2/service-definition/ListServiceDefinitions.rb b/examples/v2/service-definition/ListServiceDefinitions.rb index a3b1826fc19a..2c3bb0d032fa 100644 --- a/examples/v2/service-definition/ListServiceDefinitions.rb +++ b/examples/v2/service-definition/ListServiceDefinitions.rb @@ -1,6 +1,9 @@ # Get all service definitions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new opts = { schema_version: ServiceDefinitionSchemaVersions::V2_1, diff --git a/examples/v2/service-definition/ListServiceDefinitions_336468013.rb b/examples/v2/service-definition/ListServiceDefinitions_336468013.rb index 5a9bc58b72e7..5309cd6b0f65 100644 --- a/examples/v2/service-definition/ListServiceDefinitions_336468013.rb +++ b/examples/v2/service-definition/ListServiceDefinitions_336468013.rb @@ -1,6 +1,9 @@ # Get all service definitions returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceDefinitionAPI.new opts = { page_size: 2, diff --git a/examples/v2/service-level-objectives/CreateSLOReportJob.rb b/examples/v2/service-level-objectives/CreateSLOReportJob.rb index b0a5f8460296..34704545257a 100644 --- a/examples/v2/service-level-objectives/CreateSLOReportJob.rb +++ b/examples/v2/service-level-objectives/CreateSLOReportJob.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_slo_report_job".to_sym] = true end api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new diff --git a/examples/v2/service-level-objectives/GetSLOReport.rb b/examples/v2/service-level-objectives/GetSLOReport.rb index 92a7cb261243..e0caa5ab5cab 100644 --- a/examples/v2/service-level-objectives/GetSLOReport.rb +++ b/examples/v2/service-level-objectives/GetSLOReport.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_slo_report".to_sym] = true end api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new diff --git a/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb b/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb index 4216bd624896..3d4acbec5667 100644 --- a/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb +++ b/examples/v2/service-level-objectives/GetSLOReportJobStatus.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_slo_report_job_status".to_sym] = true end api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new diff --git a/examples/v2/service-level-objectives/GetSloStatus.rb b/examples/v2/service-level-objectives/GetSloStatus.rb index 8b0e7fbd32c5..349960a17de6 100644 --- a/examples/v2/service-level-objectives/GetSloStatus.rb +++ b/examples/v2/service-level-objectives/GetSloStatus.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_slo_status".to_sym] = true end api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new diff --git a/examples/v2/servicenow-integration/CreateServiceNowTemplate.rb b/examples/v2/servicenow-integration/CreateServiceNowTemplate.rb index a3bbb4358187..d4326ae4cc2b 100644 --- a/examples/v2/servicenow-integration/CreateServiceNowTemplate.rb +++ b/examples/v2/servicenow-integration/CreateServiceNowTemplate.rb @@ -1,6 +1,9 @@ # Create ServiceNow template returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new body = DatadogAPIClient::V2::ServiceNowTemplateCreateRequest.new({ diff --git a/examples/v2/servicenow-integration/DeleteServiceNowTemplate.rb b/examples/v2/servicenow-integration/DeleteServiceNowTemplate.rb index 93845224b28b..8d3fb78b32af 100644 --- a/examples/v2/servicenow-integration/DeleteServiceNowTemplate.rb +++ b/examples/v2/servicenow-integration/DeleteServiceNowTemplate.rb @@ -1,5 +1,8 @@ # Delete ServiceNow template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.delete_service_now_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/servicenow-integration/GetServiceNowTemplate.rb b/examples/v2/servicenow-integration/GetServiceNowTemplate.rb index 78314a1a7831..cfffd4fb4527 100644 --- a/examples/v2/servicenow-integration/GetServiceNowTemplate.rb +++ b/examples/v2/servicenow-integration/GetServiceNowTemplate.rb @@ -1,5 +1,8 @@ # Get ServiceNow template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.get_service_now_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.rb b/examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.rb index a978eb383a68..6ea8307744c8 100644 --- a/examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.rb +++ b/examples/v2/servicenow-integration/ListServiceNowAssignmentGroups.rb @@ -1,5 +1,8 @@ # List ServiceNow assignment groups returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.list_service_now_assignment_groups("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/servicenow-integration/ListServiceNowBusinessServices.rb b/examples/v2/servicenow-integration/ListServiceNowBusinessServices.rb index 35add28f3ead..59dbd2a77259 100644 --- a/examples/v2/servicenow-integration/ListServiceNowBusinessServices.rb +++ b/examples/v2/servicenow-integration/ListServiceNowBusinessServices.rb @@ -1,5 +1,8 @@ # List ServiceNow business services returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.list_service_now_business_services("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/servicenow-integration/ListServiceNowInstances.rb b/examples/v2/servicenow-integration/ListServiceNowInstances.rb index eb755afc08f3..c80626791eda 100644 --- a/examples/v2/servicenow-integration/ListServiceNowInstances.rb +++ b/examples/v2/servicenow-integration/ListServiceNowInstances.rb @@ -1,5 +1,8 @@ # List ServiceNow instances returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.list_service_now_instances() diff --git a/examples/v2/servicenow-integration/ListServiceNowTemplates.rb b/examples/v2/servicenow-integration/ListServiceNowTemplates.rb index 58fe7cf7e5d4..40ccfeba0c05 100644 --- a/examples/v2/servicenow-integration/ListServiceNowTemplates.rb +++ b/examples/v2/servicenow-integration/ListServiceNowTemplates.rb @@ -1,5 +1,8 @@ # List ServiceNow templates returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.list_service_now_templates() diff --git a/examples/v2/servicenow-integration/ListServiceNowUsers.rb b/examples/v2/servicenow-integration/ListServiceNowUsers.rb index 7b5cc4fa79d0..7518dae13a01 100644 --- a/examples/v2/servicenow-integration/ListServiceNowUsers.rb +++ b/examples/v2/servicenow-integration/ListServiceNowUsers.rb @@ -1,5 +1,8 @@ # List ServiceNow users returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new p api_instance.list_service_now_users("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/servicenow-integration/UpdateServiceNowTemplate.rb b/examples/v2/servicenow-integration/UpdateServiceNowTemplate.rb index e4dbb1a6afbf..a57e6c34fcfe 100644 --- a/examples/v2/servicenow-integration/UpdateServiceNowTemplate.rb +++ b/examples/v2/servicenow-integration/UpdateServiceNowTemplate.rb @@ -1,6 +1,9 @@ # Update ServiceNow template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::ServiceNowIntegrationAPI.new body = DatadogAPIClient::V2::ServiceNowTemplateUpdateRequest.new({ diff --git a/examples/v2/slack-integration/ListSlackUserBindings.rb b/examples/v2/slack-integration/ListSlackUserBindings.rb index c08456b5fa5e..250ee3c2d312 100644 --- a/examples/v2/slack-integration/ListSlackUserBindings.rb +++ b/examples/v2/slack-integration/ListSlackUserBindings.rb @@ -1,5 +1,8 @@ # List Slack user bindings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SlackIntegrationAPI.new p api_instance.list_slack_user_bindings("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/snowflake-integration/CreateSnowflakeIntegrationAccount.rb b/examples/v2/snowflake-integration/CreateSnowflakeIntegrationAccount.rb index 360a4a3e91e3..194cd0bb9a5d 100644 --- a/examples/v2/snowflake-integration/CreateSnowflakeIntegrationAccount.rb +++ b/examples/v2/snowflake-integration/CreateSnowflakeIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_snowflake_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::SnowflakeIntegrationAPI.new diff --git a/examples/v2/snowflake-integration/DeleteSnowflakeIntegrationAccount.rb b/examples/v2/snowflake-integration/DeleteSnowflakeIntegrationAccount.rb index 98a91a697d27..ec6a15f9a589 100644 --- a/examples/v2/snowflake-integration/DeleteSnowflakeIntegrationAccount.rb +++ b/examples/v2/snowflake-integration/DeleteSnowflakeIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_snowflake_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::SnowflakeIntegrationAPI.new diff --git a/examples/v2/snowflake-integration/GetSnowflakeIntegrationAccount.rb b/examples/v2/snowflake-integration/GetSnowflakeIntegrationAccount.rb index 8f326b0d1904..a62939ce2e03 100644 --- a/examples/v2/snowflake-integration/GetSnowflakeIntegrationAccount.rb +++ b/examples/v2/snowflake-integration/GetSnowflakeIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_snowflake_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::SnowflakeIntegrationAPI.new diff --git a/examples/v2/snowflake-integration/ListSnowflakeIntegrationAccounts.rb b/examples/v2/snowflake-integration/ListSnowflakeIntegrationAccounts.rb index 8f27556dbc7b..4eb1f93a3a47 100644 --- a/examples/v2/snowflake-integration/ListSnowflakeIntegrationAccounts.rb +++ b/examples/v2/snowflake-integration/ListSnowflakeIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_snowflake_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::SnowflakeIntegrationAPI.new diff --git a/examples/v2/snowflake-integration/UpdateSnowflakeIntegrationAccount.rb b/examples/v2/snowflake-integration/UpdateSnowflakeIntegrationAccount.rb index d511e2517b34..28fabe82191a 100644 --- a/examples/v2/snowflake-integration/UpdateSnowflakeIntegrationAccount.rb +++ b/examples/v2/snowflake-integration/UpdateSnowflakeIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_snowflake_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::SnowflakeIntegrationAPI.new diff --git a/examples/v2/software-catalog/DeleteCatalogEntity.rb b/examples/v2/software-catalog/DeleteCatalogEntity.rb index 6abe11d5eb93..e399f073b152 100644 --- a/examples/v2/software-catalog/DeleteCatalogEntity.rb +++ b/examples/v2/software-catalog/DeleteCatalogEntity.rb @@ -1,5 +1,8 @@ # Delete a single entity returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new api_instance.delete_catalog_entity("service:myservice") diff --git a/examples/v2/software-catalog/DeleteCatalogKind.rb b/examples/v2/software-catalog/DeleteCatalogKind.rb index 29d741d1ce6d..00b4333eb291 100644 --- a/examples/v2/software-catalog/DeleteCatalogKind.rb +++ b/examples/v2/software-catalog/DeleteCatalogKind.rb @@ -1,5 +1,8 @@ # Delete a single kind returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new api_instance.delete_catalog_kind("my-job") diff --git a/examples/v2/software-catalog/ListCatalogEntity.rb b/examples/v2/software-catalog/ListCatalogEntity.rb index a9c619e8f24c..c9aae83c30bf 100644 --- a/examples/v2/software-catalog/ListCatalogEntity.rb +++ b/examples/v2/software-catalog/ListCatalogEntity.rb @@ -1,5 +1,8 @@ # Get a list of entities returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new p api_instance.list_catalog_entity() diff --git a/examples/v2/software-catalog/ListCatalogEntity_2305103326.rb b/examples/v2/software-catalog/ListCatalogEntity_2305103326.rb index 3d2fbe8b5040..6b05b59efd29 100644 --- a/examples/v2/software-catalog/ListCatalogEntity_2305103326.rb +++ b/examples/v2/software-catalog/ListCatalogEntity_2305103326.rb @@ -1,5 +1,8 @@ # Get a list of entities returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new api_instance.list_catalog_entity_with_pagination() { |item| puts item } diff --git a/examples/v2/software-catalog/ListCatalogKind.rb b/examples/v2/software-catalog/ListCatalogKind.rb index 03db25c5af3b..fccfea6a412c 100644 --- a/examples/v2/software-catalog/ListCatalogKind.rb +++ b/examples/v2/software-catalog/ListCatalogKind.rb @@ -1,5 +1,8 @@ # Get a list of entity kinds returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new p api_instance.list_catalog_kind() diff --git a/examples/v2/software-catalog/ListCatalogKind_3806205775.rb b/examples/v2/software-catalog/ListCatalogKind_3806205775.rb index 89f819e1ca9b..7d8e3594ebfd 100644 --- a/examples/v2/software-catalog/ListCatalogKind_3806205775.rb +++ b/examples/v2/software-catalog/ListCatalogKind_3806205775.rb @@ -1,5 +1,8 @@ # Get a list of entity kinds returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new api_instance.list_catalog_kind_with_pagination() { |item| puts item } diff --git a/examples/v2/software-catalog/ListCatalogRelation.rb b/examples/v2/software-catalog/ListCatalogRelation.rb index 2b6264d1275a..21ddd0af693a 100644 --- a/examples/v2/software-catalog/ListCatalogRelation.rb +++ b/examples/v2/software-catalog/ListCatalogRelation.rb @@ -1,5 +1,8 @@ # Get a list of entity relations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new p api_instance.list_catalog_relation() diff --git a/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb b/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb index 2497dc3b4f73..865c2b1f2129 100644 --- a/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb +++ b/examples/v2/software-catalog/ListCatalogRelation_1311054087.rb @@ -1,6 +1,9 @@ # Get a list of entity relations returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new opts = { page_limit: 20, diff --git a/examples/v2/software-catalog/PreviewCatalogEntities.rb b/examples/v2/software-catalog/PreviewCatalogEntities.rb index 5212a80a3869..8d2ee9a33129 100644 --- a/examples/v2/software-catalog/PreviewCatalogEntities.rb +++ b/examples/v2/software-catalog/PreviewCatalogEntities.rb @@ -1,5 +1,8 @@ # Preview catalog entities returns "Accepted" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new p api_instance.preview_catalog_entities() diff --git a/examples/v2/software-catalog/UpsertCatalogEntity.rb b/examples/v2/software-catalog/UpsertCatalogEntity.rb index 3cc6c910fff7..c175ddcc466b 100644 --- a/examples/v2/software-catalog/UpsertCatalogEntity.rb +++ b/examples/v2/software-catalog/UpsertCatalogEntity.rb @@ -1,6 +1,9 @@ # Create or update entities returns "ACCEPTED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new body = DatadogAPIClient::V2::EntityV3Service.new({ diff --git a/examples/v2/software-catalog/UpsertCatalogEntity_586948155.rb b/examples/v2/software-catalog/UpsertCatalogEntity_586948155.rb index 31ede56bbd76..da3d39b3e835 100644 --- a/examples/v2/software-catalog/UpsertCatalogEntity_586948155.rb +++ b/examples/v2/software-catalog/UpsertCatalogEntity_586948155.rb @@ -1,6 +1,9 @@ # Create or update software catalog entity using schema v3 returns "ACCEPTED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new body = DatadogAPIClient::V2::EntityV3Service.new({ diff --git a/examples/v2/software-catalog/UpsertCatalogKind.rb b/examples/v2/software-catalog/UpsertCatalogKind.rb index 8f1124c13026..856eba2fb713 100644 --- a/examples/v2/software-catalog/UpsertCatalogKind.rb +++ b/examples/v2/software-catalog/UpsertCatalogKind.rb @@ -1,6 +1,9 @@ # Create or update kinds returns "ACCEPTED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SoftwareCatalogAPI.new body = DatadogAPIClient::V2::KindObj.new({ diff --git a/examples/v2/spa/GetSPARecommendations.rb b/examples/v2/spa/GetSPARecommendations.rb index 5c66dd77aefb..7a107108d3e0 100644 --- a/examples/v2/spa/GetSPARecommendations.rb +++ b/examples/v2/spa/GetSPARecommendations.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_spa_recommendations".to_sym] = true end api_instance = DatadogAPIClient::V2::SpaAPI.new diff --git a/examples/v2/spa/GetSPARecommendationsWithShard.rb b/examples/v2/spa/GetSPARecommendationsWithShard.rb index b0e1e44fec69..743d4d071f30 100644 --- a/examples/v2/spa/GetSPARecommendationsWithShard.rb +++ b/examples/v2/spa/GetSPARecommendationsWithShard.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_spa_recommendations_with_shard".to_sym] = true end api_instance = DatadogAPIClient::V2::SpaAPI.new diff --git a/examples/v2/spans-metrics/CreateSpansMetric.rb b/examples/v2/spans-metrics/CreateSpansMetric.rb index 42f7843b7054..f96d1c76a3d2 100644 --- a/examples/v2/spans-metrics/CreateSpansMetric.rb +++ b/examples/v2/spans-metrics/CreateSpansMetric.rb @@ -1,6 +1,9 @@ # Create a span-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansMetricsAPI.new body = DatadogAPIClient::V2::SpansMetricCreateRequest.new({ diff --git a/examples/v2/spans-metrics/DeleteSpansMetric.rb b/examples/v2/spans-metrics/DeleteSpansMetric.rb index af7ee85750fe..fc60944f426d 100644 --- a/examples/v2/spans-metrics/DeleteSpansMetric.rb +++ b/examples/v2/spans-metrics/DeleteSpansMetric.rb @@ -1,6 +1,9 @@ # Delete a span-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansMetricsAPI.new # there is a valid "spans_metric" in the system diff --git a/examples/v2/spans-metrics/GetSpansMetric.rb b/examples/v2/spans-metrics/GetSpansMetric.rb index 78f4ca03e7c5..c51322e71824 100644 --- a/examples/v2/spans-metrics/GetSpansMetric.rb +++ b/examples/v2/spans-metrics/GetSpansMetric.rb @@ -1,6 +1,9 @@ # Get a span-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansMetricsAPI.new # there is a valid "spans_metric" in the system diff --git a/examples/v2/spans-metrics/ListSpansMetrics.rb b/examples/v2/spans-metrics/ListSpansMetrics.rb index 9fea1de39ec0..3eb7e44bb7ca 100644 --- a/examples/v2/spans-metrics/ListSpansMetrics.rb +++ b/examples/v2/spans-metrics/ListSpansMetrics.rb @@ -1,5 +1,8 @@ # Get all span-based metrics returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansMetricsAPI.new p api_instance.list_spans_metrics() diff --git a/examples/v2/spans-metrics/UpdateSpansMetric.rb b/examples/v2/spans-metrics/UpdateSpansMetric.rb index c941622855d0..6a23046d5852 100644 --- a/examples/v2/spans-metrics/UpdateSpansMetric.rb +++ b/examples/v2/spans-metrics/UpdateSpansMetric.rb @@ -1,6 +1,9 @@ # Update a span-based metric returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansMetricsAPI.new # there is a valid "spans_metric" in the system diff --git a/examples/v2/spans/AggregateSpans.rb b/examples/v2/spans/AggregateSpans.rb index fbbc8f805086..51820668bed3 100644 --- a/examples/v2/spans/AggregateSpans.rb +++ b/examples/v2/spans/AggregateSpans.rb @@ -1,6 +1,9 @@ # Aggregate spans returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansAPI.new body = DatadogAPIClient::V2::SpansAggregateRequest.new({ diff --git a/examples/v2/spans/ListSpans.rb b/examples/v2/spans/ListSpans.rb index 688daf2c854d..478f8ca39486 100644 --- a/examples/v2/spans/ListSpans.rb +++ b/examples/v2/spans/ListSpans.rb @@ -1,6 +1,9 @@ # Search spans returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansAPI.new body = DatadogAPIClient::V2::SpansListRequest.new({ diff --git a/examples/v2/spans/ListSpansGet.rb b/examples/v2/spans/ListSpansGet.rb index 9afbcb2a7c94..ead6ca5d0033 100644 --- a/examples/v2/spans/ListSpansGet.rb +++ b/examples/v2/spans/ListSpansGet.rb @@ -1,5 +1,8 @@ # Get a list of spans returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansAPI.new p api_instance.list_spans_get() diff --git a/examples/v2/spans/ListSpansGet_1130763422.rb b/examples/v2/spans/ListSpansGet_1130763422.rb index 1142b7387317..4d38c8ced05c 100644 --- a/examples/v2/spans/ListSpansGet_1130763422.rb +++ b/examples/v2/spans/ListSpansGet_1130763422.rb @@ -1,6 +1,9 @@ # Get a list of spans returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansAPI.new opts = { page_limit: 2, diff --git a/examples/v2/spans/ListSpans_3495563906.rb b/examples/v2/spans/ListSpans_3495563906.rb index 766c34da5ece..6de2b0a89ff2 100644 --- a/examples/v2/spans/ListSpans_3495563906.rb +++ b/examples/v2/spans/ListSpans_3495563906.rb @@ -1,6 +1,9 @@ # Search spans returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SpansAPI.new body = DatadogAPIClient::V2::SpansListRequest.new({ diff --git a/examples/v2/static-analysis/CreateAiCustomRule.rb b/examples/v2/static-analysis/CreateAiCustomRule.rb index 59ab70ae1178..55a0d7092de3 100644 --- a/examples/v2/static-analysis/CreateAiCustomRule.rb +++ b/examples/v2/static-analysis/CreateAiCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_ai_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateAiCustomRuleRevision.rb b/examples/v2/static-analysis/CreateAiCustomRuleRevision.rb index 27e796a381e5..69225c130b9d 100644 --- a/examples/v2/static-analysis/CreateAiCustomRuleRevision.rb +++ b/examples/v2/static-analysis/CreateAiCustomRuleRevision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_ai_custom_rule_revision".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateAiCustomRuleset.rb b/examples/v2/static-analysis/CreateAiCustomRuleset.rb index 5aea3432e8a3..5ea7cf715d1c 100644 --- a/examples/v2/static-analysis/CreateAiCustomRuleset.rb +++ b/examples/v2/static-analysis/CreateAiCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_ai_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateAiMemoryViolationResult.rb b/examples/v2/static-analysis/CreateAiMemoryViolationResult.rb index cf000e557a60..ba43c26d2eaf 100644 --- a/examples/v2/static-analysis/CreateAiMemoryViolationResult.rb +++ b/examples/v2/static-analysis/CreateAiMemoryViolationResult.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_ai_memory_violation_result".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateCustomRule.rb b/examples/v2/static-analysis/CreateCustomRule.rb index 3b086526dc5c..25d41415e4e3 100644 --- a/examples/v2/static-analysis/CreateCustomRule.rb +++ b/examples/v2/static-analysis/CreateCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateCustomRuleRevision.rb b/examples/v2/static-analysis/CreateCustomRuleRevision.rb index 5d543c0bb9b2..c46e7e307c3d 100644 --- a/examples/v2/static-analysis/CreateCustomRuleRevision.rb +++ b/examples/v2/static-analysis/CreateCustomRuleRevision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_custom_rule_revision".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateCustomRuleset.rb b/examples/v2/static-analysis/CreateCustomRuleset.rb index c75e260a0e8a..3550b63e0402 100644 --- a/examples/v2/static-analysis/CreateCustomRuleset.rb +++ b/examples/v2/static-analysis/CreateCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb index bc04a0a85010..46a29329959e 100644 --- a/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb +++ b/examples/v2/static-analysis/CreateSCAResolveVulnerableSymbols.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_sca_resolve_vulnerable_symbols".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateSCAResult.rb b/examples/v2/static-analysis/CreateSCAResult.rb index 567322dab18a..638e37545f5a 100644 --- a/examples/v2/static-analysis/CreateSCAResult.rb +++ b/examples/v2/static-analysis/CreateSCAResult.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_sca_result".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/CreateSCAScan.rb b/examples/v2/static-analysis/CreateSCAScan.rb index eff0d1c81825..50aa0684edc2 100644 --- a/examples/v2/static-analysis/CreateSCAScan.rb +++ b/examples/v2/static-analysis/CreateSCAScan.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_sca_scan".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/DeleteAiCustomRule.rb b/examples/v2/static-analysis/DeleteAiCustomRule.rb index 8f47a100631f..d9f7972fde8d 100644 --- a/examples/v2/static-analysis/DeleteAiCustomRule.rb +++ b/examples/v2/static-analysis/DeleteAiCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_ai_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/DeleteAiCustomRuleset.rb b/examples/v2/static-analysis/DeleteAiCustomRuleset.rb index 67c094813756..6332076f2bd0 100644 --- a/examples/v2/static-analysis/DeleteAiCustomRuleset.rb +++ b/examples/v2/static-analysis/DeleteAiCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_ai_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/DeleteAiMemoryViolationResult.rb b/examples/v2/static-analysis/DeleteAiMemoryViolationResult.rb index 96a6184dff0d..449e44ff04a5 100644 --- a/examples/v2/static-analysis/DeleteAiMemoryViolationResult.rb +++ b/examples/v2/static-analysis/DeleteAiMemoryViolationResult.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_ai_memory_violation_result".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/DeleteCustomRule.rb b/examples/v2/static-analysis/DeleteCustomRule.rb index 99e337343a70..c29ccf733d56 100644 --- a/examples/v2/static-analysis/DeleteCustomRule.rb +++ b/examples/v2/static-analysis/DeleteCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/DeleteCustomRuleset.rb b/examples/v2/static-analysis/DeleteCustomRuleset.rb index d072a10f5176..ed7388866da1 100644 --- a/examples/v2/static-analysis/DeleteCustomRuleset.rb +++ b/examples/v2/static-analysis/DeleteCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetAiCustomRule.rb b/examples/v2/static-analysis/GetAiCustomRule.rb index 7e60310a02f5..13b328f4ba0b 100644 --- a/examples/v2/static-analysis/GetAiCustomRule.rb +++ b/examples/v2/static-analysis/GetAiCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ai_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetAiCustomRuleRevision.rb b/examples/v2/static-analysis/GetAiCustomRuleRevision.rb index 36c61cb7c4a8..40cb5ebb2eae 100644 --- a/examples/v2/static-analysis/GetAiCustomRuleRevision.rb +++ b/examples/v2/static-analysis/GetAiCustomRuleRevision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ai_custom_rule_revision".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetAiCustomRuleset.rb b/examples/v2/static-analysis/GetAiCustomRuleset.rb index 34cac69121a5..62bd6d51439f 100644 --- a/examples/v2/static-analysis/GetAiCustomRuleset.rb +++ b/examples/v2/static-analysis/GetAiCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_ai_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetCustomRule.rb b/examples/v2/static-analysis/GetCustomRule.rb index 69b19fef6d05..7ee5e2a33148 100644 --- a/examples/v2/static-analysis/GetCustomRule.rb +++ b/examples/v2/static-analysis/GetCustomRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_custom_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetCustomRuleRevision.rb b/examples/v2/static-analysis/GetCustomRuleRevision.rb index 83eb11d7bf6a..ace365a19851 100644 --- a/examples/v2/static-analysis/GetCustomRuleRevision.rb +++ b/examples/v2/static-analysis/GetCustomRuleRevision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_custom_rule_revision".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetCustomRuleset.rb b/examples/v2/static-analysis/GetCustomRuleset.rb index 9e75051a0169..d28d62cbef2b 100644 --- a/examples/v2/static-analysis/GetCustomRuleset.rb +++ b/examples/v2/static-analysis/GetCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/GetSCAScan.rb b/examples/v2/static-analysis/GetSCAScan.rb index b4066b19d200..889c524a1036 100644 --- a/examples/v2/static-analysis/GetSCAScan.rb +++ b/examples/v2/static-analysis/GetSCAScan.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_sca_scan".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListAiCustomRuleRevisions.rb b/examples/v2/static-analysis/ListAiCustomRuleRevisions.rb index f1656f8ec657..06c05fab9b01 100644 --- a/examples/v2/static-analysis/ListAiCustomRuleRevisions.rb +++ b/examples/v2/static-analysis/ListAiCustomRuleRevisions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ai_custom_rule_revisions".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListAiCustomRuleRevisions_842014679.rb b/examples/v2/static-analysis/ListAiCustomRuleRevisions_842014679.rb index d6eb46589c90..b3144c6df1a0 100644 --- a/examples/v2/static-analysis/ListAiCustomRuleRevisions_842014679.rb +++ b/examples/v2/static-analysis/ListAiCustomRuleRevisions_842014679.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ai_custom_rule_revisions".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListAiCustomRulesets.rb b/examples/v2/static-analysis/ListAiCustomRulesets.rb index c587a0b9c6e1..01e407dc6a62 100644 --- a/examples/v2/static-analysis/ListAiCustomRulesets.rb +++ b/examples/v2/static-analysis/ListAiCustomRulesets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ai_custom_rulesets".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListAiMemoryViolationResults.rb b/examples/v2/static-analysis/ListAiMemoryViolationResults.rb index 065d671d29d2..c8a7da6c255d 100644 --- a/examples/v2/static-analysis/ListAiMemoryViolationResults.rb +++ b/examples/v2/static-analysis/ListAiMemoryViolationResults.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ai_memory_violation_results".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListAiPrompts.rb b/examples/v2/static-analysis/ListAiPrompts.rb index e3c23a63bd75..40c9e5d8a07b 100644 --- a/examples/v2/static-analysis/ListAiPrompts.rb +++ b/examples/v2/static-analysis/ListAiPrompts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_ai_prompts".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListCustomRuleRevisions.rb b/examples/v2/static-analysis/ListCustomRuleRevisions.rb index d06bb6ea73ca..f846ea7064b2 100644 --- a/examples/v2/static-analysis/ListCustomRuleRevisions.rb +++ b/examples/v2/static-analysis/ListCustomRuleRevisions.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_custom_rule_revisions".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListCustomRuleRevisions_3739033293.rb b/examples/v2/static-analysis/ListCustomRuleRevisions_3739033293.rb index 9a6d317bbd9d..e20672f2b6f5 100644 --- a/examples/v2/static-analysis/ListCustomRuleRevisions_3739033293.rb +++ b/examples/v2/static-analysis/ListCustomRuleRevisions_3739033293.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_custom_rule_revisions".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListCustomRulesets.rb b/examples/v2/static-analysis/ListCustomRulesets.rb index 56e2cca25f10..02673e3767bc 100644 --- a/examples/v2/static-analysis/ListCustomRulesets.rb +++ b/examples/v2/static-analysis/ListCustomRulesets.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_custom_rulesets".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/ListSCALicenses.rb b/examples/v2/static-analysis/ListSCALicenses.rb index 05e21ca3d905..f33db69db6fe 100644 --- a/examples/v2/static-analysis/ListSCALicenses.rb +++ b/examples/v2/static-analysis/ListSCALicenses.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_sca_licenses".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/RevertCustomRuleRevision.rb b/examples/v2/static-analysis/RevertCustomRuleRevision.rb index e3b43dbd97f0..5ee2b3149c5d 100644 --- a/examples/v2/static-analysis/RevertCustomRuleRevision.rb +++ b/examples/v2/static-analysis/RevertCustomRuleRevision.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.revert_custom_rule_revision".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/UpdateAiCustomRuleset.rb b/examples/v2/static-analysis/UpdateAiCustomRuleset.rb index 0f86ed6a1c9e..72b73d050f7e 100644 --- a/examples/v2/static-analysis/UpdateAiCustomRuleset.rb +++ b/examples/v2/static-analysis/UpdateAiCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_ai_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/static-analysis/UpdateCustomRuleset.rb b/examples/v2/static-analysis/UpdateCustomRuleset.rb index b4565a550416..99492bd845dc 100644 --- a/examples/v2/static-analysis/UpdateCustomRuleset.rb +++ b/examples/v2/static-analysis/UpdateCustomRuleset.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_custom_ruleset".to_sym] = true end api_instance = DatadogAPIClient::V2::StaticAnalysisAPI.new diff --git a/examples/v2/status-pages/CreateBackfilledDegradation.rb b/examples/v2/status-pages/CreateBackfilledDegradation.rb index 3b665ca368e9..7198269e0cd6 100644 --- a/examples/v2/status-pages/CreateBackfilledDegradation.rb +++ b/examples/v2/status-pages/CreateBackfilledDegradation.rb @@ -1,6 +1,9 @@ # Create backfilled degradation returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/CreateBackfilledMaintenance.rb b/examples/v2/status-pages/CreateBackfilledMaintenance.rb index 2691c7728e38..8d7b2ce409af 100644 --- a/examples/v2/status-pages/CreateBackfilledMaintenance.rb +++ b/examples/v2/status-pages/CreateBackfilledMaintenance.rb @@ -1,6 +1,9 @@ # Create backfilled maintenance returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/CreateComponent.rb b/examples/v2/status-pages/CreateComponent.rb index 234f5c4a2b3f..3560027240cd 100644 --- a/examples/v2/status-pages/CreateComponent.rb +++ b/examples/v2/status-pages/CreateComponent.rb @@ -1,6 +1,9 @@ # Create component returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/CreateDegradation.rb b/examples/v2/status-pages/CreateDegradation.rb index ded800e1b3f7..719dfa7a7971 100644 --- a/examples/v2/status-pages/CreateDegradation.rb +++ b/examples/v2/status-pages/CreateDegradation.rb @@ -1,6 +1,9 @@ # Create degradation returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/CreateDegradationTemplate.rb b/examples/v2/status-pages/CreateDegradationTemplate.rb index 3f6c1b2fef26..4b9d99c4477e 100644 --- a/examples/v2/status-pages/CreateDegradationTemplate.rb +++ b/examples/v2/status-pages/CreateDegradationTemplate.rb @@ -1,6 +1,9 @@ # Create degradation template returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::CreateDegradationTemplateRequest.new({ diff --git a/examples/v2/status-pages/CreateMaintenance.rb b/examples/v2/status-pages/CreateMaintenance.rb index 1b28d01c05c8..f003eea6e635 100644 --- a/examples/v2/status-pages/CreateMaintenance.rb +++ b/examples/v2/status-pages/CreateMaintenance.rb @@ -1,6 +1,9 @@ # Schedule maintenance returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::CreateMaintenanceRequest.new({ diff --git a/examples/v2/status-pages/CreateMaintenanceTemplate.rb b/examples/v2/status-pages/CreateMaintenanceTemplate.rb index 564acc010370..c1d5f5f8bd2b 100644 --- a/examples/v2/status-pages/CreateMaintenanceTemplate.rb +++ b/examples/v2/status-pages/CreateMaintenanceTemplate.rb @@ -1,6 +1,9 @@ # Create maintenance template returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::CreateMaintenanceTemplateRequest.new({ diff --git a/examples/v2/status-pages/CreateMaintenance_2202276054.rb b/examples/v2/status-pages/CreateMaintenance_2202276054.rb index 861c5ee79b1a..3a673bc035ec 100644 --- a/examples/v2/status-pages/CreateMaintenance_2202276054.rb +++ b/examples/v2/status-pages/CreateMaintenance_2202276054.rb @@ -1,6 +1,9 @@ # Create maintenance returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/CreateStatusPage.rb b/examples/v2/status-pages/CreateStatusPage.rb index e1cb1301fdd2..49067f4dcef7 100644 --- a/examples/v2/status-pages/CreateStatusPage.rb +++ b/examples/v2/status-pages/CreateStatusPage.rb @@ -1,6 +1,9 @@ # Create status page returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::CreateStatusPageRequest.new({ diff --git a/examples/v2/status-pages/DeleteComponent.rb b/examples/v2/status-pages/DeleteComponent.rb index 1bf98033c6f4..c73437755868 100644 --- a/examples/v2/status-pages/DeleteComponent.rb +++ b/examples/v2/status-pages/DeleteComponent.rb @@ -1,6 +1,9 @@ # Delete component returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/DeleteDegradation.rb b/examples/v2/status-pages/DeleteDegradation.rb index a8cfe97820c2..fb09483a2b19 100644 --- a/examples/v2/status-pages/DeleteDegradation.rb +++ b/examples/v2/status-pages/DeleteDegradation.rb @@ -1,6 +1,9 @@ # Delete degradation returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/DeleteDegradationTemplate.rb b/examples/v2/status-pages/DeleteDegradationTemplate.rb index 0722f07abe18..6d8f0ef2acf6 100644 --- a/examples/v2/status-pages/DeleteDegradationTemplate.rb +++ b/examples/v2/status-pages/DeleteDegradationTemplate.rb @@ -1,5 +1,8 @@ # Delete degradation template returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new api_instance.delete_degradation_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/DeleteMaintenanceTemplate.rb b/examples/v2/status-pages/DeleteMaintenanceTemplate.rb index 8c1e5d2e4906..52b7ea1a671f 100644 --- a/examples/v2/status-pages/DeleteMaintenanceTemplate.rb +++ b/examples/v2/status-pages/DeleteMaintenanceTemplate.rb @@ -1,5 +1,8 @@ # Delete maintenance template returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new api_instance.delete_maintenance_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/DeleteStatusPage.rb b/examples/v2/status-pages/DeleteStatusPage.rb index dcfb517bc92a..ebafee35a094 100644 --- a/examples/v2/status-pages/DeleteStatusPage.rb +++ b/examples/v2/status-pages/DeleteStatusPage.rb @@ -1,6 +1,9 @@ # Delete status page returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/EditDegradationUpdate.rb b/examples/v2/status-pages/EditDegradationUpdate.rb index 5cd932b8ef85..a30bd6abfb7b 100644 --- a/examples/v2/status-pages/EditDegradationUpdate.rb +++ b/examples/v2/status-pages/EditDegradationUpdate.rb @@ -1,6 +1,9 @@ # Edit degradation update returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::PatchDegradationUpdateRequest.new({ diff --git a/examples/v2/status-pages/GetComponent.rb b/examples/v2/status-pages/GetComponent.rb index 92a863844319..5462ca6ccf45 100644 --- a/examples/v2/status-pages/GetComponent.rb +++ b/examples/v2/status-pages/GetComponent.rb @@ -1,6 +1,9 @@ # Get component returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/GetDegradation.rb b/examples/v2/status-pages/GetDegradation.rb index 313d379208a5..1bb62fd27dd9 100644 --- a/examples/v2/status-pages/GetDegradation.rb +++ b/examples/v2/status-pages/GetDegradation.rb @@ -1,6 +1,9 @@ # Get degradation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/GetDegradationTemplate.rb b/examples/v2/status-pages/GetDegradationTemplate.rb index 502349ff33ad..0b452093bae2 100644 --- a/examples/v2/status-pages/GetDegradationTemplate.rb +++ b/examples/v2/status-pages/GetDegradationTemplate.rb @@ -1,5 +1,8 @@ # Get degradation template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.get_degradation_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/GetMaintenance.rb b/examples/v2/status-pages/GetMaintenance.rb index f78acc4cac96..d4129c0fc80e 100644 --- a/examples/v2/status-pages/GetMaintenance.rb +++ b/examples/v2/status-pages/GetMaintenance.rb @@ -1,6 +1,9 @@ # Get maintenance returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/GetMaintenanceTemplate.rb b/examples/v2/status-pages/GetMaintenanceTemplate.rb index a93a30f01583..bffacf1ebed4 100644 --- a/examples/v2/status-pages/GetMaintenanceTemplate.rb +++ b/examples/v2/status-pages/GetMaintenanceTemplate.rb @@ -1,5 +1,8 @@ # Get maintenance template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.get_maintenance_template("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/GetStatusPage.rb b/examples/v2/status-pages/GetStatusPage.rb index 1823b9eb777a..d2ec21f6e837 100644 --- a/examples/v2/status-pages/GetStatusPage.rb +++ b/examples/v2/status-pages/GetStatusPage.rb @@ -1,6 +1,9 @@ # Get status page returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/ListComponents.rb b/examples/v2/status-pages/ListComponents.rb index 8edaaeb4e23e..a2697db9e2ef 100644 --- a/examples/v2/status-pages/ListComponents.rb +++ b/examples/v2/status-pages/ListComponents.rb @@ -1,6 +1,9 @@ # List components returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/ListDegradationTemplates.rb b/examples/v2/status-pages/ListDegradationTemplates.rb index aeea74870c89..25bc56aaac04 100644 --- a/examples/v2/status-pages/ListDegradationTemplates.rb +++ b/examples/v2/status-pages/ListDegradationTemplates.rb @@ -1,5 +1,8 @@ # List degradation templates returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.list_degradation_templates("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/ListDegradations.rb b/examples/v2/status-pages/ListDegradations.rb index 88b8b6279c89..fb63844bce86 100644 --- a/examples/v2/status-pages/ListDegradations.rb +++ b/examples/v2/status-pages/ListDegradations.rb @@ -1,5 +1,8 @@ # List degradations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.list_degradations() diff --git a/examples/v2/status-pages/ListMaintenanceTemplates.rb b/examples/v2/status-pages/ListMaintenanceTemplates.rb index f59471200b9c..ffc1b48a7b22 100644 --- a/examples/v2/status-pages/ListMaintenanceTemplates.rb +++ b/examples/v2/status-pages/ListMaintenanceTemplates.rb @@ -1,5 +1,8 @@ # List maintenance templates returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.list_maintenance_templates("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/ListMaintenances.rb b/examples/v2/status-pages/ListMaintenances.rb index 739b28684b00..7c1742d6e694 100644 --- a/examples/v2/status-pages/ListMaintenances.rb +++ b/examples/v2/status-pages/ListMaintenances.rb @@ -1,5 +1,8 @@ # List maintenances returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.list_maintenances() diff --git a/examples/v2/status-pages/ListStatusPages.rb b/examples/v2/status-pages/ListStatusPages.rb index 76bfd148f9c5..61cb6d44946a 100644 --- a/examples/v2/status-pages/ListStatusPages.rb +++ b/examples/v2/status-pages/ListStatusPages.rb @@ -1,5 +1,8 @@ # List status pages returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new p api_instance.list_status_pages() diff --git a/examples/v2/status-pages/PatchMaintenanceUpdate.rb b/examples/v2/status-pages/PatchMaintenanceUpdate.rb index b622eb6e1b0d..015476cc4bce 100644 --- a/examples/v2/status-pages/PatchMaintenanceUpdate.rb +++ b/examples/v2/status-pages/PatchMaintenanceUpdate.rb @@ -1,6 +1,9 @@ # Edit maintenance update returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::PatchMaintenanceUpdateRequest.new({ diff --git a/examples/v2/status-pages/PublishStatusPage.rb b/examples/v2/status-pages/PublishStatusPage.rb index f494fb93656b..117c81dda97b 100644 --- a/examples/v2/status-pages/PublishStatusPage.rb +++ b/examples/v2/status-pages/PublishStatusPage.rb @@ -1,6 +1,9 @@ # Publish status page returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb b/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb index c31a814cbe1f..bb9d68d098b9 100644 --- a/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb +++ b/examples/v2/status-pages/SoftDeleteDegradationUpdate.rb @@ -1,5 +1,8 @@ # Soft delete degradation update returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new api_instance.soft_delete_degradation_update("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/UnpublishStatusPage.rb b/examples/v2/status-pages/UnpublishStatusPage.rb index 450cde2fd524..dde647e8ce47 100644 --- a/examples/v2/status-pages/UnpublishStatusPage.rb +++ b/examples/v2/status-pages/UnpublishStatusPage.rb @@ -1,5 +1,8 @@ # Unpublish status page returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new api_instance.unpublish_status_page("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/status-pages/UpdateComponent.rb b/examples/v2/status-pages/UpdateComponent.rb index a7965a8edf98..693be0de5666 100644 --- a/examples/v2/status-pages/UpdateComponent.rb +++ b/examples/v2/status-pages/UpdateComponent.rb @@ -1,6 +1,9 @@ # Update component returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/UpdateDegradation.rb b/examples/v2/status-pages/UpdateDegradation.rb index 20202bac74ab..69a4c3859efb 100644 --- a/examples/v2/status-pages/UpdateDegradation.rb +++ b/examples/v2/status-pages/UpdateDegradation.rb @@ -1,6 +1,9 @@ # Update degradation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/UpdateDegradationTemplate.rb b/examples/v2/status-pages/UpdateDegradationTemplate.rb index 8192d14a191c..dcebc6b59e8a 100644 --- a/examples/v2/status-pages/UpdateDegradationTemplate.rb +++ b/examples/v2/status-pages/UpdateDegradationTemplate.rb @@ -1,6 +1,9 @@ # Update degradation template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::PatchDegradationTemplateRequest.new({ diff --git a/examples/v2/status-pages/UpdateMaintenance.rb b/examples/v2/status-pages/UpdateMaintenance.rb index fc7ba20b82fa..6e796a77d11b 100644 --- a/examples/v2/status-pages/UpdateMaintenance.rb +++ b/examples/v2/status-pages/UpdateMaintenance.rb @@ -1,6 +1,9 @@ # Update maintenance returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/status-pages/UpdateMaintenanceTemplate.rb b/examples/v2/status-pages/UpdateMaintenanceTemplate.rb index 3925dd1da22b..151a36dc91f1 100644 --- a/examples/v2/status-pages/UpdateMaintenanceTemplate.rb +++ b/examples/v2/status-pages/UpdateMaintenanceTemplate.rb @@ -1,6 +1,9 @@ # Update maintenance template returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new body = DatadogAPIClient::V2::PatchMaintenanceTemplateRequest.new({ diff --git a/examples/v2/status-pages/UpdateStatusPage.rb b/examples/v2/status-pages/UpdateStatusPage.rb index c6da88d03f7d..3f48f578bc2c 100644 --- a/examples/v2/status-pages/UpdateStatusPage.rb +++ b/examples/v2/status-pages/UpdateStatusPage.rb @@ -1,6 +1,9 @@ # Update status page returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatusPagesAPI.new # there is a valid "status_page" in the system diff --git a/examples/v2/statuspage-integration/CreateStatuspageAccount.rb b/examples/v2/statuspage-integration/CreateStatuspageAccount.rb index a820b52dd959..230be59fc3ba 100644 --- a/examples/v2/statuspage-integration/CreateStatuspageAccount.rb +++ b/examples/v2/statuspage-integration/CreateStatuspageAccount.rb @@ -1,6 +1,9 @@ # Create the Statuspage account returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new body = DatadogAPIClient::V2::StatuspageAccountCreateRequest.new({ diff --git a/examples/v2/statuspage-integration/CreateStatuspageUrlSetting.rb b/examples/v2/statuspage-integration/CreateStatuspageUrlSetting.rb index 5b1a3a9b239b..e0bf7154ee46 100644 --- a/examples/v2/statuspage-integration/CreateStatuspageUrlSetting.rb +++ b/examples/v2/statuspage-integration/CreateStatuspageUrlSetting.rb @@ -1,6 +1,9 @@ # Create a Statuspage URL setting returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new body = DatadogAPIClient::V2::StatuspageUrlSettingCreateRequest.new({ diff --git a/examples/v2/statuspage-integration/DeleteStatuspageAccount.rb b/examples/v2/statuspage-integration/DeleteStatuspageAccount.rb index 4b61b71273d1..3b8fec0d1ac3 100644 --- a/examples/v2/statuspage-integration/DeleteStatuspageAccount.rb +++ b/examples/v2/statuspage-integration/DeleteStatuspageAccount.rb @@ -1,5 +1,8 @@ # Delete the Statuspage account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new api_instance.delete_statuspage_account() diff --git a/examples/v2/statuspage-integration/DeleteStatuspageUrlSetting.rb b/examples/v2/statuspage-integration/DeleteStatuspageUrlSetting.rb index 1d6f2fb0d756..798180c6be9a 100644 --- a/examples/v2/statuspage-integration/DeleteStatuspageUrlSetting.rb +++ b/examples/v2/statuspage-integration/DeleteStatuspageUrlSetting.rb @@ -1,5 +1,8 @@ # Delete a Statuspage URL setting returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new api_instance.delete_statuspage_url_setting("statuspage_url_setting_id") diff --git a/examples/v2/statuspage-integration/GetStatuspageAccount.rb b/examples/v2/statuspage-integration/GetStatuspageAccount.rb index 0d5712920236..feb91662488f 100644 --- a/examples/v2/statuspage-integration/GetStatuspageAccount.rb +++ b/examples/v2/statuspage-integration/GetStatuspageAccount.rb @@ -1,5 +1,8 @@ # Get the Statuspage account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new p api_instance.get_statuspage_account() diff --git a/examples/v2/statuspage-integration/ListStatuspageUrlSettings.rb b/examples/v2/statuspage-integration/ListStatuspageUrlSettings.rb index 958b44495bc8..16b10c40521e 100644 --- a/examples/v2/statuspage-integration/ListStatuspageUrlSettings.rb +++ b/examples/v2/statuspage-integration/ListStatuspageUrlSettings.rb @@ -1,5 +1,8 @@ # Get all Statuspage URL settings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new p api_instance.list_statuspage_url_settings() diff --git a/examples/v2/statuspage-integration/UpdateStatuspageAccount.rb b/examples/v2/statuspage-integration/UpdateStatuspageAccount.rb index 23bfd7842bf5..f5bec25703aa 100644 --- a/examples/v2/statuspage-integration/UpdateStatuspageAccount.rb +++ b/examples/v2/statuspage-integration/UpdateStatuspageAccount.rb @@ -1,6 +1,9 @@ # Update the Statuspage account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new body = DatadogAPIClient::V2::StatuspageAccountUpdateRequest.new({ diff --git a/examples/v2/statuspage-integration/UpdateStatuspageUrlSetting.rb b/examples/v2/statuspage-integration/UpdateStatuspageUrlSetting.rb index 9af250b1aba6..c526d4409915 100644 --- a/examples/v2/statuspage-integration/UpdateStatuspageUrlSetting.rb +++ b/examples/v2/statuspage-integration/UpdateStatuspageUrlSetting.rb @@ -1,6 +1,9 @@ # Update a Statuspage URL setting returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StatuspageIntegrationAPI.new body = DatadogAPIClient::V2::StatuspageUrlSettingUpdateRequest.new({ diff --git a/examples/v2/stegadography/GetStegadographyWidgets.rb b/examples/v2/stegadography/GetStegadographyWidgets.rb index c858808c620f..70557e1f6792 100644 --- a/examples/v2/stegadography/GetStegadographyWidgets.rb +++ b/examples/v2/stegadography/GetStegadographyWidgets.rb @@ -1,5 +1,8 @@ # Get widgets from an image returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StegadographyAPI.new p api_instance.get_stegadography_widgets(File.open("fixtures/stegadography/image.png", "r")) diff --git a/examples/v2/storage-management/DeleteSyncConfig.rb b/examples/v2/storage-management/DeleteSyncConfig.rb index ca4bdb99dded..3746f5fdb913 100644 --- a/examples/v2/storage-management/DeleteSyncConfig.rb +++ b/examples/v2/storage-management/DeleteSyncConfig.rb @@ -1,5 +1,8 @@ # Delete a Storage Management configuration returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StorageManagementAPI.new api_instance.delete_sync_config("id") diff --git a/examples/v2/storage-management/UpsertSyncConfig.rb b/examples/v2/storage-management/UpsertSyncConfig.rb index 2a2e9bc631ad..b83543118d8d 100644 --- a/examples/v2/storage-management/UpsertSyncConfig.rb +++ b/examples/v2/storage-management/UpsertSyncConfig.rb @@ -1,6 +1,9 @@ # Enable Storage Management for a bucket returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::StorageManagementAPI.new body = DatadogAPIClient::V2::UpsertCloudInventorySyncConfigRequest.new({ diff --git a/examples/v2/synthetics/AbortTestFileMultipartUpload.rb b/examples/v2/synthetics/AbortTestFileMultipartUpload.rb index a117b6fed7d8..300beb634a6a 100644 --- a/examples/v2/synthetics/AbortTestFileMultipartUpload.rb +++ b/examples/v2/synthetics/AbortTestFileMultipartUpload.rb @@ -1,6 +1,9 @@ # Abort a multipart upload of a test file returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsTestFileAbortMultipartUploadRequest.new({ diff --git a/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb b/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb index b5851ca1cadd..f3717b88b3f3 100644 --- a/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb +++ b/examples/v2/synthetics/AddTestToSyntheticsDowntime.rb @@ -1,5 +1,8 @@ # Add a test to a Synthetics downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.add_test_to_synthetics_downtime("00000000-0000-0000-0000-000000000001", "abc-def-123") diff --git a/examples/v2/synthetics/CompleteTestFileMultipartUpload.rb b/examples/v2/synthetics/CompleteTestFileMultipartUpload.rb index 61dbcbb5dfa0..c32b6ea0963a 100644 --- a/examples/v2/synthetics/CompleteTestFileMultipartUpload.rb +++ b/examples/v2/synthetics/CompleteTestFileMultipartUpload.rb @@ -1,6 +1,9 @@ # Complete a multipart upload of a test file returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsTestFileCompleteMultipartUploadRequest.new({ diff --git a/examples/v2/synthetics/CreateSyntheticsDowntime.rb b/examples/v2/synthetics/CreateSyntheticsDowntime.rb index 509d9757f248..d132adafdc00 100644 --- a/examples/v2/synthetics/CreateSyntheticsDowntime.rb +++ b/examples/v2/synthetics/CreateSyntheticsDowntime.rb @@ -1,6 +1,9 @@ # Create a Synthetics downtime returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsDowntimeRequest.new({ diff --git a/examples/v2/synthetics/CreateSyntheticsNetworkTest.rb b/examples/v2/synthetics/CreateSyntheticsNetworkTest.rb index 4201bef206e9..1e581d533a67 100644 --- a/examples/v2/synthetics/CreateSyntheticsNetworkTest.rb +++ b/examples/v2/synthetics/CreateSyntheticsNetworkTest.rb @@ -1,6 +1,9 @@ # Create a Network Path test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsNetworkTestEditRequest.new({ diff --git a/examples/v2/synthetics/CreateSyntheticsSuite.rb b/examples/v2/synthetics/CreateSyntheticsSuite.rb index 9fd295cc0ef8..7842ceef3c27 100644 --- a/examples/v2/synthetics/CreateSyntheticsSuite.rb +++ b/examples/v2/synthetics/CreateSyntheticsSuite.rb @@ -1,6 +1,9 @@ # Create a test suite returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SuiteCreateEditRequest.new({ diff --git a/examples/v2/synthetics/DeleteSyntheticsDowntime.rb b/examples/v2/synthetics/DeleteSyntheticsDowntime.rb index 3f1674ffb43a..95ce462c66b2 100644 --- a/examples/v2/synthetics/DeleteSyntheticsDowntime.rb +++ b/examples/v2/synthetics/DeleteSyntheticsDowntime.rb @@ -1,5 +1,8 @@ # Delete a Synthetics downtime returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new api_instance.delete_synthetics_downtime("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/synthetics/DeleteSyntheticsSuites.rb b/examples/v2/synthetics/DeleteSyntheticsSuites.rb index ec7e1b014d89..f09c798f380d 100644 --- a/examples/v2/synthetics/DeleteSyntheticsSuites.rb +++ b/examples/v2/synthetics/DeleteSyntheticsSuites.rb @@ -1,6 +1,9 @@ # Bulk delete suites returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::DeletedSuitesRequestDeleteRequest.new({ diff --git a/examples/v2/synthetics/DeleteSyntheticsTests.rb b/examples/v2/synthetics/DeleteSyntheticsTests.rb index e1a095e22627..6eea6219062a 100644 --- a/examples/v2/synthetics/DeleteSyntheticsTests.rb +++ b/examples/v2/synthetics/DeleteSyntheticsTests.rb @@ -1,6 +1,9 @@ # Bulk delete tests returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::DeletedTestsRequestDeleteRequest.new({ diff --git a/examples/v2/synthetics/EditSyntheticsSuite.rb b/examples/v2/synthetics/EditSyntheticsSuite.rb index 42f3f31955d8..a8e4c38bcc0a 100644 --- a/examples/v2/synthetics/EditSyntheticsSuite.rb +++ b/examples/v2/synthetics/EditSyntheticsSuite.rb @@ -1,6 +1,9 @@ # Edit a test suite returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SuiteCreateEditRequest.new({ diff --git a/examples/v2/synthetics/GetApiMultistepSubtestParents.rb b/examples/v2/synthetics/GetApiMultistepSubtestParents.rb index 9c41e9e98c9c..edfd530e8908 100644 --- a/examples/v2/synthetics/GetApiMultistepSubtestParents.rb +++ b/examples/v2/synthetics/GetApiMultistepSubtestParents.rb @@ -1,5 +1,8 @@ # Get parent tests for a subtest returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_api_multistep_subtest_parents("public_id") diff --git a/examples/v2/synthetics/GetApiMultistepSubtests.rb b/examples/v2/synthetics/GetApiMultistepSubtests.rb index 015dbc6a0d78..343e37750b96 100644 --- a/examples/v2/synthetics/GetApiMultistepSubtests.rb +++ b/examples/v2/synthetics/GetApiMultistepSubtests.rb @@ -1,5 +1,8 @@ # Get available subtests for a multistep test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_api_multistep_subtests("public_id") diff --git a/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb b/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb index 25dd18cdaab4..4c701bf52649 100644 --- a/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb +++ b/examples/v2/synthetics/GetOnDemandConcurrencyCap.rb @@ -1,5 +1,8 @@ # Get the on-demand concurrency cap returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_on_demand_concurrency_cap() diff --git a/examples/v2/synthetics/GetSyntheticsBrowserTestResult.rb b/examples/v2/synthetics/GetSyntheticsBrowserTestResult.rb index d9a34ab0c812..05ddad99cb02 100644 --- a/examples/v2/synthetics/GetSyntheticsBrowserTestResult.rb +++ b/examples/v2/synthetics/GetSyntheticsBrowserTestResult.rb @@ -1,5 +1,8 @@ # Get a browser test result returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_browser_test_result("public_id", "result_id") diff --git a/examples/v2/synthetics/GetSyntheticsDowntime.rb b/examples/v2/synthetics/GetSyntheticsDowntime.rb index b9c5dcd5647f..fc5e6d6964b9 100644 --- a/examples/v2/synthetics/GetSyntheticsDowntime.rb +++ b/examples/v2/synthetics/GetSyntheticsDowntime.rb @@ -1,5 +1,8 @@ # Get a Synthetics downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_downtime("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/synthetics/GetSyntheticsFastTestResult.rb b/examples/v2/synthetics/GetSyntheticsFastTestResult.rb index 173cbf37fee2..3fafd092343d 100644 --- a/examples/v2/synthetics/GetSyntheticsFastTestResult.rb +++ b/examples/v2/synthetics/GetSyntheticsFastTestResult.rb @@ -1,5 +1,8 @@ # Get a fast test result returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_fast_test_result("abc12345-1234-1234-1234-abc123456789") diff --git a/examples/v2/synthetics/GetSyntheticsNetworkTest.rb b/examples/v2/synthetics/GetSyntheticsNetworkTest.rb index 6d1deb7d3237..2af7a7bbe0f4 100644 --- a/examples/v2/synthetics/GetSyntheticsNetworkTest.rb +++ b/examples/v2/synthetics/GetSyntheticsNetworkTest.rb @@ -1,5 +1,8 @@ # Get a Network Path test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_network_test("c7a-uwa-wn2") diff --git a/examples/v2/synthetics/GetSyntheticsSuite.rb b/examples/v2/synthetics/GetSyntheticsSuite.rb index 8bc19d536b1e..547b9280fd73 100644 --- a/examples/v2/synthetics/GetSyntheticsSuite.rb +++ b/examples/v2/synthetics/GetSyntheticsSuite.rb @@ -1,5 +1,8 @@ # Get a suite returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_suite("public_id") diff --git a/examples/v2/synthetics/GetSyntheticsTestResult.rb b/examples/v2/synthetics/GetSyntheticsTestResult.rb index eb4fc3fd9ebc..1e17a5517f44 100644 --- a/examples/v2/synthetics/GetSyntheticsTestResult.rb +++ b/examples/v2/synthetics/GetSyntheticsTestResult.rb @@ -1,5 +1,8 @@ # Get a test result returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_test_result("public_id", "result_id") diff --git a/examples/v2/synthetics/GetSyntheticsTestVersion.rb b/examples/v2/synthetics/GetSyntheticsTestVersion.rb index 88684d696640..07c4ce421197 100644 --- a/examples/v2/synthetics/GetSyntheticsTestVersion.rb +++ b/examples/v2/synthetics/GetSyntheticsTestVersion.rb @@ -1,5 +1,8 @@ # Get a specific version of a test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_synthetics_test_version("public_id", 9223372036854775807) diff --git a/examples/v2/synthetics/GetTestFileDownloadUrl.rb b/examples/v2/synthetics/GetTestFileDownloadUrl.rb index 0112459caad5..e5ed9da52414 100644 --- a/examples/v2/synthetics/GetTestFileDownloadUrl.rb +++ b/examples/v2/synthetics/GetTestFileDownloadUrl.rb @@ -1,6 +1,9 @@ # Get a presigned URL for downloading a test file returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsTestFileDownloadRequest.new({ diff --git a/examples/v2/synthetics/GetTestFileMultipartPresignedUrls.rb b/examples/v2/synthetics/GetTestFileMultipartPresignedUrls.rb index 2b39b2a67587..3eab8a0400fc 100644 --- a/examples/v2/synthetics/GetTestFileMultipartPresignedUrls.rb +++ b/examples/v2/synthetics/GetTestFileMultipartPresignedUrls.rb @@ -1,6 +1,9 @@ # Get presigned URLs for uploading a test file returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsTestFileMultipartPresignedUrlsRequest.new({ diff --git a/examples/v2/synthetics/GetTestParentSuites.rb b/examples/v2/synthetics/GetTestParentSuites.rb index 9ec97fe221d0..3ef7db0fb589 100644 --- a/examples/v2/synthetics/GetTestParentSuites.rb +++ b/examples/v2/synthetics/GetTestParentSuites.rb @@ -1,5 +1,8 @@ # Get parent suites for a test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.get_test_parent_suites("public_id") diff --git a/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.rb b/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.rb index a2f68c529a56..702d5914f53e 100644 --- a/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.rb +++ b/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.rb @@ -1,5 +1,8 @@ # Get a browser test's latest results returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.list_synthetics_browser_test_latest_results("public_id") diff --git a/examples/v2/synthetics/ListSyntheticsDowntimes.rb b/examples/v2/synthetics/ListSyntheticsDowntimes.rb index 70b6b141e3b4..6f5a2817ea50 100644 --- a/examples/v2/synthetics/ListSyntheticsDowntimes.rb +++ b/examples/v2/synthetics/ListSyntheticsDowntimes.rb @@ -1,5 +1,8 @@ # List Synthetics downtimes returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.list_synthetics_downtimes() diff --git a/examples/v2/synthetics/ListSyntheticsTestLatestResults.rb b/examples/v2/synthetics/ListSyntheticsTestLatestResults.rb index 1079f57956a0..884b3fad5235 100644 --- a/examples/v2/synthetics/ListSyntheticsTestLatestResults.rb +++ b/examples/v2/synthetics/ListSyntheticsTestLatestResults.rb @@ -1,5 +1,8 @@ # Get a test's latest results returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.list_synthetics_test_latest_results("public_id") diff --git a/examples/v2/synthetics/ListSyntheticsTestVersions.rb b/examples/v2/synthetics/ListSyntheticsTestVersions.rb index bd11096c97d2..568bd86fe2f5 100644 --- a/examples/v2/synthetics/ListSyntheticsTestVersions.rb +++ b/examples/v2/synthetics/ListSyntheticsTestVersions.rb @@ -1,5 +1,8 @@ # Get version history of a test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.list_synthetics_test_versions("public_id") diff --git a/examples/v2/synthetics/PatchGlobalVariable.rb b/examples/v2/synthetics/PatchGlobalVariable.rb index af3fe628954e..c722d0434656 100644 --- a/examples/v2/synthetics/PatchGlobalVariable.rb +++ b/examples/v2/synthetics/PatchGlobalVariable.rb @@ -1,6 +1,9 @@ # Patch a global variable returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::GlobalVariableJsonPatchRequest.new({ diff --git a/examples/v2/synthetics/PatchTestSuite.rb b/examples/v2/synthetics/PatchTestSuite.rb index 789ec05319ea..36eba3db3e7a 100644 --- a/examples/v2/synthetics/PatchTestSuite.rb +++ b/examples/v2/synthetics/PatchTestSuite.rb @@ -1,6 +1,9 @@ # Patch a test suite returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SuiteJsonPatchRequest.new({ diff --git a/examples/v2/synthetics/PollSyntheticsTestResults.rb b/examples/v2/synthetics/PollSyntheticsTestResults.rb index d7c1117324a8..90798da1cf34 100644 --- a/examples/v2/synthetics/PollSyntheticsTestResults.rb +++ b/examples/v2/synthetics/PollSyntheticsTestResults.rb @@ -1,5 +1,8 @@ # Poll for test results returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.poll_synthetics_test_results("result_ids") diff --git a/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb b/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb index 615662ab5ee1..158e5c6000f2 100644 --- a/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb +++ b/examples/v2/synthetics/RemoveTestFromSyntheticsDowntime.rb @@ -1,5 +1,8 @@ # Remove a test from a Synthetics downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.remove_test_from_synthetics_downtime("00000000-0000-0000-0000-000000000001", "abc-def-123") diff --git a/examples/v2/synthetics/SearchSuites.rb b/examples/v2/synthetics/SearchSuites.rb index d22f32f3da10..c31cf0c7eb64 100644 --- a/examples/v2/synthetics/SearchSuites.rb +++ b/examples/v2/synthetics/SearchSuites.rb @@ -1,5 +1,8 @@ # Search test suites returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.search_suites() diff --git a/examples/v2/synthetics/SearchSuites_2539131170.rb b/examples/v2/synthetics/SearchSuites_2539131170.rb index 019cf372d516..72e6a2b03b96 100644 --- a/examples/v2/synthetics/SearchSuites_2539131170.rb +++ b/examples/v2/synthetics/SearchSuites_2539131170.rb @@ -1,5 +1,8 @@ # Search Synthetics suites returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new p api_instance.search_suites() diff --git a/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb b/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb index 56da1e478b7c..92b61ff02013 100644 --- a/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb +++ b/examples/v2/synthetics/SetOnDemandConcurrencyCap.rb @@ -1,6 +1,9 @@ # Save new value for on-demand concurrency cap returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::OnDemandConcurrencyCapAttributes.new({ diff --git a/examples/v2/synthetics/UpdateSyntheticsDowntime.rb b/examples/v2/synthetics/UpdateSyntheticsDowntime.rb index b104e8c0007c..f502b1cbf08c 100644 --- a/examples/v2/synthetics/UpdateSyntheticsDowntime.rb +++ b/examples/v2/synthetics/UpdateSyntheticsDowntime.rb @@ -1,6 +1,9 @@ # Update a Synthetics downtime returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsDowntimeRequest.new({ diff --git a/examples/v2/synthetics/UpdateSyntheticsNetworkTest.rb b/examples/v2/synthetics/UpdateSyntheticsNetworkTest.rb index 79954798179a..98b0e761c4ca 100644 --- a/examples/v2/synthetics/UpdateSyntheticsNetworkTest.rb +++ b/examples/v2/synthetics/UpdateSyntheticsNetworkTest.rb @@ -1,6 +1,9 @@ # Edit a Network Path test returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::SyntheticsAPI.new body = DatadogAPIClient::V2::SyntheticsNetworkTestEditRequest.new({ diff --git a/examples/v2/tag-rules/CreateTagRule.rb b/examples/v2/tag-rules/CreateTagRule.rb index 295a81301019..6e44c48ec222 100644 --- a/examples/v2/tag-rules/CreateTagRule.rb +++ b/examples/v2/tag-rules/CreateTagRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_tag_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/tag-rules/DeleteTagRule.rb b/examples/v2/tag-rules/DeleteTagRule.rb index 0b094d3f40e1..47244134958f 100644 --- a/examples/v2/tag-rules/DeleteTagRule.rb +++ b/examples/v2/tag-rules/DeleteTagRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_tag_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/tag-rules/GetTagRule.rb b/examples/v2/tag-rules/GetTagRule.rb index bd14154efa2e..9764fe300afd 100644 --- a/examples/v2/tag-rules/GetTagRule.rb +++ b/examples/v2/tag-rules/GetTagRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_tag_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/tag-rules/GetTagRuleScore.rb b/examples/v2/tag-rules/GetTagRuleScore.rb index 226a47a60ae9..efa608213de0 100644 --- a/examples/v2/tag-rules/GetTagRuleScore.rb +++ b/examples/v2/tag-rules/GetTagRuleScore.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_tag_rule_score".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/tag-rules/ListTagRules.rb b/examples/v2/tag-rules/ListTagRules.rb index 1ed05408246a..858c048a3c4b 100644 --- a/examples/v2/tag-rules/ListTagRules.rb +++ b/examples/v2/tag-rules/ListTagRules.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_tag_rules".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/tag-rules/UpdateTagRule.rb b/examples/v2/tag-rules/UpdateTagRule.rb index c3dc36e3db69..246c2e1b8dd2 100644 --- a/examples/v2/tag-rules/UpdateTagRule.rb +++ b/examples/v2/tag-rules/UpdateTagRule.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_tag_rule".to_sym] = true end api_instance = DatadogAPIClient::V2::TagRulesAPI.new diff --git a/examples/v2/teams/AddMemberTeam.rb b/examples/v2/teams/AddMemberTeam.rb index c3c30dafb806..c91dda50cc19 100644 --- a/examples/v2/teams/AddMemberTeam.rb +++ b/examples/v2/teams/AddMemberTeam.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.add_member_team".to_sym] = true end api_instance = DatadogAPIClient::V2::TeamsAPI.new diff --git a/examples/v2/teams/AddTeamHierarchyLink.rb b/examples/v2/teams/AddTeamHierarchyLink.rb index a30e768a798d..bcef021a2019 100644 --- a/examples/v2/teams/AddTeamHierarchyLink.rb +++ b/examples/v2/teams/AddTeamHierarchyLink.rb @@ -1,6 +1,9 @@ # Create a team hierarchy link returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/CreateTeam.rb b/examples/v2/teams/CreateTeam.rb index aeacf27232b1..878e4ec1bbbe 100644 --- a/examples/v2/teams/CreateTeam.rb +++ b/examples/v2/teams/CreateTeam.rb @@ -1,6 +1,9 @@ # Create a team returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new body = DatadogAPIClient::V2::TeamCreateRequest.new({ diff --git a/examples/v2/teams/CreateTeamConnections.rb b/examples/v2/teams/CreateTeamConnections.rb index 761ccfb2ff74..b18e80bc3e50 100644 --- a/examples/v2/teams/CreateTeamConnections.rb +++ b/examples/v2/teams/CreateTeamConnections.rb @@ -1,6 +1,9 @@ # Create team connections returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/CreateTeamLink.rb b/examples/v2/teams/CreateTeamLink.rb index 3056dcfd379d..ed88b9460623 100644 --- a/examples/v2/teams/CreateTeamLink.rb +++ b/examples/v2/teams/CreateTeamLink.rb @@ -1,6 +1,9 @@ # Create a team link returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/CreateTeamMembership.rb b/examples/v2/teams/CreateTeamMembership.rb index c2392641a648..2f2f49467247 100644 --- a/examples/v2/teams/CreateTeamMembership.rb +++ b/examples/v2/teams/CreateTeamMembership.rb @@ -1,6 +1,9 @@ # Add a user to a team returns "Represents a user's association to a team" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/CreateTeamNotificationRule.rb b/examples/v2/teams/CreateTeamNotificationRule.rb index 20ae187539be..2fd1420b3418 100644 --- a/examples/v2/teams/CreateTeamNotificationRule.rb +++ b/examples/v2/teams/CreateTeamNotificationRule.rb @@ -1,6 +1,9 @@ # Create team notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/CreateTeam_252121814.rb b/examples/v2/teams/CreateTeam_252121814.rb index d5e4cdf2cfb3..fadea8615393 100644 --- a/examples/v2/teams/CreateTeam_252121814.rb +++ b/examples/v2/teams/CreateTeam_252121814.rb @@ -1,6 +1,9 @@ # Create a team with V2 fields returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new body = DatadogAPIClient::V2::TeamCreateRequest.new({ diff --git a/examples/v2/teams/DeleteTeam.rb b/examples/v2/teams/DeleteTeam.rb index 6e4790290d07..dc3f8ee5d728 100644 --- a/examples/v2/teams/DeleteTeam.rb +++ b/examples/v2/teams/DeleteTeam.rb @@ -1,6 +1,9 @@ # Remove a team returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/DeleteTeamConnections.rb b/examples/v2/teams/DeleteTeamConnections.rb index dd62de92f20d..5cccb24732c6 100644 --- a/examples/v2/teams/DeleteTeamConnections.rb +++ b/examples/v2/teams/DeleteTeamConnections.rb @@ -1,6 +1,9 @@ # Delete team connections returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "team_connection" in the system diff --git a/examples/v2/teams/DeleteTeamLink.rb b/examples/v2/teams/DeleteTeamLink.rb index b75aa9acc85d..5f5a8b1d0b62 100644 --- a/examples/v2/teams/DeleteTeamLink.rb +++ b/examples/v2/teams/DeleteTeamLink.rb @@ -1,6 +1,9 @@ # Remove a team link returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/DeleteTeamMembership.rb b/examples/v2/teams/DeleteTeamMembership.rb index 7ff28a9174a8..634759084116 100644 --- a/examples/v2/teams/DeleteTeamMembership.rb +++ b/examples/v2/teams/DeleteTeamMembership.rb @@ -1,6 +1,9 @@ # Remove a user from a team returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/DeleteTeamNotificationRule.rb b/examples/v2/teams/DeleteTeamNotificationRule.rb index 81061be6f65e..9e9bb99b5e38 100644 --- a/examples/v2/teams/DeleteTeamNotificationRule.rb +++ b/examples/v2/teams/DeleteTeamNotificationRule.rb @@ -1,6 +1,9 @@ # Delete team notification rule returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeam.rb b/examples/v2/teams/GetTeam.rb index ac669b5ebcc4..428f29768f73 100644 --- a/examples/v2/teams/GetTeam.rb +++ b/examples/v2/teams/GetTeam.rb @@ -1,6 +1,9 @@ # Get a team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamHierarchyLink.rb b/examples/v2/teams/GetTeamHierarchyLink.rb index 66661f335fa1..89dbc008c83a 100644 --- a/examples/v2/teams/GetTeamHierarchyLink.rb +++ b/examples/v2/teams/GetTeamHierarchyLink.rb @@ -1,6 +1,9 @@ # Get a team hierarchy link returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "team_hierarchy_link" in the system diff --git a/examples/v2/teams/GetTeamLink.rb b/examples/v2/teams/GetTeamLink.rb index 657ccdb9b4b4..48c679bf7016 100644 --- a/examples/v2/teams/GetTeamLink.rb +++ b/examples/v2/teams/GetTeamLink.rb @@ -1,6 +1,9 @@ # Get a team link returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamLinks.rb b/examples/v2/teams/GetTeamLinks.rb index d20a7777fbc4..7dbfae8b51e1 100644 --- a/examples/v2/teams/GetTeamLinks.rb +++ b/examples/v2/teams/GetTeamLinks.rb @@ -1,6 +1,9 @@ # Get links for a team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamMemberships.rb b/examples/v2/teams/GetTeamMemberships.rb index ceb16d1ba324..0a87baead292 100644 --- a/examples/v2/teams/GetTeamMemberships.rb +++ b/examples/v2/teams/GetTeamMemberships.rb @@ -1,6 +1,9 @@ # Get team memberships returns "Represents a user's association to a team" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamMemberships_3799131168.rb b/examples/v2/teams/GetTeamMemberships_3799131168.rb index 0f30bbc17133..8b6463413801 100644 --- a/examples/v2/teams/GetTeamMemberships_3799131168.rb +++ b/examples/v2/teams/GetTeamMemberships_3799131168.rb @@ -1,6 +1,9 @@ # Get team memberships returns "Represents a user's association to a team" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new opts = { page_size: 2, diff --git a/examples/v2/teams/GetTeamNotificationRule.rb b/examples/v2/teams/GetTeamNotificationRule.rb index 23f47696654e..a9443518b564 100644 --- a/examples/v2/teams/GetTeamNotificationRule.rb +++ b/examples/v2/teams/GetTeamNotificationRule.rb @@ -1,6 +1,9 @@ # Get team notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamNotificationRules.rb b/examples/v2/teams/GetTeamNotificationRules.rb index c0bebedbdd71..90c88e954f43 100644 --- a/examples/v2/teams/GetTeamNotificationRules.rb +++ b/examples/v2/teams/GetTeamNotificationRules.rb @@ -1,6 +1,9 @@ # Get team notification rules returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamPermissionSettings.rb b/examples/v2/teams/GetTeamPermissionSettings.rb index e030e7767749..c3d3d3133dd4 100644 --- a/examples/v2/teams/GetTeamPermissionSettings.rb +++ b/examples/v2/teams/GetTeamPermissionSettings.rb @@ -1,6 +1,9 @@ # Get permission settings for a team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/GetTeamSync.rb b/examples/v2/teams/GetTeamSync.rb index f3a967d958fe..c032453b96a1 100644 --- a/examples/v2/teams/GetTeamSync.rb +++ b/examples/v2/teams/GetTeamSync.rb @@ -1,5 +1,8 @@ # Get team sync configurations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new p api_instance.get_team_sync(TeamSyncAttributesSource::GITHUB) diff --git a/examples/v2/teams/GetUserMemberships.rb b/examples/v2/teams/GetUserMemberships.rb index 8805f92df0bb..78de1cdf5512 100644 --- a/examples/v2/teams/GetUserMemberships.rb +++ b/examples/v2/teams/GetUserMemberships.rb @@ -1,6 +1,9 @@ # Get user memberships returns "Represents a user's association to a team" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "user" in the system diff --git a/examples/v2/teams/ListMemberTeams.rb b/examples/v2/teams/ListMemberTeams.rb index ba02e6251ce2..28d44ca43236 100644 --- a/examples/v2/teams/ListMemberTeams.rb +++ b/examples/v2/teams/ListMemberTeams.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_member_teams".to_sym] = true end api_instance = DatadogAPIClient::V2::TeamsAPI.new diff --git a/examples/v2/teams/ListMemberTeams_1662850354.rb b/examples/v2/teams/ListMemberTeams_1662850354.rb index 511b0f223666..260cf264ff4b 100644 --- a/examples/v2/teams/ListMemberTeams_1662850354.rb +++ b/examples/v2/teams/ListMemberTeams_1662850354.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_member_teams".to_sym] = true end api_instance = DatadogAPIClient::V2::TeamsAPI.new diff --git a/examples/v2/teams/ListTeamConnections.rb b/examples/v2/teams/ListTeamConnections.rb index 098a1d6aa4fa..10747cfe8f81 100644 --- a/examples/v2/teams/ListTeamConnections.rb +++ b/examples/v2/teams/ListTeamConnections.rb @@ -1,6 +1,9 @@ # List team connections returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new opts = { page_size: 10, diff --git a/examples/v2/teams/ListTeamConnections_1473516764.rb b/examples/v2/teams/ListTeamConnections_1473516764.rb index 5cc1bba228fd..d11bae4c06a9 100644 --- a/examples/v2/teams/ListTeamConnections_1473516764.rb +++ b/examples/v2/teams/ListTeamConnections_1473516764.rb @@ -1,6 +1,9 @@ # List team connections with filters returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new opts = { filter_sources: [ diff --git a/examples/v2/teams/ListTeamConnections_2418873869.rb b/examples/v2/teams/ListTeamConnections_2418873869.rb index b8cf57fee460..8b2aa7ac04c0 100644 --- a/examples/v2/teams/ListTeamConnections_2418873869.rb +++ b/examples/v2/teams/ListTeamConnections_2418873869.rb @@ -1,5 +1,8 @@ # List team connections returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new api_instance.list_team_connections_with_pagination() { |item| puts item } diff --git a/examples/v2/teams/ListTeamHierarchyLinks.rb b/examples/v2/teams/ListTeamHierarchyLinks.rb index 80ac140d5e15..2cf34d4abb09 100644 --- a/examples/v2/teams/ListTeamHierarchyLinks.rb +++ b/examples/v2/teams/ListTeamHierarchyLinks.rb @@ -1,6 +1,9 @@ # Get team hierarchy links returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "team_hierarchy_link" in the system diff --git a/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb b/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb index 3baec7cb0d3c..94b64262e428 100644 --- a/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb +++ b/examples/v2/teams/ListTeamHierarchyLinks_3360757486.rb @@ -1,5 +1,8 @@ # Get team hierarchy links returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new api_instance.list_team_hierarchy_links_with_pagination() { |item| puts item } diff --git a/examples/v2/teams/ListTeams.rb b/examples/v2/teams/ListTeams.rb index d6318523e20d..955934ed588a 100644 --- a/examples/v2/teams/ListTeams.rb +++ b/examples/v2/teams/ListTeams.rb @@ -1,5 +1,8 @@ # Get all teams returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new p api_instance.list_teams() diff --git a/examples/v2/teams/ListTeams_3429963470.rb b/examples/v2/teams/ListTeams_3429963470.rb index b7f2f57cc73d..efce3f490365 100644 --- a/examples/v2/teams/ListTeams_3429963470.rb +++ b/examples/v2/teams/ListTeams_3429963470.rb @@ -1,6 +1,9 @@ # Get all teams with fields_team parameter returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new opts = { fields_team: [ diff --git a/examples/v2/teams/ListTeams_3592098458.rb b/examples/v2/teams/ListTeams_3592098458.rb index 0f67f576f875..81b29707d86c 100644 --- a/examples/v2/teams/ListTeams_3592098458.rb +++ b/examples/v2/teams/ListTeams_3592098458.rb @@ -1,6 +1,9 @@ # Get all teams returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new opts = { page_size: 2, diff --git a/examples/v2/teams/RemoveMemberTeam.rb b/examples/v2/teams/RemoveMemberTeam.rb index 11b5e1d4ae21..38f30ec0bd75 100644 --- a/examples/v2/teams/RemoveMemberTeam.rb +++ b/examples/v2/teams/RemoveMemberTeam.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.remove_member_team".to_sym] = true end api_instance = DatadogAPIClient::V2::TeamsAPI.new diff --git a/examples/v2/teams/RemoveTeamHierarchyLink.rb b/examples/v2/teams/RemoveTeamHierarchyLink.rb index 94c638a60ec1..1a7e6a48854e 100644 --- a/examples/v2/teams/RemoveTeamHierarchyLink.rb +++ b/examples/v2/teams/RemoveTeamHierarchyLink.rb @@ -1,6 +1,9 @@ # Remove a team hierarchy link returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "team_hierarchy_link" in the system diff --git a/examples/v2/teams/SyncTeams.rb b/examples/v2/teams/SyncTeams.rb index 2675eff6ac68..13e1f0047dbb 100644 --- a/examples/v2/teams/SyncTeams.rb +++ b/examples/v2/teams/SyncTeams.rb @@ -1,6 +1,9 @@ # Link Teams with GitHub Teams returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new body = DatadogAPIClient::V2::TeamSyncRequest.new({ diff --git a/examples/v2/teams/UpdateTeam.rb b/examples/v2/teams/UpdateTeam.rb index 96c1c52108ee..688a3380c746 100644 --- a/examples/v2/teams/UpdateTeam.rb +++ b/examples/v2/teams/UpdateTeam.rb @@ -1,6 +1,9 @@ # Update a team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/UpdateTeamLink.rb b/examples/v2/teams/UpdateTeamLink.rb index 3c0aa93e3206..19029619aa6f 100644 --- a/examples/v2/teams/UpdateTeamLink.rb +++ b/examples/v2/teams/UpdateTeamLink.rb @@ -1,6 +1,9 @@ # Update a team link returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/UpdateTeamMembership.rb b/examples/v2/teams/UpdateTeamMembership.rb index 5f07b3ab9896..9b2e6ec8eaa0 100644 --- a/examples/v2/teams/UpdateTeamMembership.rb +++ b/examples/v2/teams/UpdateTeamMembership.rb @@ -1,6 +1,9 @@ # Update a user's membership attributes on a team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/UpdateTeamNotificationRule.rb b/examples/v2/teams/UpdateTeamNotificationRule.rb index 5dafeddc0c54..d3d44ae56ad3 100644 --- a/examples/v2/teams/UpdateTeamNotificationRule.rb +++ b/examples/v2/teams/UpdateTeamNotificationRule.rb @@ -1,6 +1,9 @@ # Update team notification rule returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/UpdateTeamPermissionSetting.rb b/examples/v2/teams/UpdateTeamPermissionSetting.rb index f091d346d6de..e4f502716339 100644 --- a/examples/v2/teams/UpdateTeamPermissionSetting.rb +++ b/examples/v2/teams/UpdateTeamPermissionSetting.rb @@ -1,6 +1,9 @@ # Update permission setting for team returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/teams/UpdateTeam_780342264.rb b/examples/v2/teams/UpdateTeam_780342264.rb index a911f4e2dc8b..5055b906b6dc 100644 --- a/examples/v2/teams/UpdateTeam_780342264.rb +++ b/examples/v2/teams/UpdateTeam_780342264.rb @@ -1,6 +1,9 @@ # Update a team with partial update returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TeamsAPI.new # there is a valid "dd_team" in the system diff --git a/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.rb b/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.rb index 1c6c575f1f59..63674c1d989e 100644 --- a/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.rb +++ b/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.rb @@ -1,6 +1,9 @@ # Delete Test Optimization service settings returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::TestOptimizationDeleteServiceSettingsRequest.new({ diff --git a/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.rb b/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.rb index c8e44b7a2a18..d703ec069309 100644 --- a/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.rb +++ b/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.rb @@ -1,6 +1,9 @@ # Get Flaky Tests Management policies returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::TestOptimizationFlakyTestsManagementPoliciesGetRequest.new({ diff --git a/examples/v2/test-optimization/GetTestOptimizationServiceSettings.rb b/examples/v2/test-optimization/GetTestOptimizationServiceSettings.rb index ab56351d1fcf..159fd460eec0 100644 --- a/examples/v2/test-optimization/GetTestOptimizationServiceSettings.rb +++ b/examples/v2/test-optimization/GetTestOptimizationServiceSettings.rb @@ -1,6 +1,9 @@ # Get Test Optimization service settings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::TestOptimizationGetServiceSettingsRequest.new({ diff --git a/examples/v2/test-optimization/SearchFlakyTests.rb b/examples/v2/test-optimization/SearchFlakyTests.rb index 1ae01ac2d113..31c07e04bab2 100644 --- a/examples/v2/test-optimization/SearchFlakyTests.rb +++ b/examples/v2/test-optimization/SearchFlakyTests.rb @@ -1,6 +1,9 @@ # Search flaky tests returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({ diff --git a/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb b/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb index f23e3a258fb4..869ca5e4ea41 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +++ b/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb @@ -1,6 +1,9 @@ # Search flaky tests returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({ diff --git a/examples/v2/test-optimization/SearchFlakyTests_209064879.rb b/examples/v2/test-optimization/SearchFlakyTests_209064879.rb index bc9879461e72..e1f427834c25 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_209064879.rb +++ b/examples/v2/test-optimization/SearchFlakyTests_209064879.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_flaky_tests".to_sym] = true end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new diff --git a/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb b/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb index f24e3605ef02..96767dfbbc63 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb +++ b/examples/v2/test-optimization/SearchFlakyTests_2665223746.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.search_flaky_tests".to_sym] = true end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new diff --git a/examples/v2/test-optimization/UpdateFlakyTests.rb b/examples/v2/test-optimization/UpdateFlakyTests.rb index 8c9180e4fa7e..07dbaed423bb 100644 --- a/examples/v2/test-optimization/UpdateFlakyTests.rb +++ b/examples/v2/test-optimization/UpdateFlakyTests.rb @@ -1,6 +1,9 @@ # Update flaky test states returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::UpdateFlakyTestsRequest.new({ diff --git a/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.rb b/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.rb index bbed718c728b..68ac6df5cef7 100644 --- a/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.rb +++ b/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.rb @@ -1,6 +1,9 @@ # Update Flaky Tests Management policies returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::TestOptimizationFlakyTestsManagementPoliciesUpdateRequest.new({ diff --git a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb index 7526a9e12fbc..e36b92824afe 100644 --- a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb +++ b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.rb @@ -1,6 +1,9 @@ # Update Test Optimization service settings returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new body = DatadogAPIClient::V2::TestOptimizationUpdateServiceSettingsRequest.new({ diff --git a/examples/v2/threat-intelligence/AddSTIXThreatIntel.rb b/examples/v2/threat-intelligence/AddSTIXThreatIntel.rb index 419a86af62e8..98465aca7495 100644 --- a/examples/v2/threat-intelligence/AddSTIXThreatIntel.rb +++ b/examples/v2/threat-intelligence/AddSTIXThreatIntel.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.add_stix_threat_intel".to_sym] = true end api_instance = DatadogAPIClient::V2::ThreatIntelligenceAPI.new diff --git a/examples/v2/timeseries-anomaly-investigations/CreateTimeseriesAnomalyInvestigation.rb b/examples/v2/timeseries-anomaly-investigations/CreateTimeseriesAnomalyInvestigation.rb index b23c0107a5d0..e40b8e447a34 100644 --- a/examples/v2/timeseries-anomaly-investigations/CreateTimeseriesAnomalyInvestigation.rb +++ b/examples/v2/timeseries-anomaly-investigations/CreateTimeseriesAnomalyInvestigation.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_timeseries_anomaly_investigation".to_sym] = true end api_instance = DatadogAPIClient::V2::TimeseriesAnomalyInvestigationsAPI.new diff --git a/examples/v2/twilio-integration/CreateTwilioIntegrationAccount.rb b/examples/v2/twilio-integration/CreateTwilioIntegrationAccount.rb index 023fa667c3d2..4a92281b79c0 100644 --- a/examples/v2/twilio-integration/CreateTwilioIntegrationAccount.rb +++ b/examples/v2/twilio-integration/CreateTwilioIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_twilio_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::TwilioIntegrationAPI.new diff --git a/examples/v2/twilio-integration/DeleteTwilioIntegrationAccount.rb b/examples/v2/twilio-integration/DeleteTwilioIntegrationAccount.rb index b3e08825c850..5afa520724bc 100644 --- a/examples/v2/twilio-integration/DeleteTwilioIntegrationAccount.rb +++ b/examples/v2/twilio-integration/DeleteTwilioIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_twilio_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::TwilioIntegrationAPI.new diff --git a/examples/v2/twilio-integration/GetTwilioIntegrationAccount.rb b/examples/v2/twilio-integration/GetTwilioIntegrationAccount.rb index 3f502e38176b..d5d45c04241d 100644 --- a/examples/v2/twilio-integration/GetTwilioIntegrationAccount.rb +++ b/examples/v2/twilio-integration/GetTwilioIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_twilio_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::TwilioIntegrationAPI.new diff --git a/examples/v2/twilio-integration/ListTwilioIntegrationAccounts.rb b/examples/v2/twilio-integration/ListTwilioIntegrationAccounts.rb index 80417baeae23..0b3f6cf55cd6 100644 --- a/examples/v2/twilio-integration/ListTwilioIntegrationAccounts.rb +++ b/examples/v2/twilio-integration/ListTwilioIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_twilio_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::TwilioIntegrationAPI.new diff --git a/examples/v2/twilio-integration/UpdateTwilioIntegrationAccount.rb b/examples/v2/twilio-integration/UpdateTwilioIntegrationAccount.rb index 491988b6501e..6e7f6a4c8d3b 100644 --- a/examples/v2/twilio-integration/UpdateTwilioIntegrationAccount.rb +++ b/examples/v2/twilio-integration/UpdateTwilioIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_twilio_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::TwilioIntegrationAPI.new diff --git a/examples/v2/usage-metering/CreateQuotas.rb b/examples/v2/usage-metering/CreateQuotas.rb index 8cf98d30e353..66fe57225963 100644 --- a/examples/v2/usage-metering/CreateQuotas.rb +++ b/examples/v2/usage-metering/CreateQuotas.rb @@ -3,6 +3,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_quotas".to_sym] = true end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new diff --git a/examples/v2/usage-metering/DeleteQuota.rb b/examples/v2/usage-metering/DeleteQuota.rb index 3a8d453b9a4c..1b329f4415d9 100644 --- a/examples/v2/usage-metering/DeleteQuota.rb +++ b/examples/v2/usage-metering/DeleteQuota.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_quota".to_sym] = true end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new diff --git a/examples/v2/usage-metering/GetActiveBillingDimensions.rb b/examples/v2/usage-metering/GetActiveBillingDimensions.rb index 7bf1f0345509..f3ea6ea9b8f4 100644 --- a/examples/v2/usage-metering/GetActiveBillingDimensions.rb +++ b/examples/v2/usage-metering/GetActiveBillingDimensions.rb @@ -1,5 +1,8 @@ # Get active billing dimensions for cost attribution returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_active_billing_dimensions() diff --git a/examples/v2/usage-metering/GetBillingDimensionMapping.rb b/examples/v2/usage-metering/GetBillingDimensionMapping.rb index 4ee87c561de2..9fd4b9730f38 100644 --- a/examples/v2/usage-metering/GetBillingDimensionMapping.rb +++ b/examples/v2/usage-metering/GetBillingDimensionMapping.rb @@ -1,5 +1,8 @@ # Get billing dimension mapping for usage endpoints returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_billing_dimension_mapping() diff --git a/examples/v2/usage-metering/GetCostByOrg.rb b/examples/v2/usage-metering/GetCostByOrg.rb index 547134ea9f59..85eee9ed9276 100644 --- a/examples/v2/usage-metering/GetCostByOrg.rb +++ b/examples/v2/usage-metering/GetCostByOrg.rb @@ -1,5 +1,8 @@ # Get cost across multi-org account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_cost_by_org((Time.now + -3 * 86400)) diff --git a/examples/v2/usage-metering/GetEstimatedCostByOrg.rb b/examples/v2/usage-metering/GetEstimatedCostByOrg.rb index 810b9f2bda0d..06820826c566 100644 --- a/examples/v2/usage-metering/GetEstimatedCostByOrg.rb +++ b/examples/v2/usage-metering/GetEstimatedCostByOrg.rb @@ -1,5 +1,8 @@ # Get estimated cost across your account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_estimated_cost_by_org() diff --git a/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb b/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb index ff448f2b2320..40b1dc063ad7 100644 --- a/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb +++ b/examples/v2/usage-metering/GetEstimatedCostByOrg_3186693804.rb @@ -1,6 +1,9 @@ # GetEstimatedCostByOrg with start_month returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { view: "sub-org", diff --git a/examples/v2/usage-metering/GetHistoricalCostByOrg.rb b/examples/v2/usage-metering/GetHistoricalCostByOrg.rb index ac5dd312b0aa..bd7a42262b93 100644 --- a/examples/v2/usage-metering/GetHistoricalCostByOrg.rb +++ b/examples/v2/usage-metering/GetHistoricalCostByOrg.rb @@ -1,6 +1,9 @@ # Get historical cost across your account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { view: "sub-org", diff --git a/examples/v2/usage-metering/GetHourlyUsage.rb b/examples/v2/usage-metering/GetHourlyUsage.rb index d33367b56b15..ab1740eaa144 100644 --- a/examples/v2/usage-metering/GetHourlyUsage.rb +++ b/examples/v2/usage-metering/GetHourlyUsage.rb @@ -1,5 +1,8 @@ # Get hourly usage by product family returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_hourly_usage((Time.now + -3 * 86400), "infra_hosts") diff --git a/examples/v2/usage-metering/GetMonthlyCostAttribution.rb b/examples/v2/usage-metering/GetMonthlyCostAttribution.rb index 91e298f4cdb6..c5488b89a11f 100644 --- a/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +++ b/examples/v2/usage-metering/GetMonthlyCostAttribution.rb @@ -1,6 +1,9 @@ # Get Monthly Cost Attribution returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { end_month: (Time.now + -3 * 86400), diff --git a/examples/v2/usage-metering/GetProjectedCost.rb b/examples/v2/usage-metering/GetProjectedCost.rb index bc7b8c77b541..b30c250687d2 100644 --- a/examples/v2/usage-metering/GetProjectedCost.rb +++ b/examples/v2/usage-metering/GetProjectedCost.rb @@ -1,6 +1,9 @@ # Get projected cost across your account returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { view: "sub-org", diff --git a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb index 7b92d2c284e0..731b72048aa6 100644 --- a/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb +++ b/examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.rb @@ -1,6 +1,9 @@ # Get hourly usage for application security returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v2/usage-metering/GetUsageAttributionTypes.rb b/examples/v2/usage-metering/GetUsageAttributionTypes.rb index c17dfc8bd71b..ec4894e8bba0 100644 --- a/examples/v2/usage-metering/GetUsageAttributionTypes.rb +++ b/examples/v2/usage-metering/GetUsageAttributionTypes.rb @@ -1,5 +1,8 @@ # Get usage attribution types returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_usage_attribution_types() diff --git a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb index 68b76be7b5f8..b347ec5cb8d5 100644 --- a/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb +++ b/examples/v2/usage-metering/GetUsageLambdaTracedInvocations.rb @@ -1,6 +1,9 @@ # Get hourly usage for Lambda traced invocations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb b/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb index 53fc53c3b291..1ab5aee1b508 100644 --- a/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb +++ b/examples/v2/usage-metering/GetUsageObservabilityPipelines.rb @@ -1,6 +1,9 @@ # Get hourly usage for observability pipelines returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new opts = { end_hr: (Time.now + -3 * 86400), diff --git a/examples/v2/usage-metering/GetUsageSummaryAvailableFields.rb b/examples/v2/usage-metering/GetUsageSummaryAvailableFields.rb index 7ce7873d98c4..399a37118c6f 100644 --- a/examples/v2/usage-metering/GetUsageSummaryAvailableFields.rb +++ b/examples/v2/usage-metering/GetUsageSummaryAvailableFields.rb @@ -1,5 +1,8 @@ # Get available fields for usage summary returns "OK." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_usage_summary_available_fields() diff --git a/examples/v2/usage-metering/GetUsageSummaryAvailableFields_2682263043.rb b/examples/v2/usage-metering/GetUsageSummaryAvailableFields_2682263043.rb index a1c740829209..1cd70476ac15 100644 --- a/examples/v2/usage-metering/GetUsageSummaryAvailableFields_2682263043.rb +++ b/examples/v2/usage-metering/GetUsageSummaryAvailableFields_2682263043.rb @@ -1,5 +1,8 @@ # Get available fields for usage summary returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new p api_instance.get_usage_summary_available_fields() diff --git a/examples/v2/usage-metering/ListQuotas.rb b/examples/v2/usage-metering/ListQuotas.rb index 2d38f5aa27c2..5376460fbe55 100644 --- a/examples/v2/usage-metering/ListQuotas.rb +++ b/examples/v2/usage-metering/ListQuotas.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_quotas".to_sym] = true end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new diff --git a/examples/v2/usage-metering/ListQuotas_918754421.rb b/examples/v2/usage-metering/ListQuotas_918754421.rb index 2896078e94e9..9bd9fb18f078 100644 --- a/examples/v2/usage-metering/ListQuotas_918754421.rb +++ b/examples/v2/usage-metering/ListQuotas_918754421.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_quotas".to_sym] = true end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new diff --git a/examples/v2/usage-metering/UpdateQuota.rb b/examples/v2/usage-metering/UpdateQuota.rb index f0920fb7dc77..ca678e226a3e 100644 --- a/examples/v2/usage-metering/UpdateQuota.rb +++ b/examples/v2/usage-metering/UpdateQuota.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_quota".to_sym] = true end api_instance = DatadogAPIClient::V2::UsageMeteringAPI.new diff --git a/examples/v2/user-authorized-clients/DeleteUserAuthorizedClient.rb b/examples/v2/user-authorized-clients/DeleteUserAuthorizedClient.rb index 8a7947befdce..7e781a623b16 100644 --- a/examples/v2/user-authorized-clients/DeleteUserAuthorizedClient.rb +++ b/examples/v2/user-authorized-clients/DeleteUserAuthorizedClient.rb @@ -1,5 +1,8 @@ # Delete a user authorized client returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UserAuthorizedClientsAPI.new api_instance.delete_user_authorized_client("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/user-authorized-clients/DeleteUserAuthorizedClientsByClient.rb b/examples/v2/user-authorized-clients/DeleteUserAuthorizedClientsByClient.rb index 321ff63b61a1..60eb2f454ebd 100644 --- a/examples/v2/user-authorized-clients/DeleteUserAuthorizedClientsByClient.rb +++ b/examples/v2/user-authorized-clients/DeleteUserAuthorizedClientsByClient.rb @@ -1,5 +1,8 @@ # Delete all user authorized clients for a client returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UserAuthorizedClientsAPI.new api_instance.delete_user_authorized_clients_by_client("00000000-0000-0000-0000-000000000010") diff --git a/examples/v2/user-authorized-clients/GetUserAuthorizedClient.rb b/examples/v2/user-authorized-clients/GetUserAuthorizedClient.rb index 2ed9bea5334f..50e26a01782f 100644 --- a/examples/v2/user-authorized-clients/GetUserAuthorizedClient.rb +++ b/examples/v2/user-authorized-clients/GetUserAuthorizedClient.rb @@ -1,5 +1,8 @@ # Get a user authorized client returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UserAuthorizedClientsAPI.new p api_instance.get_user_authorized_client("00000000-0000-0000-0000-000000000001") diff --git a/examples/v2/user-authorized-clients/ListUserAuthorizedClients.rb b/examples/v2/user-authorized-clients/ListUserAuthorizedClients.rb index c5876cc39ae6..39c6d60fc8e1 100644 --- a/examples/v2/user-authorized-clients/ListUserAuthorizedClients.rb +++ b/examples/v2/user-authorized-clients/ListUserAuthorizedClients.rb @@ -1,5 +1,8 @@ # List user authorized clients returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UserAuthorizedClientsAPI.new p api_instance.list_user_authorized_clients() diff --git a/examples/v2/user-authorized-clients/ListUserAuthorizedClients_1051662547.rb b/examples/v2/user-authorized-clients/ListUserAuthorizedClients_1051662547.rb index 5c73a64f032d..317331e4c691 100644 --- a/examples/v2/user-authorized-clients/ListUserAuthorizedClients_1051662547.rb +++ b/examples/v2/user-authorized-clients/ListUserAuthorizedClients_1051662547.rb @@ -1,5 +1,8 @@ # List user authorized clients returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UserAuthorizedClientsAPI.new api_instance.list_user_authorized_clients_with_pagination() { |item| puts item } diff --git a/examples/v2/users/AnonymizeUsers.rb b/examples/v2/users/AnonymizeUsers.rb index 45af5881713e..4ace7d43efb3 100644 --- a/examples/v2/users/AnonymizeUsers.rb +++ b/examples/v2/users/AnonymizeUsers.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.anonymize_users".to_sym] = true end api_instance = DatadogAPIClient::V2::UsersAPI.new diff --git a/examples/v2/users/CreateUser.rb b/examples/v2/users/CreateUser.rb index 404dbdae519a..9f2d6bcc8ad9 100644 --- a/examples/v2/users/CreateUser.rb +++ b/examples/v2/users/CreateUser.rb @@ -1,6 +1,9 @@ # Create a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new body = DatadogAPIClient::V2::UserCreateRequest.new({ diff --git a/examples/v2/users/DeleteUserInvitations.rb b/examples/v2/users/DeleteUserInvitations.rb index 35bb316263c4..dad0b6c69aeb 100644 --- a/examples/v2/users/DeleteUserInvitations.rb +++ b/examples/v2/users/DeleteUserInvitations.rb @@ -1,5 +1,8 @@ # Delete a pending user's invitations returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new p api_instance.delete_user_invitations("4dee724d-00cc-11ea-a77b-570c9d03c6c5") diff --git a/examples/v2/users/DisableUser.rb b/examples/v2/users/DisableUser.rb index 6216b0ce3b61..1e8c6eee3d5b 100644 --- a/examples/v2/users/DisableUser.rb +++ b/examples/v2/users/DisableUser.rb @@ -1,6 +1,9 @@ # Disable a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/GetCurrentUser.rb b/examples/v2/users/GetCurrentUser.rb index 624cfafea1f6..5b1d1221977a 100644 --- a/examples/v2/users/GetCurrentUser.rb +++ b/examples/v2/users/GetCurrentUser.rb @@ -1,5 +1,8 @@ # Get current user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new p api_instance.get_current_user() diff --git a/examples/v2/users/GetInvitation.rb b/examples/v2/users/GetInvitation.rb index 4660c5701c16..18fc1f659c37 100644 --- a/examples/v2/users/GetInvitation.rb +++ b/examples/v2/users/GetInvitation.rb @@ -1,6 +1,9 @@ # Get a user invitation returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # the "user" has a "user_invitation" diff --git a/examples/v2/users/GetUser.rb b/examples/v2/users/GetUser.rb index 3b3bcfedd6b2..96dcccaf4e3f 100644 --- a/examples/v2/users/GetUser.rb +++ b/examples/v2/users/GetUser.rb @@ -1,6 +1,9 @@ # Get user details returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/GetUserIdentityProviders.rb b/examples/v2/users/GetUserIdentityProviders.rb index 68404b6562f4..b8b754a08250 100644 --- a/examples/v2/users/GetUserIdentityProviders.rb +++ b/examples/v2/users/GetUserIdentityProviders.rb @@ -1,5 +1,8 @@ # Get identity provider overrides for a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new p api_instance.get_user_identity_providers("00000000-0000-9999-0000-000000000000") diff --git a/examples/v2/users/ListUserOrganizations.rb b/examples/v2/users/ListUserOrganizations.rb index a0f1ec9c0987..21133f188f4b 100644 --- a/examples/v2/users/ListUserOrganizations.rb +++ b/examples/v2/users/ListUserOrganizations.rb @@ -1,5 +1,8 @@ # Get a user organization returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new p api_instance.list_user_organizations("00000000-0000-9999-0000-000000000000") diff --git a/examples/v2/users/ListUserPermissions.rb b/examples/v2/users/ListUserPermissions.rb index 4a6793a8e14f..d72e6d1431e7 100644 --- a/examples/v2/users/ListUserPermissions.rb +++ b/examples/v2/users/ListUserPermissions.rb @@ -1,6 +1,9 @@ # Get a user permissions returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/ListUsers.rb b/examples/v2/users/ListUsers.rb index 6630bac0ba7f..8d732497e18e 100644 --- a/examples/v2/users/ListUsers.rb +++ b/examples/v2/users/ListUsers.rb @@ -1,6 +1,9 @@ # List all users returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/ListUsers_4075885358.rb b/examples/v2/users/ListUsers_4075885358.rb index 82b08be5cfa7..3df8854ad40d 100644 --- a/examples/v2/users/ListUsers_4075885358.rb +++ b/examples/v2/users/ListUsers_4075885358.rb @@ -1,6 +1,9 @@ # List all users returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new opts = { page_size: 2, diff --git a/examples/v2/users/SendInvitations.rb b/examples/v2/users/SendInvitations.rb index f6545f55ce40..eca5a334b8c0 100644 --- a/examples/v2/users/SendInvitations.rb +++ b/examples/v2/users/SendInvitations.rb @@ -1,6 +1,9 @@ # Send invitation emails returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/UpdateCurrentUser.rb b/examples/v2/users/UpdateCurrentUser.rb index de8e99dceb36..a539348cd1a0 100644 --- a/examples/v2/users/UpdateCurrentUser.rb +++ b/examples/v2/users/UpdateCurrentUser.rb @@ -1,6 +1,9 @@ # Update current user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new body = DatadogAPIClient::V2::UserUpdateRequest.new({ diff --git a/examples/v2/users/UpdateUser.rb b/examples/v2/users/UpdateUser.rb index d6b8f06a4191..fd5e064e1186 100644 --- a/examples/v2/users/UpdateUser.rb +++ b/examples/v2/users/UpdateUser.rb @@ -1,6 +1,9 @@ # Update a user returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new # there is a valid "user" in the system diff --git a/examples/v2/users/UpdateUserIdentityProviders.rb b/examples/v2/users/UpdateUserIdentityProviders.rb index 74981d815310..068b2e5e98be 100644 --- a/examples/v2/users/UpdateUserIdentityProviders.rb +++ b/examples/v2/users/UpdateUserIdentityProviders.rb @@ -1,6 +1,9 @@ # Update identity provider overrides for a user returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::UsersAPI.new body = DatadogAPIClient::V2::UpdateUserIdentityProvidersRequest.new({ diff --git a/examples/v2/web-integrations/CreateWebIntegrationAccount.rb b/examples/v2/web-integrations/CreateWebIntegrationAccount.rb index 46ac6b13696a..e586ee97e957 100644 --- a/examples/v2/web-integrations/CreateWebIntegrationAccount.rb +++ b/examples/v2/web-integrations/CreateWebIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.create_web_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::WebIntegrationsAPI.new diff --git a/examples/v2/web-integrations/DeleteWebIntegrationAccount.rb b/examples/v2/web-integrations/DeleteWebIntegrationAccount.rb index 0c53cf54e621..bd85e97cdc3b 100644 --- a/examples/v2/web-integrations/DeleteWebIntegrationAccount.rb +++ b/examples/v2/web-integrations/DeleteWebIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.delete_web_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::WebIntegrationsAPI.new diff --git a/examples/v2/web-integrations/GetWebIntegrationAccount.rb b/examples/v2/web-integrations/GetWebIntegrationAccount.rb index 3c8aecdcb402..50ad08598e08 100644 --- a/examples/v2/web-integrations/GetWebIntegrationAccount.rb +++ b/examples/v2/web-integrations/GetWebIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.get_web_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::WebIntegrationsAPI.new diff --git a/examples/v2/web-integrations/ListWebIntegrationAccounts.rb b/examples/v2/web-integrations/ListWebIntegrationAccounts.rb index c43428599d52..74fae29926e1 100644 --- a/examples/v2/web-integrations/ListWebIntegrationAccounts.rb +++ b/examples/v2/web-integrations/ListWebIntegrationAccounts.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.list_web_integration_accounts".to_sym] = true end api_instance = DatadogAPIClient::V2::WebIntegrationsAPI.new diff --git a/examples/v2/web-integrations/UpdateWebIntegrationAccount.rb b/examples/v2/web-integrations/UpdateWebIntegrationAccount.rb index 07c2471a8895..c441e96bdbd4 100644 --- a/examples/v2/web-integrations/UpdateWebIntegrationAccount.rb +++ b/examples/v2/web-integrations/UpdateWebIntegrationAccount.rb @@ -2,6 +2,7 @@ require "datadog_api_client" DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] config.unstable_operations["v2.update_web_integration_account".to_sym] = true end api_instance = DatadogAPIClient::V2::WebIntegrationsAPI.new diff --git a/examples/v2/webhooks-integration/CreateOAuth2ClientCredentials.rb b/examples/v2/webhooks-integration/CreateOAuth2ClientCredentials.rb index a068d2861bfd..0d0ee8c145cb 100644 --- a/examples/v2/webhooks-integration/CreateOAuth2ClientCredentials.rb +++ b/examples/v2/webhooks-integration/CreateOAuth2ClientCredentials.rb @@ -1,6 +1,9 @@ # Create an OAuth2 client credentials auth method returns "CREATED" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WebhooksIntegrationAPI.new body = DatadogAPIClient::V2::WebhooksOAuth2ClientCredentialsCreateRequest.new({ diff --git a/examples/v2/webhooks-integration/DeleteOAuth2ClientCredentials.rb b/examples/v2/webhooks-integration/DeleteOAuth2ClientCredentials.rb index 83c2578a6b27..305b6aeafdc3 100644 --- a/examples/v2/webhooks-integration/DeleteOAuth2ClientCredentials.rb +++ b/examples/v2/webhooks-integration/DeleteOAuth2ClientCredentials.rb @@ -1,5 +1,8 @@ # Delete an OAuth2 client credentials auth method returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WebhooksIntegrationAPI.new api_instance.delete_o_auth2_client_credentials("auth_method_id") diff --git a/examples/v2/webhooks-integration/GetAllAuthMethods.rb b/examples/v2/webhooks-integration/GetAllAuthMethods.rb index e9d8a4d56fe1..dd4fb3e752aa 100644 --- a/examples/v2/webhooks-integration/GetAllAuthMethods.rb +++ b/examples/v2/webhooks-integration/GetAllAuthMethods.rb @@ -1,5 +1,8 @@ # Get all auth methods returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WebhooksIntegrationAPI.new p api_instance.get_all_auth_methods() diff --git a/examples/v2/webhooks-integration/GetOAuth2ClientCredentials.rb b/examples/v2/webhooks-integration/GetOAuth2ClientCredentials.rb index 4592e2b6e606..c11218c3a0c7 100644 --- a/examples/v2/webhooks-integration/GetOAuth2ClientCredentials.rb +++ b/examples/v2/webhooks-integration/GetOAuth2ClientCredentials.rb @@ -1,5 +1,8 @@ # Get an OAuth2 client credentials auth method returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WebhooksIntegrationAPI.new p api_instance.get_o_auth2_client_credentials("auth_method_id") diff --git a/examples/v2/webhooks-integration/UpdateOAuth2ClientCredentials.rb b/examples/v2/webhooks-integration/UpdateOAuth2ClientCredentials.rb index c01ad48b5885..6bded5cc1b2b 100644 --- a/examples/v2/webhooks-integration/UpdateOAuth2ClientCredentials.rb +++ b/examples/v2/webhooks-integration/UpdateOAuth2ClientCredentials.rb @@ -1,6 +1,9 @@ # Update an OAuth2 client credentials auth method returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WebhooksIntegrationAPI.new body = DatadogAPIClient::V2::WebhooksOAuth2ClientCredentialsUpdateRequest.new({ diff --git a/examples/v2/widgets/CreateWidget.rb b/examples/v2/widgets/CreateWidget.rb index 5ba0ba9beadd..d3319e43685f 100644 --- a/examples/v2/widgets/CreateWidget.rb +++ b/examples/v2/widgets/CreateWidget.rb @@ -1,6 +1,9 @@ # Create a widget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WidgetsAPI.new body = DatadogAPIClient::V2::CreateOrUpdateWidgetRequest.new({ diff --git a/examples/v2/widgets/DeleteWidget.rb b/examples/v2/widgets/DeleteWidget.rb index 705052ca3082..d9732050fefa 100644 --- a/examples/v2/widgets/DeleteWidget.rb +++ b/examples/v2/widgets/DeleteWidget.rb @@ -1,5 +1,8 @@ # Delete a widget returns "No Content" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WidgetsAPI.new api_instance.delete_widget(WidgetExperienceType::CCM_REPORTS, "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/widgets/GetWidget.rb b/examples/v2/widgets/GetWidget.rb index 325cd38a6590..7084112f95f1 100644 --- a/examples/v2/widgets/GetWidget.rb +++ b/examples/v2/widgets/GetWidget.rb @@ -1,5 +1,8 @@ # Get a widget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WidgetsAPI.new p api_instance.get_widget(WidgetExperienceType::CCM_REPORTS, "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d") diff --git a/examples/v2/widgets/SearchWidgets.rb b/examples/v2/widgets/SearchWidgets.rb index 64fd833bd1c9..cd651afae241 100644 --- a/examples/v2/widgets/SearchWidgets.rb +++ b/examples/v2/widgets/SearchWidgets.rb @@ -1,5 +1,8 @@ # Search widgets returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WidgetsAPI.new p api_instance.search_widgets(WidgetExperienceType::CCM_REPORTS) diff --git a/examples/v2/widgets/UpdateWidget.rb b/examples/v2/widgets/UpdateWidget.rb index d4216c0990fb..d9e1f2e852d0 100644 --- a/examples/v2/widgets/UpdateWidget.rb +++ b/examples/v2/widgets/UpdateWidget.rb @@ -1,6 +1,9 @@ # Update a widget returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WidgetsAPI.new body = DatadogAPIClient::V2::CreateOrUpdateWidgetRequest.new({ diff --git a/examples/v2/workflow-automation/CancelWorkflowInstance.rb b/examples/v2/workflow-automation/CancelWorkflowInstance.rb index f03a0417a8bc..519c6260883b 100644 --- a/examples/v2/workflow-automation/CancelWorkflowInstance.rb +++ b/examples/v2/workflow-automation/CancelWorkflowInstance.rb @@ -1,5 +1,8 @@ # Cancel a workflow instance returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new p api_instance.cancel_workflow_instance("ccf73164-1998-4785-a7a3-8d06c7e5f558", "305a472b-71ab-4ce8-8f8d-75db635627b5") diff --git a/examples/v2/workflow-automation/CreateWorkflow.rb b/examples/v2/workflow-automation/CreateWorkflow.rb index 5dd56073c218..20cec8182024 100644 --- a/examples/v2/workflow-automation/CreateWorkflow.rb +++ b/examples/v2/workflow-automation/CreateWorkflow.rb @@ -1,6 +1,9 @@ # Create a Workflow returns "Successfully created a workflow." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new body = DatadogAPIClient::V2::CreateWorkflowRequest.new({ diff --git a/examples/v2/workflow-automation/CreateWorkflowInstance.rb b/examples/v2/workflow-automation/CreateWorkflowInstance.rb index 695e957c8e73..7fa0a1eb14d0 100644 --- a/examples/v2/workflow-automation/CreateWorkflowInstance.rb +++ b/examples/v2/workflow-automation/CreateWorkflowInstance.rb @@ -1,6 +1,9 @@ # Execute a workflow returns "Created" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new body = DatadogAPIClient::V2::WorkflowInstanceCreateRequest.new({ diff --git a/examples/v2/workflow-automation/DeleteWorkflow.rb b/examples/v2/workflow-automation/DeleteWorkflow.rb index ac70711da37f..9324824fd73f 100644 --- a/examples/v2/workflow-automation/DeleteWorkflow.rb +++ b/examples/v2/workflow-automation/DeleteWorkflow.rb @@ -1,6 +1,9 @@ # Delete an existing Workflow returns "Successfully deleted a workflow." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new # there is a valid "workflow" in the system diff --git a/examples/v2/workflow-automation/GetWorkflow.rb b/examples/v2/workflow-automation/GetWorkflow.rb index 441aa01ef1ea..856fdbc84a03 100644 --- a/examples/v2/workflow-automation/GetWorkflow.rb +++ b/examples/v2/workflow-automation/GetWorkflow.rb @@ -1,6 +1,9 @@ # Get an existing Workflow returns "Successfully got a workflow." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new # there is a valid "workflow" in the system diff --git a/examples/v2/workflow-automation/GetWorkflowInstance.rb b/examples/v2/workflow-automation/GetWorkflowInstance.rb index d4276c9bc3ba..78c540fb418d 100644 --- a/examples/v2/workflow-automation/GetWorkflowInstance.rb +++ b/examples/v2/workflow-automation/GetWorkflowInstance.rb @@ -1,5 +1,8 @@ # Get a workflow instance returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new p api_instance.get_workflow_instance("ccf73164-1998-4785-a7a3-8d06c7e5f558", "305a472b-71ab-4ce8-8f8d-75db635627b5") diff --git a/examples/v2/workflow-automation/ListWorkflowInstances.rb b/examples/v2/workflow-automation/ListWorkflowInstances.rb index 9b72a7ffe335..8ca2b59bd7e7 100644 --- a/examples/v2/workflow-automation/ListWorkflowInstances.rb +++ b/examples/v2/workflow-automation/ListWorkflowInstances.rb @@ -1,5 +1,8 @@ # List workflow instances returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new p api_instance.list_workflow_instances("ccf73164-1998-4785-a7a3-8d06c7e5f558") diff --git a/examples/v2/workflow-automation/ListWorkflows.rb b/examples/v2/workflow-automation/ListWorkflows.rb index 08c104e576c8..5956ea9bb9a5 100644 --- a/examples/v2/workflow-automation/ListWorkflows.rb +++ b/examples/v2/workflow-automation/ListWorkflows.rb @@ -1,5 +1,8 @@ # List workflows returns "OK" response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new p api_instance.list_workflows() diff --git a/examples/v2/workflow-automation/ListWorkflows_71111569.rb b/examples/v2/workflow-automation/ListWorkflows_71111569.rb index 5dfb9ee97a3f..5e9ed14fd940 100644 --- a/examples/v2/workflow-automation/ListWorkflows_71111569.rb +++ b/examples/v2/workflow-automation/ListWorkflows_71111569.rb @@ -1,6 +1,9 @@ # List workflows returns "OK" response with pagination require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new opts = { filter_query: "Example-Workflow-Automation", diff --git a/examples/v2/workflow-automation/UpdateWorkflow.rb b/examples/v2/workflow-automation/UpdateWorkflow.rb index c8e8041f6eb6..00a1329c13f4 100644 --- a/examples/v2/workflow-automation/UpdateWorkflow.rb +++ b/examples/v2/workflow-automation/UpdateWorkflow.rb @@ -1,6 +1,9 @@ # Update an existing Workflow returns "Successfully updated a workflow." response require "datadog_api_client" +DatadogAPIClient.configure do |config| + config.access_token = ENV["DD_BEARER_TOKEN"] +end api_instance = DatadogAPIClient::V2::WorkflowAutomationAPI.new # there is a valid "workflow" in the system diff --git a/lib/datadog_api_client/v1/api/aws_integration_api.rb b/lib/datadog_api_client/v1/api/aws_integration_api.rb index c16cc8df53a3..9a28b8893e28 100644 --- a/lib/datadog_api_client/v1/api/aws_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_integration_api.rb @@ -76,7 +76,7 @@ def create_aws_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_account, @@ -146,7 +146,7 @@ def create_aws_event_bridge_source_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_event_bridge_source, @@ -216,7 +216,7 @@ def create_aws_tag_filter_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_tag_filter, @@ -286,7 +286,7 @@ def create_new_aws_external_id_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_new_aws_external_id, @@ -356,7 +356,7 @@ def delete_aws_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_account, @@ -426,7 +426,7 @@ def delete_aws_event_bridge_source_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_event_bridge_source, @@ -496,7 +496,7 @@ def delete_aws_tag_filter_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_tag_filter, @@ -559,7 +559,7 @@ def list_available_aws_namespaces_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_available_aws_namespaces, @@ -628,7 +628,7 @@ def list_aws_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_accounts, @@ -691,7 +691,7 @@ def list_aws_event_bridge_sources_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_event_bridge_sources, @@ -760,7 +760,7 @@ def list_aws_tag_filters_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'AWSTagFilterListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_tag_filters, @@ -836,7 +836,7 @@ def update_aws_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_aws_account, diff --git a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb index d07e2ff07367..4a53f32b3084 100644 --- a/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb @@ -80,7 +80,7 @@ def check_aws_logs_lambda_async_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSLogsAsyncResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :check_aws_logs_lambda_async, @@ -159,7 +159,7 @@ def check_aws_logs_services_async_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSLogsAsyncResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :check_aws_logs_services_async, @@ -229,7 +229,7 @@ def create_aws_lambda_arn_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_lambda_arn, @@ -299,7 +299,7 @@ def delete_aws_lambda_arn_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_lambda_arn, @@ -369,7 +369,7 @@ def enable_aws_log_services_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :enable_aws_log_services, @@ -432,7 +432,7 @@ def list_aws_logs_integrations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_logs_integrations, @@ -495,7 +495,7 @@ def list_aws_logs_services_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_logs_services, diff --git a/lib/datadog_api_client/v1/api/azure_integration_api.rb b/lib/datadog_api_client/v1/api/azure_integration_api.rb index 778189a80e41..da9377fd5006 100644 --- a/lib/datadog_api_client/v1/api/azure_integration_api.rb +++ b/lib/datadog_api_client/v1/api/azure_integration_api.rb @@ -76,7 +76,7 @@ def create_azure_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_azure_integration, @@ -143,7 +143,7 @@ def delete_azure_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_azure_integration, @@ -203,7 +203,7 @@ def list_azure_integration_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_azure_integration, @@ -270,7 +270,7 @@ def update_azure_host_filters_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_azure_host_filters, @@ -339,7 +339,7 @@ def update_azure_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_azure_integration, diff --git a/lib/datadog_api_client/v1/api/gcp_integration_api.rb b/lib/datadog_api_client/v1/api/gcp_integration_api.rb index 1d4a03678335..066afcd3dff4 100644 --- a/lib/datadog_api_client/v1/api/gcp_integration_api.rb +++ b/lib/datadog_api_client/v1/api/gcp_integration_api.rb @@ -73,7 +73,7 @@ def create_gcp_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_gcp_integration, @@ -143,7 +143,7 @@ def delete_gcp_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_gcp_integration, @@ -206,7 +206,7 @@ def list_gcp_integration_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_gcp_integration, @@ -279,7 +279,7 @@ def update_gcp_integration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'Object' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_gcp_integration, diff --git a/lib/datadog_api_client/v1/api/hosts_api.rb b/lib/datadog_api_client/v1/api/hosts_api.rb index 73f655c97f34..ba5c0d362d75 100644 --- a/lib/datadog_api_client/v1/api/hosts_api.rb +++ b/lib/datadog_api_client/v1/api/hosts_api.rb @@ -219,7 +219,7 @@ def mute_host_with_http_info(host_name, body, opts = {}) return_type = opts[:debug_return_type] || 'HostMuteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :mute_host, @@ -284,7 +284,7 @@ def unmute_host_with_http_info(host_name, opts = {}) return_type = opts[:debug_return_type] || 'HostMuteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unmute_host, diff --git a/lib/datadog_api_client/v1/api/key_management_api.rb b/lib/datadog_api_client/v1/api/key_management_api.rb index f4ab1a4a23e7..78bee5d56663 100644 --- a/lib/datadog_api_client/v1/api/key_management_api.rb +++ b/lib/datadog_api_client/v1/api/key_management_api.rb @@ -72,7 +72,7 @@ def create_api_key_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ApiKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_api_key, @@ -142,7 +142,7 @@ def create_application_key_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_application_key, @@ -209,7 +209,7 @@ def delete_api_key_with_http_info(key, opts = {}) return_type = opts[:debug_return_type] || 'ApiKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_api_key, @@ -277,7 +277,7 @@ def delete_application_key_with_http_info(key, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_application_key, @@ -344,7 +344,7 @@ def get_api_key_with_http_info(key, opts = {}) return_type = opts[:debug_return_type] || 'ApiKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_api_key, @@ -412,7 +412,7 @@ def get_application_key_with_http_info(key, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_application_key, @@ -474,7 +474,7 @@ def list_api_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ApiKeyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_api_keys, @@ -537,7 +537,7 @@ def list_application_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_application_keys, @@ -611,7 +611,7 @@ def update_api_key_with_http_info(key, body, opts = {}) return_type = opts[:debug_return_type] || 'ApiKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_api_key, @@ -686,7 +686,7 @@ def update_application_key_with_http_info(key, body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_application_key, diff --git a/lib/datadog_api_client/v1/api/logs_indexes_api.rb b/lib/datadog_api_client/v1/api/logs_indexes_api.rb index 721f8197cf33..2ecdbd4a46d2 100644 --- a/lib/datadog_api_client/v1/api/logs_indexes_api.rb +++ b/lib/datadog_api_client/v1/api/logs_indexes_api.rb @@ -70,7 +70,7 @@ def create_logs_index_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsIndex' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_logs_index, @@ -136,7 +136,7 @@ def delete_logs_index_with_http_info(name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_logs_index, @@ -201,7 +201,7 @@ def get_logs_index_with_http_info(name, opts = {}) return_type = opts[:debug_return_type] || 'LogsIndex' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_index, @@ -261,7 +261,7 @@ def get_logs_index_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsIndexesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_index_order, @@ -322,7 +322,7 @@ def list_log_indexes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsIndexListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_log_indexes, @@ -398,7 +398,7 @@ def update_logs_index_with_http_info(name, body, opts = {}) return_type = opts[:debug_return_type] || 'LogsIndex' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_index, @@ -466,7 +466,7 @@ def update_logs_index_order_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsIndexesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_index_order, diff --git a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb index 94d4e35f2698..6783bd7cc435 100644 --- a/lib/datadog_api_client/v1/api/logs_pipelines_api.rb +++ b/lib/datadog_api_client/v1/api/logs_pipelines_api.rb @@ -70,7 +70,7 @@ def create_logs_pipeline_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_logs_pipeline, @@ -136,7 +136,7 @@ def delete_logs_pipeline_with_http_info(pipeline_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_logs_pipeline, @@ -202,7 +202,7 @@ def get_logs_pipeline_with_http_info(pipeline_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_pipeline, @@ -263,7 +263,7 @@ def get_logs_pipeline_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsPipelinesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_pipeline_order, @@ -324,7 +324,7 @@ def list_logs_pipelines_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_pipelines, @@ -399,7 +399,7 @@ def update_logs_pipeline_with_http_info(pipeline_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LogsPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_pipeline, @@ -470,7 +470,7 @@ def update_logs_pipeline_order_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsPipelinesOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_pipeline_order, diff --git a/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 98d2db966cc8..0a849d6a8cfd 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -517,7 +517,7 @@ def update_metric_metadata_with_http_info(metric_name, body, opts = {}) return_type = opts[:debug_return_type] || 'MetricMetadata' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_metric_metadata, diff --git a/lib/datadog_api_client/v1/api/notebooks_api.rb b/lib/datadog_api_client/v1/api/notebooks_api.rb index c3eec6af87e3..9a5a70bbb7fe 100644 --- a/lib/datadog_api_client/v1/api/notebooks_api.rb +++ b/lib/datadog_api_client/v1/api/notebooks_api.rb @@ -70,7 +70,7 @@ def create_notebook_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'NotebookResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_notebook, @@ -135,7 +135,7 @@ def delete_notebook_with_http_info(notebook_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_notebook, @@ -200,7 +200,7 @@ def get_notebook_with_http_info(notebook_id, opts = {}) return_type = opts[:debug_return_type] || 'NotebookResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_notebook, @@ -281,7 +281,7 @@ def list_notebooks_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NotebooksResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_notebooks, @@ -374,7 +374,7 @@ def update_notebook_with_http_info(notebook_id, body, opts = {}) return_type = opts[:debug_return_type] || 'NotebookResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_notebook, diff --git a/lib/datadog_api_client/v1/api/organizations_api.rb b/lib/datadog_api_client/v1/api/organizations_api.rb index 92f6b0f62754..4628e6fa7165 100644 --- a/lib/datadog_api_client/v1/api/organizations_api.rb +++ b/lib/datadog_api_client/v1/api/organizations_api.rb @@ -79,7 +79,7 @@ def create_child_org_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OrganizationCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_child_org, @@ -144,7 +144,7 @@ def downgrade_org_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'OrgDowngradedResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :downgrade_org, @@ -209,7 +209,7 @@ def get_org_with_http_info(public_id, opts = {}) return_type = opts[:debug_return_type] || 'OrganizationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org, @@ -269,7 +269,7 @@ def list_orgs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OrganizationListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_orgs, @@ -341,7 +341,7 @@ def update_org_with_http_info(public_id, body, opts = {}) return_type = opts[:debug_return_type] || 'OrganizationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org, @@ -419,7 +419,7 @@ def upload_idp_for_org_with_http_info(public_id, idp_file, opts = {}) return_type = opts[:debug_return_type] || 'IdpResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upload_idp_for_org, diff --git a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb index 142102b31f18..edbb860b5fdc 100644 --- a/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb +++ b/lib/datadog_api_client/v1/api/pager_duty_integration_api.rb @@ -70,7 +70,7 @@ def create_pager_duty_integration_service_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'PagerDutyServiceName' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_pager_duty_integration_service, @@ -135,7 +135,7 @@ def delete_pager_duty_integration_service_with_http_info(service_name, opts = {} return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_pager_duty_integration_service, @@ -200,7 +200,7 @@ def get_pager_duty_integration_service_with_http_info(service_name, opts = {}) return_type = opts[:debug_return_type] || 'PagerDutyServiceName' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_pager_duty_integration_service, @@ -272,7 +272,7 @@ def update_pager_duty_integration_service_with_http_info(service_name, body, opt return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_pager_duty_integration_service, diff --git a/lib/datadog_api_client/v1/api/security_monitoring_api.rb b/lib/datadog_api_client/v1/api/security_monitoring_api.rb index cebe75c96016..a88d2987f34e 100644 --- a/lib/datadog_api_client/v1/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v1/api/security_monitoring_api.rb @@ -75,7 +75,7 @@ def add_security_monitoring_signal_to_incident_with_http_info(signal_id, body, o return_type = opts[:debug_return_type] || 'SuccessfulSignalUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_security_monitoring_signal_to_incident, @@ -150,7 +150,7 @@ def edit_security_monitoring_signal_assignee_with_http_info(signal_id, body, opt return_type = opts[:debug_return_type] || 'SuccessfulSignalUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :edit_security_monitoring_signal_assignee, @@ -225,7 +225,7 @@ def edit_security_monitoring_signal_state_with_http_info(signal_id, body, opts = return_type = opts[:debug_return_type] || 'SuccessfulSignalUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :edit_security_monitoring_signal_state, diff --git a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb index eaac1f77baab..5d09ff0b13ce 100644 --- a/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb +++ b/lib/datadog_api_client/v1/api/service_level_objective_corrections_api.rb @@ -136,7 +136,7 @@ def delete_slo_correction_with_http_info(slo_correction_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_slo_correction, @@ -201,7 +201,7 @@ def get_slo_correction_with_http_info(slo_correction_id, opts = {}) return_type = opts[:debug_return_type] || 'SLOCorrectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slo_correction, @@ -358,7 +358,7 @@ def update_slo_correction_with_http_info(slo_correction_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SLOCorrectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_slo_correction, diff --git a/lib/datadog_api_client/v1/api/slack_integration_api.rb b/lib/datadog_api_client/v1/api/slack_integration_api.rb index d404affe7046..16730f5033c6 100644 --- a/lib/datadog_api_client/v1/api/slack_integration_api.rb +++ b/lib/datadog_api_client/v1/api/slack_integration_api.rb @@ -75,7 +75,7 @@ def create_slack_integration_channel_with_http_info(account_name, body, opts = { return_type = opts[:debug_return_type] || 'SlackIntegrationChannel' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_slack_integration_channel, @@ -145,7 +145,7 @@ def get_slack_integration_channel_with_http_info(account_name, channel_name, opt return_type = opts[:debug_return_type] || 'SlackIntegrationChannel' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slack_integration_channel, @@ -210,7 +210,7 @@ def get_slack_integration_channels_with_http_info(account_name, opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_slack_integration_channels, @@ -280,7 +280,7 @@ def remove_slack_integration_channel_with_http_info(account_name, channel_name, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_slack_integration_channel, @@ -357,7 +357,7 @@ def update_slack_integration_channel_with_http_info(account_name, channel_name, return_type = opts[:debug_return_type] || 'SlackIntegrationChannel' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_slack_integration_channel, diff --git a/lib/datadog_api_client/v1/api/synthetics_api.rb b/lib/datadog_api_client/v1/api/synthetics_api.rb index 7df81407c910..abb8a6cc88d2 100644 --- a/lib/datadog_api_client/v1/api/synthetics_api.rb +++ b/lib/datadog_api_client/v1/api/synthetics_api.rb @@ -1411,7 +1411,7 @@ def get_synthetics_default_locations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_synthetics_default_locations, diff --git a/lib/datadog_api_client/v1/api/tags_api.rb b/lib/datadog_api_client/v1/api/tags_api.rb index a789ff0794bf..a697012ec820 100644 --- a/lib/datadog_api_client/v1/api/tags_api.rb +++ b/lib/datadog_api_client/v1/api/tags_api.rb @@ -78,7 +78,7 @@ def create_host_tags_with_http_info(host_name, body, opts = {}) return_type = opts[:debug_return_type] || 'HostTags' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_host_tags, @@ -146,7 +146,7 @@ def delete_host_tags_with_http_info(host_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_host_tags, @@ -213,7 +213,7 @@ def get_host_tags_with_http_info(host_name, opts = {}) return_type = opts[:debug_return_type] || 'HostTags' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_host_tags, @@ -350,7 +350,7 @@ def update_host_tags_with_http_info(host_name, body, opts = {}) return_type = opts[:debug_return_type] || 'HostTags' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_host_tags, diff --git a/lib/datadog_api_client/v1/api/usage_metering_api.rb b/lib/datadog_api_client/v1/api/usage_metering_api.rb index 507650eecc68..91f9e9a1cf1c 100644 --- a/lib/datadog_api_client/v1/api/usage_metering_api.rb +++ b/lib/datadog_api_client/v1/api/usage_metering_api.rb @@ -84,7 +84,7 @@ def get_daily_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_daily_custom_reports, @@ -408,7 +408,7 @@ def get_monthly_custom_reports_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UsageCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_monthly_custom_reports, @@ -589,7 +589,7 @@ def get_specified_daily_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_daily_custom_reports, @@ -659,7 +659,7 @@ def get_specified_monthly_custom_reports_with_http_info(report_id, opts = {}) return_type = opts[:debug_return_type] || 'UsageSpecifiedCustomReportsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_specified_monthly_custom_reports, diff --git a/lib/datadog_api_client/v1/api/users_api.rb b/lib/datadog_api_client/v1/api/users_api.rb index 027b355ace15..aad39f5f88da 100644 --- a/lib/datadog_api_client/v1/api/users_api.rb +++ b/lib/datadog_api_client/v1/api/users_api.rb @@ -73,7 +73,7 @@ def create_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_user, @@ -141,7 +141,7 @@ def disable_user_with_http_info(user_handle, opts = {}) return_type = opts[:debug_return_type] || 'UserDisableResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :disable_user, @@ -206,7 +206,7 @@ def get_user_with_http_info(user_handle, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_user, @@ -340,7 +340,7 @@ def update_user_with_http_info(user_handle, body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_user, diff --git a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb index e59e05e243cf..01d1c6962f1b 100644 --- a/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v1/api/webhooks_integration_api.rb @@ -137,7 +137,7 @@ def create_webhooks_integration_custom_variable_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'WebhooksIntegrationCustomVariableResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_webhooks_integration_custom_variable, @@ -202,7 +202,7 @@ def delete_webhooks_integration_with_http_info(webhook_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_webhooks_integration, @@ -267,7 +267,7 @@ def delete_webhooks_integration_custom_variable_with_http_info(custom_variable_n return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_webhooks_integration_custom_variable, @@ -332,7 +332,7 @@ def get_webhooks_integration_with_http_info(webhook_name, opts = {}) return_type = opts[:debug_return_type] || 'WebhooksIntegration' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_webhooks_integration, @@ -400,7 +400,7 @@ def get_webhooks_integration_custom_variable_with_http_info(custom_variable_name return_type = opts[:debug_return_type] || 'WebhooksIntegrationCustomVariableResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_webhooks_integration_custom_variable, @@ -472,7 +472,7 @@ def update_webhooks_integration_with_http_info(webhook_name, body, opts = {}) return_type = opts[:debug_return_type] || 'WebhooksIntegration' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_webhooks_integration, @@ -544,7 +544,7 @@ def update_webhooks_integration_custom_variable_with_http_info(custom_variable_n return_type = opts[:debug_return_type] || 'WebhooksIntegrationCustomVariableResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_webhooks_integration_custom_variable, diff --git a/lib/datadog_api_client/v2/api/action_connection_api.rb b/lib/datadog_api_client/v2/api/action_connection_api.rb index 8daf140808bc..02068f29182e 100644 --- a/lib/datadog_api_client/v2/api/action_connection_api.rb +++ b/lib/datadog_api_client/v2/api/action_connection_api.rb @@ -70,7 +70,7 @@ def create_action_connection_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CreateActionConnectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_action_connection, @@ -135,7 +135,7 @@ def delete_action_connection_with_http_info(connection_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_action_connection, @@ -200,7 +200,7 @@ def get_action_connection_with_http_info(connection_id, opts = {}) return_type = opts[:debug_return_type] || 'GetActionConnectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_action_connection, @@ -265,7 +265,7 @@ def get_app_key_registration_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] || 'GetAppKeyRegistrationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_app_key_registration, @@ -329,7 +329,7 @@ def list_app_key_registrations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListAppKeyRegistrationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_app_key_registrations, @@ -394,7 +394,7 @@ def register_app_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] || 'RegisterAppKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :register_app_key, @@ -459,7 +459,7 @@ def unregister_app_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unregister_app_key, @@ -531,7 +531,7 @@ def update_action_connection_with_http_info(connection_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UpdateActionConnectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_action_connection, diff --git a/lib/datadog_api_client/v2/api/actions_datastores_api.rb b/lib/datadog_api_client/v2/api/actions_datastores_api.rb index 48af2540e4e4..2cdfe2ef9cf7 100644 --- a/lib/datadog_api_client/v2/api/actions_datastores_api.rb +++ b/lib/datadog_api_client/v2/api/actions_datastores_api.rb @@ -75,7 +75,7 @@ def bulk_delete_datastore_items_with_http_info(datastore_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DeleteAppsDatastoreItemResponseArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :bulk_delete_datastore_items, @@ -147,7 +147,7 @@ def bulk_write_datastore_items_with_http_info(datastore_id, body, opts = {}) return_type = opts[:debug_return_type] || 'PutAppsDatastoreItemResponseArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :bulk_write_datastore_items, @@ -214,7 +214,7 @@ def create_datastore_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CreateAppsDatastoreResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_datastore, @@ -279,7 +279,7 @@ def delete_datastore_with_http_info(datastore_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_datastore, @@ -351,7 +351,7 @@ def delete_datastore_item_with_http_info(datastore_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DeleteAppsDatastoreItemResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_datastore_item, @@ -416,7 +416,7 @@ def get_datastore_with_http_info(datastore_id, opts = {}) return_type = opts[:debug_return_type] || 'Datastore' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_datastore, @@ -500,7 +500,7 @@ def list_datastore_items_with_http_info(datastore_id, opts = {}) return_type = opts[:debug_return_type] || 'ItemApiPayloadArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_datastore_items, @@ -560,7 +560,7 @@ def list_datastores_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DatastoreArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_datastores, @@ -632,7 +632,7 @@ def update_datastore_with_http_info(datastore_id, body, opts = {}) return_type = opts[:debug_return_type] || 'Datastore' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_datastore, @@ -704,7 +704,7 @@ def update_datastore_item_with_http_info(datastore_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ItemApiPayload' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_datastore_item, diff --git a/lib/datadog_api_client/v2/api/agent_observability_api.rb b/lib/datadog_api_client/v2/api/agent_observability_api.rb index f4a6a1da5629..08eabd51ab9e 100644 --- a/lib/datadog_api_client/v2/api/agent_observability_api.rb +++ b/lib/datadog_api_client/v2/api/agent_observability_api.rb @@ -79,7 +79,7 @@ def aggregate_llm_obs_experimentation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentationAnalyticsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :aggregate_llm_obs_experimentation, @@ -162,7 +162,7 @@ def batch_update_llm_obs_dataset_with_http_info(project_id, dataset_id, body, op return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsMutationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :batch_update_llm_obs_dataset, @@ -245,7 +245,7 @@ def clone_llm_obs_dataset_with_http_info(project_id, dataset_id, body, opts = {} return_type = opts[:debug_return_type] || 'LLMObsDatasetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :clone_llm_obs_dataset, @@ -322,7 +322,7 @@ def create_llm_obs_annotation_queue_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueueResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_annotation_queue, @@ -409,7 +409,7 @@ def create_llm_obs_annotation_queue_interactions_with_http_info(queue_id, body, return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueueInteractionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_annotation_queue_interactions, @@ -487,7 +487,7 @@ def create_llm_obs_dataset_with_http_info(project_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsDatasetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_dataset, @@ -570,7 +570,7 @@ def create_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsMutationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_dataset_records, @@ -643,7 +643,7 @@ def create_llm_obs_experiment_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_experiment, @@ -721,7 +721,7 @@ def create_llm_obs_experiment_events_with_http_info(experiment_id, body, opts = return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_experiment_events, @@ -809,7 +809,7 @@ def create_llm_obs_integration_inference_with_http_info(integration, account_id, return_type = opts[:debug_return_type] || 'LLMObsIntegrationInferenceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_integration_inference, @@ -882,7 +882,7 @@ def create_llm_obs_project_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsProjectResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_project, @@ -957,7 +957,7 @@ def create_llm_obs_prompt_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsCreatePromptResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_prompt, @@ -1037,7 +1037,7 @@ def create_llm_obs_prompt_version_with_http_info(prompt_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptVersionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_llm_obs_prompt_version, @@ -1108,7 +1108,7 @@ def delete_llm_obs_annotation_queue_with_http_info(queue_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_annotation_queue, @@ -1186,7 +1186,7 @@ def delete_llm_obs_annotation_queue_interactions_with_http_info(queue_id, body, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_annotation_queue_interactions, @@ -1264,7 +1264,7 @@ def delete_llm_obs_annotations_with_http_info(queue_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsDeleteAnnotationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_annotations, @@ -1335,7 +1335,7 @@ def delete_llm_obs_custom_eval_config_with_http_info(eval_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_custom_eval_config, @@ -1418,7 +1418,7 @@ def delete_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_dataset_records, @@ -1496,7 +1496,7 @@ def delete_llm_obs_datasets_with_http_info(project_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_datasets, @@ -1569,7 +1569,7 @@ def delete_llm_obs_experiments_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_experiments, @@ -1640,7 +1640,7 @@ def delete_llm_obs_patterns_config_with_http_info(config_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_patterns_config, @@ -1713,7 +1713,7 @@ def delete_llm_obs_projects_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_projects, @@ -1784,7 +1784,7 @@ def delete_llm_obs_prompt_with_http_info(prompt_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsDeletedPromptResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_llm_obs_prompt, @@ -1871,7 +1871,7 @@ def export_llm_obs_dataset_with_http_info(project_id, dataset_id, opts = {}) return_type = opts[:debug_return_type] || 'String' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :export_llm_obs_dataset, @@ -1957,7 +1957,7 @@ def get_llm_obs_annotated_interaction_with_http_info(queue_id, interaction_id, o return_type = opts[:debug_return_type] || 'LLMObsAnnotatedInteractionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_annotated_interaction, @@ -2049,7 +2049,7 @@ def get_llm_obs_annotated_interactions_with_http_info(queue_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsAnnotatedInteractionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_annotated_interactions, @@ -2138,7 +2138,7 @@ def get_llm_obs_annotated_interactions_by_trace_i_ds_with_http_info(content_ids, return_type = opts[:debug_return_type] || 'LLMObsAnnotatedInteractionsByTraceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_annotated_interactions_by_trace_i_ds, @@ -2210,7 +2210,7 @@ def get_llm_obs_annotation_queue_label_schema_with_http_info(queue_id, opts = {} return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueueLabelSchemaResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_annotation_queue_label_schema, @@ -2281,7 +2281,7 @@ def get_llm_obs_custom_eval_config_with_http_info(eval_name, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsCustomEvalConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_custom_eval_config, @@ -2357,7 +2357,7 @@ def get_llm_obs_dataset_draft_state_with_http_info(project_id, dataset_id, opts return_type = opts[:debug_return_type] || 'LLMObsDatasetDraftStateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_dataset_draft_state, @@ -2423,7 +2423,7 @@ def get_llm_obs_patterns_config_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_patterns_config, @@ -2496,7 +2496,7 @@ def get_llm_obs_patterns_run_status_with_http_info(config_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsRunStatusResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_patterns_run_status, @@ -2569,7 +2569,7 @@ def get_llm_obs_prompt_with_http_info(prompt_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptSDKResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_prompt, @@ -2648,7 +2648,7 @@ def get_llm_obs_prompt_version_with_http_info(prompt_id, version, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptVersionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_llm_obs_prompt_version, @@ -2719,7 +2719,7 @@ def list_llm_obs_annotation_queues_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueuesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_annotation_queues, @@ -2786,7 +2786,7 @@ def list_llm_obs_custom_eval_configs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsCustomEvalConfigListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_custom_eval_configs, @@ -2868,7 +2868,7 @@ def list_llm_obs_dataset_records_with_http_info(project_id, dataset_id, opts = { return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_dataset_records, @@ -2947,7 +2947,7 @@ def list_llm_obs_datasets_with_http_info(project_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsDatasetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_datasets, @@ -3023,7 +3023,7 @@ def list_llm_obs_dataset_versions_with_http_info(project_id, dataset_id, opts = return_type = opts[:debug_return_type] || 'LLMObsDatasetVersionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_dataset_versions, @@ -3098,7 +3098,7 @@ def list_llm_obs_experiment_events_with_http_info(experiment_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentEventsV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_experiment_events, @@ -3172,7 +3172,7 @@ def list_llm_obs_experiment_events_v1_with_http_info(experiment_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentSpansResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_experiment_events_v1, @@ -3246,7 +3246,7 @@ def list_llm_obs_experiment_events_v2_with_http_info(experiment_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentEventsV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_experiment_events_v2, @@ -3339,7 +3339,7 @@ def list_llm_obs_experiments_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_experiments, @@ -3415,7 +3415,7 @@ def list_llm_obs_integration_accounts_with_http_info(integration, opts = {}) return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_integration_accounts, @@ -3496,7 +3496,7 @@ def list_llm_obs_integration_models_with_http_info(integration, account_id, opts return_type = opts[:debug_return_type] || 'Array' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_integration_models, @@ -3573,7 +3573,7 @@ def list_llm_obs_patterns_clustered_points_with_http_info(topic_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsClusteredPointsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_patterns_clustered_points, @@ -3639,7 +3639,7 @@ def list_llm_obs_patterns_configs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsConfigsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_patterns_configs, @@ -3711,7 +3711,7 @@ def list_llm_obs_patterns_runs_with_http_info(config_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsRunsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_patterns_runs, @@ -3786,7 +3786,7 @@ def list_llm_obs_patterns_topics_with_http_info(config_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsTopicsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_patterns_topics, @@ -3864,7 +3864,7 @@ def list_llm_obs_patterns_topics_with_clustered_points_with_http_info(config_id, return_type = opts[:debug_return_type] || 'LLMObsPatternsTopicsWithClusteredPointsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_patterns_topics_with_clustered_points, @@ -3938,7 +3938,7 @@ def list_llm_obs_projects_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsProjectsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_projects, @@ -4006,7 +4006,7 @@ def list_llm_obs_prompts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_prompts, @@ -4077,7 +4077,7 @@ def list_llm_obs_prompt_versions_with_http_info(prompt_id, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptVersionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_prompt_versions, @@ -4167,7 +4167,7 @@ def list_llm_obs_spans_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LLMObsSpansResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_llm_obs_spans, @@ -4243,7 +4243,7 @@ def lock_llm_obs_dataset_draft_state_with_http_info(project_id, dataset_id, opts return_type = opts[:debug_return_type] || 'LLMObsDatasetDraftStateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :lock_llm_obs_dataset_draft_state, @@ -4326,7 +4326,7 @@ def restore_llm_obs_dataset_version_with_http_info(project_id, dataset_id, body, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :restore_llm_obs_dataset_version, @@ -4403,7 +4403,7 @@ def search_llm_obs_experimentation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentationSearchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_llm_obs_experimentation, @@ -4476,7 +4476,7 @@ def search_llm_obs_spans_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsSpansResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_llm_obs_spans, @@ -4552,7 +4552,7 @@ def simple_search_llm_obs_experimentation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentationSimpleSearchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :simple_search_llm_obs_experimentation, @@ -4625,7 +4625,7 @@ def trigger_llm_obs_patterns_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsTriggerResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_llm_obs_patterns, @@ -4701,7 +4701,7 @@ def unlock_llm_obs_dataset_draft_state_with_http_info(project_id, dataset_id, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unlock_llm_obs_dataset_draft_state, @@ -4781,7 +4781,7 @@ def update_llm_obs_annotation_queue_with_http_info(queue_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueueResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_annotation_queue, @@ -4862,7 +4862,7 @@ def update_llm_obs_annotation_queue_label_schema_with_http_info(queue_id, body, return_type = opts[:debug_return_type] || 'LLMObsAnnotationQueueLabelSchemaResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_annotation_queue_label_schema, @@ -4940,7 +4940,7 @@ def update_llm_obs_custom_eval_config_with_http_info(eval_name, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_custom_eval_config, @@ -5023,7 +5023,7 @@ def update_llm_obs_dataset_with_http_info(project_id, dataset_id, body, opts = { return_type = opts[:debug_return_type] || 'LLMObsDatasetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_dataset, @@ -5106,7 +5106,7 @@ def update_llm_obs_dataset_records_with_http_info(project_id, dataset_id, body, return_type = opts[:debug_return_type] || 'LLMObsDatasetRecordsMutationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_dataset_records, @@ -5184,7 +5184,7 @@ def update_llm_obs_experiment_with_http_info(experiment_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsExperimentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_experiment, @@ -5262,7 +5262,7 @@ def update_llm_obs_project_with_http_info(project_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsProjectResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_project, @@ -5340,7 +5340,7 @@ def update_llm_obs_prompt_with_http_info(prompt_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPromptResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_prompt, @@ -5426,7 +5426,7 @@ def update_llm_obs_prompt_version_with_http_info(prompt_id, version, body, opts return_type = opts[:debug_return_type] || 'LLMObsPromptVersionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_llm_obs_prompt_version, @@ -5520,7 +5520,7 @@ def upload_llm_obs_dataset_records_file_with_http_info(project_id, dataset_id, o return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upload_llm_obs_dataset_records_file, @@ -5603,7 +5603,7 @@ def upsert_llm_obs_annotations_with_http_info(queue_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsAnnotationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_llm_obs_annotations, @@ -5676,7 +5676,7 @@ def upsert_llm_obs_patterns_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LLMObsPatternsConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_llm_obs_patterns_config, diff --git a/lib/datadog_api_client/v2/api/annotations_api.rb b/lib/datadog_api_client/v2/api/annotations_api.rb index 8a27084bb11d..f7a724920097 100644 --- a/lib/datadog_api_client/v2/api/annotations_api.rb +++ b/lib/datadog_api_client/v2/api/annotations_api.rb @@ -78,7 +78,7 @@ def create_annotation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AnnotationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_annotation, @@ -150,7 +150,7 @@ def delete_annotation_with_http_info(annotation_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_annotation, @@ -235,7 +235,7 @@ def get_page_annotations_with_http_info(page_id, start_time, end_time, opts = {} return_type = opts[:debug_return_type] || 'PageAnnotationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_page_annotations, @@ -321,7 +321,7 @@ def list_annotations_with_http_info(page_id, start_time, end_time, opts = {}) return_type = opts[:debug_return_type] || 'AnnotationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_annotations, @@ -401,7 +401,7 @@ def update_annotation_with_http_info(annotation_id, body, opts = {}) return_type = opts[:debug_return_type] || 'AnnotationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_annotation, diff --git a/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb b/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb index 6c235d7b1fbf..64e32ba17a93 100644 --- a/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +++ b/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb @@ -73,7 +73,7 @@ def create_apm_retention_filter_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RetentionFilterCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_apm_retention_filter, @@ -140,7 +140,7 @@ def delete_apm_retention_filter_with_http_info(filter_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_apm_retention_filter, @@ -205,7 +205,7 @@ def get_apm_retention_filter_with_http_info(filter_id, opts = {}) return_type = opts[:debug_return_type] || 'RetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_apm_retention_filter, @@ -265,7 +265,7 @@ def list_apm_retention_filters_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RetentionFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_apm_retention_filters, @@ -332,7 +332,7 @@ def reorder_apm_retention_filters_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_apm_retention_filters, @@ -406,7 +406,7 @@ def update_apm_retention_filter_with_http_info(filter_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_apm_retention_filter, diff --git a/lib/datadog_api_client/v2/api/app_builder_api.rb b/lib/datadog_api_client/v2/api/app_builder_api.rb index 20826e05435f..f18bc9eb5457 100644 --- a/lib/datadog_api_client/v2/api/app_builder_api.rb +++ b/lib/datadog_api_client/v2/api/app_builder_api.rb @@ -70,7 +70,7 @@ def create_app_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CreateAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_app, @@ -142,7 +142,7 @@ def create_publish_request_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'PublishAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_publish_request, @@ -207,7 +207,7 @@ def delete_app_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'DeleteAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_app, @@ -274,7 +274,7 @@ def delete_apps_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DeleteAppsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_apps, @@ -341,7 +341,7 @@ def get_app_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'GetAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_app, @@ -406,7 +406,7 @@ def get_blueprint_with_http_info(blueprint_id, opts = {}) return_type = opts[:debug_return_type] || 'GetBlueprintResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_blueprint, @@ -471,7 +471,7 @@ def get_blueprints_by_integration_id_with_http_info(integration_id, opts = {}) return_type = opts[:debug_return_type] || 'GetBlueprintsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_blueprints_by_integration_id, @@ -536,7 +536,7 @@ def get_blueprints_by_slugs_with_http_info(slugs, opts = {}) return_type = opts[:debug_return_type] || 'GetBlueprintsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_blueprints_by_slugs, @@ -618,7 +618,7 @@ def list_apps_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListAppsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_apps, @@ -687,7 +687,7 @@ def list_app_versions_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'ListAppVersionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_app_versions, @@ -751,7 +751,7 @@ def list_blueprints_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListBlueprintsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_blueprints, @@ -811,7 +811,7 @@ def list_tags_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AppBuilderListTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tags, @@ -876,7 +876,7 @@ def publish_app_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'PublishAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :publish_app, @@ -947,7 +947,7 @@ def revert_app_with_http_info(app_id, version, opts = {}) return_type = opts[:debug_return_type] || 'UpdateAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :revert_app, @@ -1012,7 +1012,7 @@ def unpublish_app_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'UnpublishAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unpublish_app, @@ -1084,7 +1084,7 @@ def update_app_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UpdateAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_app, @@ -1156,7 +1156,7 @@ def update_app_favorite_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_app_favorite, @@ -1228,7 +1228,7 @@ def update_app_self_service_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_app_self_service, @@ -1300,7 +1300,7 @@ def update_app_tags_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_app_tags, @@ -1378,7 +1378,7 @@ def update_app_version_name_with_http_info(app_id, version, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_app_version_name, @@ -1450,7 +1450,7 @@ def update_protection_level_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UpdateAppResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_protection_level, diff --git a/lib/datadog_api_client/v2/api/application_security_api.rb b/lib/datadog_api_client/v2/api/application_security_api.rb index 16bb8f8e5317..36579e243d41 100644 --- a/lib/datadog_api_client/v2/api/application_security_api.rb +++ b/lib/datadog_api_client/v2/api/application_security_api.rb @@ -70,7 +70,7 @@ def create_application_security_waf_custom_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityWafCustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_application_security_waf_custom_rule, @@ -140,7 +140,7 @@ def create_application_security_waf_exclusion_filter_with_http_info(body, opts = return_type = opts[:debug_return_type] || 'ApplicationSecurityWafExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_application_security_waf_exclusion_filter, @@ -207,7 +207,7 @@ def create_application_security_waf_policy_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_application_security_waf_policy, @@ -272,7 +272,7 @@ def delete_application_security_waf_custom_rule_with_http_info(custom_rule_id, o return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_application_security_waf_custom_rule, @@ -337,7 +337,7 @@ def delete_application_security_waf_exclusion_filter_with_http_info(exclusion_fi return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_application_security_waf_exclusion_filter, @@ -402,7 +402,7 @@ def delete_application_security_waf_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_application_security_waf_policy, @@ -467,7 +467,7 @@ def get_application_security_waf_custom_rule_with_http_info(custom_rule_id, opts return_type = opts[:debug_return_type] || 'ApplicationSecurityWafCustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_application_security_waf_custom_rule, @@ -532,7 +532,7 @@ def get_application_security_waf_exclusion_filter_with_http_info(exclusion_filte return_type = opts[:debug_return_type] || 'ApplicationSecurityWafExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_application_security_waf_exclusion_filter, @@ -597,7 +597,7 @@ def get_application_security_waf_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_application_security_waf_policy, @@ -671,7 +671,7 @@ def get_asm_service_by_name_with_http_info(service_filter, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_asm_service_by_name, @@ -731,7 +731,7 @@ def list_application_security_waf_custom_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityWafCustomRuleListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_application_security_waf_custom_rules, @@ -791,7 +791,7 @@ def list_application_security_waf_exclusion_filters_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityWafExclusionFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_application_security_waf_exclusion_filters, @@ -851,7 +851,7 @@ def list_application_security_waf_policies_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ApplicationSecurityPolicyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_application_security_waf_policies, @@ -924,7 +924,7 @@ def update_application_security_waf_custom_rule_with_http_info(custom_rule_id, b return_type = opts[:debug_return_type] || 'ApplicationSecurityWafCustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_application_security_waf_custom_rule, @@ -997,7 +997,7 @@ def update_application_security_waf_exclusion_filter_with_http_info(exclusion_fi return_type = opts[:debug_return_type] || 'ApplicationSecurityWafExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_application_security_waf_exclusion_filter, @@ -1070,7 +1070,7 @@ def update_application_security_waf_policy_with_http_info(policy_id, body, opts return_type = opts[:debug_return_type] || 'ApplicationSecurityPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_application_security_waf_policy, diff --git a/lib/datadog_api_client/v2/api/audit_api.rb b/lib/datadog_api_client/v2/api/audit_api.rb index 0e45ffc915f4..4e9c5b15efdb 100644 --- a/lib/datadog_api_client/v2/api/audit_api.rb +++ b/lib/datadog_api_client/v2/api/audit_api.rb @@ -87,7 +87,7 @@ def list_audit_logs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AuditLogsEventsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_audit_logs, @@ -176,7 +176,7 @@ def search_audit_logs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AuditLogsEventsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_audit_logs, diff --git a/lib/datadog_api_client/v2/api/authn_mappings_api.rb b/lib/datadog_api_client/v2/api/authn_mappings_api.rb index 6f0e23821cff..1a8402f8bbfc 100644 --- a/lib/datadog_api_client/v2/api/authn_mappings_api.rb +++ b/lib/datadog_api_client/v2/api/authn_mappings_api.rb @@ -70,7 +70,7 @@ def create_authn_mapping_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AuthNMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_authn_mapping, @@ -135,7 +135,7 @@ def delete_authn_mapping_with_http_info(authn_mapping_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_authn_mapping, @@ -200,7 +200,7 @@ def get_authn_mapping_with_http_info(authn_mapping_id, opts = {}) return_type = opts[:debug_return_type] || 'AuthNMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_authn_mapping, @@ -278,7 +278,7 @@ def list_authn_mappings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AuthNMappingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_authn_mappings, @@ -350,7 +350,7 @@ def update_authn_mapping_with_http_info(authn_mapping_id, body, opts = {}) return_type = opts[:debug_return_type] || 'AuthNMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_authn_mapping, diff --git a/lib/datadog_api_client/v2/api/aws_integration_api.rb b/lib/datadog_api_client/v2/api/aws_integration_api.rb index 02a15f9149ac..fd1103ddb3d0 100644 --- a/lib/datadog_api_client/v2/api/aws_integration_api.rb +++ b/lib/datadog_api_client/v2/api/aws_integration_api.rb @@ -70,7 +70,7 @@ def create_aws_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_account, @@ -149,7 +149,7 @@ def create_aws_account_ccm_config_with_http_info(aws_account_config_id, body, op return_type = opts[:debug_return_type] || 'AWSCcmConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_account_ccm_config, @@ -216,7 +216,7 @@ def create_aws_event_bridge_source_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_event_bridge_source, @@ -276,7 +276,7 @@ def create_new_aws_external_id_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSNewExternalIDResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_new_aws_external_id, @@ -341,7 +341,7 @@ def delete_aws_account_with_http_info(aws_account_config_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_account, @@ -413,7 +413,7 @@ def delete_aws_account_ccm_config_with_http_info(aws_account_config_id, opts = { return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_account_ccm_config, @@ -480,7 +480,7 @@ def delete_aws_event_bridge_source_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_event_bridge_source, @@ -545,7 +545,7 @@ def get_aws_account_with_http_info(aws_account_config_id, opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_account, @@ -617,7 +617,7 @@ def get_aws_account_ccm_config_with_http_info(aws_account_config_id, opts = {}) return_type = opts[:debug_return_type] || 'AWSCcmConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_account_ccm_config, @@ -677,7 +677,7 @@ def get_aws_integration_iam_permissions_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSIntegrationIamPermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_integration_iam_permissions, @@ -737,7 +737,7 @@ def get_aws_integration_iam_permissions_resource_collection_with_http_info(opts return_type = opts[:debug_return_type] || 'AWSIntegrationIamPermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_integration_iam_permissions_resource_collection, @@ -797,7 +797,7 @@ def get_aws_integration_iam_permissions_standard_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSIntegrationIamPermissionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_integration_iam_permissions_standard, @@ -868,7 +868,7 @@ def get_aws_metric_name_filter_preview_with_http_info(aws_account_config_id, opt return_type = opts[:debug_return_type] || 'AWSMetricNameFilterPreviewResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_metric_name_filter_preview, @@ -930,7 +930,7 @@ def list_aws_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_accounts, @@ -990,7 +990,7 @@ def list_aws_event_bridge_sources_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSEventBridgeListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_event_bridge_sources, @@ -1050,7 +1050,7 @@ def list_aws_namespaces_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSNamespacesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_namespaces, @@ -1129,7 +1129,7 @@ def preview_aws_metric_name_filter_with_http_info(aws_account_config_id, body, o return_type = opts[:debug_return_type] || 'AWSMetricNameFilterPreviewResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :preview_aws_metric_name_filter, @@ -1201,7 +1201,7 @@ def update_aws_account_with_http_info(aws_account_config_id, body, opts = {}) return_type = opts[:debug_return_type] || 'AWSAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_aws_account, @@ -1280,7 +1280,7 @@ def update_aws_account_ccm_config_with_http_info(aws_account_config_id, body, op return_type = opts[:debug_return_type] || 'AWSCcmConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_aws_account_ccm_config, @@ -1354,7 +1354,7 @@ def validate_awsccm_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSCcmConfigValidationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_awsccm_config, diff --git a/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb b/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb index 48dbb2365c6c..1ae481a8fbe5 100644 --- a/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb +++ b/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb @@ -63,7 +63,7 @@ def list_aws_logs_services_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSLogsServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_logs_services, diff --git a/lib/datadog_api_client/v2/api/case_management_api.rb b/lib/datadog_api_client/v2/api/case_management_api.rb index f00c1d1fe6f7..a60c61a36ffb 100644 --- a/lib/datadog_api_client/v2/api/case_management_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_api.rb @@ -425,7 +425,7 @@ def comment_case_with_http_info(case_id, body, opts = {}) return_type = opts[:debug_return_type] || 'TimelineResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :comment_case, @@ -1326,7 +1326,7 @@ def delete_case_comment_with_http_info(case_id, cell_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_case_comment, diff --git a/lib/datadog_api_client/v2/api/case_management_attribute_api.rb b/lib/datadog_api_client/v2/api/case_management_attribute_api.rb index ff01ea691103..3b162eaa8414 100644 --- a/lib/datadog_api_client/v2/api/case_management_attribute_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_attribute_api.rb @@ -75,7 +75,7 @@ def create_custom_attribute_config_with_http_info(case_type_id, body, opts = {}) return_type = opts[:debug_return_type] || 'CustomAttributeConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_custom_attribute_config, @@ -145,7 +145,7 @@ def delete_custom_attribute_config_with_http_info(case_type_id, custom_attribute return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_custom_attribute_config, @@ -210,7 +210,7 @@ def get_all_custom_attribute_configs_by_case_type_with_http_info(case_type_id, o return_type = opts[:debug_return_type] || 'CustomAttributeConfigsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_all_custom_attribute_configs_by_case_type, @@ -270,7 +270,7 @@ def get_all_custom_attributes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CustomAttributeConfigsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_all_custom_attributes, diff --git a/lib/datadog_api_client/v2/api/case_management_type_api.rb b/lib/datadog_api_client/v2/api/case_management_type_api.rb index 712b6d99b1d7..7586ff9f2434 100644 --- a/lib/datadog_api_client/v2/api/case_management_type_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_type_api.rb @@ -70,7 +70,7 @@ def create_case_type_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CaseTypeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_case_type, @@ -135,7 +135,7 @@ def delete_case_type_with_http_info(case_type_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_case_type, @@ -195,7 +195,7 @@ def get_all_case_types_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CaseTypesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_all_case_types, diff --git a/lib/datadog_api_client/v2/api/cloud_authentication_api.rb b/lib/datadog_api_client/v2/api/cloud_authentication_api.rb index 477397facab7..4dfc4d67276f 100644 --- a/lib/datadog_api_client/v2/api/cloud_authentication_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_authentication_api.rb @@ -76,7 +76,7 @@ def create_aws_cloud_auth_persona_mapping_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AWSCloudAuthPersonaMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_aws_cloud_auth_persona_mapping, @@ -147,7 +147,7 @@ def delete_aws_cloud_auth_persona_mapping_with_http_info(persona_mapping_id, opt return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_aws_cloud_auth_persona_mapping, @@ -218,7 +218,7 @@ def get_aws_cloud_auth_persona_mapping_with_http_info(persona_mapping_id, opts = return_type = opts[:debug_return_type] || 'AWSCloudAuthPersonaMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_aws_cloud_auth_persona_mapping, @@ -284,7 +284,7 @@ def list_aws_cloud_auth_persona_mappings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AWSCloudAuthPersonaMappingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_aws_cloud_auth_persona_mappings, diff --git a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb index 01157b77e2ce..8c4085d8636a 100644 --- a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb @@ -423,7 +423,7 @@ def create_unit_cost_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UnitCostResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_unit_cost, @@ -488,7 +488,7 @@ def delete_budget_with_http_info(budget_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_budget, @@ -945,7 +945,7 @@ def delete_custom_forecast_with_http_info(budget_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_custom_forecast, @@ -1081,7 +1081,7 @@ def delete_unit_cost_with_http_info(unit_cost_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_unit_cost, @@ -1219,7 +1219,7 @@ def get_budget_with_http_info(budget_id, opts = {}) return_type = opts[:debug_return_type] || 'BudgetWithEntries' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_budget, @@ -2752,7 +2752,7 @@ def get_custom_forecast_with_http_info(budget_id, opts = {}) return_type = opts[:debug_return_type] || 'CustomForecastResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_custom_forecast, @@ -2888,7 +2888,7 @@ def get_unit_cost_with_http_info(unit_cost_id, opts = {}) return_type = opts[:debug_return_type] || 'UnitCostResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_unit_cost, @@ -2948,7 +2948,7 @@ def list_budgets_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'BudgetArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_budgets, @@ -4243,7 +4243,7 @@ def list_unit_costs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UnitCostsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_unit_costs, @@ -4983,7 +4983,7 @@ def update_unit_cost_with_http_info(unit_cost_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UnitCostResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_unit_cost, @@ -5117,7 +5117,7 @@ def upsert_budget_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'BudgetWithEntries' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_budget, @@ -5257,7 +5257,7 @@ def upsert_custom_forecast_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CustomForecastResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_custom_forecast, @@ -5324,7 +5324,7 @@ def validate_budget_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'BudgetValidationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_budget, diff --git a/lib/datadog_api_client/v2/api/cloudflare_integration_api.rb b/lib/datadog_api_client/v2/api/cloudflare_integration_api.rb index 999d1104df64..38747ba4af14 100644 --- a/lib/datadog_api_client/v2/api/cloudflare_integration_api.rb +++ b/lib/datadog_api_client/v2/api/cloudflare_integration_api.rb @@ -70,7 +70,7 @@ def create_cloudflare_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudflareAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_cloudflare_account, @@ -135,7 +135,7 @@ def delete_cloudflare_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_cloudflare_account, @@ -200,7 +200,7 @@ def get_cloudflare_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'CloudflareAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_cloudflare_account, @@ -260,7 +260,7 @@ def list_cloudflare_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CloudflareAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_cloudflare_accounts, @@ -332,7 +332,7 @@ def update_cloudflare_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'CloudflareAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_cloudflare_account, diff --git a/lib/datadog_api_client/v2/api/confluent_cloud_api.rb b/lib/datadog_api_client/v2/api/confluent_cloud_api.rb index a297c832d68c..045e66e70e0e 100644 --- a/lib/datadog_api_client/v2/api/confluent_cloud_api.rb +++ b/lib/datadog_api_client/v2/api/confluent_cloud_api.rb @@ -70,7 +70,7 @@ def create_confluent_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_confluent_account, @@ -142,7 +142,7 @@ def create_confluent_resource_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentResourceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_confluent_resource, @@ -207,7 +207,7 @@ def delete_confluent_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_confluent_account, @@ -277,7 +277,7 @@ def delete_confluent_resource_with_http_info(account_id, resource_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_confluent_resource, @@ -342,7 +342,7 @@ def get_confluent_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_confluent_account, @@ -412,7 +412,7 @@ def get_confluent_resource_with_http_info(account_id, resource_id, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentResourceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_confluent_resource, @@ -472,7 +472,7 @@ def list_confluent_account_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ConfluentAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_confluent_account, @@ -537,7 +537,7 @@ def list_confluent_resource_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentResourcesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_confluent_resource, @@ -609,7 +609,7 @@ def update_confluent_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ConfluentAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_confluent_account, @@ -686,7 +686,7 @@ def update_confluent_resource_with_http_info(account_id, resource_id, body, opts return_type = opts[:debug_return_type] || 'ConfluentResourceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_confluent_resource, diff --git a/lib/datadog_api_client/v2/api/csm_agents_api.rb b/lib/datadog_api_client/v2/api/csm_agents_api.rb index 92bafda01e88..004f71ab352c 100644 --- a/lib/datadog_api_client/v2/api/csm_agents_api.rb +++ b/lib/datadog_api_client/v2/api/csm_agents_api.rb @@ -87,7 +87,7 @@ def list_all_csm_agents_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmAgentsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_all_csm_agents, @@ -171,7 +171,7 @@ def list_all_csm_serverless_agents_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmAgentsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_all_csm_serverless_agents, diff --git a/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb b/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb index d1a90f7b079c..43d9452bcaac 100644 --- a/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb +++ b/lib/datadog_api_client/v2/api/csm_coverage_analysis_api.rb @@ -65,7 +65,7 @@ def get_csm_cloud_accounts_coverage_analysis_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmCloudAccountsCoverageAnalysisResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_cloud_accounts_coverage_analysis, @@ -127,7 +127,7 @@ def get_csm_hosts_and_containers_coverage_analysis_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmHostsAndContainersCoverageAnalysisResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_hosts_and_containers_coverage_analysis, @@ -189,7 +189,7 @@ def get_csm_serverless_coverage_analysis_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmServerlessCoverageAnalysisResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_serverless_coverage_analysis, diff --git a/lib/datadog_api_client/v2/api/csm_ownership_api.rb b/lib/datadog_api_client/v2/api/csm_ownership_api.rb index cc185cd58f6c..5fe0cdf19cf7 100644 --- a/lib/datadog_api_client/v2/api/csm_ownership_api.rb +++ b/lib/datadog_api_client/v2/api/csm_ownership_api.rb @@ -95,7 +95,7 @@ def create_ownership_feedback_with_http_info(resource_id, owner_type, body, opts return_type = opts[:debug_return_type] || 'OwnershipFeedbackResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_ownership_feedback, @@ -180,7 +180,7 @@ def get_ownership_evidence_with_http_info(resource_id, owner_type, opts = {}) return_type = opts[:debug_return_type] || 'OwnershipEvidenceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ownership_evidence, @@ -265,7 +265,7 @@ def get_ownership_inference_with_http_info(resource_id, owner_type, opts = {}) return_type = opts[:debug_return_type] || 'OwnershipInferenceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ownership_inference, @@ -331,7 +331,7 @@ def get_ownership_settings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OwnershipSettingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ownership_settings, @@ -397,7 +397,7 @@ def get_ownership_untagged_findings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OwnershipUntaggedFindingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ownership_untagged_findings, @@ -478,7 +478,7 @@ def list_ownership_history_with_http_info(resource_id, opts = {}) return_type = opts[:debug_return_type] || 'OwnershipHistoryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ownership_history, @@ -569,7 +569,7 @@ def list_ownership_history_by_owner_type_with_http_info(resource_id, owner_type, return_type = opts[:debug_return_type] || 'OwnershipHistoryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ownership_history_by_owner_type, @@ -640,7 +640,7 @@ def list_ownership_inferences_with_http_info(resource_id, opts = {}) return_type = opts[:debug_return_type] || 'OwnershipInferenceListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ownership_inferences, @@ -713,7 +713,7 @@ def post_ownership_settings_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OwnershipSettingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :post_ownership_settings, diff --git a/lib/datadog_api_client/v2/api/csm_settings_api.rb b/lib/datadog_api_client/v2/api/csm_settings_api.rb index 981379fa4930..8dcac51aa95e 100644 --- a/lib/datadog_api_client/v2/api/csm_settings_api.rb +++ b/lib/datadog_api_client/v2/api/csm_settings_api.rb @@ -79,7 +79,7 @@ def get_csm_agentless_host_facet_info_with_http_info(facet, opts = {}) return_type = opts[:debug_return_type] || 'CsmHostFacetInfoResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_agentless_host_facet_info, @@ -155,7 +155,7 @@ def get_csm_unified_host_facet_info_with_http_info(facet, opts = {}) return_type = opts[:debug_return_type] || 'CsmHostFacetInfoResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_unified_host_facet_info, @@ -221,7 +221,7 @@ def list_csm_agentless_host_facets_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmAgentlessHostFacetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_agentless_host_facets, @@ -305,7 +305,7 @@ def list_csm_agentless_hosts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmAgentlessHostsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_agentless_hosts, @@ -371,7 +371,7 @@ def list_csm_unified_host_facets_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmUnifiedHostFacetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_unified_host_facets, @@ -455,7 +455,7 @@ def list_csm_unified_hosts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CsmUnifiedHostsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_unified_hosts, diff --git a/lib/datadog_api_client/v2/api/csm_threats_api.rb b/lib/datadog_api_client/v2/api/csm_threats_api.rb index 40e76f63ae9b..be8b07c2a327 100644 --- a/lib/datadog_api_client/v2/api/csm_threats_api.rb +++ b/lib/datadog_api_client/v2/api/csm_threats_api.rb @@ -72,7 +72,7 @@ def create_cloud_workload_security_agent_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_cloud_workload_security_agent_rule, @@ -141,7 +141,7 @@ def create_csm_threats_agent_policy_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_csm_threats_agent_policy, @@ -210,7 +210,7 @@ def create_csm_threats_agent_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_csm_threats_agent_rule, @@ -277,7 +277,7 @@ def delete_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_cloud_workload_security_agent_rule, @@ -344,7 +344,7 @@ def delete_csm_threats_agent_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_csm_threats_agent_policy, @@ -413,7 +413,7 @@ def delete_csm_threats_agent_rule_with_http_info(agent_rule_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_csm_threats_agent_rule, @@ -477,7 +477,7 @@ def download_cloud_workload_policy_file_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'File' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :download_cloud_workload_policy_file, @@ -541,7 +541,7 @@ def download_csm_threats_policy_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'File' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :download_csm_threats_policy, @@ -608,7 +608,7 @@ def get_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, opts = return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_cloud_workload_security_agent_rule, @@ -675,7 +675,7 @@ def get_csm_threats_agent_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_threats_agent_policy, @@ -744,7 +744,7 @@ def get_csm_threats_agent_rule_with_http_info(agent_rule_id, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_csm_threats_agent_rule, @@ -806,7 +806,7 @@ def list_cloud_workload_security_agent_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_cloud_workload_security_agent_rules, @@ -868,7 +868,7 @@ def list_csm_threats_agent_policies_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPoliciesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_threats_agent_policies, @@ -932,7 +932,7 @@ def list_csm_threats_agent_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_csm_threats_agent_rules, @@ -1007,7 +1007,7 @@ def update_cloud_workload_security_agent_rule_with_http_info(agent_rule_id, body return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_cloud_workload_security_agent_rule, @@ -1082,7 +1082,7 @@ def update_csm_threats_agent_policy_with_http_info(policy_id, body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_csm_threats_agent_policy, @@ -1159,7 +1159,7 @@ def update_csm_threats_agent_rule_with_http_info(agent_rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'CloudWorkloadSecurityAgentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_csm_threats_agent_rule, diff --git a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb index 3c9136d76101..275e1775e081 100644 --- a/lib/datadog_api_client/v2/api/dashboard_lists_api.rb +++ b/lib/datadog_api_client/v2/api/dashboard_lists_api.rb @@ -75,7 +75,7 @@ def create_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { return_type = opts[:debug_return_type] || 'DashboardListAddItemsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_dashboard_list_items, @@ -147,7 +147,7 @@ def delete_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { return_type = opts[:debug_return_type] || 'DashboardListDeleteItemsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dashboard_list_items, @@ -284,7 +284,7 @@ def update_dashboard_list_items_with_http_info(dashboard_list_id, body, opts = { return_type = opts[:debug_return_type] || 'DashboardListUpdateItemsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_dashboard_list_items, diff --git a/lib/datadog_api_client/v2/api/data_deletion_api.rb b/lib/datadog_api_client/v2/api/data_deletion_api.rb index 3cff819bbe86..dc14dad77a40 100644 --- a/lib/datadog_api_client/v2/api/data_deletion_api.rb +++ b/lib/datadog_api_client/v2/api/data_deletion_api.rb @@ -68,7 +68,7 @@ def cancel_data_deletion_request_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'CancelDataDeletionResponseBody' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :cancel_data_deletion_request, @@ -140,7 +140,7 @@ def create_data_deletion_request_with_http_info(product, body, opts = {}) return_type = opts[:debug_return_type] || 'CreateDataDeletionResponseBody' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_data_deletion_request, @@ -216,7 +216,7 @@ def get_data_deletion_requests_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GetDataDeletionsResponseBody' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_data_deletion_requests, diff --git a/lib/datadog_api_client/v2/api/databricks_integration_api.rb b/lib/datadog_api_client/v2/api/databricks_integration_api.rb index 51005bff034e..deb7e457769f 100644 --- a/lib/datadog_api_client/v2/api/databricks_integration_api.rb +++ b/lib/datadog_api_client/v2/api/databricks_integration_api.rb @@ -76,7 +76,7 @@ def create_databricks_integration_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DatabricksIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_databricks_integration_account, @@ -147,7 +147,7 @@ def delete_databricks_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_databricks_integration_account, @@ -218,7 +218,7 @@ def get_databricks_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'DatabricksIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_databricks_integration_account, @@ -284,7 +284,7 @@ def list_databricks_integration_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DatabricksIntegrationAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_databricks_integration_accounts, @@ -362,7 +362,7 @@ def update_databricks_integration_account_with_http_info(account_id, body, opts return_type = opts[:debug_return_type] || 'DatabricksIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_databricks_integration_account, diff --git a/lib/datadog_api_client/v2/api/ddsql_api.rb b/lib/datadog_api_client/v2/api/ddsql_api.rb index 990ca327857d..fa1fc11ce73a 100644 --- a/lib/datadog_api_client/v2/api/ddsql_api.rb +++ b/lib/datadog_api_client/v2/api/ddsql_api.rb @@ -72,7 +72,7 @@ def execute_ddsql_tabular_query_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DdsqlTabularQueryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :execute_ddsql_tabular_query, @@ -142,7 +142,7 @@ def fetch_ddsql_tabular_query_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DdsqlTabularQueryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :fetch_ddsql_tabular_query, diff --git a/lib/datadog_api_client/v2/api/dem_api.rb b/lib/datadog_api_client/v2/api/dem_api.rb index b4a195428d8b..6582baf655e8 100644 --- a/lib/datadog_api_client/v2/api/dem_api.rb +++ b/lib/datadog_api_client/v2/api/dem_api.rb @@ -70,7 +70,7 @@ def batch_get_journeys_by_test_suite_i_ds_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DemJourneysListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :batch_get_journeys_by_test_suite_i_ds, @@ -137,7 +137,7 @@ def create_journey_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DemJourneyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_journey, @@ -209,7 +209,7 @@ def create_journey_variant_with_http_info(journey_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DemVariantResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_journey_variant, @@ -281,7 +281,7 @@ def create_test_suite_for_journey_with_http_info(public_journey_id, body, opts = return_type = opts[:debug_return_type] || 'DemJourneyTestSuiteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_test_suite_for_journey, @@ -346,7 +346,7 @@ def delete_ignored_inferred_journey_with_http_info(journey_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_ignored_inferred_journey, @@ -411,7 +411,7 @@ def delete_journey_with_http_info(journey_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_journey, @@ -476,7 +476,7 @@ def delete_journey_variant_with_http_info(variant_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_journey_variant, @@ -541,7 +541,7 @@ def get_journey_with_http_info(journey_id, opts = {}) return_type = opts[:debug_return_type] || 'DemJourneyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_journey, @@ -606,7 +606,7 @@ def get_journey_recommended_tests_with_http_info(journey_id, opts = {}) return_type = opts[:debug_return_type] || 'DemRecommendedTestsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_journey_recommended_tests, @@ -671,7 +671,7 @@ def ignore_inferred_journey_with_http_info(journey_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :ignore_inferred_journey, @@ -741,7 +741,7 @@ def search_inferred_journeys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DemSearchInferredJourneysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_inferred_journeys, @@ -813,7 +813,7 @@ def search_journeys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DemJourneysListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_journeys, @@ -885,7 +885,7 @@ def update_journey_with_http_info(journey_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DemJourneyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_journey, @@ -957,7 +957,7 @@ def update_journey_variant_with_http_info(variant_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DemVariantResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_journey_variant, diff --git a/lib/datadog_api_client/v2/api/deployment_gates_api.rb b/lib/datadog_api_client/v2/api/deployment_gates_api.rb index c80a2a1abd4d..433b14e6c771 100644 --- a/lib/datadog_api_client/v2/api/deployment_gates_api.rb +++ b/lib/datadog_api_client/v2/api/deployment_gates_api.rb @@ -76,7 +76,7 @@ def create_deployment_gate_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_deployment_gate, @@ -154,7 +154,7 @@ def create_deployment_rule_with_http_info(gate_id, body, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_deployment_rule, @@ -225,7 +225,7 @@ def delete_deployment_gate_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_deployment_gate, @@ -301,7 +301,7 @@ def delete_deployment_rule_with_http_info(gate_id, id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_deployment_rule, @@ -372,7 +372,7 @@ def get_deployment_gate_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_deployment_gate, @@ -443,7 +443,7 @@ def get_deployment_gate_rules_with_http_info(gate_id, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGateRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_deployment_gate_rules, @@ -518,7 +518,7 @@ def get_deployment_gates_evaluation_result_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGatesEvaluationResultResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_deployment_gates_evaluation_result, @@ -594,7 +594,7 @@ def get_deployment_rule_with_http_info(gate_id, id, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_deployment_rule, @@ -671,7 +671,7 @@ def list_deployment_gates_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGatesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_deployment_gates, @@ -750,7 +750,7 @@ def trigger_deployment_gates_evaluation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGatesEvaluationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_deployment_gates_evaluation, @@ -828,7 +828,7 @@ def update_deployment_gate_with_http_info(id, body, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentGateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_deployment_gate, @@ -911,7 +911,7 @@ def update_deployment_rule_with_http_info(gate_id, id, body, opts = {}) return_type = opts[:debug_return_type] || 'DeploymentRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_deployment_rule, diff --git a/lib/datadog_api_client/v2/api/dora_metrics_api.rb b/lib/datadog_api_client/v2/api/dora_metrics_api.rb index b34cb815f279..d6cb8355f135 100644 --- a/lib/datadog_api_client/v2/api/dora_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/dora_metrics_api.rb @@ -283,7 +283,7 @@ def delete_dora_deployment_with_http_info(deployment_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dora_deployment, @@ -348,7 +348,7 @@ def delete_dora_failure_with_http_info(failure_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_dora_failure, @@ -413,7 +413,7 @@ def get_dora_deployment_with_http_info(deployment_id, opts = {}) return_type = opts[:debug_return_type] || 'DORADeploymentFetchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_dora_deployment, @@ -478,7 +478,7 @@ def get_dora_failure_with_http_info(failure_id, opts = {}) return_type = opts[:debug_return_type] || 'DORAFailureFetchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_dora_failure, @@ -545,7 +545,7 @@ def list_dora_deployments_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DORADeploymentsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_dora_deployments, @@ -612,7 +612,7 @@ def list_dora_failures_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'DORAFailuresListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_dora_failures, @@ -684,7 +684,7 @@ def patch_dora_deployment_with_http_info(deployment_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_dora_deployment, @@ -757,7 +757,7 @@ def patch_dora_deployment_by_version_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_dora_deployment_by_version, diff --git a/lib/datadog_api_client/v2/api/elastic_cloud_integration_api.rb b/lib/datadog_api_client/v2/api/elastic_cloud_integration_api.rb index 92844755aa22..842db94a51d8 100644 --- a/lib/datadog_api_client/v2/api/elastic_cloud_integration_api.rb +++ b/lib/datadog_api_client/v2/api/elastic_cloud_integration_api.rb @@ -76,7 +76,7 @@ def create_elastic_cloud_integration_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ElasticCloudIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_elastic_cloud_integration_account, @@ -147,7 +147,7 @@ def delete_elastic_cloud_integration_account_with_http_info(account_id, opts = { return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_elastic_cloud_integration_account, @@ -218,7 +218,7 @@ def get_elastic_cloud_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'ElasticCloudIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_elastic_cloud_integration_account, @@ -284,7 +284,7 @@ def list_elastic_cloud_integration_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ElasticCloudIntegrationAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_elastic_cloud_integration_accounts, @@ -362,7 +362,7 @@ def update_elastic_cloud_integration_account_with_http_info(account_id, body, op return_type = opts[:debug_return_type] || 'ElasticCloudIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_elastic_cloud_integration_account, diff --git a/lib/datadog_api_client/v2/api/entity_integration_configs_api.rb b/lib/datadog_api_client/v2/api/entity_integration_configs_api.rb index d2ee8a060b71..521999ffdefc 100644 --- a/lib/datadog_api_client/v2/api/entity_integration_configs_api.rb +++ b/lib/datadog_api_client/v2/api/entity_integration_configs_api.rb @@ -74,7 +74,7 @@ def delete_entity_integration_config_with_http_info(integration_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_entity_integration_config, @@ -145,7 +145,7 @@ def get_entity_integration_config_with_http_info(integration_id, opts = {}) return_type = opts[:debug_return_type] || 'EntityIntegrationConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_entity_integration_config, @@ -227,7 +227,7 @@ def update_entity_integration_config_with_http_info(integration_id, body, opts = return_type = opts[:debug_return_type] || 'EntityIntegrationConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_entity_integration_config, diff --git a/lib/datadog_api_client/v2/api/entity_risk_scores_api.rb b/lib/datadog_api_client/v2/api/entity_risk_scores_api.rb index c0b5d20a69ba..029f9d2b97f5 100644 --- a/lib/datadog_api_client/v2/api/entity_risk_scores_api.rb +++ b/lib/datadog_api_client/v2/api/entity_risk_scores_api.rb @@ -74,7 +74,7 @@ def get_entity_risk_score_with_http_info(entity_id, opts = {}) return_type = opts[:debug_return_type] || 'SecurityEntityRiskScoreResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_entity_risk_score, @@ -156,7 +156,7 @@ def list_entity_risk_scores_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SecurityEntityRiskScoresResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_entity_risk_scores, diff --git a/lib/datadog_api_client/v2/api/events_api.rb b/lib/datadog_api_client/v2/api/events_api.rb index 3bf31cd92234..4bf57b7d7a28 100644 --- a/lib/datadog_api_client/v2/api/events_api.rb +++ b/lib/datadog_api_client/v2/api/events_api.rb @@ -78,7 +78,7 @@ def create_event_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'EventCreateResponsePayload' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_event, diff --git a/lib/datadog_api_client/v2/api/execution_policy_api.rb b/lib/datadog_api_client/v2/api/execution_policy_api.rb index 016911c3887e..4865f640a9b7 100644 --- a/lib/datadog_api_client/v2/api/execution_policy_api.rb +++ b/lib/datadog_api_client/v2/api/execution_policy_api.rb @@ -76,7 +76,7 @@ def create_execution_policy_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ExecutionPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_execution_policy, @@ -147,7 +147,7 @@ def delete_execution_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_execution_policy, @@ -218,7 +218,7 @@ def get_execution_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] || 'ExecutionPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_execution_policy, @@ -309,7 +309,7 @@ def list_execution_policies_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ExecutionPolicyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_execution_policies, @@ -389,7 +389,7 @@ def update_execution_policy_with_http_info(policy_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ExecutionPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_execution_policy, diff --git a/lib/datadog_api_client/v2/api/fastly_integration_api.rb b/lib/datadog_api_client/v2/api/fastly_integration_api.rb index 75e219ab8b0e..720362f2b949 100644 --- a/lib/datadog_api_client/v2/api/fastly_integration_api.rb +++ b/lib/datadog_api_client/v2/api/fastly_integration_api.rb @@ -70,7 +70,7 @@ def create_fastly_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FastlyAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_fastly_account, @@ -142,7 +142,7 @@ def create_fastly_service_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FastlyServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_fastly_service, @@ -207,7 +207,7 @@ def delete_fastly_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_fastly_account, @@ -277,7 +277,7 @@ def delete_fastly_service_with_http_info(account_id, service_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_fastly_service, @@ -342,7 +342,7 @@ def get_fastly_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'FastlyAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_fastly_account, @@ -412,7 +412,7 @@ def get_fastly_service_with_http_info(account_id, service_id, opts = {}) return_type = opts[:debug_return_type] || 'FastlyServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_fastly_service, @@ -472,7 +472,7 @@ def list_fastly_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FastlyAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fastly_accounts, @@ -537,7 +537,7 @@ def list_fastly_services_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'FastlyServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fastly_services, @@ -609,7 +609,7 @@ def update_fastly_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FastlyAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_fastly_account, @@ -686,7 +686,7 @@ def update_fastly_service_with_http_info(account_id, service_id, body, opts = {} return_type = opts[:debug_return_type] || 'FastlyServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_fastly_service, diff --git a/lib/datadog_api_client/v2/api/fleet_automation_api.rb b/lib/datadog_api_client/v2/api/fleet_automation_api.rb index d875cb90407d..83bbefbef136 100644 --- a/lib/datadog_api_client/v2/api/fleet_automation_api.rb +++ b/lib/datadog_api_client/v2/api/fleet_automation_api.rb @@ -77,7 +77,7 @@ def cancel_fleet_deployment_v2_with_http_info(deployment_id, opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentV2CancelResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :cancel_fleet_deployment_v2, @@ -160,7 +160,7 @@ def create_fleet_deployment_configure_v2_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentConfigureV2DryRunResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_fleet_deployment_configure_v2, @@ -238,7 +238,7 @@ def create_fleet_deployment_upgrade_v2_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentV2CreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_fleet_deployment_upgrade_v2, @@ -320,7 +320,7 @@ def create_fleet_schedule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FleetScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_fleet_schedule, @@ -399,7 +399,7 @@ def delete_fleet_schedule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_fleet_schedule, @@ -473,7 +473,7 @@ def get_fleet_agent_detail_v2_with_http_info(agent_key, opts = {}) return_type = opts[:debug_return_type] || 'FleetAgentDetailV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_fleet_agent_detail_v2, @@ -541,7 +541,7 @@ def get_fleet_deployment_v2_with_http_info(deployment_id, opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentV2DetailResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_fleet_deployment_v2, @@ -606,7 +606,7 @@ def get_fleet_schedule_v2_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'FleetScheduleV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_fleet_schedule_v2, @@ -691,7 +691,7 @@ def list_fleet_agents_v2_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FleetAgentsV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_agents_v2, @@ -782,7 +782,7 @@ def list_fleet_agent_tracers_with_http_info(agent_key, opts = {}) return_type = opts[:debug_return_type] || 'FleetTracersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_agent_tracers, @@ -846,7 +846,7 @@ def list_fleet_agent_versions_v2_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FleetAgentVersionsV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_agent_versions_v2, @@ -922,7 +922,7 @@ def list_fleet_deployments_v2_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentsV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_deployments_v2, @@ -985,7 +985,7 @@ def list_fleet_schedules_v2_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FleetSchedulesV2Response' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_schedules_v2, @@ -1075,7 +1075,7 @@ def list_fleet_tracers_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FleetTracersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_fleet_tracers, @@ -1161,7 +1161,7 @@ def trigger_fleet_schedule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'FleetDeploymentResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :trigger_fleet_schedule, @@ -1249,7 +1249,7 @@ def update_fleet_schedule_with_http_info(id, body, opts = {}) return_type = opts[:debug_return_type] || 'FleetScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_fleet_schedule, diff --git a/lib/datadog_api_client/v2/api/forms_api.rb b/lib/datadog_api_client/v2/api/forms_api.rb index e0a1db29b6d5..e69df0a8ebea 100644 --- a/lib/datadog_api_client/v2/api/forms_api.rb +++ b/lib/datadog_api_client/v2/api/forms_api.rb @@ -81,7 +81,7 @@ def clone_form_with_http_info(form_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :clone_form, @@ -154,7 +154,7 @@ def create_and_publish_form_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_and_publish_form, @@ -227,7 +227,7 @@ def create_form_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_form, @@ -298,7 +298,7 @@ def delete_form_with_http_info(form_id, opts = {}) return_type = opts[:debug_return_type] || 'DeleteFormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_form, @@ -371,7 +371,7 @@ def get_form_with_http_info(form_id, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_form, @@ -437,7 +437,7 @@ def list_forms_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'FormsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_forms, @@ -515,7 +515,7 @@ def publish_form_with_http_info(form_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FormPublicationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :publish_form, @@ -593,7 +593,7 @@ def update_form_with_http_info(form_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_form, @@ -671,7 +671,7 @@ def upsert_and_publish_form_version_with_http_info(form_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FormResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_and_publish_form_version, @@ -750,7 +750,7 @@ def upsert_form_version_with_http_info(form_id, body, opts = {}) return_type = opts[:debug_return_type] || 'FormVersionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_form_version, diff --git a/lib/datadog_api_client/v2/api/gcp_integration_api.rb b/lib/datadog_api_client/v2/api/gcp_integration_api.rb index c599d60bb930..66bfe38b6e9c 100644 --- a/lib/datadog_api_client/v2/api/gcp_integration_api.rb +++ b/lib/datadog_api_client/v2/api/gcp_integration_api.rb @@ -70,7 +70,7 @@ def create_gcpsts_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'GCPSTSServiceAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_gcpsts_account, @@ -135,7 +135,7 @@ def delete_gcpsts_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_gcpsts_account, @@ -195,7 +195,7 @@ def get_gcpsts_delegate_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GCPSTSDelegateAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_gcpsts_delegate, @@ -255,7 +255,7 @@ def list_gcpsts_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GCPSTSServiceAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_gcpsts_accounts, @@ -318,7 +318,7 @@ def make_gcpsts_delegate_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GCPSTSDelegateAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :make_gcpsts_delegate, @@ -390,7 +390,7 @@ def update_gcpsts_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'GCPSTSServiceAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_gcpsts_account, diff --git a/lib/datadog_api_client/v2/api/google_chat_integration_api.rb b/lib/datadog_api_client/v2/api/google_chat_integration_api.rb index 31817185e284..40376432e52d 100644 --- a/lib/datadog_api_client/v2/api/google_chat_integration_api.rb +++ b/lib/datadog_api_client/v2/api/google_chat_integration_api.rb @@ -75,7 +75,7 @@ def create_google_chat_target_audience_with_http_info(organization_binding_id, b return_type = opts[:debug_return_type] || 'GoogleChatTargetAudienceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_google_chat_target_audience, @@ -147,7 +147,7 @@ def create_organization_handle_with_http_info(organization_binding_id, body, opt return_type = opts[:debug_return_type] || 'GoogleChatOrganizationHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_organization_handle, @@ -212,7 +212,7 @@ def delete_google_chat_delegated_user_with_http_info(organization_binding_id, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_google_chat_delegated_user, @@ -277,7 +277,7 @@ def delete_google_chat_organization_with_http_info(organization_binding_id, opts return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_google_chat_organization, @@ -347,7 +347,7 @@ def delete_google_chat_target_audience_with_http_info(organization_binding_id, t return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_google_chat_target_audience, @@ -417,7 +417,7 @@ def delete_organization_handle_with_http_info(organization_binding_id, handle_id return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_organization_handle, @@ -482,7 +482,7 @@ def get_google_chat_delegated_user_with_http_info(organization_binding_id, opts return_type = opts[:debug_return_type] || 'GoogleChatDelegatedUserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_google_chat_delegated_user, @@ -547,7 +547,7 @@ def get_google_chat_organization_with_http_info(organization_binding_id, opts = return_type = opts[:debug_return_type] || 'GoogleChatOrganizationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_google_chat_organization, @@ -617,7 +617,7 @@ def get_google_chat_target_audience_with_http_info(organization_binding_id, targ return_type = opts[:debug_return_type] || 'GoogleChatTargetAudienceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_google_chat_target_audience, @@ -687,7 +687,7 @@ def get_organization_handle_with_http_info(organization_binding_id, handle_id, o return_type = opts[:debug_return_type] || 'GoogleChatOrganizationHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_organization_handle, @@ -757,7 +757,7 @@ def get_space_by_display_name_with_http_info(domain_name, space_display_name, op return_type = opts[:debug_return_type] || 'GoogleChatAppNamedSpaceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_space_by_display_name, @@ -817,7 +817,7 @@ def list_google_chat_organizations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GoogleChatOrganizationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_google_chat_organizations, @@ -882,7 +882,7 @@ def list_google_chat_target_audiences_with_http_info(organization_binding_id, op return_type = opts[:debug_return_type] || 'GoogleChatTargetAudiencesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_google_chat_target_audiences, @@ -947,7 +947,7 @@ def list_organization_handles_with_http_info(organization_binding_id, opts = {}) return_type = opts[:debug_return_type] || 'GoogleChatOrganizationHandlesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_organization_handles, @@ -1024,7 +1024,7 @@ def update_google_chat_target_audience_with_http_info(organization_binding_id, t return_type = opts[:debug_return_type] || 'GoogleChatTargetAudienceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_google_chat_target_audience, @@ -1101,7 +1101,7 @@ def update_organization_handle_with_http_info(organization_binding_id, handle_id return_type = opts[:debug_return_type] || 'GoogleChatOrganizationHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_organization_handle, diff --git a/lib/datadog_api_client/v2/api/high_availability_multi_region_api.rb b/lib/datadog_api_client/v2/api/high_availability_multi_region_api.rb index c9df6e3e05e7..fca6051b66f3 100644 --- a/lib/datadog_api_client/v2/api/high_availability_multi_region_api.rb +++ b/lib/datadog_api_client/v2/api/high_availability_multi_region_api.rb @@ -78,7 +78,7 @@ def create_hamr_org_connection_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'HamrOrgConnectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_hamr_org_connection, @@ -146,7 +146,7 @@ def get_hamr_org_connection_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'HamrOrgConnectionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_hamr_org_connection, diff --git a/lib/datadog_api_client/v2/api/incidents_api.rb b/lib/datadog_api_client/v2/api/incidents_api.rb index 0d7ca03ecf66..80da094f973e 100644 --- a/lib/datadog_api_client/v2/api/incidents_api.rb +++ b/lib/datadog_api_client/v2/api/incidents_api.rb @@ -78,7 +78,7 @@ def create_global_incident_handle_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_global_incident_handle, @@ -908,7 +908,7 @@ def create_incident_postmortem_attachment_with_http_info(incident_id, body, opts return_type = opts[:debug_return_type] || 'Attachment' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident_postmortem_attachment, @@ -981,7 +981,7 @@ def create_incident_postmortem_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'PostmortemTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident_postmortem_template, @@ -1817,7 +1817,7 @@ def delete_global_incident_handle_with_http_info(opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_global_incident_handle, @@ -2395,7 +2395,7 @@ def delete_incident_postmortem_template_with_http_info(template_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_incident_postmortem_template, @@ -2973,7 +2973,7 @@ def get_global_incident_settings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'GlobalIncidentSettingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_global_incident_settings, @@ -3410,7 +3410,7 @@ def get_incident_postmortem_template_with_http_info(template_id, opts = {}) return_type = opts[:debug_return_type] || 'PostmortemTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident_postmortem_template, @@ -4146,7 +4146,7 @@ def list_global_incident_handles_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'IncidentHandlesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_global_incident_handles, @@ -4221,7 +4221,7 @@ def list_incident_attachments_with_http_info(incident_id, opts = {}) return_type = opts[:debug_return_type] || 'AttachmentArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_incident_attachments, @@ -4633,7 +4633,7 @@ def list_incident_postmortem_templates_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'PostmortemTemplatesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_incident_postmortem_templates, @@ -5577,7 +5577,7 @@ def update_global_incident_handle_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'IncidentHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_global_incident_handle, @@ -5650,7 +5650,7 @@ def update_global_incident_settings_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'GlobalIncidentSettingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_global_incident_settings, @@ -6445,7 +6445,7 @@ def update_incident_postmortem_template_with_http_info(template_id, body, opts = return_type = opts[:debug_return_type] || 'PostmortemTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_incident_postmortem_template, diff --git a/lib/datadog_api_client/v2/api/integrations_api.rb b/lib/datadog_api_client/v2/api/integrations_api.rb index 12bfe0a4fa98..671e2ee6d4da 100644 --- a/lib/datadog_api_client/v2/api/integrations_api.rb +++ b/lib/datadog_api_client/v2/api/integrations_api.rb @@ -60,7 +60,7 @@ def list_integrations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListIntegrationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_integrations, diff --git a/lib/datadog_api_client/v2/api/jira_integration_api.rb b/lib/datadog_api_client/v2/api/jira_integration_api.rb index 669904fa4afa..ae499dec1f88 100644 --- a/lib/datadog_api_client/v2/api/jira_integration_api.rb +++ b/lib/datadog_api_client/v2/api/jira_integration_api.rb @@ -76,7 +76,7 @@ def create_jira_issue_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'JiraIssueTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_jira_issue_template, @@ -147,7 +147,7 @@ def delete_jira_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_jira_account, @@ -218,7 +218,7 @@ def delete_jira_issue_template_with_http_info(issue_template_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_jira_issue_template, @@ -289,7 +289,7 @@ def get_jira_issue_template_with_http_info(issue_template_id, opts = {}) return_type = opts[:debug_return_type] || 'JiraIssueTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_jira_issue_template, @@ -355,7 +355,7 @@ def list_jira_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'JiraAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_jira_accounts, @@ -421,7 +421,7 @@ def list_jira_issue_templates_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'JiraIssueTemplatesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_jira_issue_templates, @@ -499,7 +499,7 @@ def update_jira_issue_template_with_http_info(issue_template_id, body, opts = {} return_type = opts[:debug_return_type] || 'JiraIssueTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_jira_issue_template, diff --git a/lib/datadog_api_client/v2/api/key_management_api.rb b/lib/datadog_api_client/v2/api/key_management_api.rb index 0c87d9a8f59e..5d0a1dac597a 100644 --- a/lib/datadog_api_client/v2/api/key_management_api.rb +++ b/lib/datadog_api_client/v2/api/key_management_api.rb @@ -70,7 +70,7 @@ def create_api_key_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'APIKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_api_key, @@ -137,7 +137,7 @@ def create_current_user_application_key_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_current_user_application_key, @@ -204,7 +204,7 @@ def create_personal_access_token_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'PersonalAccessTokenCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_personal_access_token, @@ -269,7 +269,7 @@ def delete_api_key_with_http_info(api_key_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_api_key, @@ -334,7 +334,7 @@ def delete_application_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_application_key, @@ -399,7 +399,7 @@ def delete_current_user_application_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_current_user_application_key, @@ -466,7 +466,7 @@ def get_api_key_with_http_info(api_key_id, opts = {}) return_type = opts[:debug_return_type] || 'APIKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_api_key, @@ -533,7 +533,7 @@ def get_application_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_application_key, @@ -599,7 +599,7 @@ def get_current_user_application_key_with_http_info(app_key_id, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_current_user_application_key, @@ -664,7 +664,7 @@ def get_personal_access_token_with_http_info(token_id, opts = {}) return_type = opts[:debug_return_type] || 'PersonalAccessTokenResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_personal_access_token, @@ -750,7 +750,7 @@ def list_api_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'APIKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_api_keys, @@ -830,7 +830,7 @@ def list_application_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListApplicationKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_application_keys, @@ -908,7 +908,7 @@ def list_current_user_application_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListApplicationKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_current_user_application_keys, @@ -982,7 +982,7 @@ def list_personal_access_tokens_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListPersonalAccessTokensResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_personal_access_tokens, @@ -1048,7 +1048,7 @@ def revoke_personal_access_token_with_http_info(token_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :revoke_personal_access_token, @@ -1120,7 +1120,7 @@ def update_api_key_with_http_info(api_key_id, body, opts = {}) return_type = opts[:debug_return_type] || 'APIKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_api_key, @@ -1192,7 +1192,7 @@ def update_application_key_with_http_info(app_key_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_application_key, @@ -1265,7 +1265,7 @@ def update_current_user_application_key_with_http_info(app_key_id, body, opts = return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_current_user_application_key, @@ -1337,7 +1337,7 @@ def update_personal_access_token_with_http_info(token_id, body, opts = {}) return_type = opts[:debug_return_type] || 'PersonalAccessTokenResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_personal_access_token, @@ -1466,7 +1466,7 @@ def validate_api_key_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ValidateAPIKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_api_key, diff --git a/lib/datadog_api_client/v2/api/logs_api.rb b/lib/datadog_api_client/v2/api/logs_api.rb index 952a159991d6..5c3073135f24 100644 --- a/lib/datadog_api_client/v2/api/logs_api.rb +++ b/lib/datadog_api_client/v2/api/logs_api.rb @@ -261,7 +261,7 @@ def list_logs_get_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_get, diff --git a/lib/datadog_api_client/v2/api/logs_archives_api.rb b/lib/datadog_api_client/v2/api/logs_archives_api.rb index 82580c0bf75c..3fde5502076f 100644 --- a/lib/datadog_api_client/v2/api/logs_archives_api.rb +++ b/lib/datadog_api_client/v2/api/logs_archives_api.rb @@ -75,7 +75,7 @@ def add_read_role_to_archive_with_http_info(archive_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_read_role_to_archive, @@ -142,7 +142,7 @@ def create_logs_archive_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsArchive' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_logs_archive, @@ -207,7 +207,7 @@ def delete_logs_archive_with_http_info(archive_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_logs_archive, @@ -272,7 +272,7 @@ def get_logs_archive_with_http_info(archive_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsArchive' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_archive, @@ -333,7 +333,7 @@ def get_logs_archive_order_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsArchiveOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_archive_order, @@ -398,7 +398,7 @@ def list_archive_read_roles_with_http_info(archive_id, opts = {}) return_type = opts[:debug_return_type] || 'RolesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_archive_read_roles, @@ -458,7 +458,7 @@ def list_logs_archives_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsArchives' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_archives, @@ -530,7 +530,7 @@ def remove_role_from_archive_with_http_info(archive_id, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_role_from_archive, @@ -605,7 +605,7 @@ def update_logs_archive_with_http_info(archive_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LogsArchive' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_archive, @@ -676,7 +676,7 @@ def update_logs_archive_order_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsArchiveOrder' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_archive_order, diff --git a/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb b/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb index dc3707d7d2ad..7da91a3bf8e6 100644 --- a/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb +++ b/lib/datadog_api_client/v2/api/logs_custom_destinations_api.rb @@ -70,7 +70,7 @@ def create_logs_custom_destination_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CustomDestinationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_logs_custom_destination, @@ -135,7 +135,7 @@ def delete_logs_custom_destination_with_http_info(custom_destination_id, opts = return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_logs_custom_destination, @@ -200,7 +200,7 @@ def get_logs_custom_destination_with_http_info(custom_destination_id, opts = {}) return_type = opts[:debug_return_type] || 'CustomDestinationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_custom_destination, @@ -260,7 +260,7 @@ def list_logs_custom_destinations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'CustomDestinationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_custom_destinations, @@ -332,7 +332,7 @@ def update_logs_custom_destination_with_http_info(custom_destination_id, body, o return_type = opts[:debug_return_type] || 'CustomDestinationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_custom_destination, diff --git a/lib/datadog_api_client/v2/api/logs_metrics_api.rb b/lib/datadog_api_client/v2/api/logs_metrics_api.rb index fb71ab3eecf3..8d098d4b9cfb 100644 --- a/lib/datadog_api_client/v2/api/logs_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/logs_metrics_api.rb @@ -71,7 +71,7 @@ def create_logs_metric_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_logs_metric, @@ -136,7 +136,7 @@ def delete_logs_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_logs_metric, @@ -201,7 +201,7 @@ def get_logs_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_logs_metric, @@ -261,7 +261,7 @@ def list_logs_metrics_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_logs_metrics, @@ -334,7 +334,7 @@ def update_logs_metric_with_http_info(metric_id, body, opts = {}) return_type = opts[:debug_return_type] || 'LogsMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_logs_metric, diff --git a/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb b/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb index 5c5525b5aa51..84a0777b8395 100644 --- a/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb +++ b/lib/datadog_api_client/v2/api/logs_restriction_queries_api.rb @@ -83,7 +83,7 @@ def add_role_to_restriction_query_with_http_info(restriction_query_id, body, opt return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_role_to_restriction_query, @@ -156,7 +156,7 @@ def create_restriction_query_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryWithoutRelationshipsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_restriction_query, @@ -227,7 +227,7 @@ def delete_restriction_query_with_http_info(restriction_query_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_restriction_query, @@ -298,7 +298,7 @@ def get_restriction_query_with_http_info(restriction_query_id, opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryWithRelationshipsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_restriction_query, @@ -369,7 +369,7 @@ def get_role_restriction_query_with_http_info(role_id, opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_role_restriction_query, @@ -439,7 +439,7 @@ def list_restriction_queries_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_restriction_queries, @@ -514,7 +514,7 @@ def list_restriction_query_roles_with_http_info(restriction_query_id, opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryRolesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_restriction_query_roles, @@ -585,7 +585,7 @@ def list_user_restriction_queries_with_http_info(user_id, opts = {}) return_type = opts[:debug_return_type] || 'RestrictionQueryListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_user_restriction_queries, @@ -663,7 +663,7 @@ def remove_role_from_restriction_query_with_http_info(restriction_query_id, body return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_role_from_restriction_query, @@ -741,7 +741,7 @@ def replace_restriction_query_with_http_info(restriction_query_id, body, opts = return_type = opts[:debug_return_type] || 'RestrictionQueryWithoutRelationshipsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :replace_restriction_query, @@ -819,7 +819,7 @@ def update_restriction_query_with_http_info(restriction_query_id, body, opts = { return_type = opts[:debug_return_type] || 'RestrictionQueryWithoutRelationshipsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_restriction_query, diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index d52d56f7ebf7..1f1d936538b8 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -81,7 +81,7 @@ def create_bulk_tags_metrics_configuration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MetricBulkTagConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_bulk_tags_metrics_configuration, @@ -233,7 +233,7 @@ def create_tag_configuration_with_http_info(metric_name, body, opts = {}) return_type = opts[:debug_return_type] || 'MetricTagConfigurationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_tag_configuration, @@ -462,7 +462,7 @@ def delete_bulk_tags_metrics_configuration_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MetricBulkTagConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_bulk_tags_metrics_configuration, @@ -602,7 +602,7 @@ def delete_tag_configuration_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_tag_configuration, @@ -837,7 +837,7 @@ def estimate_metrics_output_series_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricEstimateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :estimate_metrics_output_series, @@ -975,7 +975,7 @@ def get_metric_tag_cardinality_details_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricTagCardinalitiesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_metric_tag_cardinality_details, @@ -1187,7 +1187,7 @@ def list_active_metric_configurations_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricSuggestedTagsAndAggregationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_active_metric_configurations, @@ -1751,7 +1751,7 @@ def list_volumes_by_metric_name_with_http_info(metric_name, opts = {}) return_type = opts[:debug_return_type] || 'MetricVolumesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_volumes_by_metric_name, @@ -2126,7 +2126,7 @@ def update_tag_configuration_with_http_info(metric_name, body, opts = {}) return_type = opts[:debug_return_type] || 'MetricTagConfigurationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_tag_configuration, diff --git a/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb b/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb index eaf39b4cd8f1..d53d92ccad20 100644 --- a/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +++ b/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb @@ -70,7 +70,7 @@ def create_tenant_based_handle_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_tenant_based_handle, @@ -137,7 +137,7 @@ def create_workflows_webhook_handle_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsWorkflowsWebhookHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_workflows_webhook_handle, @@ -202,7 +202,7 @@ def delete_ms_teams_user_binding_with_http_info(tenant_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_ms_teams_user_binding, @@ -267,7 +267,7 @@ def delete_tenant_based_handle_with_http_info(handle_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_tenant_based_handle, @@ -332,7 +332,7 @@ def delete_workflows_webhook_handle_with_http_info(handle_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_workflows_webhook_handle, @@ -407,7 +407,7 @@ def get_channel_by_name_with_http_info(tenant_name, team_name, channel_name, opt return_type = opts[:debug_return_type] || 'MicrosoftTeamsGetChannelByNameResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_channel_by_name, @@ -472,7 +472,7 @@ def get_tenant_based_handle_with_http_info(handle_id, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_tenant_based_handle, @@ -537,7 +537,7 @@ def get_workflows_webhook_handle_with_http_info(handle_id, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsWorkflowsWebhookHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_workflows_webhook_handle, @@ -601,7 +601,7 @@ def list_tenant_based_handles_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandlesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tenant_based_handles, @@ -663,7 +663,7 @@ def list_workflows_webhook_handles_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsWorkflowsWebhookHandlesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_workflows_webhook_handles, @@ -735,7 +735,7 @@ def update_tenant_based_handle_with_http_info(handle_id, body, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsTenantBasedHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_tenant_based_handle, @@ -807,7 +807,7 @@ def update_workflows_webhook_handle_with_http_info(handle_id, body, opts = {}) return_type = opts[:debug_return_type] || 'MicrosoftTeamsWorkflowsWebhookHandleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_workflows_webhook_handle, diff --git a/lib/datadog_api_client/v2/api/model_lab_api_api.rb b/lib/datadog_api_client/v2/api/model_lab_api_api.rb index e20533a305ed..5f49193a8e55 100644 --- a/lib/datadog_api_client/v2/api/model_lab_api_api.rb +++ b/lib/datadog_api_client/v2/api/model_lab_api_api.rb @@ -74,7 +74,7 @@ def delete_model_lab_run_with_http_info(run_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_model_lab_run, @@ -152,7 +152,7 @@ def get_model_lab_artifact_content_with_http_info(project_id, artifact_path, opt return_type = opts[:debug_return_type] || 'File' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_model_lab_artifact_content, @@ -223,7 +223,7 @@ def get_model_lab_project_with_http_info(project_id, opts = {}) return_type = opts[:debug_return_type] || 'ModelLabProjectResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_model_lab_project, @@ -294,7 +294,7 @@ def get_model_lab_run_with_http_info(run_id, opts = {}) return_type = opts[:debug_return_type] || 'ModelLabRunResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_model_lab_run, @@ -365,7 +365,7 @@ def list_model_lab_project_artifacts_with_http_info(project_id, opts = {}) return_type = opts[:debug_return_type] || 'ModelLabProjectArtifactsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_project_artifacts, @@ -431,7 +431,7 @@ def list_model_lab_project_facet_keys_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ModelLabFacetKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_project_facet_keys, @@ -514,7 +514,7 @@ def list_model_lab_project_facet_values_with_http_info(facet_type, facet_name, o return_type = opts[:debug_return_type] || 'ModelLabFacetValuesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_project_facet_values, @@ -595,7 +595,7 @@ def list_model_lab_projects_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ModelLabProjectsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_projects, @@ -668,7 +668,7 @@ def list_model_lab_run_artifacts_with_http_info(run_id, opts = {}) return_type = opts[:debug_return_type] || 'ModelLabRunArtifactsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_run_artifacts, @@ -740,7 +740,7 @@ def list_model_lab_run_facet_keys_with_http_info(filter_project_id, opts = {}) return_type = opts[:debug_return_type] || 'ModelLabFacetKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_run_facet_keys, @@ -829,7 +829,7 @@ def list_model_lab_run_facet_values_with_http_info(filter_project_id, facet_type return_type = opts[:debug_return_type] || 'ModelLabFacetValuesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_run_facet_values, @@ -930,7 +930,7 @@ def list_model_lab_runs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ModelLabRunsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_model_lab_runs, @@ -1001,7 +1001,7 @@ def pin_model_lab_run_with_http_info(run_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :pin_model_lab_run, @@ -1072,7 +1072,7 @@ def star_model_lab_project_with_http_info(project_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :star_model_lab_project, @@ -1143,7 +1143,7 @@ def unpin_model_lab_run_with_http_info(run_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unpin_model_lab_run, @@ -1214,7 +1214,7 @@ def unstar_model_lab_project_with_http_info(project_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unstar_model_lab_project, diff --git a/lib/datadog_api_client/v2/api/monitors_api.rb b/lib/datadog_api_client/v2/api/monitors_api.rb index c89f588a3b1d..8a468d14ed36 100644 --- a/lib/datadog_api_client/v2/api/monitors_api.rb +++ b/lib/datadog_api_client/v2/api/monitors_api.rb @@ -70,7 +70,7 @@ def create_monitor_config_policy_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorConfigPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_monitor_config_policy, @@ -137,7 +137,7 @@ def create_monitor_notification_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorNotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_monitor_notification_rule, @@ -210,7 +210,7 @@ def create_monitor_user_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorUserTemplateCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_monitor_user_template, @@ -275,7 +275,7 @@ def delete_monitor_config_policy_with_http_info(policy_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_monitor_config_policy, @@ -340,7 +340,7 @@ def delete_monitor_notification_rule_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_monitor_notification_rule, @@ -411,7 +411,7 @@ def delete_monitor_user_template_with_http_info(template_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_monitor_user_template, @@ -896,7 +896,7 @@ def update_monitor_config_policy_with_http_info(policy_id, body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorConfigPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_monitor_config_policy, @@ -968,7 +968,7 @@ def update_monitor_notification_rule_with_http_info(rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorNotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_monitor_notification_rule, @@ -1046,7 +1046,7 @@ def update_monitor_user_template_with_http_info(template_id, body, opts = {}) return_type = opts[:debug_return_type] || 'MonitorUserTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_monitor_user_template, @@ -1124,7 +1124,7 @@ def validate_existing_monitor_user_template_with_http_info(template_id, body, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_existing_monitor_user_template, @@ -1197,7 +1197,7 @@ def validate_monitor_user_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_monitor_user_template, diff --git a/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb b/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb index a3ff9ccfd540..7e50caec772d 100644 --- a/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/network_device_monitoring_api.rb @@ -68,7 +68,7 @@ def get_device_with_http_info(device_id, opts = {}) return_type = opts[:debug_return_type] || 'GetDeviceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_device, @@ -136,7 +136,7 @@ def get_interfaces_with_http_info(device_id, opts = {}) return_type = opts[:debug_return_type] || 'GetInterfacesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_interfaces, @@ -204,7 +204,7 @@ def list_devices_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListDevicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_devices, @@ -291,7 +291,7 @@ def list_device_user_tags_with_http_info(device_id, opts = {}) return_type = opts[:debug_return_type] || 'ListTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_device_user_tags, @@ -356,7 +356,7 @@ def list_interface_user_tags_with_http_info(interface_id, opts = {}) return_type = opts[:debug_return_type] || 'ListInterfaceTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_interface_user_tags, @@ -428,7 +428,7 @@ def update_device_user_tags_with_http_info(device_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ListTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_device_user_tags, @@ -500,7 +500,7 @@ def update_interface_user_tags_with_http_info(interface_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ListInterfaceTagsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_interface_user_tags, diff --git a/lib/datadog_api_client/v2/api/network_health_insights_api.rb b/lib/datadog_api_client/v2/api/network_health_insights_api.rb index 142376839c97..9fec3b6cdbdd 100644 --- a/lib/datadog_api_client/v2/api/network_health_insights_api.rb +++ b/lib/datadog_api_client/v2/api/network_health_insights_api.rb @@ -77,7 +77,7 @@ def list_network_health_insights_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NetworkHealthInsightsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_network_health_insights, diff --git a/lib/datadog_api_client/v2/api/o_auth2_client_public_api.rb b/lib/datadog_api_client/v2/api/o_auth2_client_public_api.rb index 9577c622b86e..d2d027e4f3ef 100644 --- a/lib/datadog_api_client/v2/api/o_auth2_client_public_api.rb +++ b/lib/datadog_api_client/v2/api/o_auth2_client_public_api.rb @@ -74,7 +74,7 @@ def delete_scopes_restriction_with_http_info(client_uuid, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_scopes_restriction, @@ -277,7 +277,7 @@ def get_scopes_restriction_with_http_info(client_uuid, opts = {}) return_type = opts[:debug_return_type] || 'OAuthScopesRestrictionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_scopes_restriction, @@ -428,7 +428,7 @@ def upsert_scopes_restriction_with_http_info(client_uuid, body, opts = {}) return_type = opts[:debug_return_type] || 'OAuthScopesRestrictionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_scopes_restriction, diff --git a/lib/datadog_api_client/v2/api/observability_pipelines_api.rb b/lib/datadog_api_client/v2/api/observability_pipelines_api.rb index 05932de95116..9d659a754e46 100644 --- a/lib/datadog_api_client/v2/api/observability_pipelines_api.rb +++ b/lib/datadog_api_client/v2/api/observability_pipelines_api.rb @@ -70,7 +70,7 @@ def create_pipeline_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ObservabilityPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_pipeline, @@ -135,7 +135,7 @@ def delete_pipeline_with_http_info(pipeline_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_pipeline, @@ -200,7 +200,7 @@ def get_pipeline_with_http_info(pipeline_id, opts = {}) return_type = opts[:debug_return_type] || 'ObservabilityPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_pipeline, @@ -264,7 +264,7 @@ def list_pipelines_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListPipelinesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_pipelines, @@ -336,7 +336,7 @@ def update_pipeline_with_http_info(pipeline_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ObservabilityPipeline' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_pipeline, @@ -404,7 +404,7 @@ def validate_pipeline_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ValidationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :validate_pipeline, diff --git a/lib/datadog_api_client/v2/api/oci_integration_api.rb b/lib/datadog_api_client/v2/api/oci_integration_api.rb index c732b05cedd4..6f365d20bc0a 100644 --- a/lib/datadog_api_client/v2/api/oci_integration_api.rb +++ b/lib/datadog_api_client/v2/api/oci_integration_api.rb @@ -70,7 +70,7 @@ def create_tenancy_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'TenancyConfig' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_tenancy_config, @@ -135,7 +135,7 @@ def delete_tenancy_config_with_http_info(tenancy_ocid, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_tenancy_config, @@ -200,7 +200,7 @@ def get_tenancy_config_with_http_info(tenancy_ocid, opts = {}) return_type = opts[:debug_return_type] || 'TenancyConfig' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_tenancy_config, @@ -260,7 +260,7 @@ def get_tenancy_configs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TenancyConfigList' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_tenancy_configs, @@ -326,7 +326,7 @@ def list_tenancy_products_with_http_info(product_keys, opts = {}) return_type = opts[:debug_return_type] || 'TenancyProductsList' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tenancy_products, @@ -398,7 +398,7 @@ def update_tenancy_config_with_http_info(tenancy_ocid, body, opts = {}) return_type = opts[:debug_return_type] || 'TenancyConfig' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_tenancy_config, diff --git a/lib/datadog_api_client/v2/api/okta_integration_api.rb b/lib/datadog_api_client/v2/api/okta_integration_api.rb index 30795f651959..4906ffbe048d 100644 --- a/lib/datadog_api_client/v2/api/okta_integration_api.rb +++ b/lib/datadog_api_client/v2/api/okta_integration_api.rb @@ -70,7 +70,7 @@ def create_okta_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OktaAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_okta_account, @@ -135,7 +135,7 @@ def delete_okta_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_okta_account, @@ -200,7 +200,7 @@ def get_okta_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'OktaAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_okta_account, @@ -260,7 +260,7 @@ def list_okta_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OktaAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_okta_accounts, @@ -332,7 +332,7 @@ def update_okta_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'OktaAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_okta_account, diff --git a/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb b/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb index fcd4b00f53b7..85d6359dc0a8 100644 --- a/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb +++ b/lib/datadog_api_client/v2/api/opsgenie_integration_api.rb @@ -70,7 +70,7 @@ def create_opsgenie_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_opsgenie_account, @@ -137,7 +137,7 @@ def create_opsgenie_service_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_opsgenie_service, @@ -202,7 +202,7 @@ def delete_opsgenie_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_opsgenie_account, @@ -267,7 +267,7 @@ def delete_opsgenie_service_with_http_info(integration_service_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_opsgenie_service, @@ -332,7 +332,7 @@ def get_opsgenie_service_with_http_info(integration_service_id, opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_opsgenie_service, @@ -392,7 +392,7 @@ def list_opsgenie_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_opsgenie_accounts, @@ -452,7 +452,7 @@ def list_opsgenie_services_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_opsgenie_services, @@ -524,7 +524,7 @@ def update_opsgenie_account_with_http_info(account_id, body, opts = {}) return_type = opts[:debug_return_type] || 'OpsgenieAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_opsgenie_account, @@ -596,7 +596,7 @@ def update_opsgenie_service_with_http_info(integration_service_id, body, opts = return_type = opts[:debug_return_type] || 'OpsgenieServiceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_opsgenie_service, diff --git a/lib/datadog_api_client/v2/api/org_groups_api.rb b/lib/datadog_api_client/v2/api/org_groups_api.rb index 8c1758b9cd8f..25e65731b61e 100644 --- a/lib/datadog_api_client/v2/api/org_groups_api.rb +++ b/lib/datadog_api_client/v2/api/org_groups_api.rb @@ -76,7 +76,7 @@ def bulk_update_org_group_memberships_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupMembershipListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :bulk_update_org_group_memberships, @@ -149,7 +149,7 @@ def create_org_group_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_org_group, @@ -222,7 +222,7 @@ def create_org_group_policy_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_org_group_policy, @@ -295,7 +295,7 @@ def create_org_group_policy_override_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyOverrideResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_org_group_policy_override, @@ -366,7 +366,7 @@ def delete_org_group_with_http_info(org_group_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_org_group, @@ -437,7 +437,7 @@ def delete_org_group_policy_with_http_info(org_group_policy_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_org_group_policy, @@ -508,7 +508,7 @@ def delete_org_group_policy_override_with_http_info(org_group_policy_override_id return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_org_group_policy_override, @@ -579,7 +579,7 @@ def get_org_group_with_http_info(org_group_id, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org_group, @@ -650,7 +650,7 @@ def get_org_group_membership_with_http_info(org_group_membership_id, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupMembershipResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org_group_membership, @@ -721,7 +721,7 @@ def get_org_group_policy_with_http_info(org_group_policy_id, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org_group_policy, @@ -792,7 +792,7 @@ def get_org_group_policy_override_with_http_info(org_group_policy_override_id, o return_type = opts[:debug_return_type] || 'OrgGroupPolicyOverrideResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org_group_policy_override, @@ -881,7 +881,7 @@ def list_org_group_memberships_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupMembershipListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_group_memberships, @@ -980,7 +980,7 @@ def list_org_group_policies_with_http_info(filter_org_group_id, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_group_policies, @@ -1046,7 +1046,7 @@ def list_org_group_policy_configs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyConfigListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_group_policy_configs, @@ -1139,7 +1139,7 @@ def list_org_group_policy_overrides_with_http_info(filter_org_group_id, opts = { return_type = opts[:debug_return_type] || 'OrgGroupPolicyOverrideListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_group_policy_overrides, @@ -1211,7 +1211,7 @@ def list_org_group_policy_suggestions_with_http_info(filter_org_group_id, opts = return_type = opts[:debug_return_type] || 'OrgGroupPolicySuggestionListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_group_policy_suggestions, @@ -1296,7 +1296,7 @@ def list_org_groups_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_groups, @@ -1374,7 +1374,7 @@ def update_org_group_with_http_info(org_group_id, body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_group, @@ -1452,7 +1452,7 @@ def update_org_group_membership_with_http_info(org_group_membership_id, body, op return_type = opts[:debug_return_type] || 'OrgGroupMembershipResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_group_membership, @@ -1530,7 +1530,7 @@ def update_org_group_policy_with_http_info(org_group_policy_id, body, opts = {}) return_type = opts[:debug_return_type] || 'OrgGroupPolicyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_group_policy, @@ -1608,7 +1608,7 @@ def update_org_group_policy_override_with_http_info(org_group_policy_override_id return_type = opts[:debug_return_type] || 'OrgGroupPolicyOverrideResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_group_policy_override, diff --git a/lib/datadog_api_client/v2/api/organizations_api.rb b/lib/datadog_api_client/v2/api/organizations_api.rb index 899b509d65a4..9d575b761958 100644 --- a/lib/datadog_api_client/v2/api/organizations_api.rb +++ b/lib/datadog_api_client/v2/api/organizations_api.rb @@ -68,7 +68,7 @@ def get_org_config_with_http_info(org_config_name, opts = {}) return_type = opts[:debug_return_type] || 'OrgConfigGetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_org_config, @@ -133,7 +133,7 @@ def get_saml_configuration_with_http_info(saml_config_uuid, opts = {}) return_type = opts[:debug_return_type] || 'SAMLConfigurationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_saml_configuration, @@ -290,7 +290,7 @@ def list_org_configs_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OrgConfigListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_org_configs, @@ -412,7 +412,7 @@ def list_saml_configurations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SAMLConfigurationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_saml_configurations, @@ -552,7 +552,7 @@ def update_org_config_with_http_info(org_config_name, body, opts = {}) return_type = opts[:debug_return_type] || 'OrgConfigGetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_config, @@ -628,7 +628,7 @@ def update_org_saml_configurations_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_org_saml_configurations, @@ -704,7 +704,7 @@ def update_saml_configuration_with_http_info(saml_config_uuid, body, opts = {}) return_type = opts[:debug_return_type] || 'SAMLConfigurationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_saml_configuration, @@ -770,7 +770,7 @@ def upload_idp_metadata_with_http_info(opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upload_idp_metadata, diff --git a/lib/datadog_api_client/v2/api/product_analytics_api.rb b/lib/datadog_api_client/v2/api/product_analytics_api.rb index 21b3ce1cc2ce..b4d47be0f0c9 100644 --- a/lib/datadog_api_client/v2/api/product_analytics_api.rb +++ b/lib/datadog_api_client/v2/api/product_analytics_api.rb @@ -78,7 +78,7 @@ def query_product_analytics_journey_funnel_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsJourneyFunnelResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_journey_funnel, @@ -153,7 +153,7 @@ def query_product_analytics_journey_list_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsJourneyListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_journey_list, @@ -227,7 +227,7 @@ def query_product_analytics_journey_scalar_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsJourneyScalarResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_journey_scalar, @@ -301,7 +301,7 @@ def query_product_analytics_journey_timeseries_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsJourneyTimeseriesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_journey_timeseries, @@ -376,7 +376,7 @@ def query_product_analytics_list_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsAnalyticsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_list, @@ -450,7 +450,7 @@ def query_product_analytics_retention_grid_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsRetentionGridResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_retention_grid, @@ -524,7 +524,7 @@ def query_product_analytics_retention_list_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsRetentionListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_retention_list, @@ -597,7 +597,7 @@ def query_product_analytics_retention_scalar_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsScalarResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_retention_scalar, @@ -671,7 +671,7 @@ def query_product_analytics_retention_timeseries_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsTimeseriesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_retention_timeseries, @@ -745,7 +745,7 @@ def query_product_analytics_sankey_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsSankeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_sankey, @@ -813,7 +813,7 @@ def query_product_analytics_scalar_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsScalarResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_scalar, @@ -882,7 +882,7 @@ def query_product_analytics_timeseries_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ProductAnalyticsTimeseriesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_product_analytics_timeseries, diff --git a/lib/datadog_api_client/v2/api/report_schedules_api.rb b/lib/datadog_api_client/v2/api/report_schedules_api.rb index 9873b952fa65..0783b1b5f2d5 100644 --- a/lib/datadog_api_client/v2/api/report_schedules_api.rb +++ b/lib/datadog_api_client/v2/api/report_schedules_api.rb @@ -79,7 +79,7 @@ def create_report_schedule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_report_schedule, @@ -145,7 +145,7 @@ def delete_report_schedule_with_http_info(schedule_uuid, opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_report_schedule, @@ -211,7 +211,7 @@ def get_report_schedule_with_http_info(schedule_uuid, opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_report_schedule, @@ -287,7 +287,7 @@ def get_report_schedules_for_resource_with_http_info(resource_type, resource_id, return_type = opts[:debug_return_type] || 'ReportScheduleListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_report_schedules_for_resource, @@ -354,7 +354,7 @@ def list_dataset_report_schedules_with_http_info(dataset_id, opts = {}) return_type = opts[:debug_return_type] || 'DatasetReportScheduleListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_dataset_report_schedules, @@ -435,7 +435,7 @@ def list_report_schedules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_report_schedules, @@ -516,7 +516,7 @@ def patch_report_schedule_with_http_info(schedule_uuid, body, opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_report_schedule, @@ -585,7 +585,7 @@ def print_report_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'PrintReportResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :print_report, @@ -658,7 +658,7 @@ def toggle_report_schedule_with_http_info(schedule_uuid, body, opts = {}) return_type = opts[:debug_return_type] || 'ReportScheduleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :toggle_report_schedule, diff --git a/lib/datadog_api_client/v2/api/reporting_and_sharing_api.rb b/lib/datadog_api_client/v2/api/reporting_and_sharing_api.rb index d6e74704215b..adbba44d4a3b 100644 --- a/lib/datadog_api_client/v2/api/reporting_and_sharing_api.rb +++ b/lib/datadog_api_client/v2/api/reporting_and_sharing_api.rb @@ -76,7 +76,7 @@ def create_snapshot_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CreateSnapshotResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_snapshot, diff --git a/lib/datadog_api_client/v2/api/rum_api.rb b/lib/datadog_api_client/v2/api/rum_api.rb index d393fa173b0f..aff54848d453 100644 --- a/lib/datadog_api_client/v2/api/rum_api.rb +++ b/lib/datadog_api_client/v2/api/rum_api.rb @@ -70,7 +70,7 @@ def aggregate_rum_events_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RUMAnalyticsAggregateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :aggregate_rum_events, @@ -137,7 +137,7 @@ def create_rum_application_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RUMApplicationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_rum_application, @@ -202,7 +202,7 @@ def delete_rum_application_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_rum_application, @@ -323,7 +323,7 @@ def delete_sourcemaps_with_http_info(mapkind, dry_run, opts = {}) return_type = opts[:debug_return_type] || 'SourcemapsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_sourcemaps, @@ -389,7 +389,7 @@ def get_rum_application_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'RUMApplicationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_application, @@ -449,7 +449,7 @@ def get_rum_applications_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RUMApplicationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_applications, @@ -522,7 +522,7 @@ def get_service_repository_info_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ServiceRepositoryInfoResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_service_repository_info, @@ -607,7 +607,7 @@ def get_sourcemaps_with_http_info(filename, service, version, opts = {}) return_type = opts[:debug_return_type] || 'SourcemapFileResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_sourcemaps, @@ -691,7 +691,7 @@ def list_rum_events_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RUMEventsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_rum_events, @@ -824,7 +824,7 @@ def list_sourcemaps_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListSourcemapsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_sourcemaps, @@ -946,7 +946,7 @@ def restore_sourcemaps_with_http_info(mapkind, dry_run, opts = {}) return_type = opts[:debug_return_type] || 'SourcemapsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :restore_sourcemaps, @@ -1019,7 +1019,7 @@ def search_rum_events_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RUMEventsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_rum_events, @@ -1112,7 +1112,7 @@ def update_rum_application_with_http_info(id, body, opts = {}) return_type = opts[:debug_return_type] || 'RUMApplicationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_application, diff --git a/lib/datadog_api_client/v2/api/rum_config_api.rb b/lib/datadog_api_client/v2/api/rum_config_api.rb index ade048266ad1..67927d642cb3 100644 --- a/lib/datadog_api_client/v2/api/rum_config_api.rb +++ b/lib/datadog_api_client/v2/api/rum_config_api.rb @@ -77,7 +77,7 @@ def create_rum_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RumConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_rum_config, @@ -143,7 +143,7 @@ def get_rum_config_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RumConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_config, @@ -217,7 +217,7 @@ def update_rum_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RumConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_config, diff --git a/lib/datadog_api_client/v2/api/rum_insights_api.rb b/lib/datadog_api_client/v2/api/rum_insights_api.rb index 3a078d2cac3a..3b61b3097d67 100644 --- a/lib/datadog_api_client/v2/api/rum_insights_api.rb +++ b/lib/datadog_api_client/v2/api/rum_insights_api.rb @@ -76,7 +76,7 @@ def query_aggregated_long_tasks_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AggregatedLongTasksResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_aggregated_long_tasks, @@ -149,7 +149,7 @@ def query_aggregated_signals_problems_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AggregatedSignalsProblemsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_aggregated_signals_problems, @@ -222,7 +222,7 @@ def query_aggregated_waterfall_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AggregatedWaterfallResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :query_aggregated_waterfall, diff --git a/lib/datadog_api_client/v2/api/rum_metrics_api.rb b/lib/datadog_api_client/v2/api/rum_metrics_api.rb index 78efd45d5efd..1a804c988f46 100644 --- a/lib/datadog_api_client/v2/api/rum_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/rum_metrics_api.rb @@ -71,7 +71,7 @@ def create_rum_metric_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RumMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_rum_metric, @@ -136,7 +136,7 @@ def delete_rum_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_rum_metric, @@ -201,7 +201,7 @@ def get_rum_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] || 'RumMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_metric, @@ -261,7 +261,7 @@ def list_rum_metrics_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RumMetricsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_rum_metrics, @@ -334,7 +334,7 @@ def update_rum_metric_with_http_info(metric_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_metric, diff --git a/lib/datadog_api_client/v2/api/rum_operations_api.rb b/lib/datadog_api_client/v2/api/rum_operations_api.rb index d164ff4538a8..5005e13977fe 100644 --- a/lib/datadog_api_client/v2/api/rum_operations_api.rb +++ b/lib/datadog_api_client/v2/api/rum_operations_api.rb @@ -76,7 +76,7 @@ def create_rum_operation_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_rum_operation, @@ -151,7 +151,7 @@ def create_rum_operation_strong_link_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationStrongLinkResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_rum_operation_strong_link, @@ -222,7 +222,7 @@ def delete_rum_operation_with_http_info(rum_operation_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_rum_operation, @@ -298,7 +298,7 @@ def delete_rum_operation_strong_link_with_http_info(rum_operation_id, feature_id return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_rum_operation_strong_link, @@ -369,7 +369,7 @@ def get_rum_operation_with_http_info(rum_operation_id, opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_operation, @@ -440,7 +440,7 @@ def get_rum_operation_by_name_with_http_info(name, opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_operation_by_name, @@ -529,7 +529,7 @@ def list_rum_operations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationsListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_rum_operations, @@ -608,7 +608,7 @@ def list_rum_operation_strong_links_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationStrongLinksListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_rum_operation_strong_links, @@ -687,7 +687,7 @@ def update_rum_operation_with_http_info(rum_operation_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RUMOperationResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_operation, @@ -770,7 +770,7 @@ def update_rum_operation_strong_link_with_http_info(rum_operation_id, feature_id return_type = opts[:debug_return_type] || 'RUMOperationStrongLinkResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_operation_strong_link, diff --git a/lib/datadog_api_client/v2/api/rum_remote_config_api.rb b/lib/datadog_api_client/v2/api/rum_remote_config_api.rb index 840d3f0e08c4..aee05326ea81 100644 --- a/lib/datadog_api_client/v2/api/rum_remote_config_api.rb +++ b/lib/datadog_api_client/v2/api/rum_remote_config_api.rb @@ -74,7 +74,7 @@ def get_rum_sdk_config_with_http_info(config_id, opts = {}) return_type = opts[:debug_return_type] || 'RumSdkConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_sdk_config, @@ -153,7 +153,7 @@ def update_rum_sdk_config_with_http_info(config_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumSdkConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_rum_sdk_config, diff --git a/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb b/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb index 00621cc839bf..5b8f7a4dd296 100644 --- a/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb +++ b/lib/datadog_api_client/v2/api/rum_retention_filters_api.rb @@ -82,7 +82,7 @@ def create_exclusion_filter_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_exclusion_filter, @@ -155,7 +155,7 @@ def create_retention_filter_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_retention_filter, @@ -233,7 +233,7 @@ def delete_exclusion_filter_with_http_info(app_id, ef_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_exclusion_filter, @@ -303,7 +303,7 @@ def delete_retention_filter_with_http_info(app_id, rf_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_retention_filter, @@ -379,7 +379,7 @@ def get_exclusion_filter_with_http_info(app_id, ef_id, opts = {}) return_type = opts[:debug_return_type] || 'RumExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_exclusion_filter, @@ -454,7 +454,7 @@ def get_permanent_retention_filter_with_http_info(app_id, permanent_rf_id, opts return_type = opts[:debug_return_type] || 'RumPermanentRetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_permanent_retention_filter, @@ -524,7 +524,7 @@ def get_retention_filter_with_http_info(app_id, rf_id, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_retention_filter, @@ -596,7 +596,7 @@ def list_exclusion_filters_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'RumExclusionFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_exclusion_filters, @@ -663,7 +663,7 @@ def list_permanent_retention_filters_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'RumPermanentRetentionFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_permanent_retention_filters, @@ -728,7 +728,7 @@ def list_retention_filters_with_http_info(app_id, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionFiltersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_retention_filters, @@ -801,7 +801,7 @@ def order_retention_filters_with_http_info(app_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionFiltersOrderResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :order_retention_filters, @@ -887,7 +887,7 @@ def update_exclusion_filter_with_http_info(app_id, ef_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumExclusionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_exclusion_filter, @@ -971,7 +971,7 @@ def update_permanent_retention_filter_with_http_info(app_id, permanent_rf_id, bo return_type = opts[:debug_return_type] || 'RumPermanentRetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_permanent_retention_filter, @@ -1049,7 +1049,7 @@ def update_retention_filter_with_http_info(app_id, rf_id, body, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionFilterResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_retention_filter, diff --git a/lib/datadog_api_client/v2/api/rum_retention_quotas_api.rb b/lib/datadog_api_client/v2/api/rum_retention_quotas_api.rb index 4909e0216e7e..dfa364542bc4 100644 --- a/lib/datadog_api_client/v2/api/rum_retention_quotas_api.rb +++ b/lib/datadog_api_client/v2/api/rum_retention_quotas_api.rb @@ -78,7 +78,7 @@ def delete_rum_quota_config_with_http_info(scope_type, scope_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_rum_quota_config, @@ -153,7 +153,7 @@ def get_rum_quota_config_with_http_info(scope_type, scope_id, opts = {}) return_type = opts[:debug_return_type] || 'RumRetentionQuotaConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rum_quota_config, @@ -236,7 +236,7 @@ def upsert_rum_quota_config_with_http_info(scope_type, scope_id, body, opts = {} return_type = opts[:debug_return_type] || 'RumRetentionQuotaConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_rum_quota_config, diff --git a/lib/datadog_api_client/v2/api/rum_teams_ownership_api.rb b/lib/datadog_api_client/v2/api/rum_teams_ownership_api.rb index e28be9d38263..68dc6de887b5 100644 --- a/lib/datadog_api_client/v2/api/rum_teams_ownership_api.rb +++ b/lib/datadog_api_client/v2/api/rum_teams_ownership_api.rb @@ -77,7 +77,7 @@ def create_teams_ownership_mapping_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'TeamsOwnershipMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_teams_ownership_mapping, @@ -154,7 +154,7 @@ def create_teams_ownership_mappings_batch_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'TeamsOwnershipMappingBatchResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_teams_ownership_mappings_batch, @@ -225,7 +225,7 @@ def delete_teams_ownership_mapping_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_teams_ownership_mapping, @@ -296,7 +296,7 @@ def get_teams_ownership_mapping_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'TeamsOwnershipMappingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_teams_ownership_mapping, @@ -370,7 +370,7 @@ def list_teams_ownership_mappings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TeamsOwnershipMappingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_teams_ownership_mappings, @@ -447,7 +447,7 @@ def list_teams_ownership_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TeamsOwnershipRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_teams_ownership_rules, diff --git a/lib/datadog_api_client/v2/api/salesforce_integration_api.rb b/lib/datadog_api_client/v2/api/salesforce_integration_api.rb index 9ed66dadfbda..ab909a18485b 100644 --- a/lib/datadog_api_client/v2/api/salesforce_integration_api.rb +++ b/lib/datadog_api_client/v2/api/salesforce_integration_api.rb @@ -71,7 +71,7 @@ def create_incident_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SalesforceIncidentsTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_incident_template, @@ -136,7 +136,7 @@ def delete_incident_template_with_http_info(incident_template_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_incident_template, @@ -202,7 +202,7 @@ def delete_salesforce_organization_with_http_info(salesforce_org_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_salesforce_organization, @@ -262,7 +262,7 @@ def get_incident_templates_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SalesforceIncidentsTemplatesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_incident_templates, @@ -324,7 +324,7 @@ def get_salesforce_organizations_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SalesforceIncidentsOrganizationsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_salesforce_organizations, @@ -396,7 +396,7 @@ def update_incident_template_with_http_info(incident_template_id, body, opts = { return_type = opts[:debug_return_type] || 'SalesforceIncidentsTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_incident_template, diff --git a/lib/datadog_api_client/v2/api/seats_api.rb b/lib/datadog_api_client/v2/api/seats_api.rb index 313325075b37..1c6970321cf7 100644 --- a/lib/datadog_api_client/v2/api/seats_api.rb +++ b/lib/datadog_api_client/v2/api/seats_api.rb @@ -70,7 +70,7 @@ def assign_seats_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AssignSeatsUserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :assign_seats_user, @@ -140,7 +140,7 @@ def get_seats_users_with_http_info(product_code, opts = {}) return_type = opts[:debug_return_type] || 'SeatUserDataArray' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_seats_users, @@ -207,7 +207,7 @@ def unassign_seats_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :unassign_seats_user, diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index b01827cdc4f4..86385a23496f 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -857,7 +857,7 @@ def bulk_edit_security_monitoring_signals_assignee_with_http_info(body, opts = { return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalsBulkTriageUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :bulk_edit_security_monitoring_signals_assignee, @@ -925,7 +925,7 @@ def bulk_edit_security_monitoring_signals_state_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SecurityMonitoringSignalsBulkTriageUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :bulk_edit_security_monitoring_signals_state, @@ -1296,7 +1296,7 @@ def convert_job_result_to_signal_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :convert_job_result_to_signal, @@ -2021,7 +2021,7 @@ def create_security_findings_automation_due_date_rule_with_http_info(body, opts return_type = opts[:debug_return_type] || 'DueDateRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_findings_automation_due_date_rule, @@ -2094,7 +2094,7 @@ def create_security_findings_automation_inbox_rule_with_http_info(body, opts = { return_type = opts[:debug_return_type] || 'InboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_findings_automation_inbox_rule, @@ -2167,7 +2167,7 @@ def create_security_findings_automation_mute_rule_with_http_info(body, opts = {} return_type = opts[:debug_return_type] || 'MuteRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_findings_automation_mute_rule, @@ -2240,7 +2240,7 @@ def create_security_findings_automation_severity_modifier_rule_with_http_info(bo return_type = opts[:debug_return_type] || 'SeverityModifierRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_findings_automation_severity_modifier_rule, @@ -2313,7 +2313,7 @@ def create_security_findings_automation_ticket_creation_rule_with_http_info(body return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_security_findings_automation_ticket_creation_rule, @@ -2798,7 +2798,7 @@ def create_signal_notification_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_signal_notification_rule, @@ -3011,7 +3011,7 @@ def create_vulnerability_notification_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_vulnerability_notification_rule, @@ -3507,7 +3507,7 @@ def delete_security_findings_automation_due_date_rule_with_http_info(rule_id, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_findings_automation_due_date_rule, @@ -3578,7 +3578,7 @@ def delete_security_findings_automation_inbox_rule_with_http_info(rule_id, opts return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_findings_automation_inbox_rule, @@ -3649,7 +3649,7 @@ def delete_security_findings_automation_mute_rule_with_http_info(rule_id, opts = return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_findings_automation_mute_rule, @@ -3720,7 +3720,7 @@ def delete_security_findings_automation_severity_modifier_rule_with_http_info(ru return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_findings_automation_severity_modifier_rule, @@ -3791,7 +3791,7 @@ def delete_security_findings_automation_ticket_creation_rule_with_http_info(rule return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_security_findings_automation_ticket_creation_rule, @@ -4195,7 +4195,7 @@ def delete_signal_notification_rule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_signal_notification_rule, @@ -4260,7 +4260,7 @@ def delete_vulnerability_notification_rule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_vulnerability_notification_rule, @@ -4399,7 +4399,7 @@ def disable_security_findings_automation_default_inbox_rule_with_http_info(rule_ return_type = opts[:debug_return_type] || 'DefaultInboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :disable_security_findings_automation_default_inbox_rule, @@ -4758,7 +4758,7 @@ def enable_security_findings_automation_default_inbox_rule_with_http_info(rule_i return_type = opts[:debug_return_type] || 'DefaultInboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :enable_security_findings_automation_default_inbox_rule, @@ -5711,7 +5711,7 @@ def get_rule_version_history_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] || 'GetRuleVersionHistoryResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_rule_version_history, @@ -5795,7 +5795,7 @@ def get_sbom_with_http_info(asset_type, filter_asset_name, opts = {}) return_type = opts[:debug_return_type] || 'GetSBOMResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_sbom, @@ -6002,7 +6002,7 @@ def get_security_findings_automation_default_inbox_rule_with_http_info(rule_id, return_type = opts[:debug_return_type] || 'DefaultInboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_default_inbox_rule, @@ -6073,7 +6073,7 @@ def get_security_findings_automation_due_date_rule_with_http_info(rule_id, opts return_type = opts[:debug_return_type] || 'DueDateRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_due_date_rule, @@ -6144,7 +6144,7 @@ def get_security_findings_automation_inbox_rule_with_http_info(rule_id, opts = { return_type = opts[:debug_return_type] || 'InboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_inbox_rule, @@ -6215,7 +6215,7 @@ def get_security_findings_automation_mute_rule_with_http_info(rule_id, opts = {} return_type = opts[:debug_return_type] || 'MuteRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_mute_rule, @@ -6286,7 +6286,7 @@ def get_security_findings_automation_severity_modifier_rule_with_http_info(rule_ return_type = opts[:debug_return_type] || 'SeverityModifierRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_severity_modifier_rule, @@ -6357,7 +6357,7 @@ def get_security_findings_automation_ticket_creation_rule_with_http_info(rule_id return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_security_findings_automation_ticket_creation_rule, @@ -7212,7 +7212,7 @@ def get_signal_notification_rule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_signal_notification_rule, @@ -7272,7 +7272,7 @@ def get_signal_notification_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NotificationRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_signal_notification_rules, @@ -7971,7 +7971,7 @@ def get_vulnerability_notification_rule_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_vulnerability_notification_rule, @@ -8031,7 +8031,7 @@ def get_vulnerability_notification_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'NotificationRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_vulnerability_notification_rules, @@ -8223,7 +8223,7 @@ def list_assets_sbo_ms_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListAssetsSBOMsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_assets_sbo_ms, @@ -8850,7 +8850,7 @@ def list_scanned_assets_metadata_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ScannedAssetsMetadata' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_scanned_assets_metadata, @@ -9145,7 +9145,7 @@ def list_security_findings_automation_default_inbox_rules_with_http_info(opts = return_type = opts[:debug_return_type] || 'DefaultInboxRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_default_inbox_rules, @@ -9224,7 +9224,7 @@ def list_security_findings_automation_due_date_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'DueDateRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_due_date_rules, @@ -9303,7 +9303,7 @@ def list_security_findings_automation_inbox_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'InboxRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_inbox_rules, @@ -9382,7 +9382,7 @@ def list_security_findings_automation_mute_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'MuteRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_mute_rules, @@ -9461,7 +9461,7 @@ def list_security_findings_automation_severity_modifier_rules_with_http_info(opt return_type = opts[:debug_return_type] || 'SeverityModifierRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_severity_modifier_rules, @@ -9540,7 +9540,7 @@ def list_security_findings_automation_ticket_creation_rules_with_http_info(opts return_type = opts[:debug_return_type] || 'TicketCreationRulesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_security_findings_automation_ticket_creation_rules, @@ -10442,7 +10442,7 @@ def list_vulnerabilities_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListVulnerabilitiesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_vulnerabilities, @@ -10561,7 +10561,7 @@ def list_vulnerable_assets_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListVulnerableAssetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_vulnerable_assets, @@ -10703,7 +10703,7 @@ def patch_signal_notification_rule_with_http_info(id, body, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_signal_notification_rule, @@ -10775,7 +10775,7 @@ def patch_vulnerability_notification_rule_with_http_info(id, body, opts = {}) return_type = opts[:debug_return_type] || 'NotificationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_vulnerability_notification_rule, @@ -10848,7 +10848,7 @@ def reorder_security_findings_automation_due_date_rules_with_http_info(body, opt return_type = opts[:debug_return_type] || 'DueDateRuleReorderRequest' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_security_findings_automation_due_date_rules, @@ -10921,7 +10921,7 @@ def reorder_security_findings_automation_inbox_rules_with_http_info(body, opts = return_type = opts[:debug_return_type] || 'InboxRuleReorderResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_security_findings_automation_inbox_rules, @@ -10994,7 +10994,7 @@ def reorder_security_findings_automation_mute_rules_with_http_info(body, opts = return_type = opts[:debug_return_type] || 'MuteRuleReorderRequest' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_security_findings_automation_mute_rules, @@ -11067,7 +11067,7 @@ def reorder_security_findings_automation_severity_modifier_rules_with_http_info( return_type = opts[:debug_return_type] || 'SeverityModifierRuleReorderResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_security_findings_automation_severity_modifier_rules, @@ -11140,7 +11140,7 @@ def reorder_security_findings_automation_ticket_creation_rules_with_http_info(bo return_type = opts[:debug_return_type] || 'TicketCreationRuleReorderRequest' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_security_findings_automation_ticket_creation_rules, @@ -12115,7 +12115,7 @@ def update_security_findings_automation_due_date_rule_with_http_info(rule_id, bo return_type = opts[:debug_return_type] || 'DueDateRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_findings_automation_due_date_rule, @@ -12193,7 +12193,7 @@ def update_security_findings_automation_inbox_rule_with_http_info(rule_id, body, return_type = opts[:debug_return_type] || 'InboxRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_findings_automation_inbox_rule, @@ -12271,7 +12271,7 @@ def update_security_findings_automation_mute_rule_with_http_info(rule_id, body, return_type = opts[:debug_return_type] || 'MuteRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_findings_automation_mute_rule, @@ -12349,7 +12349,7 @@ def update_security_findings_automation_severity_modifier_rule_with_http_info(ru return_type = opts[:debug_return_type] || 'SeverityModifierRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_findings_automation_severity_modifier_rule, @@ -12427,7 +12427,7 @@ def update_security_findings_automation_ticket_creation_rule_with_http_info(rule return_type = opts[:debug_return_type] || 'TicketCreationRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_security_findings_automation_ticket_creation_rule, diff --git a/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb b/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb index c689421ef741..d076ee233969 100644 --- a/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb +++ b/lib/datadog_api_client/v2/api/sensitive_data_scanner_api.rb @@ -74,7 +74,7 @@ def create_scanning_group_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerCreateGroupResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_scanning_group, @@ -145,7 +145,7 @@ def create_scanning_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerCreateRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_scanning_rule, @@ -217,7 +217,7 @@ def delete_scanning_group_with_http_info(group_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerGroupDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_scanning_group, @@ -289,7 +289,7 @@ def delete_scanning_rule_with_http_info(rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerRuleDeleteResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_scanning_rule, @@ -349,7 +349,7 @@ def list_scanning_groups_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerGetConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_scanning_groups, @@ -409,7 +409,7 @@ def list_standard_patterns_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerStandardPatternsResponseData' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_standard_patterns, @@ -476,7 +476,7 @@ def reorder_scanning_groups_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerReorderGroupsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :reorder_scanning_groups, @@ -551,7 +551,7 @@ def update_scanning_group_with_http_info(group_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerGroupUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_scanning_group, @@ -626,7 +626,7 @@ def update_scanning_rule_with_http_info(rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SensitiveDataScannerRuleUpdateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_scanning_rule, diff --git a/lib/datadog_api_client/v2/api/service_accounts_api.rb b/lib/datadog_api_client/v2/api/service_accounts_api.rb index 9c8da1af1af8..e41398a48fa7 100644 --- a/lib/datadog_api_client/v2/api/service_accounts_api.rb +++ b/lib/datadog_api_client/v2/api/service_accounts_api.rb @@ -70,7 +70,7 @@ def create_service_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_service_account, @@ -142,7 +142,7 @@ def create_service_account_access_token_with_http_info(service_account_id, body, return_type = opts[:debug_return_type] || 'ServiceAccessTokenCreateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_service_account_access_token, @@ -214,7 +214,7 @@ def create_service_account_application_key_with_http_info(service_account_id, bo return_type = opts[:debug_return_type] || 'ApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_service_account_application_key, @@ -284,7 +284,7 @@ def delete_service_account_application_key_with_http_info(service_account_id, ap return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_service_account_application_key, @@ -354,7 +354,7 @@ def get_service_account_access_token_with_http_info(service_account_id, token_id return_type = opts[:debug_return_type] || 'ServiceAccessTokenResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_service_account_access_token, @@ -424,7 +424,7 @@ def get_service_account_application_key_with_http_info(service_account_id, app_k return_type = opts[:debug_return_type] || 'PartialApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_service_account_application_key, @@ -501,7 +501,7 @@ def list_service_account_access_tokens_with_http_info(service_account_id, opts = return_type = opts[:debug_return_type] || 'ListServiceAccessTokensResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_account_access_tokens, @@ -582,7 +582,7 @@ def list_service_account_application_keys_with_http_info(service_account_id, opt return_type = opts[:debug_return_type] || 'ListApplicationKeysResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_account_application_keys, @@ -652,7 +652,7 @@ def revoke_service_account_access_token_with_http_info(service_account_id, token return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :revoke_service_account_access_token, @@ -729,7 +729,7 @@ def update_service_account_access_token_with_http_info(service_account_id, token return_type = opts[:debug_return_type] || 'ServiceAccessTokenResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_service_account_access_token, @@ -806,7 +806,7 @@ def update_service_account_application_key_with_http_info(service_account_id, ap return_type = opts[:debug_return_type] || 'PartialApplicationKeyResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_service_account_application_key, diff --git a/lib/datadog_api_client/v2/api/service_now_integration_api.rb b/lib/datadog_api_client/v2/api/service_now_integration_api.rb index 359959b8e9fc..c9dd380440ce 100644 --- a/lib/datadog_api_client/v2/api/service_now_integration_api.rb +++ b/lib/datadog_api_client/v2/api/service_now_integration_api.rb @@ -70,7 +70,7 @@ def create_service_now_template_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_service_now_template, @@ -135,7 +135,7 @@ def delete_service_now_template_with_http_info(template_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_service_now_template, @@ -200,7 +200,7 @@ def get_service_now_template_with_http_info(template_id, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_service_now_template, @@ -265,7 +265,7 @@ def list_service_now_assignment_groups_with_http_info(instance_id, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowAssignmentGroupsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_now_assignment_groups, @@ -330,7 +330,7 @@ def list_service_now_business_services_with_http_info(instance_id, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowBusinessServicesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_now_business_services, @@ -390,7 +390,7 @@ def list_service_now_instances_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowInstancesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_now_instances, @@ -450,7 +450,7 @@ def list_service_now_templates_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowTemplatesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_now_templates, @@ -515,7 +515,7 @@ def list_service_now_users_with_http_info(instance_id, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowUsersResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_service_now_users, @@ -587,7 +587,7 @@ def update_service_now_template_with_http_info(template_id, body, opts = {}) return_type = opts[:debug_return_type] || 'ServiceNowTemplateResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_service_now_template, diff --git a/lib/datadog_api_client/v2/api/slack_integration_api.rb b/lib/datadog_api_client/v2/api/slack_integration_api.rb index 0ca9bfa45889..bb6a7be06639 100644 --- a/lib/datadog_api_client/v2/api/slack_integration_api.rb +++ b/lib/datadog_api_client/v2/api/slack_integration_api.rb @@ -69,7 +69,7 @@ def list_slack_user_bindings_with_http_info(user_uuid, opts = {}) return_type = opts[:debug_return_type] || 'SlackUserBindingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_slack_user_bindings, diff --git a/lib/datadog_api_client/v2/api/snowflake_integration_api.rb b/lib/datadog_api_client/v2/api/snowflake_integration_api.rb index db5969412411..7a444cdcfb03 100644 --- a/lib/datadog_api_client/v2/api/snowflake_integration_api.rb +++ b/lib/datadog_api_client/v2/api/snowflake_integration_api.rb @@ -76,7 +76,7 @@ def create_snowflake_integration_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SnowflakeIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_snowflake_integration_account, @@ -147,7 +147,7 @@ def delete_snowflake_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_snowflake_integration_account, @@ -218,7 +218,7 @@ def get_snowflake_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'SnowflakeIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_snowflake_integration_account, @@ -284,7 +284,7 @@ def list_snowflake_integration_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SnowflakeIntegrationAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_snowflake_integration_accounts, @@ -362,7 +362,7 @@ def update_snowflake_integration_account_with_http_info(account_id, body, opts = return_type = opts[:debug_return_type] || 'SnowflakeIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_snowflake_integration_account, diff --git a/lib/datadog_api_client/v2/api/spans_metrics_api.rb b/lib/datadog_api_client/v2/api/spans_metrics_api.rb index 4b6b1977e4a4..5e29d0c66980 100644 --- a/lib/datadog_api_client/v2/api/spans_metrics_api.rb +++ b/lib/datadog_api_client/v2/api/spans_metrics_api.rb @@ -71,7 +71,7 @@ def create_spans_metric_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SpansMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_spans_metric, @@ -136,7 +136,7 @@ def delete_spans_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_spans_metric, @@ -201,7 +201,7 @@ def get_spans_metric_with_http_info(metric_id, opts = {}) return_type = opts[:debug_return_type] || 'SpansMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_spans_metric, @@ -261,7 +261,7 @@ def list_spans_metrics_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SpansMetricsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_spans_metrics, @@ -334,7 +334,7 @@ def update_spans_metric_with_http_info(metric_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SpansMetricResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_spans_metric, diff --git a/lib/datadog_api_client/v2/api/static_analysis_api.rb b/lib/datadog_api_client/v2/api/static_analysis_api.rb index e74695f4c771..65a44dd48d98 100644 --- a/lib/datadog_api_client/v2/api/static_analysis_api.rb +++ b/lib/datadog_api_client/v2/api/static_analysis_api.rb @@ -81,7 +81,7 @@ def create_ai_custom_rule_with_http_info(ruleset_name, body, opts = {}) return_type = opts[:debug_return_type] || 'AiCustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_ai_custom_rule, @@ -164,7 +164,7 @@ def create_ai_custom_rule_revision_with_http_info(ruleset_name, rule_name, body, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_ai_custom_rule_revision, @@ -237,7 +237,7 @@ def create_ai_custom_ruleset_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'AiCustomRulesetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_ai_custom_ruleset, @@ -310,7 +310,7 @@ def create_ai_memory_violation_result_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_ai_memory_violation_result, @@ -388,7 +388,7 @@ def create_custom_rule_with_http_info(ruleset_name, body, opts = {}) return_type = opts[:debug_return_type] || 'CustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_custom_rule, @@ -471,7 +471,7 @@ def create_custom_rule_revision_with_http_info(ruleset_name, rule_name, body, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_custom_rule_revision, @@ -830,7 +830,7 @@ def delete_ai_custom_rule_with_http_info(ruleset_name, rule_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_ai_custom_rule, @@ -901,7 +901,7 @@ def delete_ai_custom_ruleset_with_http_info(ruleset_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_ai_custom_ruleset, @@ -972,7 +972,7 @@ def delete_ai_memory_violation_result_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_ai_memory_violation_result, @@ -1048,7 +1048,7 @@ def delete_custom_rule_with_http_info(ruleset_name, rule_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_custom_rule, @@ -1119,7 +1119,7 @@ def delete_custom_ruleset_with_http_info(ruleset_name, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_custom_ruleset, @@ -1195,7 +1195,7 @@ def get_ai_custom_rule_with_http_info(ruleset_name, rule_name, opts = {}) return_type = opts[:debug_return_type] || 'AiCustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ai_custom_rule, @@ -1276,7 +1276,7 @@ def get_ai_custom_rule_revision_with_http_info(ruleset_name, rule_name, id, opts return_type = opts[:debug_return_type] || 'AiCustomRuleRevisionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ai_custom_rule_revision, @@ -1347,7 +1347,7 @@ def get_ai_custom_ruleset_with_http_info(ruleset_name, opts = {}) return_type = opts[:debug_return_type] || 'AiCustomRulesetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_ai_custom_ruleset, @@ -1423,7 +1423,7 @@ def get_custom_rule_with_http_info(ruleset_name, rule_name, opts = {}) return_type = opts[:debug_return_type] || 'CustomRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_custom_rule, @@ -1504,7 +1504,7 @@ def get_custom_rule_revision_with_http_info(ruleset_name, rule_name, id, opts = return_type = opts[:debug_return_type] || 'CustomRuleRevisionResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_custom_rule_revision, @@ -1575,7 +1575,7 @@ def get_custom_ruleset_with_http_info(ruleset_name, opts = {}) return_type = opts[:debug_return_type] || 'CustomRulesetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_custom_ruleset, @@ -1723,7 +1723,7 @@ def list_ai_custom_rule_revisions_with_http_info(ruleset_name, rule_name, opts = return_type = opts[:debug_return_type] || 'AiCustomRuleRevisionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ai_custom_rule_revisions, @@ -1814,7 +1814,7 @@ def list_ai_custom_rulesets_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AiCustomRulesetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ai_custom_rulesets, @@ -1880,7 +1880,7 @@ def list_ai_memory_violation_results_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AiMemoryViolationResultsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ai_memory_violation_results, @@ -1946,7 +1946,7 @@ def list_ai_prompts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'AiPromptsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_ai_prompts, @@ -2026,7 +2026,7 @@ def list_custom_rule_revisions_with_http_info(ruleset_name, rule_name, opts = {} return_type = opts[:debug_return_type] || 'CustomRuleRevisionsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_custom_rule_revisions, @@ -2176,7 +2176,7 @@ def list_sca_licenses_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'LicensesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_sca_licenses, @@ -2259,7 +2259,7 @@ def revert_custom_rule_revision_with_http_info(ruleset_name, rule_name, body, op return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :revert_custom_rule_revision, @@ -2337,7 +2337,7 @@ def update_ai_custom_ruleset_with_http_info(ruleset_name, body, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_ai_custom_ruleset, @@ -2415,7 +2415,7 @@ def update_custom_ruleset_with_http_info(ruleset_name, body, opts = {}) return_type = opts[:debug_return_type] || 'CustomRulesetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_custom_ruleset, diff --git a/lib/datadog_api_client/v2/api/statuspage_integration_api.rb b/lib/datadog_api_client/v2/api/statuspage_integration_api.rb index 03aebf206375..7fe1df0107fb 100644 --- a/lib/datadog_api_client/v2/api/statuspage_integration_api.rb +++ b/lib/datadog_api_client/v2/api/statuspage_integration_api.rb @@ -71,7 +71,7 @@ def create_statuspage_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'StatuspageAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_statuspage_account, @@ -138,7 +138,7 @@ def create_statuspage_url_setting_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'StatuspageUrlSettingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_statuspage_url_setting, @@ -198,7 +198,7 @@ def delete_statuspage_account_with_http_info(opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_statuspage_account, @@ -263,7 +263,7 @@ def delete_statuspage_url_setting_with_http_info(statuspage_url_setting_id, opts return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_statuspage_url_setting, @@ -323,7 +323,7 @@ def get_statuspage_account_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'StatuspageAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_statuspage_account, @@ -383,7 +383,7 @@ def list_statuspage_url_settings_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'StatuspageUrlSettingsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_statuspage_url_settings, @@ -450,7 +450,7 @@ def update_statuspage_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'StatuspageAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_statuspage_account, @@ -522,7 +522,7 @@ def update_statuspage_url_setting_with_http_info(statuspage_url_setting_id, body return_type = opts[:debug_return_type] || 'StatuspageUrlSettingResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_statuspage_url_setting, diff --git a/lib/datadog_api_client/v2/api/stegadography_api.rb b/lib/datadog_api_client/v2/api/stegadography_api.rb index 7b820711a336..1b5d7858eb5b 100644 --- a/lib/datadog_api_client/v2/api/stegadography_api.rb +++ b/lib/datadog_api_client/v2/api/stegadography_api.rb @@ -74,7 +74,7 @@ def get_stegadography_widgets_with_http_info(image, opts = {}) return_type = opts[:debug_return_type] || 'StegadographyGetWidgetsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_stegadography_widgets, diff --git a/lib/datadog_api_client/v2/api/storage_management_api.rb b/lib/datadog_api_client/v2/api/storage_management_api.rb index edd562252d8c..bf5f478d3d01 100644 --- a/lib/datadog_api_client/v2/api/storage_management_api.rb +++ b/lib/datadog_api_client/v2/api/storage_management_api.rb @@ -68,7 +68,7 @@ def delete_sync_config_with_http_info(id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_sync_config, @@ -135,7 +135,7 @@ def upsert_sync_config_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CloudInventorySyncConfigResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :upsert_sync_config, diff --git a/lib/datadog_api_client/v2/api/synthetics_api.rb b/lib/datadog_api_client/v2/api/synthetics_api.rb index fc1f3e50d5ef..50d7ea829137 100644 --- a/lib/datadog_api_client/v2/api/synthetics_api.rb +++ b/lib/datadog_api_client/v2/api/synthetics_api.rb @@ -146,7 +146,7 @@ def add_test_to_synthetics_downtime_with_http_info(downtime_id, test_id, opts = return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_test_to_synthetics_downtime, @@ -286,7 +286,7 @@ def create_synthetics_downtime_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_synthetics_downtime, @@ -479,7 +479,7 @@ def delete_synthetics_downtime_with_http_info(downtime_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_synthetics_downtime, @@ -868,7 +868,7 @@ def get_on_demand_concurrency_cap_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'OnDemandConcurrencyCapResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_on_demand_concurrency_cap, @@ -1007,7 +1007,7 @@ def get_synthetics_downtime_with_http_info(downtime_id, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_synthetics_downtime, @@ -1702,7 +1702,7 @@ def list_synthetics_downtimes_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsDowntimesResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_synthetics_downtimes, @@ -1939,7 +1939,7 @@ def patch_global_variable_with_http_info(variable_id, body, opts = {}) return_type = opts[:debug_return_type] || 'GlobalVariableResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :patch_global_variable, @@ -2154,7 +2154,7 @@ def remove_test_from_synthetics_downtime_with_http_info(downtime_id, test_id, op return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :remove_test_from_synthetics_downtime, @@ -2291,7 +2291,7 @@ def set_on_demand_concurrency_cap_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'OnDemandConcurrencyCapResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :set_on_demand_concurrency_cap, @@ -2363,7 +2363,7 @@ def update_synthetics_downtime_with_http_info(downtime_id, body, opts = {}) return_type = opts[:debug_return_type] || 'SyntheticsDowntimeResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_synthetics_downtime, diff --git a/lib/datadog_api_client/v2/api/tag_rules_api.rb b/lib/datadog_api_client/v2/api/tag_rules_api.rb index 631f7e882ee2..4685f61e9665 100644 --- a/lib/datadog_api_client/v2/api/tag_rules_api.rb +++ b/lib/datadog_api_client/v2/api/tag_rules_api.rb @@ -78,7 +78,7 @@ def create_tag_rule_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'TagRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_tag_rule, @@ -153,7 +153,7 @@ def delete_tag_rule_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_tag_rule, @@ -236,7 +236,7 @@ def get_tag_rule_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] || 'TagRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_tag_rule, @@ -314,7 +314,7 @@ def get_tag_rule_score_with_http_info(rule_id, opts = {}) return_type = opts[:debug_return_type] || 'TagRuleScoreResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_tag_rule_score, @@ -402,7 +402,7 @@ def list_tag_rules_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TagRulesListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_tag_rules, @@ -482,7 +482,7 @@ def update_tag_rule_with_http_info(rule_id, body, opts = {}) return_type = opts[:debug_return_type] || 'TagRuleResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_tag_rule, diff --git a/lib/datadog_api_client/v2/api/threat_intelligence_api.rb b/lib/datadog_api_client/v2/api/threat_intelligence_api.rb index 8578786f6662..f88522dfce7e 100644 --- a/lib/datadog_api_client/v2/api/threat_intelligence_api.rb +++ b/lib/datadog_api_client/v2/api/threat_intelligence_api.rb @@ -98,7 +98,7 @@ def add_stix_threat_intel_with_http_info(ti_vendor, body, opts = {}) return_type = opts[:debug_return_type] || 'STIXIngestResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :add_stix_threat_intel, diff --git a/lib/datadog_api_client/v2/api/twilio_integration_api.rb b/lib/datadog_api_client/v2/api/twilio_integration_api.rb index e0d5c33462ce..1c3eec150cb1 100644 --- a/lib/datadog_api_client/v2/api/twilio_integration_api.rb +++ b/lib/datadog_api_client/v2/api/twilio_integration_api.rb @@ -76,7 +76,7 @@ def create_twilio_integration_account_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'TwilioIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_twilio_integration_account, @@ -147,7 +147,7 @@ def delete_twilio_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_twilio_integration_account, @@ -218,7 +218,7 @@ def get_twilio_integration_account_with_http_info(account_id, opts = {}) return_type = opts[:debug_return_type] || 'TwilioIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_twilio_integration_account, @@ -284,7 +284,7 @@ def list_twilio_integration_accounts_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'TwilioIntegrationAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_twilio_integration_accounts, @@ -362,7 +362,7 @@ def update_twilio_integration_account_with_http_info(account_id, body, opts = {} return_type = opts[:debug_return_type] || 'TwilioIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_twilio_integration_account, diff --git a/lib/datadog_api_client/v2/api/users_api.rb b/lib/datadog_api_client/v2/api/users_api.rb index 343d3edce5bb..3bf8206fef27 100644 --- a/lib/datadog_api_client/v2/api/users_api.rb +++ b/lib/datadog_api_client/v2/api/users_api.rb @@ -340,7 +340,7 @@ def get_current_user_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_current_user, @@ -905,7 +905,7 @@ def update_current_user_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'UserResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_current_user, diff --git a/lib/datadog_api_client/v2/api/web_integrations_api.rb b/lib/datadog_api_client/v2/api/web_integrations_api.rb index e7e05836fe10..3fcd4acdeb98 100644 --- a/lib/datadog_api_client/v2/api/web_integrations_api.rb +++ b/lib/datadog_api_client/v2/api/web_integrations_api.rb @@ -81,7 +81,7 @@ def create_web_integration_account_with_http_info(integration_name, body, opts = return_type = opts[:debug_return_type] || 'WebIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_web_integration_account, @@ -157,7 +157,7 @@ def delete_web_integration_account_with_http_info(integration_name, account_id, return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_web_integration_account, @@ -233,7 +233,7 @@ def get_web_integration_account_with_http_info(integration_name, account_id, opt return_type = opts[:debug_return_type] || 'WebIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_web_integration_account, @@ -304,7 +304,7 @@ def list_web_integration_accounts_with_http_info(integration_name, opts = {}) return_type = opts[:debug_return_type] || 'WebIntegrationAccountsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_web_integration_accounts, @@ -387,7 +387,7 @@ def update_web_integration_account_with_http_info(integration_name, account_id, return_type = opts[:debug_return_type] || 'WebIntegrationAccountResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_web_integration_account, diff --git a/lib/datadog_api_client/v2/api/webhooks_integration_api.rb b/lib/datadog_api_client/v2/api/webhooks_integration_api.rb index bf89844dff1a..8af4e84e695b 100644 --- a/lib/datadog_api_client/v2/api/webhooks_integration_api.rb +++ b/lib/datadog_api_client/v2/api/webhooks_integration_api.rb @@ -71,7 +71,7 @@ def create_o_auth2_client_credentials_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'WebhooksOAuth2ClientCredentialsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_o_auth2_client_credentials, @@ -136,7 +136,7 @@ def delete_o_auth2_client_credentials_with_http_info(auth_method_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_o_auth2_client_credentials, @@ -203,7 +203,7 @@ def get_all_auth_methods_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'WebhooksAuthMethodsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_all_auth_methods, @@ -268,7 +268,7 @@ def get_o_auth2_client_credentials_with_http_info(auth_method_id, opts = {}) return_type = opts[:debug_return_type] || 'WebhooksOAuth2ClientCredentialsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_o_auth2_client_credentials, @@ -340,7 +340,7 @@ def update_o_auth2_client_credentials_with_http_info(auth_method_id, body, opts return_type = opts[:debug_return_type] || 'WebhooksOAuth2ClientCredentialsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_o_auth2_client_credentials, diff --git a/lib/datadog_api_client/v2/api/widgets_api.rb b/lib/datadog_api_client/v2/api/widgets_api.rb index f5d8875ce94d..258f4309f48a 100644 --- a/lib/datadog_api_client/v2/api/widgets_api.rb +++ b/lib/datadog_api_client/v2/api/widgets_api.rb @@ -80,7 +80,7 @@ def create_widget_with_http_info(experience_type, body, opts = {}) return_type = opts[:debug_return_type] || 'WidgetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_widget, @@ -155,7 +155,7 @@ def delete_widget_with_http_info(experience_type, uuid, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_widget, @@ -230,7 +230,7 @@ def get_widget_with_http_info(experience_type, uuid, opts = {}) return_type = opts[:debug_return_type] || 'WidgetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_widget, @@ -335,7 +335,7 @@ def search_widgets_with_http_info(experience_type, opts = {}) return_type = opts[:debug_return_type] || 'WidgetListResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :search_widgets, @@ -417,7 +417,7 @@ def update_widget_with_http_info(experience_type, uuid, body, opts = {}) return_type = opts[:debug_return_type] || 'WidgetResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_widget, diff --git a/lib/datadog_api_client/v2/api/workflow_automation_api.rb b/lib/datadog_api_client/v2/api/workflow_automation_api.rb index 5120175cdf33..4138742e1075 100644 --- a/lib/datadog_api_client/v2/api/workflow_automation_api.rb +++ b/lib/datadog_api_client/v2/api/workflow_automation_api.rb @@ -73,7 +73,7 @@ def cancel_workflow_instance_with_http_info(workflow_id, instance_id, opts = {}) return_type = opts[:debug_return_type] || 'WorklflowCancelInstanceResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :cancel_workflow_instance, @@ -140,7 +140,7 @@ def create_workflow_with_http_info(body, opts = {}) return_type = opts[:debug_return_type] || 'CreateWorkflowResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :create_workflow, @@ -277,7 +277,7 @@ def delete_workflow_with_http_info(workflow_id, opts = {}) return_type = opts[:debug_return_type] # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :delete_workflow, @@ -342,7 +342,7 @@ def get_workflow_with_http_info(workflow_id, opts = {}) return_type = opts[:debug_return_type] || 'GetWorkflowResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :get_workflow, @@ -555,7 +555,7 @@ def list_workflows_with_http_info(opts = {}) return_type = opts[:debug_return_type] || 'ListWorkflowsResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :list_workflows, @@ -650,7 +650,7 @@ def update_workflow_with_http_info(workflow_id, body, opts = {}) return_type = opts[:debug_return_type] || 'UpdateWorkflowResponse' # auth_names - auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth] + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] new_options = opts.merge( :operation => :update_workflow,