datadog_api_client 2.42.0 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +3 -7
- data/.generator/schemas/v2/openapi.yaml +2981 -63
- data/.github/CODEOWNERS +4 -4
- data/.github/workflows/reusable-ci.yml +71 -0
- data/.github/workflows/reusable-examples.yml +40 -0
- data/.github/workflows/{test_integration.yml → reusable-integration-test.yml} +66 -17
- data/.github/workflows/reusable-pre-commit.yml +84 -0
- data/.github/workflows/reusable-ruby-test.yml +65 -0
- data/.github/workflows/test.yml +31 -89
- data/CHANGELOG.md +19 -0
- data/examples/v1/dashboards/CreateDashboard_607525069.rb +61 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +5 -0
- data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +5 -0
- data/examples/v2/cloud-cost-management/CreateArbitraryCostRule.rb +63 -0
- data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +0 -1
- data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/CreateRuleset.rb +32 -0
- data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +5 -0
- data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/DeleteRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb +5 -0
- data/examples/v2/cloud-cost-management/GetRuleset.rb +5 -0
- data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +5 -0
- data/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +1 -1
- data/examples/v2/cloud-cost-management/ListRulesets.rb +5 -0
- data/examples/v2/cloud-cost-management/ReorderArbitraryCostRules.rb +22 -0
- data/examples/v2/cloud-cost-management/ReorderRulesets.rb +13 -0
- data/examples/v2/cloud-cost-management/UpdateArbitraryCostRule.rb +63 -0
- data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
- data/examples/v2/cloud-cost-management/UpdateRuleset.rb +31 -0
- data/examples/v2/cloud-cost-management/ValidateQuery.rb +14 -0
- data/examples/v2/dora-metrics/DeleteDORADeployment.rb +5 -0
- data/examples/v2/dora-metrics/DeleteDORAFailure.rb +5 -0
- data/examples/v2/incidents/CreateIncidentImpact.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentImpact.rb +12 -0
- data/examples/v2/incidents/ListIncidentImpacts.rb +11 -0
- data/examples/v2/key-management/GetCurrentUserApplicationKey.rb +4 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb +68 -0
- data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +70 -0
- data/lib/datadog_api_client/configuration.rb +3 -0
- data/lib/datadog_api_client/inflector.rb +104 -1
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +1 -3
- data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +120 -0
- data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1211 -126
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +130 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +229 -0
- data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +2 -0
- data/lib/datadog_api_client/v2/models/account_filtering_config.rb +8 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes.rb +241 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +351 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_costs_to_allocate_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy.rb +215 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_based_on_costs_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
- data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +5 -5
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes_account_filters.rb +137 -0
- data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config.rb +9 -1
- data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +1 -12
- data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +3 -13
- data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +19 -1
- data/lib/datadog_api_client/v2/models/create_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/create_ruleset_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_attributes.rb +235 -0
- data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +4 -4
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +13 -13
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +3 -3
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +4 -15
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +7 -7
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +21 -3
- data/lib/datadog_api_client/v2/models/historical_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +203 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +173 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/incident_impact_create_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_impact_related_object.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_impact_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_impact_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_impact_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_impacts_response.rb +137 -0
- data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +33 -1
- data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +2 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +251 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_encoding.rb +27 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +19 -1
- data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/relationship_to_incident.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_rule_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_attributes.rb +123 -0
- data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp.rb +105 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +276 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_created.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_modified.rb +133 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/ruleset_resp_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +22 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_options.rb +119 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step.rb +126 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step_transition.rb +126 -0
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair.rb +105 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes_configs_items.rb +255 -0
- data/lib/datadog_api_client/v2/models/uc_config_pair_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes.rb +156 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +195 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +172 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
- data/lib/datadog_api_client/v2/models/update_ruleset_request_data_type.rb +26 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +137 -3
- data/examples/v1/synthetics/SearchTests_195957771.rb +0 -14
@@ -0,0 +1,144 @@
|
|
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 definition of `CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems` object.
|
21
|
+
class CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The `items` `input_column`.
|
25
|
+
attr_reader :input_column
|
26
|
+
|
27
|
+
# The `items` `output_key`.
|
28
|
+
attr_reader :output_key
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'input_column' => :'input_column',
|
37
|
+
:'output_key' => :'output_key'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'input_column' => :'String',
|
46
|
+
:'output_key' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'input_column')
|
69
|
+
self.input_column = attributes[:'input_column']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'output_key')
|
73
|
+
self.output_key = attributes[:'output_key']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @input_column.nil?
|
82
|
+
return false if @output_key.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param input_column [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def input_column=(input_column)
|
90
|
+
if input_column.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "input_column", input_column cannot be nil.'
|
92
|
+
end
|
93
|
+
@input_column = input_column
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param output_key [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def output_key=(output_key)
|
100
|
+
if output_key.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "output_key", output_key cannot be nil.'
|
102
|
+
end
|
103
|
+
@output_key = output_key
|
104
|
+
end
|
105
|
+
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
108
|
+
# @!visibility private
|
109
|
+
def to_hash
|
110
|
+
hash = {}
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
112
|
+
value = self.send(attr)
|
113
|
+
if value.nil?
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
116
|
+
end
|
117
|
+
|
118
|
+
hash[param] = _to_hash(value)
|
119
|
+
end
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
121
|
+
hash[attr] = value
|
122
|
+
end
|
123
|
+
hash
|
124
|
+
end
|
125
|
+
|
126
|
+
# Checks equality by comparing each attribute.
|
127
|
+
# @param o [Object] Object to be compared
|
128
|
+
# @!visibility private
|
129
|
+
def ==(o)
|
130
|
+
return true if self.equal?(o)
|
131
|
+
self.class == o.class &&
|
132
|
+
input_column == o.input_column &&
|
133
|
+
output_key == o.output_key &&
|
134
|
+
additional_properties == o.additional_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Calculates hash code according to all attributes.
|
138
|
+
# @return [Integer] Hash code
|
139
|
+
# @!visibility private
|
140
|
+
def hash
|
141
|
+
[input_column, output_key, additional_properties].hash
|
142
|
+
end
|
143
|
+
end
|
144
|
+
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
|
+
# Create ruleset resource type.
|
21
|
+
class CreateRulesetRequestDataType
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
CREATE_RULESET = "create_ruleset".freeze
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,105 @@
|
|
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
|
+
# Trigger a workflow from a Datastore. For automatic triggering a handle must be configured and the workflow must be published.
|
21
|
+
class DatastoreTrigger
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Defines a rate limit for a trigger.
|
25
|
+
attr_accessor :rate_limit
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'rate_limit' => :'rateLimit'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'rate_limit' => :'TriggerRateLimit'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DatastoreTrigger` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'rate_limit')
|
64
|
+
self.rate_limit = attributes[:'rate_limit']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
70
|
+
# @!visibility private
|
71
|
+
def to_hash
|
72
|
+
hash = {}
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
74
|
+
value = self.send(attr)
|
75
|
+
if value.nil?
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
78
|
+
end
|
79
|
+
|
80
|
+
hash[param] = _to_hash(value)
|
81
|
+
end
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
83
|
+
hash[attr] = value
|
84
|
+
end
|
85
|
+
hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param o [Object] Object to be compared
|
90
|
+
# @!visibility private
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
rate_limit == o.rate_limit &&
|
95
|
+
additional_properties == o.additional_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Calculates hash code according to all attributes.
|
99
|
+
# @return [Integer] Hash code
|
100
|
+
# @!visibility private
|
101
|
+
def hash
|
102
|
+
[rate_limit, additional_properties].hash
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,135 @@
|
|
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
|
+
# Schema for a Datastore-based trigger.
|
21
|
+
class DatastoreTriggerWrapper
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Trigger a workflow from a Datastore. For automatic triggering a handle must be configured and the workflow must be published.
|
25
|
+
attr_reader :datastore_trigger
|
26
|
+
|
27
|
+
# A list of steps that run first after a trigger fires.
|
28
|
+
attr_accessor :start_step_names
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'datastore_trigger' => :'datastoreTrigger',
|
37
|
+
:'start_step_names' => :'startStepNames'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'datastore_trigger' => :'DatastoreTrigger',
|
46
|
+
:'start_step_names' => :'Array<String>'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::DatastoreTriggerWrapper` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'datastore_trigger')
|
69
|
+
self.datastore_trigger = attributes[:'datastore_trigger']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'start_step_names')
|
73
|
+
if (value = attributes[:'start_step_names']).is_a?(Array)
|
74
|
+
self.start_step_names = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
# @!visibility private
|
82
|
+
def valid?
|
83
|
+
return false if @datastore_trigger.nil?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param datastore_trigger [Object] Object to be assigned
|
89
|
+
# @!visibility private
|
90
|
+
def datastore_trigger=(datastore_trigger)
|
91
|
+
if datastore_trigger.nil?
|
92
|
+
fail ArgumentError, 'invalid value for "datastore_trigger", datastore_trigger cannot be nil.'
|
93
|
+
end
|
94
|
+
@datastore_trigger = datastore_trigger
|
95
|
+
end
|
96
|
+
|
97
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
98
|
+
# @return [Hash] Returns the object in the form of hash
|
99
|
+
# @!visibility private
|
100
|
+
def to_hash
|
101
|
+
hash = {}
|
102
|
+
self.class.attribute_map.each_pair do |attr, param|
|
103
|
+
value = self.send(attr)
|
104
|
+
if value.nil?
|
105
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
106
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
107
|
+
end
|
108
|
+
|
109
|
+
hash[param] = _to_hash(value)
|
110
|
+
end
|
111
|
+
self.additional_properties.each_pair do |attr, value|
|
112
|
+
hash[attr] = value
|
113
|
+
end
|
114
|
+
hash
|
115
|
+
end
|
116
|
+
|
117
|
+
# Checks equality by comparing each attribute.
|
118
|
+
# @param o [Object] Object to be compared
|
119
|
+
# @!visibility private
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
datastore_trigger == o.datastore_trigger &&
|
124
|
+
start_step_names == o.start_step_names &&
|
125
|
+
additional_properties == o.additional_properties
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
# @!visibility private
|
131
|
+
def hash
|
132
|
+
[datastore_trigger, start_step_names, additional_properties].hash
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
@@ -27,6 +27,9 @@ module DatadogAPIClient::V2
|
|
27
27
|
# Creation date of the API key.
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
|
+
# Date the API Key was last used
|
31
|
+
attr_accessor :date_last_used
|
32
|
+
|
30
33
|
# The API key.
|
31
34
|
attr_accessor :key
|
32
35
|
|
@@ -50,6 +53,7 @@ module DatadogAPIClient::V2
|
|
50
53
|
{
|
51
54
|
:'category' => :'category',
|
52
55
|
:'created_at' => :'created_at',
|
56
|
+
:'date_last_used' => :'date_last_used',
|
53
57
|
:'key' => :'key',
|
54
58
|
:'last4' => :'last4',
|
55
59
|
:'modified_at' => :'modified_at',
|
@@ -64,6 +68,7 @@ module DatadogAPIClient::V2
|
|
64
68
|
{
|
65
69
|
:'category' => :'String',
|
66
70
|
:'created_at' => :'Time',
|
71
|
+
:'date_last_used' => :'Time',
|
67
72
|
:'key' => :'String',
|
68
73
|
:'last4' => :'String',
|
69
74
|
:'modified_at' => :'Time',
|
@@ -72,6 +77,14 @@ module DatadogAPIClient::V2
|
|
72
77
|
}
|
73
78
|
end
|
74
79
|
|
80
|
+
# List of attributes with nullable: true
|
81
|
+
# @!visibility private
|
82
|
+
def self.openapi_nullable
|
83
|
+
Set.new([
|
84
|
+
:'date_last_used',
|
85
|
+
])
|
86
|
+
end
|
87
|
+
|
75
88
|
# Initializes the object
|
76
89
|
# @param attributes [Hash] Model attributes in the form of hash
|
77
90
|
# @!visibility private
|
@@ -98,6 +111,10 @@ module DatadogAPIClient::V2
|
|
98
111
|
self.created_at = attributes[:'created_at']
|
99
112
|
end
|
100
113
|
|
114
|
+
if attributes.key?(:'date_last_used')
|
115
|
+
self.date_last_used = attributes[:'date_last_used']
|
116
|
+
end
|
117
|
+
|
101
118
|
if attributes.key?(:'key')
|
102
119
|
self.key = attributes[:'key']
|
103
120
|
end
|
@@ -169,6 +186,7 @@ module DatadogAPIClient::V2
|
|
169
186
|
self.class == o.class &&
|
170
187
|
category == o.category &&
|
171
188
|
created_at == o.created_at &&
|
189
|
+
date_last_used == o.date_last_used &&
|
172
190
|
key == o.key &&
|
173
191
|
last4 == o.last4 &&
|
174
192
|
modified_at == o.modified_at &&
|
@@ -181,7 +199,7 @@ module DatadogAPIClient::V2
|
|
181
199
|
# @return [Integer] Hash code
|
182
200
|
# @!visibility private
|
183
201
|
def hash
|
184
|
-
[category, created_at, key, last4, modified_at, name, remote_config_read_enabled, additional_properties].hash
|
202
|
+
[category, created_at, date_last_used, key, last4, modified_at, name, remote_config_read_enabled, additional_properties].hash
|
185
203
|
end
|
186
204
|
end
|
187
205
|
end
|
@@ -30,6 +30,9 @@ module DatadogAPIClient::V2
|
|
30
30
|
# The last four characters of the application key.
|
31
31
|
attr_reader :last4
|
32
32
|
|
33
|
+
# Last usage timestamp of the application key.
|
34
|
+
attr_accessor :last_used_at
|
35
|
+
|
33
36
|
# Name of the application key.
|
34
37
|
attr_accessor :name
|
35
38
|
|
@@ -45,6 +48,7 @@ module DatadogAPIClient::V2
|
|
45
48
|
:'created_at' => :'created_at',
|
46
49
|
:'key' => :'key',
|
47
50
|
:'last4' => :'last4',
|
51
|
+
:'last_used_at' => :'last_used_at',
|
48
52
|
:'name' => :'name',
|
49
53
|
:'scopes' => :'scopes'
|
50
54
|
}
|
@@ -57,6 +61,7 @@ module DatadogAPIClient::V2
|
|
57
61
|
:'created_at' => :'Time',
|
58
62
|
:'key' => :'String',
|
59
63
|
:'last4' => :'String',
|
64
|
+
:'last_used_at' => :'Time',
|
60
65
|
:'name' => :'String',
|
61
66
|
:'scopes' => :'Array<String>'
|
62
67
|
}
|
@@ -66,6 +71,7 @@ module DatadogAPIClient::V2
|
|
66
71
|
# @!visibility private
|
67
72
|
def self.openapi_nullable
|
68
73
|
Set.new([
|
74
|
+
:'last_used_at',
|
69
75
|
:'scopes',
|
70
76
|
])
|
71
77
|
end
|
@@ -100,6 +106,10 @@ module DatadogAPIClient::V2
|
|
100
106
|
self.last4 = attributes[:'last4']
|
101
107
|
end
|
102
108
|
|
109
|
+
if attributes.key?(:'last_used_at')
|
110
|
+
self.last_used_at = attributes[:'last_used_at']
|
111
|
+
end
|
112
|
+
|
103
113
|
if attributes.key?(:'name')
|
104
114
|
self.name = attributes[:'name']
|
105
115
|
end
|
@@ -162,6 +172,7 @@ module DatadogAPIClient::V2
|
|
162
172
|
created_at == o.created_at &&
|
163
173
|
key == o.key &&
|
164
174
|
last4 == o.last4 &&
|
175
|
+
last_used_at == o.last_used_at &&
|
165
176
|
name == o.name &&
|
166
177
|
scopes == o.scopes &&
|
167
178
|
additional_properties == o.additional_properties
|
@@ -171,7 +182,7 @@ module DatadogAPIClient::V2
|
|
171
182
|
# @return [Integer] Hash code
|
172
183
|
# @!visibility private
|
173
184
|
def hash
|
174
|
-
[created_at, key, last4, name, scopes, additional_properties].hash
|
185
|
+
[created_at, key, last4, last_used_at, name, scopes, additional_properties].hash
|
175
186
|
end
|
176
187
|
end
|
177
188
|
end
|
@@ -0,0 +1,105 @@
|
|
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 definition of `GcpUcConfigResponse` object.
|
21
|
+
class GcpUcConfigResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# The definition of `GcpUcConfigResponseData` object.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
# @!visibility private
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'data' => :'data'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'data' => :'GcpUcConfigResponseData'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
47
|
+
# @!visibility private
|
48
|
+
def initialize(attributes = {})
|
49
|
+
if (!attributes.is_a?(Hash))
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::GcpUcConfigResponse` initialize method"
|
51
|
+
end
|
52
|
+
|
53
|
+
self.additional_properties = {}
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
self.additional_properties[k.to_sym] = v
|
58
|
+
else
|
59
|
+
h[k.to_sym] = v
|
60
|
+
end
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
self.data = attributes[:'data']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
70
|
+
# @!visibility private
|
71
|
+
def to_hash
|
72
|
+
hash = {}
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
74
|
+
value = self.send(attr)
|
75
|
+
if value.nil?
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
78
|
+
end
|
79
|
+
|
80
|
+
hash[param] = _to_hash(value)
|
81
|
+
end
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
83
|
+
hash[attr] = value
|
84
|
+
end
|
85
|
+
hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param o [Object] Object to be compared
|
90
|
+
# @!visibility private
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
data == o.data &&
|
95
|
+
additional_properties == o.additional_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Calculates hash code according to all attributes.
|
99
|
+
# @return [Integer] Hash code
|
100
|
+
# @!visibility private
|
101
|
+
def hash
|
102
|
+
[data, additional_properties].hash
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|