datadog_api_client 2.9.0 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +5 -24
- data/.generator/poetry.lock +164 -189
- data/.generator/schemas/v1/openapi.yaml +901 -30
- data/.generator/schemas/v2/openapi.yaml +3810 -1428
- data/.generator/src/generator/formatter.py +1 -1
- data/.generator/src/generator/openapi.py +2 -1
- data/.generator/src/generator/templates/api_client.j2 +2 -2
- data/.generator/src/generator/templates/example.j2 +1 -1
- data/.generator/src/generator/templates/model_oneof.j2 +1 -1
- data/.github/workflows/test.yml +1 -1
- data/.github/workflows/test_integration.yml +3 -3
- data/CHANGELOG.md +36 -0
- data/README.md +1 -1
- data/examples/v1/dashboard-lists/CreateDashboardList.rb +1 -1
- data/examples/v1/dashboard-lists/UpdateDashboardList.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1024858348.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1039800684.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_109450134.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1094917386.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1177423752.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1200099236.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1423904722.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_145494973.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_173805046.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1738608750.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2029850837.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2034634967.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2064651578.rb +64 -0
- data/examples/v1/dashboards/CreateDashboard_2104498738.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2308247857.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2316374332.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2336428357.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2338918735.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2342457693.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2349863258.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2432046716.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2490110261.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2607944105.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2610827685.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2634813877.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2644712913.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2705593938.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2800096921.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2843286292.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2917274132.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2921337351.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3117424216.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3195475781.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3250131584.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +2 -2
- data/examples/v1/dashboards/CreateDashboard_3982498788.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_4026341408.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_4076476470.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_41622531.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_417992286.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_578885732.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_651038379.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_765140092.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_798168180.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_803346562.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_913313564.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_915214113.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_927141680.rb +1 -1
- data/examples/v1/dashboards/CreatePublicDashboard.rb +17 -0
- data/examples/v1/dashboards/DeletePublicDashboard.rb +5 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +16 -0
- data/examples/v1/dashboards/GetPublicDashboard.rb +8 -0
- data/examples/v1/dashboards/GetPublicDashboardInvitations.rb +8 -0
- data/examples/v1/dashboards/SendPublicDashboardInvitation.rb +17 -0
- data/examples/v1/dashboards/UpdateDashboard.rb +1 -1
- data/examples/v1/dashboards/UpdateDashboard_3454865944.rb +40 -0
- data/examples/v1/dashboards/UpdatePublicDashboard.rb +16 -0
- data/examples/v1/downtimes/CreateDowntime.rb +2 -2
- data/examples/v1/downtimes/CreateDowntime_1393233946.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_3355644446.rb +2 -2
- data/examples/v1/downtimes/ListDowntimes.rb +4 -1
- data/examples/v1/downtimes/UpdateDowntime.rb +1 -1
- data/examples/v1/events/CreateEvent.rb +2 -2
- data/examples/v1/events/CreateEvent_19927815.rb +2 -2
- data/examples/v1/logs/SubmitLog.rb +2 -2
- data/examples/v1/logs/SubmitLog_1920474053.rb +2 -2
- data/examples/v1/logs/SubmitLog_3418823904.rb +2 -2
- data/examples/v1/metrics/SubmitMetrics.rb +1 -1
- data/examples/v1/metrics/SubmitMetrics_2203981258.rb +1 -1
- data/examples/v1/monitors/CreateMonitor.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_1969035628.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_2012680290.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_2520912138.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3790803616.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3824294658.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3883669300.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_440013737.rb +2 -2
- data/examples/v1/monitors/ListMonitors_3448441939.rb +1 -1
- data/examples/v1/monitors/ValidateExistingMonitor.rb +2 -2
- data/examples/v1/monitors/ValidateMonitor.rb +2 -2
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +2 -2
- data/examples/v1/notebooks/CreateNotebook.rb +1 -1
- data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
- data/examples/v1/service-checks/SubmitServiceCheck.rb +1 -1
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +1 -1
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +1 -1
- data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +1 -1
- data/examples/v1/service-level-objectives/CreateSLO.rb +1 -1
- data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +1 -1
- data/examples/v1/synthetics/CreatePrivateLocation.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
- data/examples/v1/synthetics/UpdateAPITest.rb +2 -2
- data/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb +1 -1
- data/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb +1 -1
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +2 -2
- data/examples/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +2 -2
- data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +1 -1
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -1
- data/examples/v2/events/ListEvents.rb +1 -1
- data/examples/v2/events/ListEvents_1527584014.rb +1 -1
- data/examples/v2/events/ListEvents_2663715109.rb +1 -1
- data/examples/v2/events/SearchEvents.rb +1 -1
- data/examples/v2/events/SearchEvents_3856995058.rb +1 -1
- data/examples/v2/fastly-integration/CreateFastlyAccount.rb +2 -2
- data/examples/v2/incident-services/CreateIncidentService.rb +2 -2
- data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
- data/examples/v2/incident-services/GetIncidentService.rb +1 -1
- data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
- data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
- data/examples/v2/incident-teams/CreateIncidentTeam.rb +2 -2
- data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
- data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
- data/examples/v2/incidents/CreateIncident.rb +2 -2
- data/examples/v2/incidents/CreateIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/CreateIncidentTodo.rb +23 -0
- data/examples/v2/incidents/DeleteIncident.rb +1 -1
- data/examples/v2/incidents/DeleteIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/DeleteIncidentTodo.rb +14 -0
- data/examples/v2/incidents/GetIncident.rb +1 -1
- data/examples/v2/incidents/GetIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/GetIncidentTodo.rb +14 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +1 -1
- data/examples/v2/incidents/ListIncidentIntegrations.rb +1 -1
- data/examples/v2/incidents/ListIncidentTodos.rb +11 -0
- data/examples/v2/incidents/ListIncidents.rb +1 -1
- data/examples/v2/incidents/ListIncidents_2665616954.rb +1 -1
- data/examples/v2/incidents/SearchIncidents.rb +1 -1
- data/examples/v2/incidents/SearchIncidents_1931679109.rb +11 -0
- data/examples/v2/incidents/UpdateIncident.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +2 -2
- data/examples/v2/incidents/UpdateIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentTodo.rb +28 -0
- data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
- data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
- data/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +1 -1
- data/examples/v2/key-management/CreateAPIKey.rb +1 -1
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +1 -1
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb +1 -1
- data/examples/v2/key-management/UpdateAPIKey.rb +1 -1
- data/examples/v2/logs/SubmitLog.rb +1 -1
- data/examples/v2/logs-metrics/CreateLogsMetric.rb +1 -1
- data/examples/v2/logs-metrics/DeleteLogsMetric.rb +1 -1
- data/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb +1 -1
- data/examples/v2/metrics/CreateTagConfiguration.rb +2 -2
- data/examples/v2/metrics/DeleteTagConfiguration.rb +1 -1
- data/examples/v2/metrics/ListActiveMetricConfigurations.rb +1 -1
- data/examples/v2/metrics/ListTagConfigurations_265033704.rb +1 -1
- data/examples/v2/metrics/ListVolumesByMetricName.rb +1 -1
- data/examples/v2/metrics/QueryScalarData.rb +1 -1
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +1 -1
- data/examples/v2/metrics/QueryTimeseriesData.rb +1 -1
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +1 -1
- data/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +1 -1
- data/examples/v2/roles/CloneRole.rb +1 -1
- data/examples/v2/roles/CreateRole.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityFilter.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityFilter.rb +2 -2
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
- data/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +1 -1
- data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +1 -1
- data/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +1 -1
- data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccount.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb +1 -1
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +19 -27
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb +54 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb +53 -0
- data/examples/v2/service-definition/ListServiceDefinitions_336468013.rb +8 -0
- data/examples/v2/spans-metrics/CreateSpansMetric.rb +28 -0
- data/examples/v2/spans-metrics/DeleteSpansMetric.rb +8 -0
- data/examples/v2/spans-metrics/GetSpansMetric.rb +8 -0
- data/examples/v2/spans-metrics/ListSpansMetrics.rb +5 -0
- data/examples/v2/spans-metrics/UpdateSpansMetric.rb +29 -0
- data/examples/v2/teams/CreateTeam.rb +20 -0
- data/examples/v2/teams/CreateTeamLink.rb +19 -0
- data/examples/v2/teams/CreateTeamMembership.rb +22 -0
- data/examples/v2/teams/DeleteTeam.rb +8 -0
- data/examples/v2/teams/DeleteTeamLink.rb +11 -0
- data/examples/v2/teams/DeleteTeamMembership.rb +8 -0
- data/examples/v2/teams/GetTeam.rb +8 -0
- data/examples/v2/teams/GetTeamLink.rb +11 -0
- data/examples/v2/teams/GetTeamLinks.rb +8 -0
- data/examples/v2/teams/GetTeamMemberships.rb +8 -0
- data/examples/v2/teams/GetTeamPermissionSettings.rb +8 -0
- data/examples/v2/teams/ListTeams.rb +5 -0
- data/examples/v2/teams/UpdateTeam.rb +20 -0
- data/examples/v2/teams/UpdateTeamLink.rb +21 -0
- data/examples/v2/teams/UpdateTeamMembership.rb +14 -0
- data/examples/v2/teams/UpdateTeamPermissionSetting.rb +17 -0
- data/examples/v2/users/CreateUser.rb +1 -1
- data/lib/datadog_api_client/api_client.rb +2 -2
- data/lib/datadog_api_client/configuration.rb +10 -0
- data/lib/datadog_api_client/inflector.rb +126 -0
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +482 -0
- data/lib/datadog_api_client/v1/api/downtimes_api.rb +2 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +9 -6
- data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/dashboard.rb +25 -1
- data/lib/datadog_api_client/v1/models/dashboard_global_time.rb +91 -0
- data/lib/datadog_api_client/v1/models/dashboard_global_time_live_span.rb +33 -0
- data/lib/datadog_api_client/v1/models/dashboard_invite_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/dashboard_share_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/dashboard_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +91 -0
- data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
- data/lib/datadog_api_client/v1/models/downtime.rb +1 -0
- data/lib/datadog_api_client/v1/models/downtime_child.rb +1 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/host.rb +8 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +19 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/logs_list_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +19 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +46 -6
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
- data/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +131 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard.rb +228 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +109 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +112 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data.rb +63 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +123 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +149 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +91 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +91 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +147 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +91 -0
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +3 -0
- data/lib/datadog_api_client/v1/models/slo_creator.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +9 -0
- data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +7 -7
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +11 -0
- data/lib/datadog_api_client/v1/models/usage_cws_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -0
- data/lib/datadog_api_client/v1/models/usage_host_hour.rb +22 -0
- data/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_logs_hour.rb +26 -1
- data/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +1 -0
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +409 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +9 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +25 -0
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +1166 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +9 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/creator.rb +8 -0
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +8 -0
- data/lib/datadog_api_client/v2/models/get_team_memberships_sort.rb +33 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_search_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +91 -0
- data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee_source.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_todo_assignee.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +126 -0
- data/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response.rb +114 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_todo_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_teams_include.rb +27 -0
- data/lib/datadog_api_client/v2/models/list_teams_sort.rb +29 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +93 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +91 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +102 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/scalar_column.rb +1 -1
- data/lib/datadog_api_client/v2/models/scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +8 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_definition_schema.rb +3 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_contact.rb +3 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +229 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_contact.rb +64 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +101 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +154 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +112 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +91 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_version.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +2 -1
- data/lib/datadog_api_client/v2/models/spans_metric_compute.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +124 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_metric_filter.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +112 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +112 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +101 -0
- data/lib/datadog_api_client/v2/models/spans_metric_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_metrics_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_attributes.rb +233 -0
- data/lib/datadog_api_client/v2/models/team_create.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +162 -0
- data/lib/datadog_api_client/v2/models/team_create_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/team_link.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_link_attributes.rb +158 -0
- data/lib/datadog_api_client/v2/models/team_link_create.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_link_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_link_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_links_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_serializer_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +112 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_value.rb +30 -0
- data/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team_relationships.rb +101 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/team_update_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/teams_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/timeseries_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_team.rb +143 -0
- data/lib/datadog_api_client/v2/models/user_team_attributes.rb +99 -0
- data/lib/datadog_api_client/v2/models/user_team_create.rb +122 -0
- data/lib/datadog_api_client/v2/models/user_team_permission.rb +133 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/user_team_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_role.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_update.rb +112 -0
- data/lib/datadog_api_client/v2/models/user_team_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/user_team_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +93 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +167 -2
@@ -85,10 +85,16 @@ module DatadogAPIClient::V1
|
|
85
85
|
# The CSPM host usage by tag(s).
|
86
86
|
attr_accessor :cspm_hosts_usage
|
87
87
|
|
88
|
-
# The percentage of custom metrics usage by tag(s).
|
88
|
+
# The percentage of ingested custom metrics usage by tag(s).
|
89
|
+
attr_accessor :custom_ingested_timeseries_percentage
|
90
|
+
|
91
|
+
# The ingested custom metrics usage by tag(s).
|
92
|
+
attr_accessor :custom_ingested_timeseries_usage
|
93
|
+
|
94
|
+
# The percentage of indexed custom metrics usage by tag(s).
|
89
95
|
attr_accessor :custom_timeseries_percentage
|
90
96
|
|
91
|
-
# The custom metrics usage by tag(s).
|
97
|
+
# The indexed custom metrics usage by tag(s).
|
92
98
|
attr_accessor :custom_timeseries_usage
|
93
99
|
|
94
100
|
# The percentage of Cloud Workload Security container usage by tag(s).
|
@@ -199,6 +205,12 @@ module DatadogAPIClient::V1
|
|
199
205
|
# The network device usage by tag(s).
|
200
206
|
attr_accessor :snmp_usage
|
201
207
|
|
208
|
+
# The percentage of universal service monitoring usage by tag(s).
|
209
|
+
attr_accessor :universal_service_monitoring_percentage
|
210
|
+
|
211
|
+
# The universal service monitoring usage by tag(s).
|
212
|
+
attr_accessor :universal_service_monitoring_usage
|
213
|
+
|
202
214
|
# Attribute mapping from ruby-style variable name to JSON key.
|
203
215
|
# @!visibility private
|
204
216
|
def self.attribute_map
|
@@ -223,6 +235,8 @@ module DatadogAPIClient::V1
|
|
223
235
|
:'cspm_containers_usage' => :'cspm_containers_usage',
|
224
236
|
:'cspm_hosts_percentage' => :'cspm_hosts_percentage',
|
225
237
|
:'cspm_hosts_usage' => :'cspm_hosts_usage',
|
238
|
+
:'custom_ingested_timeseries_percentage' => :'custom_ingested_timeseries_percentage',
|
239
|
+
:'custom_ingested_timeseries_usage' => :'custom_ingested_timeseries_usage',
|
226
240
|
:'custom_timeseries_percentage' => :'custom_timeseries_percentage',
|
227
241
|
:'custom_timeseries_usage' => :'custom_timeseries_usage',
|
228
242
|
:'cws_containers_percentage' => :'cws_containers_percentage',
|
@@ -260,7 +274,9 @@ module DatadogAPIClient::V1
|
|
260
274
|
:'profiled_host_percentage' => :'profiled_host_percentage',
|
261
275
|
:'profiled_host_usage' => :'profiled_host_usage',
|
262
276
|
:'snmp_percentage' => :'snmp_percentage',
|
263
|
-
:'snmp_usage' => :'snmp_usage'
|
277
|
+
:'snmp_usage' => :'snmp_usage',
|
278
|
+
:'universal_service_monitoring_percentage' => :'universal_service_monitoring_percentage',
|
279
|
+
:'universal_service_monitoring_usage' => :'universal_service_monitoring_usage'
|
264
280
|
}
|
265
281
|
end
|
266
282
|
|
@@ -288,6 +304,8 @@ module DatadogAPIClient::V1
|
|
288
304
|
:'cspm_containers_usage' => :'Float',
|
289
305
|
:'cspm_hosts_percentage' => :'Float',
|
290
306
|
:'cspm_hosts_usage' => :'Float',
|
307
|
+
:'custom_ingested_timeseries_percentage' => :'Float',
|
308
|
+
:'custom_ingested_timeseries_usage' => :'Float',
|
291
309
|
:'custom_timeseries_percentage' => :'Float',
|
292
310
|
:'custom_timeseries_usage' => :'Float',
|
293
311
|
:'cws_containers_percentage' => :'Float',
|
@@ -325,7 +343,9 @@ module DatadogAPIClient::V1
|
|
325
343
|
:'profiled_host_percentage' => :'Float',
|
326
344
|
:'profiled_host_usage' => :'Float',
|
327
345
|
:'snmp_percentage' => :'Float',
|
328
|
-
:'snmp_usage' => :'Float'
|
346
|
+
:'snmp_usage' => :'Float',
|
347
|
+
:'universal_service_monitoring_percentage' => :'Float',
|
348
|
+
:'universal_service_monitoring_usage' => :'Float'
|
329
349
|
}
|
330
350
|
end
|
331
351
|
|
@@ -425,6 +445,14 @@ module DatadogAPIClient::V1
|
|
425
445
|
self.cspm_hosts_usage = attributes[:'cspm_hosts_usage']
|
426
446
|
end
|
427
447
|
|
448
|
+
if attributes.key?(:'custom_ingested_timeseries_percentage')
|
449
|
+
self.custom_ingested_timeseries_percentage = attributes[:'custom_ingested_timeseries_percentage']
|
450
|
+
end
|
451
|
+
|
452
|
+
if attributes.key?(:'custom_ingested_timeseries_usage')
|
453
|
+
self.custom_ingested_timeseries_usage = attributes[:'custom_ingested_timeseries_usage']
|
454
|
+
end
|
455
|
+
|
428
456
|
if attributes.key?(:'custom_timeseries_percentage')
|
429
457
|
self.custom_timeseries_percentage = attributes[:'custom_timeseries_percentage']
|
430
458
|
end
|
@@ -576,6 +604,14 @@ module DatadogAPIClient::V1
|
|
576
604
|
if attributes.key?(:'snmp_usage')
|
577
605
|
self.snmp_usage = attributes[:'snmp_usage']
|
578
606
|
end
|
607
|
+
|
608
|
+
if attributes.key?(:'universal_service_monitoring_percentage')
|
609
|
+
self.universal_service_monitoring_percentage = attributes[:'universal_service_monitoring_percentage']
|
610
|
+
end
|
611
|
+
|
612
|
+
if attributes.key?(:'universal_service_monitoring_usage')
|
613
|
+
self.universal_service_monitoring_usage = attributes[:'universal_service_monitoring_usage']
|
614
|
+
end
|
579
615
|
end
|
580
616
|
|
581
617
|
# Check to see if the all the properties in the model are valid
|
@@ -611,6 +647,8 @@ module DatadogAPIClient::V1
|
|
611
647
|
cspm_containers_usage == o.cspm_containers_usage &&
|
612
648
|
cspm_hosts_percentage == o.cspm_hosts_percentage &&
|
613
649
|
cspm_hosts_usage == o.cspm_hosts_usage &&
|
650
|
+
custom_ingested_timeseries_percentage == o.custom_ingested_timeseries_percentage &&
|
651
|
+
custom_ingested_timeseries_usage == o.custom_ingested_timeseries_usage &&
|
614
652
|
custom_timeseries_percentage == o.custom_timeseries_percentage &&
|
615
653
|
custom_timeseries_usage == o.custom_timeseries_usage &&
|
616
654
|
cws_containers_percentage == o.cws_containers_percentage &&
|
@@ -648,14 +686,16 @@ module DatadogAPIClient::V1
|
|
648
686
|
profiled_host_percentage == o.profiled_host_percentage &&
|
649
687
|
profiled_host_usage == o.profiled_host_usage &&
|
650
688
|
snmp_percentage == o.snmp_percentage &&
|
651
|
-
snmp_usage == o.snmp_usage
|
689
|
+
snmp_usage == o.snmp_usage &&
|
690
|
+
universal_service_monitoring_percentage == o.universal_service_monitoring_percentage &&
|
691
|
+
universal_service_monitoring_usage == o.universal_service_monitoring_usage
|
652
692
|
end
|
653
693
|
|
654
694
|
# Calculates hash code according to all attributes.
|
655
695
|
# @return [Integer] Hash code
|
656
696
|
# @!visibility private
|
657
697
|
def hash
|
658
|
-
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage].hash
|
698
|
+
[api_percentage, api_usage, apm_fargate_percentage, apm_fargate_usage, apm_host_percentage, apm_host_usage, appsec_fargate_percentage, appsec_fargate_usage, appsec_percentage, appsec_usage, browser_percentage, browser_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, container_usage, cspm_containers_percentage, cspm_containers_usage, cspm_hosts_percentage, cspm_hosts_usage, custom_ingested_timeseries_percentage, custom_ingested_timeseries_usage, custom_timeseries_percentage, custom_timeseries_usage, cws_containers_percentage, cws_containers_usage, cws_hosts_percentage, cws_hosts_usage, dbm_hosts_percentage, dbm_hosts_usage, dbm_queries_percentage, dbm_queries_usage, estimated_indexed_logs_percentage, estimated_indexed_logs_usage, estimated_indexed_spans_percentage, estimated_indexed_spans_usage, estimated_ingested_logs_percentage, estimated_ingested_logs_usage, estimated_ingested_spans_percentage, estimated_ingested_spans_usage, estimated_rum_sessions_percentage, estimated_rum_sessions_usage, fargate_percentage, fargate_usage, functions_percentage, functions_usage, infra_host_percentage, infra_host_usage, invocations_percentage, invocations_usage, npm_host_percentage, npm_host_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage, profiled_fargate_usage, profiled_host_percentage, profiled_host_usage, snmp_percentage, snmp_usage, universal_service_monitoring_percentage, universal_service_monitoring_usage].hash
|
659
699
|
end
|
660
700
|
end
|
661
701
|
end
|
@@ -50,7 +50,7 @@ module DatadogAPIClient::V1
|
|
50
50
|
begin
|
51
51
|
next if klass == :AnyType # "nullable: true"
|
52
52
|
typed_data = find_and_cast_into_type(klass, data)
|
53
|
-
next if typed_data._unparsed
|
53
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
54
54
|
return typed_data if typed_data
|
55
55
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
56
56
|
end
|
@@ -50,7 +50,7 @@ module DatadogAPIClient::V1
|
|
50
50
|
begin
|
51
51
|
next if klass == :AnyType # "nullable: true"
|
52
52
|
typed_data = find_and_cast_into_type(klass, data)
|
53
|
-
next if typed_data._unparsed
|
53
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
54
54
|
return typed_data if typed_data
|
55
55
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
56
56
|
end
|
@@ -45,7 +45,7 @@ module DatadogAPIClient::V1
|
|
45
45
|
begin
|
46
46
|
next if klass == :AnyType # "nullable: true"
|
47
47
|
typed_data = find_and_cast_into_type(klass, data)
|
48
|
-
next if typed_data._unparsed
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
49
49
|
return typed_data if typed_data
|
50
50
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
51
51
|
end
|
@@ -50,7 +50,7 @@ module DatadogAPIClient::V1
|
|
50
50
|
begin
|
51
51
|
next if klass == :AnyType # "nullable: true"
|
52
52
|
typed_data = find_and_cast_into_type(klass, data)
|
53
|
-
next if typed_data._unparsed
|
53
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
54
54
|
return typed_data if typed_data
|
55
55
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
56
56
|
end
|
@@ -45,7 +45,7 @@ module DatadogAPIClient::V1
|
|
45
45
|
begin
|
46
46
|
next if klass == :AnyType # "nullable: true"
|
47
47
|
typed_data = find_and_cast_into_type(klass, data)
|
48
|
-
next if typed_data._unparsed
|
48
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
49
49
|
return typed_data if typed_data
|
50
50
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
51
51
|
end
|
@@ -46,7 +46,7 @@ module DatadogAPIClient::V1
|
|
46
46
|
begin
|
47
47
|
next if klass == :AnyType # "nullable: true"
|
48
48
|
typed_data = find_and_cast_into_type(klass, data)
|
49
|
-
next if typed_data._unparsed
|
49
|
+
next if typed_data.respond_to?(:_unparsed) && typed_data._unparsed
|
50
50
|
return typed_data if typed_data
|
51
51
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
52
52
|
end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V1 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V1
|
20
|
+
# Object containing the template variable's name, associated tag/attribute, default value and selectable values.
|
21
|
+
class SelectableTemplateVariableItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# The default value of the template variable.
|
29
|
+
attr_accessor :default_value
|
30
|
+
|
31
|
+
# Name of the template variable.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# The tag/attribute key associated with the template variable.
|
35
|
+
attr_accessor :prefix
|
36
|
+
|
37
|
+
# List of visible tag values on the shared dashboard.
|
38
|
+
attr_accessor :visible_tags
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
# @!visibility private
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'default_value' => :'default_value',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'prefix' => :'prefix',
|
47
|
+
:'visible_tags' => :'visible_tags'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute type mapping.
|
52
|
+
# @!visibility private
|
53
|
+
def self.openapi_types
|
54
|
+
{
|
55
|
+
:'default_value' => :'String',
|
56
|
+
:'name' => :'String',
|
57
|
+
:'prefix' => :'String',
|
58
|
+
:'visible_tags' => :'Array<String>'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# List of attributes with nullable: true
|
63
|
+
# @!visibility private
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
:'visible_tags',
|
67
|
+
])
|
68
|
+
end
|
69
|
+
|
70
|
+
# Initializes the object
|
71
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
72
|
+
# @!visibility private
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SelectableTemplateVariableItems` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SelectableTemplateVariableItems`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'default_value')
|
87
|
+
self.default_value = attributes[:'default_value']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'name')
|
91
|
+
self.name = attributes[:'name']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'prefix')
|
95
|
+
self.prefix = attributes[:'prefix']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'visible_tags')
|
99
|
+
if (value = attributes[:'visible_tags']).is_a?(Array)
|
100
|
+
self.visible_tags = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Check to see if the all the properties in the model are valid
|
106
|
+
# @return true if the model is valid
|
107
|
+
# @!visibility private
|
108
|
+
def valid?
|
109
|
+
true
|
110
|
+
end
|
111
|
+
|
112
|
+
# Checks equality by comparing each attribute.
|
113
|
+
# @param o [Object] Object to be compared
|
114
|
+
# @!visibility private
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
default_value == o.default_value &&
|
119
|
+
name == o.name &&
|
120
|
+
prefix == o.prefix &&
|
121
|
+
visible_tags == o.visible_tags
|
122
|
+
end
|
123
|
+
|
124
|
+
# Calculates hash code according to all attributes.
|
125
|
+
# @return [Integer] Hash code
|
126
|
+
# @!visibility private
|
127
|
+
def hash
|
128
|
+
[default_value, name, prefix, visible_tags].hash
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V1 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V1
|
20
|
+
# The metadata object associated with how a dashboard has been/will be shared.
|
21
|
+
class SharedDashboard
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# User who shared the dashboard.
|
29
|
+
attr_accessor :author
|
30
|
+
|
31
|
+
# Date the dashboard was shared.
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
34
|
+
# ID of the dashboard to share.
|
35
|
+
attr_reader :dashboard_id
|
36
|
+
|
37
|
+
# The type of the associated private dashboard.
|
38
|
+
attr_reader :dashboard_type
|
39
|
+
|
40
|
+
# Object containing the live span selection for the dashboard.
|
41
|
+
attr_accessor :global_time
|
42
|
+
|
43
|
+
# Whether to allow viewers to select a different global time setting for the shared dashboard.
|
44
|
+
attr_accessor :global_time_selectable_enabled
|
45
|
+
|
46
|
+
# URL of the shared dashboard.
|
47
|
+
attr_accessor :public_url
|
48
|
+
|
49
|
+
# List of objects representing template variables on the shared dashboard which can have selectable values.
|
50
|
+
attr_accessor :selectable_template_vars
|
51
|
+
|
52
|
+
# List of email addresses that can receive an invitation to access to the shared dashboard.
|
53
|
+
attr_accessor :share_list
|
54
|
+
|
55
|
+
# Type of sharing access (either open to anyone who has the public URL or invite-only).
|
56
|
+
attr_accessor :share_type
|
57
|
+
|
58
|
+
# A unique token assigned to the shared dashboard.
|
59
|
+
attr_accessor :token
|
60
|
+
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
62
|
+
# @!visibility private
|
63
|
+
def self.attribute_map
|
64
|
+
{
|
65
|
+
:'author' => :'author',
|
66
|
+
:'created_at' => :'created_at',
|
67
|
+
:'dashboard_id' => :'dashboard_id',
|
68
|
+
:'dashboard_type' => :'dashboard_type',
|
69
|
+
:'global_time' => :'global_time',
|
70
|
+
:'global_time_selectable_enabled' => :'global_time_selectable_enabled',
|
71
|
+
:'public_url' => :'public_url',
|
72
|
+
:'selectable_template_vars' => :'selectable_template_vars',
|
73
|
+
:'share_list' => :'share_list',
|
74
|
+
:'share_type' => :'share_type',
|
75
|
+
:'token' => :'token'
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
# Attribute type mapping.
|
80
|
+
# @!visibility private
|
81
|
+
def self.openapi_types
|
82
|
+
{
|
83
|
+
:'author' => :'SharedDashboardAuthor',
|
84
|
+
:'created_at' => :'Time',
|
85
|
+
:'dashboard_id' => :'String',
|
86
|
+
:'dashboard_type' => :'DashboardType',
|
87
|
+
:'global_time' => :'DashboardGlobalTime',
|
88
|
+
:'global_time_selectable_enabled' => :'Boolean',
|
89
|
+
:'public_url' => :'String',
|
90
|
+
:'selectable_template_vars' => :'Array<SelectableTemplateVariableItems>',
|
91
|
+
:'share_list' => :'Array<String>',
|
92
|
+
:'share_type' => :'DashboardShareType',
|
93
|
+
:'token' => :'String'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
# List of attributes with nullable: true
|
98
|
+
# @!visibility private
|
99
|
+
def self.openapi_nullable
|
100
|
+
Set.new([
|
101
|
+
:'global_time_selectable_enabled',
|
102
|
+
:'selectable_template_vars',
|
103
|
+
:'share_list',
|
104
|
+
:'share_type',
|
105
|
+
])
|
106
|
+
end
|
107
|
+
|
108
|
+
# Initializes the object
|
109
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
110
|
+
# @!visibility private
|
111
|
+
def initialize(attributes = {})
|
112
|
+
if (!attributes.is_a?(Hash))
|
113
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboard` initialize method"
|
114
|
+
end
|
115
|
+
|
116
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
117
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
118
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
120
|
+
end
|
121
|
+
h[k.to_sym] = v
|
122
|
+
}
|
123
|
+
|
124
|
+
if attributes.key?(:'author')
|
125
|
+
self.author = attributes[:'author']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'created_at')
|
129
|
+
self.created_at = attributes[:'created_at']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'dashboard_id')
|
133
|
+
self.dashboard_id = attributes[:'dashboard_id']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'dashboard_type')
|
137
|
+
self.dashboard_type = attributes[:'dashboard_type']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'global_time')
|
141
|
+
self.global_time = attributes[:'global_time']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'global_time_selectable_enabled')
|
145
|
+
self.global_time_selectable_enabled = attributes[:'global_time_selectable_enabled']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'public_url')
|
149
|
+
self.public_url = attributes[:'public_url']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'selectable_template_vars')
|
153
|
+
if (value = attributes[:'selectable_template_vars']).is_a?(Array)
|
154
|
+
self.selectable_template_vars = value
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'share_list')
|
159
|
+
if (value = attributes[:'share_list']).is_a?(Array)
|
160
|
+
self.share_list = value
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'share_type')
|
165
|
+
self.share_type = attributes[:'share_type']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'token')
|
169
|
+
self.token = attributes[:'token']
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Check to see if the all the properties in the model are valid
|
174
|
+
# @return true if the model is valid
|
175
|
+
# @!visibility private
|
176
|
+
def valid?
|
177
|
+
return false if @dashboard_id.nil?
|
178
|
+
return false if @dashboard_type.nil?
|
179
|
+
true
|
180
|
+
end
|
181
|
+
|
182
|
+
# Custom attribute writer method with validation
|
183
|
+
# @param dashboard_id [Object] Object to be assigned
|
184
|
+
# @!visibility private
|
185
|
+
def dashboard_id=(dashboard_id)
|
186
|
+
if dashboard_id.nil?
|
187
|
+
fail ArgumentError, 'invalid value for "dashboard_id", dashboard_id cannot be nil.'
|
188
|
+
end
|
189
|
+
@dashboard_id = dashboard_id
|
190
|
+
end
|
191
|
+
|
192
|
+
# Custom attribute writer method with validation
|
193
|
+
# @param dashboard_type [Object] Object to be assigned
|
194
|
+
# @!visibility private
|
195
|
+
def dashboard_type=(dashboard_type)
|
196
|
+
if dashboard_type.nil?
|
197
|
+
fail ArgumentError, 'invalid value for "dashboard_type", dashboard_type cannot be nil.'
|
198
|
+
end
|
199
|
+
@dashboard_type = dashboard_type
|
200
|
+
end
|
201
|
+
|
202
|
+
# Checks equality by comparing each attribute.
|
203
|
+
# @param o [Object] Object to be compared
|
204
|
+
# @!visibility private
|
205
|
+
def ==(o)
|
206
|
+
return true if self.equal?(o)
|
207
|
+
self.class == o.class &&
|
208
|
+
author == o.author &&
|
209
|
+
created_at == o.created_at &&
|
210
|
+
dashboard_id == o.dashboard_id &&
|
211
|
+
dashboard_type == o.dashboard_type &&
|
212
|
+
global_time == o.global_time &&
|
213
|
+
global_time_selectable_enabled == o.global_time_selectable_enabled &&
|
214
|
+
public_url == o.public_url &&
|
215
|
+
selectable_template_vars == o.selectable_template_vars &&
|
216
|
+
share_list == o.share_list &&
|
217
|
+
share_type == o.share_type &&
|
218
|
+
token == o.token
|
219
|
+
end
|
220
|
+
|
221
|
+
# Calculates hash code according to all attributes.
|
222
|
+
# @return [Integer] Hash code
|
223
|
+
# @!visibility private
|
224
|
+
def hash
|
225
|
+
[author, created_at, dashboard_id, dashboard_type, global_time, global_time_selectable_enabled, public_url, selectable_template_vars, share_list, share_type, token].hash
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V1 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V1
|
20
|
+
# User who shared the dashboard.
|
21
|
+
class SharedDashboardAuthor
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# Identifier of the user who shared the dashboard.
|
29
|
+
attr_accessor :handle
|
30
|
+
|
31
|
+
# Name of the user who shared the dashboard.
|
32
|
+
attr_accessor :name
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
# @!visibility private
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'handle' => :'handle',
|
39
|
+
:'name' => :'name'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'handle' => :'String',
|
48
|
+
:'name' => :'String'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
# @!visibility private
|
54
|
+
def self.openapi_nullable
|
55
|
+
Set.new([
|
56
|
+
:'name',
|
57
|
+
])
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
62
|
+
# @!visibility private
|
63
|
+
def initialize(attributes = {})
|
64
|
+
if (!attributes.is_a?(Hash))
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SharedDashboardAuthor` initialize method"
|
66
|
+
end
|
67
|
+
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::SharedDashboardAuthor`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
72
|
+
end
|
73
|
+
h[k.to_sym] = v
|
74
|
+
}
|
75
|
+
|
76
|
+
if attributes.key?(:'handle')
|
77
|
+
self.handle = attributes[:'handle']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'name')
|
81
|
+
self.name = attributes[:'name']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Check to see if the all the properties in the model are valid
|
86
|
+
# @return true if the model is valid
|
87
|
+
# @!visibility private
|
88
|
+
def valid?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param o [Object] Object to be compared
|
94
|
+
# @!visibility private
|
95
|
+
def ==(o)
|
96
|
+
return true if self.equal?(o)
|
97
|
+
self.class == o.class &&
|
98
|
+
handle == o.handle &&
|
99
|
+
name == o.name
|
100
|
+
end
|
101
|
+
|
102
|
+
# Calculates hash code according to all attributes.
|
103
|
+
# @return [Integer] Hash code
|
104
|
+
# @!visibility private
|
105
|
+
def hash
|
106
|
+
[handle, name].hash
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|