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.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +3 -7
  3. data/.generator/schemas/v2/openapi.yaml +2981 -63
  4. data/.github/CODEOWNERS +4 -4
  5. data/.github/workflows/reusable-ci.yml +71 -0
  6. data/.github/workflows/reusable-examples.yml +40 -0
  7. data/.github/workflows/{test_integration.yml → reusable-integration-test.yml} +66 -17
  8. data/.github/workflows/reusable-pre-commit.yml +84 -0
  9. data/.github/workflows/reusable-ruby-test.yml +65 -0
  10. data/.github/workflows/test.yml +31 -89
  11. data/CHANGELOG.md +19 -0
  12. data/examples/v1/dashboards/CreateDashboard_607525069.rb +61 -0
  13. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection.rb +5 -0
  14. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsResourceCollection_1008672547.rb +5 -0
  15. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard.rb +5 -0
  16. data/examples/v2/aws-integration/GetAWSIntegrationIAMPermissionsStandard_3136299151.rb +5 -0
  17. data/examples/v2/cloud-cost-management/CreateArbitraryCostRule.rb +63 -0
  18. data/examples/v2/cloud-cost-management/CreateCostAzureUCConfigs.rb +0 -1
  19. data/examples/v2/cloud-cost-management/CreateCostGCPUsageCostConfig.rb +1 -1
  20. data/examples/v2/cloud-cost-management/CreateRuleset.rb +32 -0
  21. data/examples/v2/cloud-cost-management/DeleteArbitraryCostRule.rb +5 -0
  22. data/examples/v2/cloud-cost-management/DeleteCostGCPUsageCostConfig.rb +1 -1
  23. data/examples/v2/cloud-cost-management/DeleteRuleset.rb +5 -0
  24. data/examples/v2/cloud-cost-management/GetArbitraryCostRule.rb +5 -0
  25. data/examples/v2/cloud-cost-management/GetCostAWSCURConfig.rb +5 -0
  26. data/examples/v2/cloud-cost-management/GetCostAzureUCConfig.rb +5 -0
  27. data/examples/v2/cloud-cost-management/GetCostGCPUsageCostConfig.rb +5 -0
  28. data/examples/v2/cloud-cost-management/GetRuleset.rb +5 -0
  29. data/examples/v2/cloud-cost-management/ListArbitraryCostRules.rb +5 -0
  30. data/examples/v2/cloud-cost-management/ListCostGCPUsageCostConfigs.rb +1 -1
  31. data/examples/v2/cloud-cost-management/ListRulesets.rb +5 -0
  32. data/examples/v2/cloud-cost-management/ReorderArbitraryCostRules.rb +22 -0
  33. data/examples/v2/cloud-cost-management/ReorderRulesets.rb +13 -0
  34. data/examples/v2/cloud-cost-management/UpdateArbitraryCostRule.rb +63 -0
  35. data/examples/v2/cloud-cost-management/UpdateCostGCPUsageCostConfig.rb +1 -1
  36. data/examples/v2/cloud-cost-management/UpdateRuleset.rb +31 -0
  37. data/examples/v2/cloud-cost-management/ValidateQuery.rb +14 -0
  38. data/examples/v2/dora-metrics/DeleteDORADeployment.rb +5 -0
  39. data/examples/v2/dora-metrics/DeleteDORAFailure.rb +5 -0
  40. data/examples/v2/incidents/CreateIncidentImpact.rb +22 -0
  41. data/examples/v2/incidents/DeleteIncidentImpact.rb +12 -0
  42. data/examples/v2/incidents/ListIncidentImpacts.rb +11 -0
  43. data/examples/v2/key-management/GetCurrentUserApplicationKey.rb +4 -1
  44. data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2899714190.rb +68 -0
  45. data/examples/v2/security-monitoring/ValidateSecurityMonitoringRule_4152369508.rb +70 -0
  46. data/lib/datadog_api_client/configuration.rb +3 -0
  47. data/lib/datadog_api_client/inflector.rb +104 -1
  48. data/lib/datadog_api_client/v1/api/synthetics_api.rb +1 -3
  49. data/lib/datadog_api_client/v1/models/formula_and_function_events_data_source.rb +1 -0
  50. data/lib/datadog_api_client/v2/api/aws_integration_api.rb +120 -0
  51. data/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +1211 -126
  52. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +130 -0
  53. data/lib/datadog_api_client/v2/api/incidents_api.rb +229 -0
  54. data/lib/datadog_api_client/v2/api/security_monitoring_api.rb +2 -0
  55. data/lib/datadog_api_client/v2/models/account_filtering_config.rb +8 -0
  56. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request.rb +105 -0
  57. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data.rb +143 -0
  58. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes.rb +241 -0
  59. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_costs_to_allocate_items.rb +174 -0
  60. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy.rb +215 -0
  61. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
  62. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items.rb +146 -0
  63. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
  64. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_based_on_costs_items.rb +174 -0
  65. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
  66. data/lib/datadog_api_client/v2/models/arbitrary_cost_upsert_request_data_type.rb +26 -0
  67. data/lib/datadog_api_client/v2/models/arbitrary_rule_response.rb +105 -0
  68. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_array.rb +125 -0
  69. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data.rb +143 -0
  70. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes.rb +351 -0
  71. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_costs_to_allocate_items.rb +174 -0
  72. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy.rb +215 -0
  73. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_filters_items.rb +174 -0
  74. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items.rb +146 -0
  75. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_allocated_by_items_allocated_tags_items.rb +144 -0
  76. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_based_on_costs_items.rb +174 -0
  77. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_attributes_strategy_evaluate_grouped_by_filters_items.rb +174 -0
  78. data/lib/datadog_api_client/v2/models/arbitrary_rule_response_data_type.rb +26 -0
  79. data/lib/datadog_api_client/v2/models/aws_cur_config_attributes.rb +8 -0
  80. data/lib/datadog_api_client/v2/models/aws_cur_config_post_data.rb +1 -12
  81. data/lib/datadog_api_client/v2/models/aws_cur_config_response.rb +5 -5
  82. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data.rb +143 -0
  83. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes.rb +225 -0
  84. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_attributes_account_filters.rb +137 -0
  85. data/lib/datadog_api_client/v2/models/aws_cur_config_response_data_type.rb +26 -0
  86. data/lib/datadog_api_client/v2/models/aws_cur_configs_response.rb +19 -1
  87. data/lib/datadog_api_client/v2/models/azure_uc_config.rb +9 -1
  88. data/lib/datadog_api_client/v2/models/azure_uc_config_patch_data.rb +1 -12
  89. data/lib/datadog_api_client/v2/models/azure_uc_config_post_data.rb +1 -12
  90. data/lib/datadog_api_client/v2/models/azure_uc_config_post_request_attributes.rb +3 -13
  91. data/lib/datadog_api_client/v2/models/azure_uc_configs_response.rb +19 -1
  92. data/lib/datadog_api_client/v2/models/create_ruleset_request.rb +105 -0
  93. data/lib/datadog_api_client/v2/models/create_ruleset_request_data.rb +143 -0
  94. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes.rb +135 -0
  95. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items.rb +195 -0
  96. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
  97. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query.rb +172 -0
  98. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
  99. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
  100. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  101. data/lib/datadog_api_client/v2/models/create_ruleset_request_data_type.rb +26 -0
  102. data/lib/datadog_api_client/v2/models/datastore_trigger.rb +105 -0
  103. data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +135 -0
  104. data/lib/datadog_api_client/v2/models/full_api_key_attributes.rb +19 -1
  105. data/lib/datadog_api_client/v2/models/full_application_key_attributes.rb +12 -1
  106. data/lib/datadog_api_client/v2/models/gcp_uc_config_response.rb +105 -0
  107. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data.rb +143 -0
  108. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_attributes.rb +235 -0
  109. data/lib/datadog_api_client/v2/models/gcp_uc_config_response_data_type.rb +26 -0
  110. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config.rb +4 -4
  111. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_attributes.rb +13 -13
  112. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_data.rb +3 -3
  113. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request.rb +2 -2
  114. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_attributes.rb +1 -1
  115. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_patch_request_type.rb +1 -1
  116. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_data.rb +4 -15
  117. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request.rb +2 -2
  118. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_attributes.rb +7 -7
  119. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_post_request_type.rb +1 -1
  120. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_response.rb +2 -2
  121. data/lib/datadog_api_client/v2/models/gcp_usage_cost_config_type.rb +1 -1
  122. data/lib/datadog_api_client/v2/models/gcp_usage_cost_configs_response.rb +21 -3
  123. data/lib/datadog_api_client/v2/models/historical_job_options.rb +11 -1
  124. data/lib/datadog_api_client/v2/models/incident_impact_attributes.rb +203 -0
  125. data/lib/datadog_api_client/v2/models/incident_impact_create_attributes.rb +173 -0
  126. data/lib/datadog_api_client/v2/models/incident_impact_create_data.rb +144 -0
  127. data/lib/datadog_api_client/v2/models/incident_impact_create_request.rb +123 -0
  128. data/lib/datadog_api_client/v2/models/incident_impact_related_object.rb +28 -0
  129. data/lib/datadog_api_client/v2/models/incident_impact_relationships.rb +125 -0
  130. data/lib/datadog_api_client/v2/models/incident_impact_response.rb +135 -0
  131. data/lib/datadog_api_client/v2/models/incident_impact_response_data.rb +164 -0
  132. data/lib/datadog_api_client/v2/models/incident_impact_type.rb +26 -0
  133. data/lib/datadog_api_client/v2/models/incident_impacts_response.rb +137 -0
  134. data/lib/datadog_api_client/v2/models/incident_response_attributes.rb +33 -1
  135. data/lib/datadog_api_client/v2/models/incident_response_relationships.rb +11 -1
  136. data/lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb +2 -1
  137. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination.rb +251 -0
  138. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_encoding.rb +27 -0
  139. data/lib/datadog_api_client/v2/models/observability_pipeline_google_pub_sub_destination_type.rb +26 -0
  140. data/lib/datadog_api_client/v2/models/partial_api_key_attributes.rb +19 -1
  141. data/lib/datadog_api_client/v2/models/partial_application_key_attributes.rb +12 -1
  142. data/lib/datadog_api_client/v2/models/relationship_to_incident.rb +123 -0
  143. data/lib/datadog_api_client/v2/models/relationship_to_incident_data.rb +144 -0
  144. data/lib/datadog_api_client/v2/models/reorder_rule_resource_array.rb +125 -0
  145. data/lib/datadog_api_client/v2/models/reorder_rule_resource_data.rb +133 -0
  146. data/lib/datadog_api_client/v2/models/reorder_rule_resource_data_type.rb +26 -0
  147. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_array.rb +125 -0
  148. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data.rb +133 -0
  149. data/lib/datadog_api_client/v2/models/reorder_ruleset_resource_data_type.rb +26 -0
  150. data/lib/datadog_api_client/v2/models/rules_validate_query_request.rb +105 -0
  151. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data.rb +143 -0
  152. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_attributes.rb +123 -0
  153. data/lib/datadog_api_client/v2/models/rules_validate_query_request_data_type.rb +26 -0
  154. data/lib/datadog_api_client/v2/models/rules_validate_query_response.rb +105 -0
  155. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data.rb +143 -0
  156. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_attributes.rb +123 -0
  157. data/lib/datadog_api_client/v2/models/rules_validate_query_response_data_type.rb +26 -0
  158. data/lib/datadog_api_client/v2/models/ruleset_resp.rb +105 -0
  159. data/lib/datadog_api_client/v2/models/ruleset_resp_array.rb +125 -0
  160. data/lib/datadog_api_client/v2/models/ruleset_resp_data.rb +143 -0
  161. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes.rb +276 -0
  162. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_created.rb +133 -0
  163. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_modified.rb +133 -0
  164. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items.rb +195 -0
  165. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_mapping.rb +167 -0
  166. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query.rb +172 -0
  167. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_query_addition.rb +144 -0
  168. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table.rb +189 -0
  169. data/lib/datadog_api_client/v2/models/ruleset_resp_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  170. data/lib/datadog_api_client/v2/models/ruleset_resp_data_type.rb +26 -0
  171. data/lib/datadog_api_client/v2/models/rum_application_attributes.rb +22 -1
  172. data/lib/datadog_api_client/v2/models/security_monitoring_rule_detection_method.rb +1 -0
  173. data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
  174. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_options.rb +119 -0
  175. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step.rb +126 -0
  176. data/lib/datadog_api_client/v2/models/security_monitoring_rule_sequence_detection_step_transition.rb +126 -0
  177. data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
  178. data/lib/datadog_api_client/v2/models/uc_config_pair.rb +105 -0
  179. data/lib/datadog_api_client/v2/models/uc_config_pair_data.rb +143 -0
  180. data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes.rb +107 -0
  181. data/lib/datadog_api_client/v2/models/uc_config_pair_data_attributes_configs_items.rb +255 -0
  182. data/lib/datadog_api_client/v2/models/uc_config_pair_data_type.rb +26 -0
  183. data/lib/datadog_api_client/v2/models/update_ruleset_request.rb +105 -0
  184. data/lib/datadog_api_client/v2/models/update_ruleset_request_data.rb +143 -0
  185. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes.rb +156 -0
  186. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items.rb +195 -0
  187. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_mapping.rb +167 -0
  188. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query.rb +172 -0
  189. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_query_addition.rb +144 -0
  190. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table.rb +189 -0
  191. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_attributes_rules_items_reference_table_field_pairs_items.rb +144 -0
  192. data/lib/datadog_api_client/v2/models/update_ruleset_request_data_type.rb +26 -0
  193. data/lib/datadog_api_client/version.rb +1 -1
  194. metadata +137 -3
  195. data/examples/v1/synthetics/SearchTests_195957771.rb +0 -14
