datadog_api_client 2.15.0 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +6 -6
- data/.generator/schemas/v1/openapi.yaml +643 -123
- data/.generator/schemas/v2/openapi.yaml +1815 -195
- data/.generator/src/generator/templates/api_client.j2 +19 -1
- data/.generator/src/generator/templates/model_base.j2 +1 -0
- data/CHANGELOG.md +30 -0
- data/examples/v1/dashboards/CreateDashboard_1754992756.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_2278756614.rb +91 -0
- data/examples/v1/monitors/CreateMonitor_1539578087.rb +36 -0
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
- data/examples/v1/usage-metering/GetUsageCIApp.rb +4 -1
- data/examples/v1/usage-metering/GetUsageCWS.rb +4 -1
- data/examples/v1/usage-metering/GetUsageCloudSecurityPostureManagement.rb +1 -1
- data/examples/v2/apm-retention-filters/CreateApmRetentionFilter.rb +20 -0
- data/examples/v2/apm-retention-filters/DeleteApmRetentionFilter.rb +8 -0
- data/examples/v2/apm-retention-filters/GetApmRetentionFilter.rb +8 -0
- data/examples/v2/apm-retention-filters/ListApmRetentionFilters.rb +5 -0
- data/examples/v2/apm-retention-filters/ReorderApmRetentionFilters.rb +18 -0
- data/examples/v2/apm-retention-filters/UpdateApmRetentionFilter.rb +24 -0
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb +0 -8
- data/examples/v2/container-images/ListContainerImages.rb +8 -0
- data/examples/v2/container-images/ListContainerImages_3088586393.rb +11 -0
- data/examples/v2/container-images/ListContainerImages_3974828736.rb +11 -0
- data/examples/v2/gcp-integration/CreateGCPSTSAccount_109518525.rb +19 -0
- data/examples/v2/powerpack/CreatePowerpack.rb +47 -0
- data/examples/v2/powerpack/DeletePowerpack.rb +8 -0
- data/examples/v2/powerpack/GetPowerpack.rb +8 -0
- data/examples/v2/powerpack/ListPowerpacks.rb +8 -0
- data/examples/v2/powerpack/ListPowerpacks_1173755071.rb +8 -0
- data/examples/v2/powerpack/UpdatePowerpack.rb +50 -0
- data/examples/v2/rum/CreateRUMApplication.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey.rb +5 -7
- data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey.rb +7 -1
- data/examples/v2/service-accounts/GetServiceAccountApplicationKey.rb +7 -1
- data/examples/v2/service-accounts/ListServiceAccountApplicationKeys.rb +4 -1
- data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey.rb +11 -9
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +23 -12
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2621709423.rb +53 -0
- data/lib/datadog_api_client/api_client.rb +19 -1
- data/lib/datadog_api_client/configuration.rb +1 -1
- data/lib/datadog_api_client/inflector.rb +80 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +1 -20
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -6
- data/lib/datadog_api_client/v1/api/webhooks_integration_api.rb +1 -1
- data/lib/datadog_api_client/v1/model_base.rb +1 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +6 -4
- data/lib/datadog_api_client/v1/models/ip_prefixes_global.rb +94 -0
- data/lib/datadog_api_client/v1/models/ip_ranges.rb +11 -1
- data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule.rb +82 -0
- data/lib/datadog_api_client/v1/models/monitor_options_custom_schedule_recurrence.rb +100 -0
- data/lib/datadog_api_client/v1/models/monitor_options_scheduling_options.rb +11 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +45 -5
- data/lib/datadog_api_client/v1/models/powerpack_template_variable_contents.rb +131 -0
- data/lib/datadog_api_client/v1/models/powerpack_template_variables.rb +94 -0
- data/lib/datadog_api_client/v1/models/powerpack_widget_definition.rb +169 -0
- data/lib/datadog_api_client/v1/models/powerpack_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/split_config.rb +181 -0
- data/lib/datadog_api_client/v1/models/split_config_sort_compute.rb +119 -0
- data/lib/datadog_api_client/v1/models/split_dimension.rb +98 -0
- data/lib/datadog_api_client/v1/models/split_graph_source_widget_definition.rb +70 -0
- data/lib/datadog_api_client/v1/models/split_graph_viz_size.rb +29 -0
- data/lib/datadog_api_client/v1/models/split_graph_widget_definition.rb +191 -0
- data/lib/datadog_api_client/v1/models/split_graph_widget_definition_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/split_sort.rb +108 -0
- data/lib/datadog_api_client/v1/models/split_vector_entry_item.rb +125 -0
- data/lib/datadog_api_client/v1/models/usage_attribution_values.rb +4 -4
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +8 -8
- data/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_response.rb +2 -2
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +148 -8
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +148 -8
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +148 -8
- data/lib/datadog_api_client/v1/models/widget_definition.rb +8 -6
- data/lib/datadog_api_client/v2/api/apm_retention_filters_api.rb +423 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +4 -10
- data/lib/datadog_api_client/v2/api/ci_visibility_tests_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/container_images_api.rb +129 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/powerpack_api.rb +383 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +2 -2
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/model_base.rb +1 -0
- data/lib/datadog_api_client/v2/models/apm_retention_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image.rb +100 -0
- data/lib/datadog_api_client/v2/models/container_image_attributes.rb +261 -0
- data/lib/datadog_api_client/v2/models/container_image_flavor.rb +120 -0
- data/lib/datadog_api_client/v2/models/container_image_group.rb +110 -0
- data/lib/datadog_api_client/v2/models/container_image_group_attributes.rb +100 -0
- data/lib/datadog_api_client/v2/models/container_image_group_images_relationships_link.rb +92 -0
- data/lib/datadog_api_client/v2/models/container_image_group_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_group_relationships_links.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_group_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_item.rb +63 -0
- data/lib/datadog_api_client/v2/models/container_image_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/container_image_meta_page.rb +160 -0
- data/lib/datadog_api_client/v2/models/container_image_meta_page_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/container_image_vulnerabilities.rb +140 -0
- data/lib/datadog_api_client/v2/models/container_images_response.rb +102 -0
- data/lib/datadog_api_client/v2/models/container_images_response_links.rb +130 -0
- data/lib/datadog_api_client/v2/models/data_scalar_column.rb +2 -2
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +13 -1
- data/lib/datadog_api_client/v2/models/group_scalar_column.rb +2 -2
- data/lib/datadog_api_client/v2/models/list_powerpacks_response.rb +114 -0
- data/lib/datadog_api_client/v2/models/powerpack.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpack_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/powerpack_data.rb +110 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget.rb +108 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget_definition.rb +162 -0
- data/lib/datadog_api_client/v2/models/powerpack_group_widget_layout.rb +177 -0
- data/lib/datadog_api_client/v2/models/powerpack_inner_widget_layout.rb +177 -0
- data/lib/datadog_api_client/v2/models/powerpack_inner_widgets.rb +108 -0
- data/lib/datadog_api_client/v2/models/powerpack_relationships.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpack_response.rb +92 -0
- data/lib/datadog_api_client/v2/models/powerpack_response_links.rb +129 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +110 -0
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta.rb +80 -0
- data/lib/datadog_api_client/v2/models/powerpacks_response_meta_pagination.rb +150 -0
- data/lib/datadog_api_client/v2/models/reorder_retention_filters_request.rb +100 -0
- data/lib/datadog_api_client/v2/models/restriction_policy_binding.rb +1 -1
- data/lib/datadog_api_client/v2/models/retention_filter.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/retention_filter_all_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/retention_filter_attributes.rb +181 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_attributes.rb +183 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_data.rb +119 -0
- data/lib/datadog_api_client/v2/models/retention_filter_create_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/retention_filter_response.rb +80 -0
- data/lib/datadog_api_client/v2/models/retention_filter_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_data.rb +140 -0
- data/lib/datadog_api_client/v2/models/retention_filter_update_request.rb +98 -0
- data/lib/datadog_api_client/v2/models/retention_filter_without_attributes.rb +119 -0
- data/lib/datadog_api_client/v2/models/retention_filters_response.rb +100 -0
- data/lib/datadog_api_client/v2/models/scalar_column_type_group.rb +26 -0
- data/lib/datadog_api_client/v2/models/scalar_column_type_number.rb +26 -0
- data/lib/datadog_api_client/v2/models/scalar_meta.rb +8 -0
- data/lib/datadog_api_client/v2/models/service_definition_schema.rb +2 -1
- data/lib/datadog_api_client/v2/models/service_definition_schema_versions.rb +1 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb +247 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_contact.rb +129 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_integrations.rb +90 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_link.rb +150 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie.rb +108 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_opsgenie_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_pagerduty.rb +80 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb +32 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot2_version.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +1 -0
- data/lib/datadog_api_client/v2/models/spans_filter.rb +80 -0
- data/lib/datadog_api_client/v2/models/spans_filter_create.rb +98 -0
- data/lib/datadog_api_client/version.rb +1 -1
- data/run-tests.sh +6 -5
- metadata +102 -9
- data/examples/v1/usage-metering/GetUsageCIApp_1064440884.rb +0 -8
- data/examples/v1/usage-metering/GetUsageCWS_736958514.rb +0 -8
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +0 -17
- data/examples/v2/service-accounts/DeleteServiceAccountApplicationKey_992091161.rb +0 -11
- data/examples/v2/service-accounts/GetServiceAccountApplicationKey_819075131.rb +0 -11
- data/examples/v2/service-accounts/ListServiceAccountApplicationKeys_1268914341.rb +0 -8
- data/examples/v2/service-accounts/UpdateServiceAccountApplicationKey_768415790.rb +0 -22
@@ -0,0 +1,102 @@
|
|
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
|
+
# List of Container Images.
|
21
|
+
class ContainerImagesResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Array of Container Image objects.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# Pagination links.
|
28
|
+
attr_accessor :links
|
29
|
+
|
30
|
+
# Response metadata object.
|
31
|
+
attr_accessor :meta
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
# @!visibility private
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'data' => :'data',
|
38
|
+
:'links' => :'links',
|
39
|
+
:'meta' => :'meta'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'data' => :'Array<ContainerImageItem>',
|
48
|
+
:'links' => :'ContainerImagesResponseLinks',
|
49
|
+
:'meta' => :'ContainerImageMeta'
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
55
|
+
# @!visibility private
|
56
|
+
def initialize(attributes = {})
|
57
|
+
if (!attributes.is_a?(Hash))
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImagesResponse` initialize method"
|
59
|
+
end
|
60
|
+
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImagesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
|
+
end
|
66
|
+
h[k.to_sym] = v
|
67
|
+
}
|
68
|
+
|
69
|
+
if attributes.key?(:'data')
|
70
|
+
if (value = attributes[:'data']).is_a?(Array)
|
71
|
+
self.data = value
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'links')
|
76
|
+
self.links = attributes[:'links']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'meta')
|
80
|
+
self.meta = attributes[:'meta']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Checks equality by comparing each attribute.
|
85
|
+
# @param o [Object] Object to be compared
|
86
|
+
# @!visibility private
|
87
|
+
def ==(o)
|
88
|
+
return true if self.equal?(o)
|
89
|
+
self.class == o.class &&
|
90
|
+
data == o.data &&
|
91
|
+
links == o.links &&
|
92
|
+
meta == o.meta
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
# @!visibility private
|
98
|
+
def hash
|
99
|
+
[data, links, meta].hash
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,130 @@
|
|
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
|
+
# Pagination links.
|
21
|
+
class ContainerImagesResponseLinks
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Link to the first page.
|
25
|
+
attr_accessor :first
|
26
|
+
|
27
|
+
# Link to the last page.
|
28
|
+
attr_accessor :last
|
29
|
+
|
30
|
+
# Link to the next page.
|
31
|
+
attr_accessor :_next
|
32
|
+
|
33
|
+
# Link to previous page.
|
34
|
+
attr_accessor :prev
|
35
|
+
|
36
|
+
# Link to current page.
|
37
|
+
attr_accessor :_self
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
# @!visibility private
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'first' => :'first',
|
44
|
+
:'last' => :'last',
|
45
|
+
:'_next' => :'next',
|
46
|
+
:'prev' => :'prev',
|
47
|
+
:'_self' => :'self'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute type mapping.
|
52
|
+
# @!visibility private
|
53
|
+
def self.openapi_types
|
54
|
+
{
|
55
|
+
:'first' => :'String',
|
56
|
+
:'last' => :'String',
|
57
|
+
:'_next' => :'String',
|
58
|
+
:'prev' => :'String',
|
59
|
+
:'_self' => :'String'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
# @!visibility private
|
65
|
+
def self.openapi_nullable
|
66
|
+
Set.new([
|
67
|
+
:'last',
|
68
|
+
:'_next',
|
69
|
+
:'prev',
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
75
|
+
# @!visibility private
|
76
|
+
def initialize(attributes = {})
|
77
|
+
if (!attributes.is_a?(Hash))
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ContainerImagesResponseLinks` initialize method"
|
79
|
+
end
|
80
|
+
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ContainerImagesResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
|
+
end
|
86
|
+
h[k.to_sym] = v
|
87
|
+
}
|
88
|
+
|
89
|
+
if attributes.key?(:'first')
|
90
|
+
self.first = attributes[:'first']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'last')
|
94
|
+
self.last = attributes[:'last']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'_next')
|
98
|
+
self._next = attributes[:'_next']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'prev')
|
102
|
+
self.prev = attributes[:'prev']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'_self')
|
106
|
+
self._self = attributes[:'_self']
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Checks equality by comparing each attribute.
|
111
|
+
# @param o [Object] Object to be compared
|
112
|
+
# @!visibility private
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
first == o.first &&
|
117
|
+
last == o.last &&
|
118
|
+
_next == o._next &&
|
119
|
+
prev == o.prev &&
|
120
|
+
_self == o._self
|
121
|
+
end
|
122
|
+
|
123
|
+
# Calculates hash code according to all attributes.
|
124
|
+
# @return [Integer] Hash code
|
125
|
+
# @!visibility private
|
126
|
+
def hash
|
127
|
+
[first, last, _next, prev, _self].hash
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
@@ -27,7 +27,7 @@ module DatadogAPIClient::V2
|
|
27
27
|
# The name referencing the formula or query for this column.
|
28
28
|
attr_accessor :name
|
29
29
|
|
30
|
-
# The type of column present.
|
30
|
+
# The type of column present for numbers.
|
31
31
|
attr_accessor :type
|
32
32
|
|
33
33
|
# The array of numerical values for one formula or query.
|
@@ -50,7 +50,7 @@ module DatadogAPIClient::V2
|
|
50
50
|
{
|
51
51
|
:'meta' => :'ScalarMeta',
|
52
52
|
:'name' => :'String',
|
53
|
-
:'type' => :'
|
53
|
+
:'type' => :'ScalarColumnTypeNumber',
|
54
54
|
:'values' => :'Array<Float>'
|
55
55
|
}
|
56
56
|
end
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
21
21
|
class GCPSTSServiceAccountAttributes
|
22
22
|
include BaseGenericModel
|
23
23
|
|
24
|
+
# Tags to be associated with GCP metrics and service checks from your account.
|
25
|
+
attr_accessor :account_tags
|
26
|
+
|
24
27
|
# Silence monitors for expected GCE instance shutdowns.
|
25
28
|
attr_accessor :automute
|
26
29
|
|
@@ -37,6 +40,7 @@ module DatadogAPIClient::V2
|
|
37
40
|
# @!visibility private
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
43
|
+
:'account_tags' => :'account_tags',
|
40
44
|
:'automute' => :'automute',
|
41
45
|
:'client_email' => :'client_email',
|
42
46
|
:'host_filters' => :'host_filters',
|
@@ -48,6 +52,7 @@ module DatadogAPIClient::V2
|
|
48
52
|
# @!visibility private
|
49
53
|
def self.openapi_types
|
50
54
|
{
|
55
|
+
:'account_tags' => :'Array<String>',
|
51
56
|
:'automute' => :'Boolean',
|
52
57
|
:'client_email' => :'String',
|
53
58
|
:'host_filters' => :'Array<String>',
|
@@ -71,6 +76,12 @@ module DatadogAPIClient::V2
|
|
71
76
|
h[k.to_sym] = v
|
72
77
|
}
|
73
78
|
|
79
|
+
if attributes.key?(:'account_tags')
|
80
|
+
if (value = attributes[:'account_tags']).is_a?(Array)
|
81
|
+
self.account_tags = value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
74
85
|
if attributes.key?(:'automute')
|
75
86
|
self.automute = attributes[:'automute']
|
76
87
|
end
|
@@ -96,6 +107,7 @@ module DatadogAPIClient::V2
|
|
96
107
|
def ==(o)
|
97
108
|
return true if self.equal?(o)
|
98
109
|
self.class == o.class &&
|
110
|
+
account_tags == o.account_tags &&
|
99
111
|
automute == o.automute &&
|
100
112
|
client_email == o.client_email &&
|
101
113
|
host_filters == o.host_filters &&
|
@@ -106,7 +118,7 @@ module DatadogAPIClient::V2
|
|
106
118
|
# @return [Integer] Hash code
|
107
119
|
# @!visibility private
|
108
120
|
def hash
|
109
|
-
[automute, client_email, host_filters, is_cspm_enabled].hash
|
121
|
+
[account_tags, automute, client_email, host_filters, is_cspm_enabled].hash
|
110
122
|
end
|
111
123
|
end
|
112
124
|
end
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
24
24
|
# The name of the tag key or group.
|
25
25
|
attr_accessor :name
|
26
26
|
|
27
|
-
# The type of column present.
|
27
|
+
# The type of column present for groups.
|
28
28
|
attr_accessor :type
|
29
29
|
|
30
30
|
# The array of tag values for each group found for the results of the formulas or queries.
|
@@ -45,7 +45,7 @@ module DatadogAPIClient::V2
|
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
47
|
:'name' => :'String',
|
48
|
-
:'type' => :'
|
48
|
+
:'type' => :'ScalarColumnTypeGroup',
|
49
49
|
:'values' => :'Array<Array<String>>'
|
50
50
|
}
|
51
51
|
end
|
@@ -0,0 +1,114 @@
|
|
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
|
+
# Response object which includes all powerpack configurations.
|
21
|
+
class ListPowerpacksResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# List of powerpack definitions.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# Array of objects related to the users.
|
28
|
+
attr_accessor :included
|
29
|
+
|
30
|
+
# Links attributes.
|
31
|
+
attr_accessor :links
|
32
|
+
|
33
|
+
# Powerpack response metadata.
|
34
|
+
attr_accessor :meta
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
# @!visibility private
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'data' => :'data',
|
41
|
+
:'included' => :'included',
|
42
|
+
:'links' => :'links',
|
43
|
+
:'meta' => :'meta'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
# @!visibility private
|
49
|
+
def self.openapi_types
|
50
|
+
{
|
51
|
+
:'data' => :'Array<PowerpackData>',
|
52
|
+
:'included' => :'Array<User>',
|
53
|
+
:'links' => :'PowerpackResponseLinks',
|
54
|
+
:'meta' => :'PowerpacksResponseMeta'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
60
|
+
# @!visibility private
|
61
|
+
def initialize(attributes = {})
|
62
|
+
if (!attributes.is_a?(Hash))
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListPowerpacksResponse` initialize method"
|
64
|
+
end
|
65
|
+
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::ListPowerpacksResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
70
|
+
end
|
71
|
+
h[k.to_sym] = v
|
72
|
+
}
|
73
|
+
|
74
|
+
if attributes.key?(:'data')
|
75
|
+
if (value = attributes[:'data']).is_a?(Array)
|
76
|
+
self.data = value
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'included')
|
81
|
+
if (value = attributes[:'included']).is_a?(Array)
|
82
|
+
self.included = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'links')
|
87
|
+
self.links = attributes[:'links']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'meta')
|
91
|
+
self.meta = attributes[:'meta']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param o [Object] Object to be compared
|
97
|
+
# @!visibility private
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
data == o.data &&
|
102
|
+
included == o.included &&
|
103
|
+
links == o.links &&
|
104
|
+
meta == o.meta
|
105
|
+
end
|
106
|
+
|
107
|
+
# Calculates hash code according to all attributes.
|
108
|
+
# @return [Integer] Hash code
|
109
|
+
# @!visibility private
|
110
|
+
def hash
|
111
|
+
[data, included, links, meta].hash
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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
|
+
# Powerpacks are templated groups of dashboard widgets you can save from an existing dashboard and turn into reusable packs in the widget tray.
|
21
|
+
class Powerpack
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Powerpack data object.
|
25
|
+
attr_accessor :data
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
# @!visibility private
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'data' => :'data'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
# @!visibility private
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'data' => :'PowerpackData'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
45
|
+
# @!visibility private
|
46
|
+
def initialize(attributes = {})
|
47
|
+
if (!attributes.is_a?(Hash))
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Powerpack` initialize method"
|
49
|
+
end
|
50
|
+
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Powerpack`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
end
|
56
|
+
h[k.to_sym] = v
|
57
|
+
}
|
58
|
+
|
59
|
+
if attributes.key?(:'data')
|
60
|
+
self.data = attributes[:'data']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Checks equality by comparing each attribute.
|
65
|
+
# @param o [Object] Object to be compared
|
66
|
+
# @!visibility private
|
67
|
+
def ==(o)
|
68
|
+
return true if self.equal?(o)
|
69
|
+
self.class == o.class &&
|
70
|
+
data == o.data
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Integer] Hash code
|
75
|
+
# @!visibility private
|
76
|
+
def hash
|
77
|
+
[data].hash
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,164 @@
|
|
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
|
+
# Powerpack attribute object.
|
21
|
+
class PowerpackAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Description of this powerpack.
|
25
|
+
attr_accessor :description
|
26
|
+
|
27
|
+
# Powerpack group widget definition object.
|
28
|
+
attr_reader :group_widget
|
29
|
+
|
30
|
+
# Name of the powerpack.
|
31
|
+
attr_reader :name
|
32
|
+
|
33
|
+
# List of tags to identify this powerpack.
|
34
|
+
attr_reader :tags
|
35
|
+
|
36
|
+
# List of template variables for this powerpack.
|
37
|
+
attr_accessor :template_variables
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
# @!visibility private
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'description' => :'description',
|
44
|
+
:'group_widget' => :'group_widget',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'tags' => :'tags',
|
47
|
+
:'template_variables' => :'template_variables'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute type mapping.
|
52
|
+
# @!visibility private
|
53
|
+
def self.openapi_types
|
54
|
+
{
|
55
|
+
:'description' => :'String',
|
56
|
+
:'group_widget' => :'PowerpackGroupWidget',
|
57
|
+
:'name' => :'String',
|
58
|
+
:'tags' => :'Array<String>',
|
59
|
+
:'template_variables' => :'Array<PowerpackTemplateVariable>'
|
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::PowerpackAttributes` initialize method"
|
69
|
+
end
|
70
|
+
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::PowerpackAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
|
+
end
|
76
|
+
h[k.to_sym] = v
|
77
|
+
}
|
78
|
+
|
79
|
+
if attributes.key?(:'description')
|
80
|
+
self.description = attributes[:'description']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'group_widget')
|
84
|
+
self.group_widget = attributes[:'group_widget']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'name')
|
88
|
+
self.name = attributes[:'name']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'tags')
|
92
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
93
|
+
self.tags = value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'template_variables')
|
98
|
+
if (value = attributes[:'template_variables']).is_a?(Array)
|
99
|
+
self.template_variables = value
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
# @!visibility private
|
107
|
+
def valid?
|
108
|
+
return false if @group_widget.nil?
|
109
|
+
return false if @name.nil?
|
110
|
+
return false if !@tags.nil? && @tags.length > 8
|
111
|
+
true
|
112
|
+
end
|
113
|
+
|
114
|
+
# Custom attribute writer method with validation
|
115
|
+
# @param group_widget [Object] Object to be assigned
|
116
|
+
# @!visibility private
|
117
|
+
def group_widget=(group_widget)
|
118
|
+
if group_widget.nil?
|
119
|
+
fail ArgumentError, 'invalid value for "group_widget", group_widget cannot be nil.'
|
120
|
+
end
|
121
|
+
@group_widget = group_widget
|
122
|
+
end
|
123
|
+
|
124
|
+
# Custom attribute writer method with validation
|
125
|
+
# @param name [Object] Object to be assigned
|
126
|
+
# @!visibility private
|
127
|
+
def name=(name)
|
128
|
+
if name.nil?
|
129
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
130
|
+
end
|
131
|
+
@name = name
|
132
|
+
end
|
133
|
+
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param tags [Object] Object to be assigned
|
136
|
+
# @!visibility private
|
137
|
+
def tags=(tags)
|
138
|
+
if !tags.nil? && tags.length > 8
|
139
|
+
fail ArgumentError, 'invalid value for "tags", number of items must be less than or equal to 8.'
|
140
|
+
end
|
141
|
+
@tags = tags
|
142
|
+
end
|
143
|
+
|
144
|
+
# Checks equality by comparing each attribute.
|
145
|
+
# @param o [Object] Object to be compared
|
146
|
+
# @!visibility private
|
147
|
+
def ==(o)
|
148
|
+
return true if self.equal?(o)
|
149
|
+
self.class == o.class &&
|
150
|
+
description == o.description &&
|
151
|
+
group_widget == o.group_widget &&
|
152
|
+
name == o.name &&
|
153
|
+
tags == o.tags &&
|
154
|
+
template_variables == o.template_variables
|
155
|
+
end
|
156
|
+
|
157
|
+
# Calculates hash code according to all attributes.
|
158
|
+
# @return [Integer] Hash code
|
159
|
+
# @!visibility private
|
160
|
+
def hash
|
161
|
+
[description, group_widget, name, tags, template_variables].hash
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|