datadog_api_client 2.17.0 → 2.19.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 +1 -1
- data/.generator/poetry.lock +69 -69
- data/.generator/schemas/v1/openapi.yaml +334 -16
- data/.generator/schemas/v2/openapi.yaml +2864 -470
- data/.generator/src/generator/cli.py +5 -0
- data/.generator/src/generator/templates/datadog_api_client.j2 +19 -0
- data/.generator/src/generator/templates/model_generic.j2 +2 -2
- data/.pre-commit-config.yaml +1 -1
- data/CHANGELOG.md +43 -0
- data/examples/v1/aws-integration/CreateAWSAccount.rb +2 -2
- data/examples/v1/aws-integration/DeleteAWSAccount.rb +1 -1
- data/examples/v1/aws-integration/UpdateAWSAccount.rb +6 -6
- data/examples/v1/azure-integration/CreateAzureIntegration.rb +5 -4
- data/examples/v1/azure-integration/DeleteAzureIntegration.rb +2 -14
- data/examples/v1/azure-integration/UpdateAzureHostFilters.rb +1 -0
- data/examples/v1/azure-integration/UpdateAzureIntegration.rb +5 -4
- data/examples/v1/dashboards/CreateDashboard_1284514532.rb +3 -0
- data/examples/v1/gcp-integration/CreateGCPIntegration.rb +4 -5
- data/examples/v1/gcp-integration/DeleteGCPIntegration.rb +2 -14
- data/examples/v1/gcp-integration/UpdateGCPIntegration.rb +4 -5
- data/examples/v1/service-level-objectives/CreateSLO_3765703239.rb +46 -0
- data/examples/v1/synthetics/PatchTest.rb +22 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -3
- data/examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb +18 -0
- data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +29 -0
- data/examples/v2/cloud-cost-management/DeleteCostAWSCURConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteCostAzureUCConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCloudCostActivity.rb +5 -0
- data/examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostAWSCURConfigs.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostAzureUCConfigs.rb +5 -0
- data/examples/v2/cloud-cost-management/UpdateCostAWSCURConfig.rb +14 -0
- data/examples/v2/cloud-cost-management/UpdateCostAzureUCConfigs.rb +14 -0
- data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +1 -1
- data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +4 -1
- data/examples/v2/container-images/ListContainerImages.rb +0 -3
- data/examples/v2/container-images/ListContainerImages_3088586393.rb +0 -3
- data/examples/v2/container-images/ListContainerImages_3974828736.rb +0 -3
- data/examples/v2/containers/ListContainers.rb +0 -3
- data/examples/v2/containers/ListContainers_2175733917.rb +0 -3
- data/examples/v2/containers/ListContainers_931009654.rb +0 -3
- data/examples/v2/dora-metrics/CreateDORADeployment.rb +23 -0
- data/examples/v2/dora-metrics/CreateDORAIncident.rb +25 -0
- data/examples/v2/downtimes/ListMonitorDowntimes_3316718253.rb +5 -0
- data/examples/v2/events/ListEvents.rb +0 -3
- data/examples/v2/events/ListEvents_1527584014.rb +0 -3
- data/examples/v2/events/ListEvents_2663715109.rb +0 -3
- data/examples/v2/events/SearchEvents.rb +0 -3
- data/examples/v2/events/SearchEvents_3856995058.rb +0 -3
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_130557025.rb +16 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_2597004741.rb +16 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_4235664992.rb +17 -0
- data/examples/v2/gcp-integration/UpdateGCPSTSAccount_3205636354.rb +19 -0
- data/examples/v2/okta-integration/CreateOktaAccount.rb +19 -0
- data/examples/v2/okta-integration/DeleteOktaAccount.rb +5 -0
- data/examples/v2/okta-integration/GetOktaAccount.rb +8 -0
- data/examples/v2/okta-integration/ListOktaAccounts.rb +5 -0
- data/examples/v2/okta-integration/UpdateOktaAccount.rb +20 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_3367706049.rb +46 -0
- data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +7 -0
- data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +7 -10
- data/examples/v2/teams/CreateTeamMembership.rb +6 -0
- data/examples/v2/usage-metering/GetActiveBillingDimensions.rb +8 -0
- data/examples/v2/usage-metering/GetMonthlyCostAttribution.rb +8 -0
- data/examples/v2/usage-metering/GetProjectedCost.rb +8 -0
- data/lib/datadog_api_client/configuration.rb +4 -5
- data/lib/datadog_api_client/inflector.rb +113 -0
- data/lib/datadog_api_client/v1/api/downtimes_api.rb +28 -7
- data/lib/datadog_api_client/v1/api/hosts_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -1
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +73 -1
- data/lib/datadog_api_client/v1/models/azure_account.rb +13 -2
- data/lib/datadog_api_client/v1/models/gcp_account.rb +22 -2
- data/lib/datadog_api_client/v1/models/organization.rb +1 -1
- data/lib/datadog_api_client/v1/models/service_level_objective.rb +11 -1
- data/lib/datadog_api_client/v1/models/service_level_objective_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/slo_data_source_query_definition.rb +62 -0
- data/lib/datadog_api_client/v1/models/slo_formula.rb +98 -0
- data/lib/datadog_api_client/v1/models/slo_response_data.rb +11 -1
- data/lib/datadog_api_client/v1/models/slo_sli_spec.rb +62 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_comparator.rb +29 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_condition.rb +141 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_query.rb +131 -0
- data/lib/datadog_api_client/v1/models/slo_time_slice_spec.rb +99 -0
- data/lib/datadog_api_client/v1/models/slo_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/slo_type_numeric.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_body.rb +82 -0
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation.rb +100 -0
- data/lib/datadog_api_client/v1/models/synthetics_patch_test_operation_name.rb +31 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
- data/lib/datadog_api_client/v1/models/widget_live_span.rb +2 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +680 -0
- data/lib/datadog_api_client/v2/api/container_images_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/containers_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +181 -0
- data/lib/datadog_api_client/v2/api/downtimes_api.rb +25 -0
- data/lib/datadog_api_client/v2/api/events_api.rb +0 -12
- data/lib/datadog_api_client/v2/api/metrics_api.rb +3 -2
- data/lib/datadog_api_client/v2/api/okta_integration_api.rb +355 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +241 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_attributes.rb +92 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/active_billing_dimensions_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/api_keys_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/api_keys_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/api_keys_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/application_key_response_meta.rb +90 -0
- data/lib/datadog_api_client/v2/models/application_key_response_meta_page.rb +80 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config.rb +129 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +305 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_patch_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_patch_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/aws_related_account.rb +129 -0
- data/lib/datadog_api_client/v2/models/aws_related_account_attributes.rb +90 -0
- data/lib/datadog_api_client/v2/models/aws_related_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_related_accounts_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config.rb +378 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair.rb +129 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair_attributes.rb +110 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_pair_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_pairs_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +192 -0
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/bill_config.rb +161 -0
- data/lib/datadog_api_client/v2/models/ci_app_git_info.rb +2 -2
- data/lib/datadog_api_client/v2/models/cloud_cost_activity.rb +119 -0
- data/lib/datadog_api_client/v2/models/cloud_cost_activity_attributes.rb +98 -0
- data/lib/datadog_api_client/v2/models/cloud_cost_activity_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/cloud_cost_activity_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/cloudflare_account_create_request_attributes.rb +28 -4
- data/lib/datadog_api_client/v2/models/cloudflare_account_response_attributes.rb +28 -4
- data/lib/datadog_api_client/v2/models/cloudflare_account_update_request_attributes.rb +28 -4
- data/lib/datadog_api_client/v2/models/cost_attribution_aggregates_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/cost_attribution_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +170 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/dora_git_info.rb +125 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_attributes.rb +179 -0
- data/lib/datadog_api_client/v2/models/dora_incident_request_data.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_incident_response.rb +98 -0
- data/lib/datadog_api_client/v2/models/dora_incident_response_data.rb +108 -0
- data/lib/datadog_api_client/v2/models/dora_incident_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +25 -5
- data/lib/datadog_api_client/v2/models/incident_attachment_link_attributes.rb +14 -4
- data/lib/datadog_api_client/v2/models/incident_create_relationships.rb +9 -19
- data/lib/datadog_api_client/v2/models/incident_impacts_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_attributes.rb +21 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_integration_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_non_datadog_creator.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_responders_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +69 -4
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +42 -4
- data/lib/datadog_api_client/v2/models/incident_severity.rb +31 -0
- data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/incident_todo_relationships.rb +90 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_update_relationships.rb +8 -0
- data/lib/datadog_api_client/v2/models/incident_user_defined_field_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_application_keys_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_attributes.rb +151 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_body.rb +100 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_meta.rb +92 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_pagination.rb +88 -0
- data/lib/datadog_api_client/v2/models/monthly_cost_attribution_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/okta_account.rb +129 -0
- data/lib/datadog_api_client/v2/models/okta_account_attributes.rb +170 -0
- data/lib/datadog_api_client/v2/models/okta_account_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/okta_account_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/okta_account_response_data.rb +140 -0
- data/lib/datadog_api_client/v2/models/okta_account_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request_attributes.rb +149 -0
- data/lib/datadog_api_client/v2/models/okta_account_update_request_data.rb +90 -0
- data/lib/datadog_api_client/v2/models/okta_accounts_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +24 -4
- data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +2 -2
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +8 -0
- data/lib/datadog_api_client/v2/models/projected_cost.rb +100 -0
- data/lib/datadog_api_client/v2/models/projected_cost_attributes.rb +132 -0
- data/lib/datadog_api_client/v2/models/projected_cost_response.rb +82 -0
- data/lib/datadog_api_client/v2/models/projected_cost_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_impact_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_impacts.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_responder_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_responders.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_field_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_user_defined_fields.rb +100 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_team.rb +98 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_team_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +14 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_third_party_options.rb +114 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_type_create.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_root_query.rb +92 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case.rb +112 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_third_party_rule_case_create.rb +130 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_included_keyword_configuration.rb +134 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_rule_attributes.rb +46 -1
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_standard_pattern_attributes.rb +45 -1
- data/lib/datadog_api_client/v2/models/sort_direction.rb +27 -0
- data/lib/datadog_api_client/v2/models/user_team_attributes.rb +24 -1
- data/lib/datadog_api_client/v2/models/user_team_relationships.rb +11 -1
- data/lib/datadog_api_client/v2/models/user_team_team_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/lib/datadog_api_client.rb +16 -1
- metadata +144 -2
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# JSON:API type for DORA incident events.
|
21
|
+
class DORAIncidentType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
DORA_INCIDENT = "dora_incident".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class FullAPIKeyAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# The category of the API key.
|
25
|
+
attr_accessor :category
|
26
|
+
|
24
27
|
# Creation date of the API key.
|
25
28
|
attr_accessor :created_at
|
26
29
|
|
@@ -36,15 +39,20 @@ module DatadogAPIClient::V2
|
|
36
39
|
# Name of the API key.
|
37
40
|
attr_accessor :name
|
38
41
|
|
42
|
+
# The remote config read enabled status.
|
43
|
+
attr_accessor :remote_config_read_enabled
|
44
|
+
|
39
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
46
|
# @!visibility private
|
41
47
|
def self.attribute_map
|
42
48
|
{
|
49
|
+
:'category' => :'category',
|
43
50
|
:'created_at' => :'created_at',
|
44
51
|
:'key' => :'key',
|
45
52
|
:'last4' => :'last4',
|
46
53
|
:'modified_at' => :'modified_at',
|
47
|
-
:'name' => :'name'
|
54
|
+
:'name' => :'name',
|
55
|
+
:'remote_config_read_enabled' => :'remote_config_read_enabled'
|
48
56
|
}
|
49
57
|
end
|
50
58
|
|
@@ -52,11 +60,13 @@ module DatadogAPIClient::V2
|
|
52
60
|
# @!visibility private
|
53
61
|
def self.openapi_types
|
54
62
|
{
|
63
|
+
:'category' => :'String',
|
55
64
|
:'created_at' => :'String',
|
56
65
|
:'key' => :'String',
|
57
66
|
:'last4' => :'String',
|
58
67
|
:'modified_at' => :'String',
|
59
|
-
:'name' => :'String'
|
68
|
+
:'name' => :'String',
|
69
|
+
:'remote_config_read_enabled' => :'Boolean'
|
60
70
|
}
|
61
71
|
end
|
62
72
|
|
@@ -76,6 +86,10 @@ module DatadogAPIClient::V2
|
|
76
86
|
h[k.to_sym] = v
|
77
87
|
}
|
78
88
|
|
89
|
+
if attributes.key?(:'category')
|
90
|
+
self.category = attributes[:'category']
|
91
|
+
end
|
92
|
+
|
79
93
|
if attributes.key?(:'created_at')
|
80
94
|
self.created_at = attributes[:'created_at']
|
81
95
|
end
|
@@ -95,6 +109,10 @@ module DatadogAPIClient::V2
|
|
95
109
|
if attributes.key?(:'name')
|
96
110
|
self.name = attributes[:'name']
|
97
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'remote_config_read_enabled')
|
114
|
+
self.remote_config_read_enabled = attributes[:'remote_config_read_enabled']
|
115
|
+
end
|
98
116
|
end
|
99
117
|
|
100
118
|
# Check to see if the all the properties in the model are valid
|
@@ -125,18 +143,20 @@ module DatadogAPIClient::V2
|
|
125
143
|
def ==(o)
|
126
144
|
return true if self.equal?(o)
|
127
145
|
self.class == o.class &&
|
146
|
+
category == o.category &&
|
128
147
|
created_at == o.created_at &&
|
129
148
|
key == o.key &&
|
130
149
|
last4 == o.last4 &&
|
131
150
|
modified_at == o.modified_at &&
|
132
|
-
name == o.name
|
151
|
+
name == o.name &&
|
152
|
+
remote_config_read_enabled == o.remote_config_read_enabled
|
133
153
|
end
|
134
154
|
|
135
155
|
# Calculates hash code according to all attributes.
|
136
156
|
# @return [Integer] Hash code
|
137
157
|
# @!visibility private
|
138
158
|
def hash
|
139
|
-
[created_at, key, last4, modified_at, name].hash
|
159
|
+
[category, created_at, key, last4, modified_at, name, remote_config_read_enabled].hash
|
140
160
|
end
|
141
161
|
end
|
142
162
|
end
|
@@ -33,9 +33,15 @@ module DatadogAPIClient::V2
|
|
33
33
|
# Your Host Filters.
|
34
34
|
attr_accessor :host_filters
|
35
35
|
|
36
|
-
# When enabled, Datadog
|
36
|
+
# When enabled, Datadog will activate the Cloud Security Monitoring product for this service account. Note: This requires resource_collection_enabled to be set to true.
|
37
37
|
attr_accessor :is_cspm_enabled
|
38
38
|
|
39
|
+
# When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
|
40
|
+
attr_accessor :is_security_command_center_enabled
|
41
|
+
|
42
|
+
# When enabled, Datadog scans for all resources in your GCP environment.
|
43
|
+
attr_accessor :resource_collection_enabled
|
44
|
+
|
39
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
46
|
# @!visibility private
|
41
47
|
def self.attribute_map
|
@@ -44,7 +50,9 @@ module DatadogAPIClient::V2
|
|
44
50
|
:'automute' => :'automute',
|
45
51
|
:'client_email' => :'client_email',
|
46
52
|
:'host_filters' => :'host_filters',
|
47
|
-
:'is_cspm_enabled' => :'is_cspm_enabled'
|
53
|
+
:'is_cspm_enabled' => :'is_cspm_enabled',
|
54
|
+
:'is_security_command_center_enabled' => :'is_security_command_center_enabled',
|
55
|
+
:'resource_collection_enabled' => :'resource_collection_enabled'
|
48
56
|
}
|
49
57
|
end
|
50
58
|
|
@@ -56,7 +64,9 @@ module DatadogAPIClient::V2
|
|
56
64
|
:'automute' => :'Boolean',
|
57
65
|
:'client_email' => :'String',
|
58
66
|
:'host_filters' => :'Array<String>',
|
59
|
-
:'is_cspm_enabled' => :'Boolean'
|
67
|
+
:'is_cspm_enabled' => :'Boolean',
|
68
|
+
:'is_security_command_center_enabled' => :'Boolean',
|
69
|
+
:'resource_collection_enabled' => :'Boolean'
|
60
70
|
}
|
61
71
|
end
|
62
72
|
|
@@ -99,6 +109,14 @@ module DatadogAPIClient::V2
|
|
99
109
|
if attributes.key?(:'is_cspm_enabled')
|
100
110
|
self.is_cspm_enabled = attributes[:'is_cspm_enabled']
|
101
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'is_security_command_center_enabled')
|
114
|
+
self.is_security_command_center_enabled = attributes[:'is_security_command_center_enabled']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'resource_collection_enabled')
|
118
|
+
self.resource_collection_enabled = attributes[:'resource_collection_enabled']
|
119
|
+
end
|
102
120
|
end
|
103
121
|
|
104
122
|
# Checks equality by comparing each attribute.
|
@@ -111,14 +129,16 @@ module DatadogAPIClient::V2
|
|
111
129
|
automute == o.automute &&
|
112
130
|
client_email == o.client_email &&
|
113
131
|
host_filters == o.host_filters &&
|
114
|
-
is_cspm_enabled == o.is_cspm_enabled
|
132
|
+
is_cspm_enabled == o.is_cspm_enabled &&
|
133
|
+
is_security_command_center_enabled == o.is_security_command_center_enabled &&
|
134
|
+
resource_collection_enabled == o.resource_collection_enabled
|
115
135
|
end
|
116
136
|
|
117
137
|
# Calculates hash code according to all attributes.
|
118
138
|
# @return [Integer] Hash code
|
119
139
|
# @!visibility private
|
120
140
|
def hash
|
121
|
-
[account_tags, automute, client_email, host_filters, is_cspm_enabled].hash
|
141
|
+
[account_tags, automute, client_email, host_filters, is_cspm_enabled, is_security_command_center_enabled, resource_collection_enabled].hash
|
122
142
|
end
|
123
143
|
end
|
124
144
|
end
|
@@ -27,12 +27,16 @@ module DatadogAPIClient::V2
|
|
27
27
|
# The type of link attachment attributes.
|
28
28
|
attr_reader :attachment_type
|
29
29
|
|
30
|
+
# Timestamp when the incident attachment link was last modified.
|
31
|
+
attr_accessor :modified
|
32
|
+
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
# @!visibility private
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'attachment' => :'attachment',
|
35
|
-
:'attachment_type' => :'attachment_type'
|
38
|
+
:'attachment_type' => :'attachment_type',
|
39
|
+
:'modified' => :'modified'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -41,7 +45,8 @@ module DatadogAPIClient::V2
|
|
41
45
|
def self.openapi_types
|
42
46
|
{
|
43
47
|
:'attachment' => :'IncidentAttachmentLinkAttributesAttachmentObject',
|
44
|
-
:'attachment_type' => :'IncidentAttachmentLinkAttachmentType'
|
48
|
+
:'attachment_type' => :'IncidentAttachmentLinkAttachmentType',
|
49
|
+
:'modified' => :'Time'
|
45
50
|
}
|
46
51
|
end
|
47
52
|
|
@@ -68,6 +73,10 @@ module DatadogAPIClient::V2
|
|
68
73
|
if attributes.key?(:'attachment_type')
|
69
74
|
self.attachment_type = attributes[:'attachment_type']
|
70
75
|
end
|
76
|
+
|
77
|
+
if attributes.key?(:'modified')
|
78
|
+
self.modified = attributes[:'modified']
|
79
|
+
end
|
71
80
|
end
|
72
81
|
|
73
82
|
# Check to see if the all the properties in the model are valid
|
@@ -106,14 +115,15 @@ module DatadogAPIClient::V2
|
|
106
115
|
return true if self.equal?(o)
|
107
116
|
self.class == o.class &&
|
108
117
|
attachment == o.attachment &&
|
109
|
-
attachment_type == o.attachment_type
|
118
|
+
attachment_type == o.attachment_type &&
|
119
|
+
modified == o.modified
|
110
120
|
end
|
111
121
|
|
112
122
|
# Calculates hash code according to all attributes.
|
113
123
|
# @return [Integer] Hash code
|
114
124
|
# @!visibility private
|
115
125
|
def hash
|
116
|
-
[attachment, attachment_type].hash
|
126
|
+
[attachment, attachment_type, modified].hash
|
117
127
|
end
|
118
128
|
end
|
119
129
|
end
|
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
|
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
24
|
# Relationship to user.
|
25
|
-
|
25
|
+
attr_accessor :commander_user
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
# @!visibility private
|
@@ -40,6 +40,14 @@ module DatadogAPIClient::V2
|
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
:'commander_user',
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
43
51
|
# Initializes the object
|
44
52
|
# @param attributes [Hash] Model attributes in the form of hash
|
45
53
|
# @!visibility private
|
@@ -61,24 +69,6 @@ module DatadogAPIClient::V2
|
|
61
69
|
end
|
62
70
|
end
|
63
71
|
|
64
|
-
# Check to see if the all the properties in the model are valid
|
65
|
-
# @return true if the model is valid
|
66
|
-
# @!visibility private
|
67
|
-
def valid?
|
68
|
-
return false if @commander_user.nil?
|
69
|
-
true
|
70
|
-
end
|
71
|
-
|
72
|
-
# Custom attribute writer method with validation
|
73
|
-
# @param commander_user [Object] Object to be assigned
|
74
|
-
# @!visibility private
|
75
|
-
def commander_user=(commander_user)
|
76
|
-
if commander_user.nil?
|
77
|
-
fail ArgumentError, 'invalid value for "commander_user", commander_user cannot be nil.'
|
78
|
-
end
|
79
|
-
@commander_user = commander_user
|
80
|
-
end
|
81
|
-
|
82
72
|
# Checks equality by comparing each attribute.
|
83
73
|
# @param o [Object] Object to be compared
|
84
74
|
# @!visibility private
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# The incident impacts type.
|
21
|
+
class IncidentImpactsType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
INCIDENT_IMPACTS = "incident_impacts".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class IncidentIntegrationMetadataAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# Timestamp when the incident todo was created.
|
25
|
+
attr_accessor :created
|
26
|
+
|
24
27
|
# UUID of the incident this integration metadata is connected to.
|
25
28
|
attr_accessor :incident_id
|
26
29
|
|
@@ -31,6 +34,9 @@ module DatadogAPIClient::V2
|
|
31
34
|
# Incident integration metadata's metadata attribute.
|
32
35
|
attr_reader :metadata
|
33
36
|
|
37
|
+
# Timestamp when the incident todo was last modified.
|
38
|
+
attr_accessor :modified
|
39
|
+
|
34
40
|
# A number indicating the status of this integration metadata. 0 indicates unknown;
|
35
41
|
# 1 indicates pending; 2 indicates complete; 3 indicates manually created;
|
36
42
|
# 4 indicates manually updated; 5 indicates failed.
|
@@ -40,9 +46,11 @@ module DatadogAPIClient::V2
|
|
40
46
|
# @!visibility private
|
41
47
|
def self.attribute_map
|
42
48
|
{
|
49
|
+
:'created' => :'created',
|
43
50
|
:'incident_id' => :'incident_id',
|
44
51
|
:'integration_type' => :'integration_type',
|
45
52
|
:'metadata' => :'metadata',
|
53
|
+
:'modified' => :'modified',
|
46
54
|
:'status' => :'status'
|
47
55
|
}
|
48
56
|
end
|
@@ -51,9 +59,11 @@ module DatadogAPIClient::V2
|
|
51
59
|
# @!visibility private
|
52
60
|
def self.openapi_types
|
53
61
|
{
|
62
|
+
:'created' => :'Time',
|
54
63
|
:'incident_id' => :'String',
|
55
64
|
:'integration_type' => :'Integer',
|
56
65
|
:'metadata' => :'IncidentIntegrationMetadataMetadata',
|
66
|
+
:'modified' => :'Time',
|
57
67
|
:'status' => :'Integer'
|
58
68
|
}
|
59
69
|
end
|
@@ -74,6 +84,10 @@ module DatadogAPIClient::V2
|
|
74
84
|
h[k.to_sym] = v
|
75
85
|
}
|
76
86
|
|
87
|
+
if attributes.key?(:'created')
|
88
|
+
self.created = attributes[:'created']
|
89
|
+
end
|
90
|
+
|
77
91
|
if attributes.key?(:'incident_id')
|
78
92
|
self.incident_id = attributes[:'incident_id']
|
79
93
|
end
|
@@ -86,6 +100,10 @@ module DatadogAPIClient::V2
|
|
86
100
|
self.metadata = attributes[:'metadata']
|
87
101
|
end
|
88
102
|
|
103
|
+
if attributes.key?(:'modified')
|
104
|
+
self.modified = attributes[:'modified']
|
105
|
+
end
|
106
|
+
|
89
107
|
if attributes.key?(:'status')
|
90
108
|
self.status = attributes[:'status']
|
91
109
|
end
|
@@ -141,9 +159,11 @@ module DatadogAPIClient::V2
|
|
141
159
|
def ==(o)
|
142
160
|
return true if self.equal?(o)
|
143
161
|
self.class == o.class &&
|
162
|
+
created == o.created &&
|
144
163
|
incident_id == o.incident_id &&
|
145
164
|
integration_type == o.integration_type &&
|
146
165
|
metadata == o.metadata &&
|
166
|
+
modified == o.modified &&
|
147
167
|
status == o.status
|
148
168
|
end
|
149
169
|
|
@@ -151,7 +171,7 @@ module DatadogAPIClient::V2
|
|
151
171
|
# @return [Integer] Hash code
|
152
172
|
# @!visibility private
|
153
173
|
def hash
|
154
|
-
[incident_id, integration_type, metadata, status].hash
|
174
|
+
[created, incident_id, integration_type, metadata, modified, status].hash
|
155
175
|
end
|
156
176
|
end
|
157
177
|
end
|
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
|
|
27
27
|
# The incident integration metadata's ID.
|
28
28
|
attr_reader :id
|
29
29
|
|
30
|
+
# The incident's integration relationships from a response.
|
31
|
+
attr_accessor :relationships
|
32
|
+
|
30
33
|
# Integration metadata resource type.
|
31
34
|
attr_reader :type
|
32
35
|
|
@@ -36,6 +39,7 @@ module DatadogAPIClient::V2
|
|
36
39
|
{
|
37
40
|
:'attributes' => :'attributes',
|
38
41
|
:'id' => :'id',
|
42
|
+
:'relationships' => :'relationships',
|
39
43
|
:'type' => :'type'
|
40
44
|
}
|
41
45
|
end
|
@@ -46,6 +50,7 @@ module DatadogAPIClient::V2
|
|
46
50
|
{
|
47
51
|
:'attributes' => :'IncidentIntegrationMetadataAttributes',
|
48
52
|
:'id' => :'String',
|
53
|
+
:'relationships' => :'IncidentIntegrationRelationships',
|
49
54
|
:'type' => :'IncidentIntegrationMetadataType'
|
50
55
|
}
|
51
56
|
end
|
@@ -74,6 +79,10 @@ module DatadogAPIClient::V2
|
|
74
79
|
self.id = attributes[:'id']
|
75
80
|
end
|
76
81
|
|
82
|
+
if attributes.key?(:'relationships')
|
83
|
+
self.relationships = attributes[:'relationships']
|
84
|
+
end
|
85
|
+
|
77
86
|
if attributes.key?(:'type')
|
78
87
|
self.type = attributes[:'type']
|
79
88
|
end
|
@@ -116,6 +125,7 @@ module DatadogAPIClient::V2
|
|
116
125
|
self.class == o.class &&
|
117
126
|
attributes == o.attributes &&
|
118
127
|
id == o.id &&
|
128
|
+
relationships == o.relationships &&
|
119
129
|
type == o.type
|
120
130
|
end
|
121
131
|
|
@@ -123,7 +133,7 @@ module DatadogAPIClient::V2
|
|
123
133
|
# @return [Integer] Hash code
|
124
134
|
# @!visibility private
|
125
135
|
def hash
|
126
|
-
[attributes, id, type].hash
|
136
|
+
[attributes, id, relationships, type].hash
|
127
137
|
end
|
128
138
|
end
|
129
139
|
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# The incident's integration relationships from a response.
|
21
|
+
class IncidentIntegrationRelationships
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Relationship to user.
|
25
|
+
attr_accessor :created_by_user
|
26
|
+
|
27
|
+
# Relationship to user.
|
28
|
+
attr_accessor :last_modified_by_user
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'created_by_user' => :'created_by_user',
|
35
|
+
:'last_modified_by_user' => :'last_modified_by_user'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'created_by_user' => :'RelationshipToUser',
|
44
|
+
:'last_modified_by_user' => :'RelationshipToUser'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentIntegrationRelationships` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentIntegrationRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'created_by_user')
|
65
|
+
self.created_by_user = attributes[:'created_by_user']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'last_modified_by_user')
|
69
|
+
self.last_modified_by_user = attributes[:'last_modified_by_user']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
created_by_user == o.created_by_user &&
|
80
|
+
last_modified_by_user == o.last_modified_by_user
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[created_by_user, last_modified_by_user].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# Incident's non Datadog creator.
|
21
|
+
class IncidentNonDatadogCreator
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Non Datadog creator `48px` image.
|
25
|
+
attr_accessor :image_48_px
|
26
|
+
|
27
|
+
# Non Datadog creator name.
|
28
|
+
attr_accessor :name
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
# @!visibility private
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'image_48_px' => :'image_48_px',
|
35
|
+
:'name' => :'name'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'image_48_px' => :'String',
|
44
|
+
:'name' => :'String'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
50
|
+
# @!visibility private
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentNonDatadogCreator` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::IncidentNonDatadogCreator`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'image_48_px')
|
65
|
+
self.image_48_px = attributes[:'image_48_px']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'name')
|
69
|
+
self.name = attributes[:'name']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param o [Object] Object to be compared
|
75
|
+
# @!visibility private
|
76
|
+
def ==(o)
|
77
|
+
return true if self.equal?(o)
|
78
|
+
self.class == o.class &&
|
79
|
+
image_48_px == o.image_48_px &&
|
80
|
+
name == o.name
|
81
|
+
end
|
82
|
+
|
83
|
+
# Calculates hash code according to all attributes.
|
84
|
+
# @return [Integer] Hash code
|
85
|
+
# @!visibility private
|
86
|
+
def hash
|
87
|
+
[image_48_px, name].hash
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 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::V2
|
20
|
+
# The incident responders type.
|
21
|
+
class IncidentRespondersType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
INCIDENT_RESPONDERS = "incident_responders".freeze
|
25
|
+
end
|
26
|
+
end
|