@@ -0,0 +1,225 @@
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 `AwsCurConfigResponseDataAttributes` object.
21
+ class AwsCurConfigResponseDataAttributes
22
+ include BaseGenericModel
23
+
24
+ # The definition of `AwsCurConfigResponseDataAttributesAccountFilters` object.
25
+ attr_accessor :account_filters
26
+
27
+ # The `attributes` `account_id`.
28
+ attr_accessor :account_id
29
+
30
+ # The `attributes` `bucket_name`.
31
+ attr_accessor :bucket_name
32
+
33
+ # The `attributes` `bucket_region`.
34
+ attr_accessor :bucket_region
35
+
36
+ # The `attributes` `created_at`.
37
+ attr_accessor :created_at
38
+
39
+ # The `attributes` `error_messages`.
40
+ attr_accessor :error_messages
41
+
42
+ # The `attributes` `months`.
43
+ attr_accessor :months
44
+
45
+ # The `attributes` `report_name`.
46
+ attr_accessor :report_name
47
+
48
+ # The `attributes` `report_prefix`.
49
+ attr_accessor :report_prefix
50
+
51
+ # The `attributes` `status`.
52
+ attr_accessor :status
53
+
54
+ # The `attributes` `status_updated_at`.
55
+ attr_accessor :status_updated_at
56
+
57
+ # The `attributes` `updated_at`.
58
+ attr_accessor :updated_at
59
+
60
+ attr_accessor :additional_properties
61
+
62
+ # Attribute mapping from ruby-style variable name to JSON key.
63
+ # @!visibility private
64
+ def self.attribute_map
65
+ {
66
+ :'account_filters' => :'account_filters',
67
+ :'account_id' => :'account_id',
68
+ :'bucket_name' => :'bucket_name',
69
+ :'bucket_region' => :'bucket_region',
70
+ :'created_at' => :'created_at',
71
+ :'error_messages' => :'error_messages',
72
+ :'months' => :'months',
73
+ :'report_name' => :'report_name',
74
+ :'report_prefix' => :'report_prefix',
75
+ :'status' => :'status',
76
+ :'status_updated_at' => :'status_updated_at',
77
+ :'updated_at' => :'updated_at'
78
+ }
79
+ end
80
+
81
+ # Attribute type mapping.
82
+ # @!visibility private
83
+ def self.openapi_types
84
+ {
85
+ :'account_filters' => :'AwsCurConfigResponseDataAttributesAccountFilters',
86
+ :'account_id' => :'String',
87
+ :'bucket_name' => :'String',
88
+ :'bucket_region' => :'String',
89
+ :'created_at' => :'String',
90
+ :'error_messages' => :'Array<String>',
91
+ :'months' => :'Integer',
92
+ :'report_name' => :'String',
93
+ :'report_prefix' => :'String',
94
+ :'status' => :'String',
95
+ :'status_updated_at' => :'String',
96
+ :'updated_at' => :'String'
97
+ }
98
+ end
99
+
100
+ # List of attributes with nullable: true
101
+ # @!visibility private
102
+ def self.openapi_nullable
103
+ Set.new([
104
+ :'error_messages',
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::V2::AwsCurConfigResponseDataAttributes` initialize method"
114
+ end
115
+
116
+ self.additional_properties = {}
117
+ # check to see if the attribute exists and convert string to symbol for hash key
118
+ attributes = attributes.each_with_object({}) { |(k, v), h|
119
+ if (!self.class.attribute_map.key?(k.to_sym))
120
+ self.additional_properties[k.to_sym] = v
121
+ else
122
+ h[k.to_sym] = v
123
+ end
124
+ }
125
+
126
+ if attributes.key?(:'account_filters')
127
+ self.account_filters = attributes[:'account_filters']
128
+ end
129
+
130
+ if attributes.key?(:'account_id')
131
+ self.account_id = attributes[:'account_id']
132
+ end
133
+
134
+ if attributes.key?(:'bucket_name')
135
+ self.bucket_name = attributes[:'bucket_name']
136
+ end
137
+
138
+ if attributes.key?(:'bucket_region')
139
+ self.bucket_region = attributes[:'bucket_region']
140
+ end
141
+
142
+ if attributes.key?(:'created_at')
143
+ self.created_at = attributes[:'created_at']
144
+ end
145
+
146
+ if attributes.key?(:'error_messages')
147
+ if (value = attributes[:'error_messages']).is_a?(Array)
148
+ self.error_messages = value
149
+ end
150
+ end
151
+
152
+ if attributes.key?(:'months')
153
+ self.months = attributes[:'months']
154
+ end
155
+
156
+ if attributes.key?(:'report_name')
157
+ self.report_name = attributes[:'report_name']
158
+ end
159
+
160
+ if attributes.key?(:'report_prefix')
161
+ self.report_prefix = attributes[:'report_prefix']
162
+ end
163
+
164
+ if attributes.key?(:'status')
165
+ self.status = attributes[:'status']
166
+ end
167
+
168
+ if attributes.key?(:'status_updated_at')
169
+ self.status_updated_at = attributes[:'status_updated_at']
170
+ end
171
+
172
+ if attributes.key?(:'updated_at')
173
+ self.updated_at = attributes[:'updated_at']
174
+ end
175
+ end
176
+
177
+ # Returns the object in the form of hash, with additionalProperties support.
178
+ # @return [Hash] Returns the object in the form of hash
179
+ # @!visibility private
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ self.additional_properties.each_pair do |attr, value|
192
+ hash[attr] = value
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Checks equality by comparing each attribute.
198
+ # @param o [Object] Object to be compared
199
+ # @!visibility private
200
+ def ==(o)
201
+ return true if self.equal?(o)
202
+ self.class == o.class &&
203
+ account_filters == o.account_filters &&
204
+ account_id == o.account_id &&
205
+ bucket_name == o.bucket_name &&
206
+ bucket_region == o.bucket_region &&
207
+ created_at == o.created_at &&
208
+ error_messages == o.error_messages &&
209
+ months == o.months &&
210
+ report_name == o.report_name &&
211
+ report_prefix == o.report_prefix &&
212
+ status == o.status &&
213
+ status_updated_at == o.status_updated_at &&
214
+ updated_at == o.updated_at &&
215
+ additional_properties == o.additional_properties
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Integer] Hash code
220
+ # @!visibility private
221
+ def hash
222
+ [account_filters, account_id, bucket_name, bucket_region, created_at, error_messages, months, report_name, report_prefix, status, status_updated_at, updated_at, additional_properties].hash
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,137 @@
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 `AwsCurConfigResponseDataAttributesAccountFilters` object.
21
+ class AwsCurConfigResponseDataAttributesAccountFilters
22
+ include BaseGenericModel
23
+
24
+ # The `account_filters` `excluded_accounts`.
25
+ attr_accessor :excluded_accounts
26
+
27
+ # The `account_filters` `include_new_accounts`.
28
+ attr_accessor :include_new_accounts
29
+
30
+ # The `account_filters` `included_accounts`.
31
+ attr_accessor :included_accounts
32
+
33
+ attr_accessor :additional_properties
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ # @!visibility private
37
+ def self.attribute_map
38
+ {
39
+ :'excluded_accounts' => :'excluded_accounts',
40
+ :'include_new_accounts' => :'include_new_accounts',
41
+ :'included_accounts' => :'included_accounts'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ # @!visibility private
47
+ def self.openapi_types
48
+ {
49
+ :'excluded_accounts' => :'Array<String>',
50
+ :'include_new_accounts' => :'Boolean',
51
+ :'included_accounts' => :'Array<String>'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ # @!visibility private
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'include_new_accounts',
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param attributes [Hash] Model attributes in the form of hash
65
+ # @!visibility private
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::AwsCurConfigResponseDataAttributesAccountFilters` initialize method"
69
+ end
70
+
71
+ self.additional_properties = {}
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!self.class.attribute_map.key?(k.to_sym))
75
+ self.additional_properties[k.to_sym] = v
76
+ else
77
+ h[k.to_sym] = v
78
+ end
79
+ }
80
+
81
+ if attributes.key?(:'excluded_accounts')
82
+ if (value = attributes[:'excluded_accounts']).is_a?(Array)
83
+ self.excluded_accounts = value
84
+ end
85
+ end
86
+
87
+ if attributes.key?(:'include_new_accounts')
88
+ self.include_new_accounts = attributes[:'include_new_accounts']
89
+ end
90
+
91
+ if attributes.key?(:'included_accounts')
92
+ if (value = attributes[:'included_accounts']).is_a?(Array)
93
+ self.included_accounts = value
94
+ end
95
+ end
96
+ end
97
+
98
+ # Returns the object in the form of hash, with additionalProperties support.
99
+ # @return [Hash] Returns the object in the form of hash
100
+ # @!visibility private
101
+ def to_hash
102
+ hash = {}
103
+ self.class.attribute_map.each_pair do |attr, param|
104
+ value = self.send(attr)
105
+ if value.nil?
106
+ is_nullable = self.class.openapi_nullable.include?(attr)
107
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
108
+ end
109
+
110
+ hash[param] = _to_hash(value)
111
+ end
112
+ self.additional_properties.each_pair do |attr, value|
113
+ hash[attr] = value
114
+ end
115
+ hash
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param o [Object] Object to be compared
120
+ # @!visibility private
121
+ def ==(o)
122
+ return true if self.equal?(o)
123
+ self.class == o.class &&
124
+ excluded_accounts == o.excluded_accounts &&
125
+ include_new_accounts == o.include_new_accounts &&
126
+ included_accounts == o.included_accounts &&
127
+ additional_properties == o.additional_properties
128
+ end
129
+
130
+ # Calculates hash code according to all attributes.
131
+ # @return [Integer] Hash code
132
+ # @!visibility private
133
+ def hash
134
+ [excluded_accounts, include_new_accounts, included_accounts, additional_properties].hash
135
+ end
136
+ end
137
+ 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
+ # AWS CUR config resource type.
21
+ class AwsCurConfigResponseDataType
22
+ include BaseEnumModel
23
+
24
+ AWS_CUR_CONFIG = "aws_cur_config".freeze
25
+ end
26
+ end
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
22
22
  include BaseGenericModel
