datadog_api_client 2.41.0 → 2.42.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 +69 -8
- data/.generator/schemas/v2/openapi.yaml +1568 -40
- data/CHANGELOG.md +15 -0
- data/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb +24 -0
- data/examples/v2/actions-datastores/CreateDatastore.rb +15 -0
- data/examples/v2/actions-datastores/DeleteDatastore.rb +8 -0
- data/examples/v2/actions-datastores/DeleteDatastoreItem.rb +17 -0
- data/examples/v2/actions-datastores/GetDatastore.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastoreItems.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastores.rb +5 -0
- data/examples/v2/actions-datastores/UpdateDatastore.rb +18 -0
- data/examples/v2/actions-datastores/UpdateDatastoreItem.rb +18 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb +0 -3
- data/examples/v2/aws-integration/DeleteAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/GetAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/ListAWSAccounts.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb +0 -3
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -3
- data/examples/v2/aws-logs-integration/ListAWSLogsServices.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2836340212.rb +52 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule.rb +50 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb +42 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb +11 -0
- data/examples/v2/incidents/GetIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb +11 -0
- data/examples/v2/incidents/ListIncidentNotificationRules.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule.rb +51 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb +45 -0
- data/lib/datadog_api_client/configuration.rb +5 -8
- data/lib/datadog_api_client/inflector.rb +67 -0
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +27 -0
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +9 -0
- data/lib/datadog_api_client/v1/models/gcp_account.rb +18 -4
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +655 -0
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +0 -42
- data/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +367 -0
- data/lib/datadog_api_client/v2/api/org_connections_api.rb +8 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data_single_or_array.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes.rb +180 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes_org_access.rb +28 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/datastore.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/datastore_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/datastore_data_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/datastore_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_item_conflict_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/datastore_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_primary_key_generation_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +17 -2
- data/lib/datadog_api_client/v2/models/incident_notification_rule.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes.rb +265 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_conditions_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes.rb +201 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_included_items.rb +64 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_update_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_object.rb +164 -0
- data/lib/datadog_api_client/v2/models/item_api_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_array.rb +139 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema.rb +117 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema_field.rb +144 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/put_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes.rb +158 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes_item_changes.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +87 -1
|
@@ -154,6 +154,8 @@ module DatadogAPIClient
|
|
|
154
154
|
"v1.funnel_widget_definition_type" => "FunnelWidgetDefinitionType",
|
|
155
155
|
"v1.funnel_widget_request" => "FunnelWidgetRequest",
|
|
156
156
|
"v1.gcp_account" => "GCPAccount",
|
|
157
|
+
"v1.gcp_monitored_resource_config" => "GCPMonitoredResourceConfig",
|
|
158
|
+
"v1.gcp_monitored_resource_config_type" => "GCPMonitoredResourceConfigType",
|
|
157
159
|
"v1.geomap_widget_definition" => "GeomapWidgetDefinition",
|
|
158
160
|
"v1.geomap_widget_definition_style" => "GeomapWidgetDefinitionStyle",
|
|
159
161
|
"v1.geomap_widget_definition_type" => "GeomapWidgetDefinitionType",
|
|
@@ -1255,6 +1257,9 @@ module DatadogAPIClient
|
|
|
1255
1257
|
"v2.bulk_mute_findings_request_properties" => "BulkMuteFindingsRequestProperties",
|
|
1256
1258
|
"v2.bulk_mute_findings_response" => "BulkMuteFindingsResponse",
|
|
1257
1259
|
"v2.bulk_mute_findings_response_data" => "BulkMuteFindingsResponseData",
|
|
1260
|
+
"v2.bulk_put_apps_datastore_items_request" => "BulkPutAppsDatastoreItemsRequest",
|
|
1261
|
+
"v2.bulk_put_apps_datastore_items_request_data" => "BulkPutAppsDatastoreItemsRequestData",
|
|
1262
|
+
"v2.bulk_put_apps_datastore_items_request_data_attributes" => "BulkPutAppsDatastoreItemsRequestDataAttributes",
|
|
1258
1263
|
"v2.calculated_field" => "CalculatedField",
|
|
1259
1264
|
"v2.cancel_data_deletion_response_body" => "CancelDataDeletionResponseBody",
|
|
1260
1265
|
"v2.case" => "Case",
|
|
@@ -1319,6 +1324,7 @@ module DatadogAPIClient
|
|
|
1319
1324
|
"v2.ci_app_create_pipeline_event_request_attributes" => "CIAppCreatePipelineEventRequestAttributes",
|
|
1320
1325
|
"v2.ci_app_create_pipeline_event_request_attributes_resource" => "CIAppCreatePipelineEventRequestAttributesResource",
|
|
1321
1326
|
"v2.ci_app_create_pipeline_event_request_data" => "CIAppCreatePipelineEventRequestData",
|
|
1327
|
+
"v2.ci_app_create_pipeline_event_request_data_single_or_array" => "CIAppCreatePipelineEventRequestDataSingleOrArray",
|
|
1322
1328
|
"v2.ci_app_create_pipeline_event_request_data_type" => "CIAppCreatePipelineEventRequestDataType",
|
|
1323
1329
|
"v2.ci_app_event_attributes" => "CIAppEventAttributes",
|
|
1324
1330
|
"v2.ci_app_git_info" => "CIAppGitInfo",
|
|
@@ -1547,6 +1553,12 @@ module DatadogAPIClient
|
|
|
1547
1553
|
"v2.create_app_request_data_attributes" => "CreateAppRequestDataAttributes",
|
|
1548
1554
|
"v2.create_app_response" => "CreateAppResponse",
|
|
1549
1555
|
"v2.create_app_response_data" => "CreateAppResponseData",
|
|
1556
|
+
"v2.create_apps_datastore_request" => "CreateAppsDatastoreRequest",
|
|
1557
|
+
"v2.create_apps_datastore_request_data" => "CreateAppsDatastoreRequestData",
|
|
1558
|
+
"v2.create_apps_datastore_request_data_attributes" => "CreateAppsDatastoreRequestDataAttributes",
|
|
1559
|
+
"v2.create_apps_datastore_request_data_attributes_org_access" => "CreateAppsDatastoreRequestDataAttributesOrgAccess",
|
|
1560
|
+
"v2.create_apps_datastore_response" => "CreateAppsDatastoreResponse",
|
|
1561
|
+
"v2.create_apps_datastore_response_data" => "CreateAppsDatastoreResponseData",
|
|
1550
1562
|
"v2.create_custom_framework_request" => "CreateCustomFrameworkRequest",
|
|
1551
1563
|
"v2.create_custom_framework_response" => "CreateCustomFrameworkResponse",
|
|
1552
1564
|
"v2.create_data_deletion_request_body" => "CreateDataDeletionRequestBody",
|
|
@@ -1554,6 +1566,7 @@ module DatadogAPIClient
|
|
|
1554
1566
|
"v2.create_data_deletion_request_body_data" => "CreateDataDeletionRequestBodyData",
|
|
1555
1567
|
"v2.create_data_deletion_request_body_data_type" => "CreateDataDeletionRequestBodyDataType",
|
|
1556
1568
|
"v2.create_data_deletion_response_body" => "CreateDataDeletionResponseBody",
|
|
1569
|
+
"v2.create_incident_notification_rule_request" => "CreateIncidentNotificationRuleRequest",
|
|
1557
1570
|
"v2.create_incident_notification_template_request" => "CreateIncidentNotificationTemplateRequest",
|
|
1558
1571
|
"v2.create_notification_rule_parameters" => "CreateNotificationRuleParameters",
|
|
1559
1572
|
"v2.create_notification_rule_parameters_data" => "CreateNotificationRuleParametersData",
|
|
@@ -1695,11 +1708,24 @@ module DatadogAPIClient
|
|
|
1695
1708
|
"v2.dataset_response_single" => "DatasetResponseSingle",
|
|
1696
1709
|
"v2.dataset_type" => "DatasetType",
|
|
1697
1710
|
"v2.dataset_update_request" => "DatasetUpdateRequest",
|
|
1711
|
+
"v2.datastore" => "Datastore",
|
|
1712
|
+
"v2.datastore_array" => "DatastoreArray",
|
|
1713
|
+
"v2.datastore_data" => "DatastoreData",
|
|
1714
|
+
"v2.datastore_data_attributes" => "DatastoreDataAttributes",
|
|
1715
|
+
"v2.datastore_data_type" => "DatastoreDataType",
|
|
1716
|
+
"v2.datastore_item_conflict_mode" => "DatastoreItemConflictMode",
|
|
1717
|
+
"v2.datastore_items_data_type" => "DatastoreItemsDataType",
|
|
1718
|
+
"v2.datastore_primary_key_generation_strategy" => "DatastorePrimaryKeyGenerationStrategy",
|
|
1698
1719
|
"v2.data_transform" => "DataTransform",
|
|
1699
1720
|
"v2.data_transform_properties" => "DataTransformProperties",
|
|
1700
1721
|
"v2.data_transform_type" => "DataTransformType",
|
|
1701
1722
|
"v2.delete_app_response" => "DeleteAppResponse",
|
|
1702
1723
|
"v2.delete_app_response_data" => "DeleteAppResponseData",
|
|
1724
|
+
"v2.delete_apps_datastore_item_request" => "DeleteAppsDatastoreItemRequest",
|
|
1725
|
+
"v2.delete_apps_datastore_item_request_data" => "DeleteAppsDatastoreItemRequestData",
|
|
1726
|
+
"v2.delete_apps_datastore_item_request_data_attributes" => "DeleteAppsDatastoreItemRequestDataAttributes",
|
|
1727
|
+
"v2.delete_apps_datastore_item_response" => "DeleteAppsDatastoreItemResponse",
|
|
1728
|
+
"v2.delete_apps_datastore_item_response_data" => "DeleteAppsDatastoreItemResponseData",
|
|
1703
1729
|
"v2.delete_apps_request" => "DeleteAppsRequest",
|
|
1704
1730
|
"v2.delete_apps_request_data_items" => "DeleteAppsRequestDataItems",
|
|
1705
1731
|
"v2.delete_apps_response" => "DeleteAppsResponse",
|
|
@@ -1992,6 +2018,8 @@ module DatadogAPIClient
|
|
|
1992
2018
|
"v2.gcp_integration_type" => "GCPIntegrationType",
|
|
1993
2019
|
"v2.gcp_integration_update" => "GCPIntegrationUpdate",
|
|
1994
2020
|
"v2.gcp_metric_namespace_config" => "GCPMetricNamespaceConfig",
|
|
2021
|
+
"v2.gcp_monitored_resource_config" => "GCPMonitoredResourceConfig",
|
|
2022
|
+
"v2.gcp_monitored_resource_config_type" => "GCPMonitoredResourceConfigType",
|
|
1995
2023
|
"v2.gcp_service_account" => "GCPServiceAccount",
|
|
1996
2024
|
"v2.gcp_service_account_credential_type" => "GCPServiceAccountCredentialType",
|
|
1997
2025
|
"v2.gcp_service_account_meta" => "GCPServiceAccountMeta",
|
|
@@ -2148,6 +2176,22 @@ module DatadogAPIClient
|
|
|
2148
2176
|
"v2.incident_integration_relationships" => "IncidentIntegrationRelationships",
|
|
2149
2177
|
"v2.incident_non_datadog_creator" => "IncidentNonDatadogCreator",
|
|
2150
2178
|
"v2.incident_notification_handle" => "IncidentNotificationHandle",
|
|
2179
|
+
"v2.incident_notification_rule" => "IncidentNotificationRule",
|
|
2180
|
+
"v2.incident_notification_rule_array" => "IncidentNotificationRuleArray",
|
|
2181
|
+
"v2.incident_notification_rule_array_meta" => "IncidentNotificationRuleArrayMeta",
|
|
2182
|
+
"v2.incident_notification_rule_array_meta_page" => "IncidentNotificationRuleArrayMetaPage",
|
|
2183
|
+
"v2.incident_notification_rule_attributes" => "IncidentNotificationRuleAttributes",
|
|
2184
|
+
"v2.incident_notification_rule_attributes_visibility" => "IncidentNotificationRuleAttributesVisibility",
|
|
2185
|
+
"v2.incident_notification_rule_conditions_items" => "IncidentNotificationRuleConditionsItems",
|
|
2186
|
+
"v2.incident_notification_rule_create_attributes" => "IncidentNotificationRuleCreateAttributes",
|
|
2187
|
+
"v2.incident_notification_rule_create_attributes_visibility" => "IncidentNotificationRuleCreateAttributesVisibility",
|
|
2188
|
+
"v2.incident_notification_rule_create_data" => "IncidentNotificationRuleCreateData",
|
|
2189
|
+
"v2.incident_notification_rule_create_data_relationships" => "IncidentNotificationRuleCreateDataRelationships",
|
|
2190
|
+
"v2.incident_notification_rule_included_items" => "IncidentNotificationRuleIncludedItems",
|
|
2191
|
+
"v2.incident_notification_rule_relationships" => "IncidentNotificationRuleRelationships",
|
|
2192
|
+
"v2.incident_notification_rule_response_data" => "IncidentNotificationRuleResponseData",
|
|
2193
|
+
"v2.incident_notification_rule_type" => "IncidentNotificationRuleType",
|
|
2194
|
+
"v2.incident_notification_rule_update_data" => "IncidentNotificationRuleUpdateData",
|
|
2151
2195
|
"v2.incident_notification_template" => "IncidentNotificationTemplate",
|
|
2152
2196
|
"v2.incident_notification_template_array" => "IncidentNotificationTemplateArray",
|
|
2153
2197
|
"v2.incident_notification_template_array_meta" => "IncidentNotificationTemplateArrayMeta",
|
|
@@ -2157,6 +2201,7 @@ module DatadogAPIClient
|
|
|
2157
2201
|
"v2.incident_notification_template_create_data" => "IncidentNotificationTemplateCreateData",
|
|
2158
2202
|
"v2.incident_notification_template_create_data_relationships" => "IncidentNotificationTemplateCreateDataRelationships",
|
|
2159
2203
|
"v2.incident_notification_template_included_items" => "IncidentNotificationTemplateIncludedItems",
|
|
2204
|
+
"v2.incident_notification_template_object" => "IncidentNotificationTemplateObject",
|
|
2160
2205
|
"v2.incident_notification_template_relationships" => "IncidentNotificationTemplateRelationships",
|
|
2161
2206
|
"v2.incident_notification_template_response_data" => "IncidentNotificationTemplateResponseData",
|
|
2162
2207
|
"v2.incident_notification_template_type" => "IncidentNotificationTemplateType",
|
|
@@ -2318,6 +2363,14 @@ module DatadogAPIClient
|
|
|
2318
2363
|
"v2.issue_user_attributes" => "IssueUserAttributes",
|
|
2319
2364
|
"v2.issue_user_reference" => "IssueUserReference",
|
|
2320
2365
|
"v2.issue_user_type" => "IssueUserType",
|
|
2366
|
+
"v2.item_api_payload" => "ItemApiPayload",
|
|
2367
|
+
"v2.item_api_payload_array" => "ItemApiPayloadArray",
|
|
2368
|
+
"v2.item_api_payload_data" => "ItemApiPayloadData",
|
|
2369
|
+
"v2.item_api_payload_data_attributes" => "ItemApiPayloadDataAttributes",
|
|
2370
|
+
"v2.item_api_payload_meta" => "ItemApiPayloadMeta",
|
|
2371
|
+
"v2.item_api_payload_meta_page" => "ItemApiPayloadMetaPage",
|
|
2372
|
+
"v2.item_api_payload_meta_schema" => "ItemApiPayloadMetaSchema",
|
|
2373
|
+
"v2.item_api_payload_meta_schema_field" => "ItemApiPayloadMetaSchemaField",
|
|
2321
2374
|
"v2.jira_integration_metadata" => "JiraIntegrationMetadata",
|
|
2322
2375
|
"v2.jira_integration_metadata_issues_item" => "JiraIntegrationMetadataIssuesItem",
|
|
2323
2376
|
"v2.jira_issue" => "JiraIssue",
|
|
@@ -3044,6 +3097,9 @@ module DatadogAPIClient
|
|
|
3044
3097
|
"v2.project_response" => "ProjectResponse",
|
|
3045
3098
|
"v2.projects_response" => "ProjectsResponse",
|
|
3046
3099
|
"v2.publish_app_response" => "PublishAppResponse",
|
|
3100
|
+
"v2.put_apps_datastore_item_response_array" => "PutAppsDatastoreItemResponseArray",
|
|
3101
|
+
"v2.put_apps_datastore_item_response_data" => "PutAppsDatastoreItemResponseData",
|
|
3102
|
+
"v2.put_incident_notification_rule_request" => "PutIncidentNotificationRuleRequest",
|
|
3047
3103
|
"v2.query" => "Query",
|
|
3048
3104
|
"v2.query_formula" => "QueryFormula",
|
|
3049
3105
|
"v2.query_sort_order" => "QuerySortOrder",
|
|
@@ -3069,6 +3125,8 @@ module DatadogAPIClient
|
|
|
3069
3125
|
"v2.relationship_to_incident_impacts" => "RelationshipToIncidentImpacts",
|
|
3070
3126
|
"v2.relationship_to_incident_integration_metadata_data" => "RelationshipToIncidentIntegrationMetadataData",
|
|
3071
3127
|
"v2.relationship_to_incident_integration_metadatas" => "RelationshipToIncidentIntegrationMetadatas",
|
|
3128
|
+
"v2.relationship_to_incident_notification_template" => "RelationshipToIncidentNotificationTemplate",
|
|
3129
|
+
"v2.relationship_to_incident_notification_template_data" => "RelationshipToIncidentNotificationTemplateData",
|
|
3072
3130
|
"v2.relationship_to_incident_postmortem" => "RelationshipToIncidentPostmortem",
|
|
3073
3131
|
"v2.relationship_to_incident_postmortem_data" => "RelationshipToIncidentPostmortemData",
|
|
3074
3132
|
"v2.relationship_to_incident_responder_data" => "RelationshipToIncidentResponderData",
|
|
@@ -3801,6 +3859,14 @@ module DatadogAPIClient
|
|
|
3801
3859
|
"v2.update_app_response" => "UpdateAppResponse",
|
|
3802
3860
|
"v2.update_app_response_data" => "UpdateAppResponseData",
|
|
3803
3861
|
"v2.update_app_response_data_attributes" => "UpdateAppResponseDataAttributes",
|
|
3862
|
+
"v2.update_apps_datastore_item_request" => "UpdateAppsDatastoreItemRequest",
|
|
3863
|
+
"v2.update_apps_datastore_item_request_data" => "UpdateAppsDatastoreItemRequestData",
|
|
3864
|
+
"v2.update_apps_datastore_item_request_data_attributes" => "UpdateAppsDatastoreItemRequestDataAttributes",
|
|
3865
|
+
"v2.update_apps_datastore_item_request_data_attributes_item_changes" => "UpdateAppsDatastoreItemRequestDataAttributesItemChanges",
|
|
3866
|
+
"v2.update_apps_datastore_item_request_data_type" => "UpdateAppsDatastoreItemRequestDataType",
|
|
3867
|
+
"v2.update_apps_datastore_request" => "UpdateAppsDatastoreRequest",
|
|
3868
|
+
"v2.update_apps_datastore_request_data" => "UpdateAppsDatastoreRequestData",
|
|
3869
|
+
"v2.update_apps_datastore_request_data_attributes" => "UpdateAppsDatastoreRequestDataAttributes",
|
|
3804
3870
|
"v2.update_custom_framework_request" => "UpdateCustomFrameworkRequest",
|
|
3805
3871
|
"v2.update_custom_framework_response" => "UpdateCustomFrameworkResponse",
|
|
3806
3872
|
"v2.update_open_api_response" => "UpdateOpenAPIResponse",
|
|
@@ -3973,6 +4039,7 @@ module DatadogAPIClient
|
|
|
3973
4039
|
"v1.users_api" => "UsersAPI",
|
|
3974
4040
|
"v1.webhooks_integration_api" => "WebhooksIntegrationAPI",
|
|
3975
4041
|
"v2.action_connection_api" => "ActionConnectionAPI",
|
|
4042
|
+
"v2.actions_datastores_api" => "ActionsDatastoresAPI",
|
|
3976
4043
|
"v2.agentless_scanning_api" => "AgentlessScanningAPI",
|
|
3977
4044
|
"v2.api_management_api" => "APIManagementAPI",
|
|
3978
4045
|
"v2.apm_retention_filters_api" => "APMRetentionFiltersAPI",
|
|
@@ -38,10 +38,13 @@ module DatadogAPIClient::V1
|
|
|
38
38
|
# by adding your new configuration to the existing one in your Datadog organization.
|
|
39
39
|
# A unique AWS Account ID for role based authentication.
|
|
40
40
|
#
|
|
41
|
+
# @deprecated This API is deprecated.
|
|
42
|
+
#
|
|
41
43
|
# @param body [AWSAccount] AWS Request Object
|
|
42
44
|
# @param opts [Hash] the optional parameters
|
|
43
45
|
# @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers
|
|
44
46
|
def create_aws_account_with_http_info(body, opts = {})
|
|
47
|
+
warn "[DEPRECATION] `CreateAWSAccount` is deprecated."
|
|
45
48
|
|
|
46
49
|
if @api_client.config.debugging
|
|
47
50
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.create_aws_account ...'
|
|
@@ -172,10 +175,13 @@ module DatadogAPIClient::V1
|
|
|
172
175
|
#
|
|
173
176
|
# Set an AWS tag filter.
|
|
174
177
|
#
|
|
178
|
+
# @deprecated This API is deprecated.
|
|
179
|
+
#
|
|
175
180
|
# @param body [AWSTagFilterCreateRequest] Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`.
|
|
176
181
|
# @param opts [Hash] the optional parameters
|
|
177
182
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
178
183
|
def create_aws_tag_filter_with_http_info(body, opts = {})
|
|
184
|
+
warn "[DEPRECATION] `CreateAWSTagFilter` is deprecated."
|
|
179
185
|
|
|
180
186
|
if @api_client.config.debugging
|
|
181
187
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.create_aws_tag_filter ...'
|
|
@@ -239,10 +245,13 @@ module DatadogAPIClient::V1
|
|
|
239
245
|
#
|
|
240
246
|
# Generate a new AWS external ID for a given AWS account ID and role name pair.
|
|
241
247
|
#
|
|
248
|
+
# @deprecated This API is deprecated.
|
|
249
|
+
#
|
|
242
250
|
# @param body [AWSAccount] Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://docs.datadoghq.com/integrations/amazon_web_services/#setup).
|
|
243
251
|
# @param opts [Hash] the optional parameters
|
|
244
252
|
# @return [Array<(AWSAccountCreateResponse, Integer, Hash)>] AWSAccountCreateResponse data, response status code and response headers
|
|
245
253
|
def create_new_aws_external_id_with_http_info(body, opts = {})
|
|
254
|
+
warn "[DEPRECATION] `CreateNewAWSExternalID` is deprecated."
|
|
246
255
|
|
|
247
256
|
if @api_client.config.debugging
|
|
248
257
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.create_new_aws_external_id ...'
|
|
@@ -306,10 +315,13 @@ module DatadogAPIClient::V1
|
|
|
306
315
|
#
|
|
307
316
|
# Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`.
|
|
308
317
|
#
|
|
318
|
+
# @deprecated This API is deprecated.
|
|
319
|
+
#
|
|
309
320
|
# @param body [AWSAccountDeleteRequest] AWS request object
|
|
310
321
|
# @param opts [Hash] the optional parameters
|
|
311
322
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
312
323
|
def delete_aws_account_with_http_info(body, opts = {})
|
|
324
|
+
warn "[DEPRECATION] `DeleteAWSAccount` is deprecated."
|
|
313
325
|
|
|
314
326
|
if @api_client.config.debugging
|
|
315
327
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.delete_aws_account ...'
|
|
@@ -440,10 +452,13 @@ module DatadogAPIClient::V1
|
|
|
440
452
|
#
|
|
441
453
|
# Delete a tag filtering entry.
|
|
442
454
|
#
|
|
455
|
+
# @deprecated This API is deprecated.
|
|
456
|
+
#
|
|
443
457
|
# @param body [AWSTagFilterDeleteRequest] Delete a tag filtering entry for a given AWS account and `dd-aws` namespace.
|
|
444
458
|
# @param opts [Hash] the optional parameters
|
|
445
459
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
446
460
|
def delete_aws_tag_filter_with_http_info(body, opts = {})
|
|
461
|
+
warn "[DEPRECATION] `DeleteAWSTagFilter` is deprecated."
|
|
447
462
|
|
|
448
463
|
if @api_client.config.debugging
|
|
449
464
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.delete_aws_tag_filter ...'
|
|
@@ -507,9 +522,12 @@ module DatadogAPIClient::V1
|
|
|
507
522
|
#
|
|
508
523
|
# List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
|
|
509
524
|
#
|
|
525
|
+
# @deprecated This API is deprecated.
|
|
526
|
+
#
|
|
510
527
|
# @param opts [Hash] the optional parameters
|
|
511
528
|
# @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
|
|
512
529
|
def list_available_aws_namespaces_with_http_info(opts = {})
|
|
530
|
+
warn "[DEPRECATION] `ListAvailableAWSNamespaces` is deprecated."
|
|
513
531
|
|
|
514
532
|
if @api_client.config.debugging
|
|
515
533
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_available_aws_namespaces ...'
|
|
@@ -567,12 +585,15 @@ module DatadogAPIClient::V1
|
|
|
567
585
|
#
|
|
568
586
|
# List all Datadog-AWS integrations available in your Datadog organization.
|
|
569
587
|
#
|
|
588
|
+
# @deprecated This API is deprecated.
|
|
589
|
+
#
|
|
570
590
|
# @param opts [Hash] the optional parameters
|
|
571
591
|
# @option opts [String] :account_id Only return AWS accounts that matches this `account_id`.
|
|
572
592
|
# @option opts [String] :role_name Only return AWS accounts that matches this role_name.
|
|
573
593
|
# @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`.
|
|
574
594
|
# @return [Array<(AWSAccountListResponse, Integer, Hash)>] AWSAccountListResponse data, response status code and response headers
|
|
575
595
|
def list_aws_accounts_with_http_info(opts = {})
|
|
596
|
+
warn "[DEPRECATION] `ListAWSAccounts` is deprecated."
|
|
576
597
|
|
|
577
598
|
if @api_client.config.debugging
|
|
578
599
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_aws_accounts ...'
|
|
@@ -693,10 +714,13 @@ module DatadogAPIClient::V1
|
|
|
693
714
|
#
|
|
694
715
|
# Get all AWS tag filters.
|
|
695
716
|
#
|
|
717
|
+
# @deprecated This API is deprecated.
|
|
718
|
+
#
|
|
696
719
|
# @param account_id [String] Only return AWS filters that matches this `account_id`.
|
|
697
720
|
# @param opts [Hash] the optional parameters
|
|
698
721
|
# @return [Array<(AWSTagFilterListResponse, Integer, Hash)>] AWSTagFilterListResponse data, response status code and response headers
|
|
699
722
|
def list_aws_tag_filters_with_http_info(account_id, opts = {})
|
|
723
|
+
warn "[DEPRECATION] `ListAWSTagFilters` is deprecated."
|
|
700
724
|
|
|
701
725
|
if @api_client.config.debugging
|
|
702
726
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.list_aws_tag_filters ...'
|
|
@@ -759,6 +783,8 @@ module DatadogAPIClient::V1
|
|
|
759
783
|
#
|
|
760
784
|
# Update a Datadog-Amazon Web Services integration.
|
|
761
785
|
#
|
|
786
|
+
# @deprecated This API is deprecated.
|
|
787
|
+
#
|
|
762
788
|
# @param body [AWSAccount] AWS request object
|
|
763
789
|
# @param opts [Hash] the optional parameters
|
|
764
790
|
# @option opts [String] :account_id Only return AWS accounts that matches this `account_id`.
|
|
@@ -766,6 +792,7 @@ module DatadogAPIClient::V1
|
|
|
766
792
|
# @option opts [String] :access_key_id Only return AWS accounts that matches this `access_key_id`. Required if none of the other two options are specified.
|
|
767
793
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
768
794
|
def update_aws_account_with_http_info(body, opts = {})
|
|
795
|
+
warn "[DEPRECATION] `UpdateAWSAccount` is deprecated."
|
|
769
796
|
|
|
770
797
|
if @api_client.config.debugging
|
|
771
798
|
@api_client.config.logger.debug 'Calling API: AWSIntegrationAPI.update_aws_account ...'
|
|
@@ -319,10 +319,13 @@ module DatadogAPIClient::V1
|
|
|
319
319
|
#
|
|
320
320
|
# Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration.
|
|
321
321
|
#
|
|
322
|
+
# @deprecated This API is deprecated.
|
|
323
|
+
#
|
|
322
324
|
# @param body [AWSLogsServicesRequest] Enable AWS Log Services request body.
|
|
323
325
|
# @param opts [Hash] the optional parameters
|
|
324
326
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
325
327
|
def enable_aws_log_services_with_http_info(body, opts = {})
|
|
328
|
+
warn "[DEPRECATION] `EnableAWSLogServices` is deprecated."
|
|
326
329
|
|
|
327
330
|
if @api_client.config.debugging
|
|
328
331
|
@api_client.config.logger.debug 'Calling API: AWSLogsIntegrationAPI.enable_aws_log_services ...'
|
|
@@ -386,9 +389,12 @@ module DatadogAPIClient::V1
|
|
|
386
389
|
#
|
|
387
390
|
# List all Datadog-AWS Logs integrations configured in your Datadog account.
|
|
388
391
|
#
|
|
392
|
+
# @deprecated This API is deprecated.
|
|
393
|
+
#
|
|
389
394
|
# @param opts [Hash] the optional parameters
|
|
390
395
|
# @return [Array<(Array<AWSLogsListResponse>, Integer, Hash)>] Array<AWSLogsListResponse> data, response status code and response headers
|
|
391
396
|
def list_aws_logs_integrations_with_http_info(opts = {})
|
|
397
|
+
warn "[DEPRECATION] `ListAWSLogsIntegrations` is deprecated."
|
|
392
398
|
|
|
393
399
|
if @api_client.config.debugging
|
|
394
400
|
@api_client.config.logger.debug 'Calling API: AWSLogsIntegrationAPI.list_aws_logs_integrations ...'
|
|
@@ -446,9 +452,12 @@ module DatadogAPIClient::V1
|
|
|
446
452
|
#
|
|
447
453
|
# Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint.
|
|
448
454
|
#
|
|
455
|
+
# @deprecated This API is deprecated.
|
|
456
|
+
#
|
|
449
457
|
# @param opts [Hash] the optional parameters
|
|
450
458
|
# @return [Array<(Array<AWSLogsListServicesResponse>, Integer, Hash)>] Array<AWSLogsListServicesResponse> data, response status code and response headers
|
|
451
459
|
def list_aws_logs_services_with_http_info(opts = {})
|
|
460
|
+
warn "[DEPRECATION] `ListAWSLogsServices` is deprecated."
|
|
452
461
|
|
|
453
462
|
if @api_client.config.debugging
|
|
454
463
|
@api_client.config.logger.debug 'Calling API: AWSLogsIntegrationAPI.list_aws_logs_services ...'
|
|
@@ -40,15 +40,17 @@ module DatadogAPIClient::V1
|
|
|
40
40
|
# where `$CLIENT_EMAIL` is the email found in your JSON service account key.
|
|
41
41
|
attr_accessor :client_x509_cert_url
|
|
42
42
|
|
|
43
|
-
#
|
|
43
|
+
# List of filters to limit the Cloud Run revisions that are pulled into Datadog by using tags.
|
|
44
44
|
# Only Cloud Run revision resources that apply to specified filters are imported into Datadog.
|
|
45
|
+
# **Note:** This field is deprecated. Instead, use `monitored_resource_configs` with `type=cloud_run_revision`
|
|
45
46
|
attr_accessor :cloud_run_revision_filters
|
|
46
47
|
|
|
47
48
|
# An array of errors.
|
|
48
49
|
attr_accessor :errors
|
|
49
50
|
|
|
50
|
-
#
|
|
51
|
-
# Only
|
|
51
|
+
# A comma-separated list of filters to limit the VM instances that are pulled into Datadog by using tags.
|
|
52
|
+
# Only VM instance resources that apply to specified filters are imported into Datadog.
|
|
53
|
+
# **Note:** This field is deprecated. Instead, use `monitored_resource_configs` with `type=gce_instance`
|
|
52
54
|
attr_accessor :host_filters
|
|
53
55
|
|
|
54
56
|
# 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.
|
|
@@ -60,6 +62,9 @@ module DatadogAPIClient::V1
|
|
|
60
62
|
# When enabled, Datadog will attempt to collect Security Command Center Findings. Note: This requires additional permissions on the service account.
|
|
61
63
|
attr_accessor :is_security_command_center_enabled
|
|
62
64
|
|
|
65
|
+
# Configurations for GCP monitored resources.
|
|
66
|
+
attr_accessor :monitored_resource_configs
|
|
67
|
+
|
|
63
68
|
# Your private key name found in your JSON service account key.
|
|
64
69
|
attr_accessor :private_key
|
|
65
70
|
|
|
@@ -96,6 +101,7 @@ module DatadogAPIClient::V1
|
|
|
96
101
|
:'is_cspm_enabled' => :'is_cspm_enabled',
|
|
97
102
|
:'is_resource_change_collection_enabled' => :'is_resource_change_collection_enabled',
|
|
98
103
|
:'is_security_command_center_enabled' => :'is_security_command_center_enabled',
|
|
104
|
+
:'monitored_resource_configs' => :'monitored_resource_configs',
|
|
99
105
|
:'private_key' => :'private_key',
|
|
100
106
|
:'private_key_id' => :'private_key_id',
|
|
101
107
|
:'project_id' => :'project_id',
|
|
@@ -121,6 +127,7 @@ module DatadogAPIClient::V1
|
|
|
121
127
|
:'is_cspm_enabled' => :'Boolean',
|
|
122
128
|
:'is_resource_change_collection_enabled' => :'Boolean',
|
|
123
129
|
:'is_security_command_center_enabled' => :'Boolean',
|
|
130
|
+
:'monitored_resource_configs' => :'Array<GCPMonitoredResourceConfig>',
|
|
124
131
|
:'private_key' => :'String',
|
|
125
132
|
:'private_key_id' => :'String',
|
|
126
133
|
:'project_id' => :'String',
|
|
@@ -200,6 +207,12 @@ module DatadogAPIClient::V1
|
|
|
200
207
|
self.is_security_command_center_enabled = attributes[:'is_security_command_center_enabled']
|
|
201
208
|
end
|
|
202
209
|
|
|
210
|
+
if attributes.key?(:'monitored_resource_configs')
|
|
211
|
+
if (value = attributes[:'monitored_resource_configs']).is_a?(Array)
|
|
212
|
+
self.monitored_resource_configs = value
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
203
216
|
if attributes.key?(:'private_key')
|
|
204
217
|
self.private_key = attributes[:'private_key']
|
|
205
218
|
end
|
|
@@ -263,6 +276,7 @@ module DatadogAPIClient::V1
|
|
|
263
276
|
is_cspm_enabled == o.is_cspm_enabled &&
|
|
264
277
|
is_resource_change_collection_enabled == o.is_resource_change_collection_enabled &&
|
|
265
278
|
is_security_command_center_enabled == o.is_security_command_center_enabled &&
|
|
279
|
+
monitored_resource_configs == o.monitored_resource_configs &&
|
|
266
280
|
private_key == o.private_key &&
|
|
267
281
|
private_key_id == o.private_key_id &&
|
|
268
282
|
project_id == o.project_id &&
|
|
@@ -276,7 +290,7 @@ module DatadogAPIClient::V1
|
|
|
276
290
|
# @return [Integer] Hash code
|
|
277
291
|
# @!visibility private
|
|
278
292
|
def hash
|
|
279
|
-
[auth_provider_x509_cert_url, auth_uri, automute, client_email, client_id, client_x509_cert_url, cloud_run_revision_filters, errors, host_filters, is_cspm_enabled, is_resource_change_collection_enabled, is_security_command_center_enabled, private_key, private_key_id, project_id, resource_collection_enabled, token_uri, type, additional_properties].hash
|
|
293
|
+
[auth_provider_x509_cert_url, auth_uri, automute, client_email, client_id, client_x509_cert_url, cloud_run_revision_filters, errors, host_filters, is_cspm_enabled, is_resource_change_collection_enabled, is_security_command_center_enabled, monitored_resource_configs, private_key, private_key_id, project_id, resource_collection_enabled, token_uri, type, additional_properties].hash
|
|
280
294
|
end
|
|
281
295
|
end
|
|
282
296
|
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# Configuration for a GCP monitored resource.
|
|
21
|
+
class GCPMonitoredResourceConfig
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# List of filters to limit the monitored resources that are pulled into Datadog by using tags.
|
|
25
|
+
# Only monitored resources that apply to specified filters are imported into Datadog.
|
|
26
|
+
attr_accessor :filters
|
|
27
|
+
|
|
28
|
+
# The GCP monitored resource type. Only a subset of resource types are supported.
|
|
29
|
+
attr_accessor :type
|
|
30
|
+
|
|
31
|
+
attr_accessor :additional_properties
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
# @!visibility private
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'filters' => :'filters',
|
|
38
|
+
:'type' => :'type'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
# @!visibility private
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'filters' => :'Array<String>',
|
|
47
|
+
:'type' => :'GCPMonitoredResourceConfigType'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
53
|
+
# @!visibility private
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::GCPMonitoredResourceConfig` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
self.additional_properties = {}
|
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
63
|
+
self.additional_properties[k.to_sym] = v
|
|
64
|
+
else
|
|
65
|
+
h[k.to_sym] = v
|
|
66
|
+
end
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'filters')
|
|
70
|
+
if (value = attributes[:'filters']).is_a?(Array)
|
|
71
|
+
self.filters = value
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'type')
|
|
76
|
+
self.type = attributes[:'type']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
81
|
+
# @return [Hash] Returns the object in the form of hash
|
|
82
|
+
# @!visibility private
|
|
83
|
+
def to_hash
|
|
84
|
+
hash = {}
|
|
85
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
86
|
+
value = self.send(attr)
|
|
87
|
+
if value.nil?
|
|
88
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
89
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
hash[param] = _to_hash(value)
|
|
93
|
+
end
|
|
94
|
+
self.additional_properties.each_pair do |attr, value|
|
|
95
|
+
hash[attr] = value
|
|
96
|
+
end
|
|
97
|
+
hash
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Checks equality by comparing each attribute.
|
|
101
|
+
# @param o [Object] Object to be compared
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def ==(o)
|
|
104
|
+
return true if self.equal?(o)
|
|
105
|
+
self.class == o.class &&
|
|
106
|
+
filters == o.filters &&
|
|
107
|
+
type == o.type &&
|
|
108
|
+
additional_properties == o.additional_properties
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Integer] Hash code
|
|
113
|
+
# @!visibility private
|
|
114
|
+
def hash
|
|
115
|
+
[filters, type, additional_properties].hash
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V1 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V1
|
|
20
|
+
# The GCP monitored resource type. Only a subset of resource types are supported.
|
|
21
|
+
class GCPMonitoredResourceConfigType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
CLOUD_FUNCTION = "cloud_function".freeze
|
|
25
|
+
CLOUD_RUN_REVISION = "cloud_run_revision".freeze
|
|
26
|
+
GCE_INSTANCE = "gce_instance".freeze
|
|
27
|
+
end
|
|
28
|
+
end
|