23
23
 
24
24
  # An AWS CUR config.
25
- attr_accessor :data
25
+ attr_reader :data
26
26
 
27
27
  attr_accessor :additional_properties
28
28
 
@@ -67,6 +67,24 @@ module DatadogAPIClient::V2
67
67
  end
68
68
  end
69
69
 
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ # @!visibility private
73
+ def valid?
74
+ return false if @data.nil?
75
+ true
76
+ end
77
+
78
+ # Custom attribute writer method with validation
79
+ # @param data [Object] Object to be assigned
80
+ # @!visibility private
81
+ def data=(data)
82
+ if data.nil?
83
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
84
+ end
85
+ @data = data
86
+ end
87
+
70
88
  # Returns the object in the form of hash, with additionalProperties support.
71
89
  # @return [Hash] Returns the object in the form of hash
72
90
  # @!visibility private
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class AzureUCConfig
22
22
  include BaseGenericModel
23
23
 
24
- # The tenant ID of the azure account.
24
+ # The tenant ID of the Azure account.
25
25
  attr_reader :account_id
26
26
 
27
27
  # The client ID of the Azure account.
@@ -112,6 +112,14 @@ module DatadogAPIClient::V2
112
112
  }
113
113
  end
114
114
 
115
+ # List of attributes with nullable: true
116
+ # @!visibility private
117
+ def self.openapi_nullable
118
+ Set.new([
119
+ :'error_messages',
120
+ ])
121
+ end
122
+
115
123
  # Initializes the object
116
124
  # @param attributes [Hash] Model attributes in the form of hash
117
125
  # @!visibility private
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
22
22
  include BaseGenericModel
23
23
 
24
24
  # Attributes for Azure config Patch Request.
25
- attr_reader :attributes
25
+ attr_accessor :attributes
26
26
 
27
27
  # Type of Azure config Patch Request.
28
28
  attr_reader :type
@@ -78,21 +78,10 @@ module DatadogAPIClient::V2
78
78
  # @return true if the model is valid
79
79
  # @!visibility private
80
80
  def valid?
81
- return false if @attributes.nil?
82
81
  return false if @type.nil?
83
82
  true
84
83
  end
85
84
 
86
- # Custom attribute writer method with validation
87
- # @param attributes [Object] Object to be assigned
88
- # @!visibility private
89
- def attributes=(attributes)
90
- if attributes.nil?
91
- fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
92
- end
93
- @attributes = attributes
94
- end
95
-
96
85
  # Custom attribute writer method with validation
97
86
  # @param type [Object] Object to be assigned
98
87
  # @!visibility private
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
22
22
  include BaseGenericModel
23
23
 
24
24
  # Attributes for Azure config Post Request.
25
- attr_reader :attributes
25
+ attr_accessor :attributes
26
26
 
27
27
  # Type of Azure config Post Request.
28
28
  attr_reader :type
@@ -78,21 +78,10 @@ module DatadogAPIClient::V2
78
78
  # @return true if the model is valid
79
79
  # @!visibility private
80
80
  def valid?
81
- return false if @attributes.nil?
82
81
  return false if @type.nil?
83
82
  true
84
83
  end
85
84
 
86
- # Custom attribute writer method with validation
87
- # @param attributes [Object] Object to be assigned
88
- # @!visibility private
89
- def attributes=(attributes)
90
- if attributes.nil?
91
- fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
92
- end
93
- @attributes = attributes
94
- end
95
-
96
85
  # Custom attribute writer method with validation
97
86
  # @param type [Object] Object to be assigned
98
87
  # @!visibility private
@@ -21,7 +21,7 @@ module DatadogAPIClient::V2
21
21
  class AzureUCConfigPostRequestAttributes
22
22
  include BaseGenericModel
23
23
 
24
- # The tenant ID of the azure account.
24
+ # The tenant ID of the Azure account.
25
25
  attr_reader :account_id
26
26
 
27
27
  # Bill config.
@@ -30,12 +30,9 @@ module DatadogAPIClient::V2
30
30
  # Bill config.
31
31
  attr_reader :amortized_bill_config
32
32
 
33
- # The client ID of the azure account.
33
+ # The client ID of the Azure account.
34
34
  attr_reader :client_id
35
35
 
36
- # Whether or not the Cloud Cost Management account is enabled.
37
- attr_accessor :is_enabled
38
-
39
36
  # The scope of your observed subscription.
40
37
  attr_reader :scope
41
38
 
@@ -49,7 +46,6 @@ module DatadogAPIClient::V2
49
46
  :'actual_bill_config' => :'actual_bill_config',
50
47
  :'amortized_bill_config' => :'amortized_bill_config',
51
48
  :'client_id' => :'client_id',
52
- :'is_enabled' => :'is_enabled',
53
49
  :'scope' => :'scope'
54
50
  }
55
51
  end
@@ -62,7 +58,6 @@ module DatadogAPIClient::V2
62
58
  :'actual_bill_config' => :'BillConfig',
63
59
  :'amortized_bill_config' => :'BillConfig',
64
60
  :'client_id' => :'String',
65
- :'is_enabled' => :'Boolean',
66
61
  :'scope' => :'String'
67
62
  }
68
63
  end
@@ -101,10 +96,6 @@ module DatadogAPIClient::V2
101
96
  self.client_id = attributes[:'client_id']
102
97
  end
103
98
 
104
- if attributes.key?(:'is_enabled')
105
- self.is_enabled = attributes[:'is_enabled']
106
- end
107
-
108
99
  if attributes.key?(:'scope')
109
100
  self.scope = attributes[:'scope']
110
101
  end
@@ -202,7 +193,6 @@ module DatadogAPIClient::V2
202
193
  actual_bill_config == o.actual_bill_config &&
203
194
  amortized_bill_config == o.amortized_bill_config &&
204
195
  client_id == o.client_id &&
205
- is_enabled == o.is_enabled &&
206
196
  scope == o.scope &&
207
197
  additional_properties == o.additional_properties
208
198
  end
@@ -211,7 +201,7 @@ module DatadogAPIClient::V2
211
201
  # @return [Integer] Hash code
212
202
  # @!visibility private
213
203
  def hash
214
- [account_id, actual_bill_config, amortized_bill_config, client_id, is_enabled, scope, additional_properties].hash
204
+ [account_id, actual_bill_config, amortized_bill_config, client_id, scope, additional_properties].hash
215
205
  end
216
206
  end
217
207
  end
@@ -22,7 +22,7 @@ module DatadogAPIClient::V2
22
22
  include BaseGenericModel
23
23
 
24
24
  # An Azure config pair.
25
- attr_accessor :data
25
+ attr_reader :data
26
26
 
27
27
  attr_accessor :additional_properties
28
28
 
@@ -67,6 +67,24 @@ module DatadogAPIClient::V2
67
67
  end
68
68
  end
69
69
 
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ # @!visibility private
73
+ def valid?
74
+ return false if @data.nil?
75
+ true
76
+ end
77
+
78
+ # Custom attribute writer method with validation
79
+ # @param data [Object] Object to be assigned
80
+ # @!visibility private
81
+ def data=(data)
82
+ if data.nil?
83
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
84
+ end
85
+ @data = data
86
+ end
87
+
70
88
  # Returns the object in the form of hash, with additionalProperties support.
71
89
  # @return [Hash] Returns the object in the form of hash
72
90
  # @!visibility private