datadog_api_client 2.47.0 → 2.48.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 +96 -5
- data/.generator/schemas/v2/openapi.yaml +2453 -707
- data/CHANGELOG.md +20 -0
- data/examples/v2/incidents/CreateIncidentAttachment.rb +22 -0
- data/examples/v2/incidents/DeleteIncidentAttachment.rb +8 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachment.rb +20 -0
- data/examples/v2/on-call/CreateUserNotificationRule.rb +29 -0
- data/examples/v2/on-call/DeleteUserNotificationRule.rb +11 -0
- data/examples/v2/on-call/GetUserNotificationRule.rb +14 -0
- data/examples/v2/on-call/ListUserNotificationRules.rb +11 -0
- data/examples/v2/on-call/UpdateUserNotificationRule.rb +36 -0
- data/examples/v2/product-analytics/SubmitProductAnalyticsEvent.rb +24 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_2323193894.rb +48 -0
- data/examples/v2/synthetics/PatchGlobalVariable.rb +19 -0
- data/examples/v2/teams/CreateTeamNotificationRule.rb +23 -0
- data/examples/v2/teams/DeleteTeamConnections.rb +0 -3
- data/examples/v2/teams/DeleteTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRule.rb +11 -0
- data/examples/v2/teams/GetTeamNotificationRules.rb +8 -0
- data/examples/v2/teams/GetTeamSync.rb +0 -3
- data/examples/v2/teams/ListTeamConnections.rb +0 -3
- data/examples/v2/teams/ListTeamConnections_2418873869.rb +0 -3
- data/examples/v2/teams/SyncTeams.rb +0 -3
- data/examples/v2/teams/SyncTeams_3215592344.rb +0 -3
- data/examples/v2/teams/UpdateTeamNotificationRule.rb +27 -0
- data/lib/datadog_api_client/configuration.rb +55 -6
- data/lib/datadog_api_client/inflector.rb +92 -20
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +6 -4
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +3 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +6 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +61 -1
- data/lib/datadog_api_client/v1/models/synthetics_list_tests_response.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_details_without_steps.rb +221 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +8 -8
- data/lib/datadog_api_client/v2/api/incidents_api.rb +188 -36
- data/lib/datadog_api_client/v2/api/on_call_api.rb +360 -0
- data/lib/datadog_api_client/v2/api/product_analytics_api.rb +121 -0
- data/lib/datadog_api_client/v2/api/software_catalog_api.rb +4 -0
- data/lib/datadog_api_client/v2/api/synthetics_api.rb +79 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +339 -30
- data/lib/datadog_api_client/v2/models/attachment.rb +117 -0
- data/lib/datadog_api_client/v2/models/{incident_attachments_response.rb → attachment_array.rb} +7 -7
- data/lib/datadog_api_client/v2/models/{incident_attachment_data.rb → attachment_data.rb} +8 -8
- data/lib/datadog_api_client/v2/models/attachment_data_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/attachment_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attachment_type.rb → attachment_data_attributes_attachment_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/{incident_attachment_relationships.rb → attachment_data_relationships.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_request.rb → attachment_data_relationships_last_modified_by_user.rb} +6 -11
- data/lib/datadog_api_client/v2/models/attachment_data_relationships_last_modified_by_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{incident_attachments_response_included_item.rb → attachment_included.rb} +3 -3
- data/lib/datadog_api_client/v2/models/case_create_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/{dora_fetch_response.rb → create_attachment_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_data.rb → create_attachment_request_data.rb} +6 -6
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/create_on_call_notification_rule_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/custom_attribute_type.rb +1 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object.rb +125 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployments_list_response.rb +107 -0
- data/lib/datadog_api_client/v2/models/dora_failure_fetch_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/{dora_list_response.rb → dora_failures_list_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{dora_event.rb → dora_incident_object.rb} +8 -8
- data/lib/datadog_api_client/v2/models/dora_incident_object_attributes.rb +225 -0
- data/lib/datadog_api_client/v2/models/global_variable_data.rb +125 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_request_data_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/global_variable_json_patch_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/global_variable_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attachment_type.rb → global_variable_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/{incident_attachments_postmortem_attributes_attachment_object.rb → json_patch_operation.rb} +40 -30
- data/lib/datadog_api_client/v2/models/json_patch_operation_op.rb +31 -0
- data/lib/datadog_api_client/v2/models/list_on_call_notification_rules_response.rb +119 -0
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_env_vars_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_add_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_config_processor_group.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_custom_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_datadog_tags_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_dedupe_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_enrichment_table_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_filter_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_generate_metrics_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_ocsf_mapper_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_grok_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_parse_json_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_quota_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_reduce_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_remove_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_rename_fields_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sample_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_sensitive_data_scanner_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/observability_pipeline_throttle_processor.rb +11 -1
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_response.rb → on_call_notification_rule.rb} +8 -11
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship.rb +123 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_channel_relationship_data.rb +115 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_update_attributes.rb → on_call_notification_rule_channel_settings.rb} +3 -4
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_relationships.rb +105 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/on_call_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_attributes.rb → on_call_notification_rules_included.rb} +3 -4
- data/lib/datadog_api_client/v2/models/on_call_phone_notification_rule_method.rb +27 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes_attachment_object.rb → on_call_phone_notification_rule_settings.rb} +30 -30
- data/lib/datadog_api_client/v2/models/patch_attachment_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/patch_attachment_request_data_attributes_attachment.rb +115 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_error.rb +125 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_errors.rb +107 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item.rb +195 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_account.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_application.rb +124 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_event.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_session.rb +123 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/product_analytics_server_side_event_item_usr.rb +123 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options.rb +155 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_bucket_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_detection_tolerance.rb +31 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_anomaly_detection_options_learning_duration.rb +32 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/synthetics_global_variable.rb +248 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_attributes.rb +107 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_options.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attributes.rb → synthetics_global_variable_parse_test_options.rb} +44 -35
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parse_test_options_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_parser_type.rb +29 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_link_attributes.rb → synthetics_global_variable_totp_parameters.rb} +38 -40
- data/lib/datadog_api_client/v2/models/synthetics_global_variable_value.rb +126 -0
- data/lib/datadog_api_client/v2/models/synthetics_variable_parser.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes.rb +135 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_email.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_ms_teams.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_pagerduty.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_attributes_slack.rb +115 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_notification_rule_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_postmortem_attachment_type.rb → team_notification_rule_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/team_notification_rules_response.rb +117 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/team_notification_rules_response_meta_page.rb +184 -0
- data/lib/datadog_api_client/v2/models/threat_hunting_job_options.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_attributes.rb +125 -0
- data/lib/datadog_api_client/v2/models/update_on_call_notification_rule_request_data.rb +153 -0
- data/lib/datadog_api_client/v2/models/user140420082644000.rb +143 -0
- data/lib/datadog_api_client/v2/models/{incident_attachment_related_object.rb → user_type.rb} +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +109 -24
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +0 -11
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +0 -38
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +0 -26
|
@@ -0,0 +1,248 @@
|
|
|
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
|
+
# Synthetic global variable.
|
|
21
|
+
class SyntheticsGlobalVariable
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Attributes of the global variable.
|
|
25
|
+
attr_accessor :attributes
|
|
26
|
+
|
|
27
|
+
# Description of the global variable.
|
|
28
|
+
attr_reader :description
|
|
29
|
+
|
|
30
|
+
# Unique identifier of the global variable.
|
|
31
|
+
attr_accessor :id
|
|
32
|
+
|
|
33
|
+
# Determines if the global variable is a FIDO variable.
|
|
34
|
+
attr_accessor :is_fido
|
|
35
|
+
|
|
36
|
+
# Determines if the global variable is a TOTP/MFA variable.
|
|
37
|
+
attr_accessor :is_totp
|
|
38
|
+
|
|
39
|
+
# Name of the global variable. Unique across Synthetic global variables.
|
|
40
|
+
attr_reader :name
|
|
41
|
+
|
|
42
|
+
# Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`.
|
|
43
|
+
attr_accessor :parse_test_options
|
|
44
|
+
|
|
45
|
+
# A Synthetic test ID to use as a test to generate the variable value.
|
|
46
|
+
attr_accessor :parse_test_public_id
|
|
47
|
+
|
|
48
|
+
# Tags of the global variable.
|
|
49
|
+
attr_reader :tags
|
|
50
|
+
|
|
51
|
+
# Value of the global variable.
|
|
52
|
+
attr_reader :value
|
|
53
|
+
|
|
54
|
+
attr_accessor :additional_properties
|
|
55
|
+
|
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
|
+
# @!visibility private
|
|
58
|
+
def self.attribute_map
|
|
59
|
+
{
|
|
60
|
+
:'attributes' => :'attributes',
|
|
61
|
+
:'description' => :'description',
|
|
62
|
+
:'id' => :'id',
|
|
63
|
+
:'is_fido' => :'is_fido',
|
|
64
|
+
:'is_totp' => :'is_totp',
|
|
65
|
+
:'name' => :'name',
|
|
66
|
+
:'parse_test_options' => :'parse_test_options',
|
|
67
|
+
:'parse_test_public_id' => :'parse_test_public_id',
|
|
68
|
+
:'tags' => :'tags',
|
|
69
|
+
:'value' => :'value'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Attribute type mapping.
|
|
74
|
+
# @!visibility private
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'attributes' => :'SyntheticsGlobalVariableAttributes',
|
|
78
|
+
:'description' => :'String',
|
|
79
|
+
:'id' => :'String',
|
|
80
|
+
:'is_fido' => :'Boolean',
|
|
81
|
+
:'is_totp' => :'Boolean',
|
|
82
|
+
:'name' => :'String',
|
|
83
|
+
:'parse_test_options' => :'SyntheticsGlobalVariableParseTestOptions',
|
|
84
|
+
:'parse_test_public_id' => :'String',
|
|
85
|
+
:'tags' => :'Array<String>',
|
|
86
|
+
:'value' => :'SyntheticsGlobalVariableValue'
|
|
87
|
+
}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def initialize(attributes = {})
|
|
94
|
+
if (!attributes.is_a?(Hash))
|
|
95
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsGlobalVariable` initialize method"
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
self.additional_properties = {}
|
|
99
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
100
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
101
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
102
|
+
self.additional_properties[k.to_sym] = v
|
|
103
|
+
else
|
|
104
|
+
h[k.to_sym] = v
|
|
105
|
+
end
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'attributes')
|
|
109
|
+
self.attributes = attributes[:'attributes']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'description')
|
|
113
|
+
self.description = attributes[:'description']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'id')
|
|
117
|
+
self.id = attributes[:'id']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'is_fido')
|
|
121
|
+
self.is_fido = attributes[:'is_fido']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'is_totp')
|
|
125
|
+
self.is_totp = attributes[:'is_totp']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'name')
|
|
129
|
+
self.name = attributes[:'name']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'parse_test_options')
|
|
133
|
+
self.parse_test_options = attributes[:'parse_test_options']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'parse_test_public_id')
|
|
137
|
+
self.parse_test_public_id = attributes[:'parse_test_public_id']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'tags')
|
|
141
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
142
|
+
self.tags = value
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'value')
|
|
147
|
+
self.value = attributes[:'value']
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Check to see if the all the properties in the model are valid
|
|
152
|
+
# @return true if the model is valid
|
|
153
|
+
# @!visibility private
|
|
154
|
+
def valid?
|
|
155
|
+
return false if @description.nil?
|
|
156
|
+
return false if @name.nil?
|
|
157
|
+
return false if @tags.nil?
|
|
158
|
+
return false if @value.nil?
|
|
159
|
+
true
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Custom attribute writer method with validation
|
|
163
|
+
# @param description [Object] Object to be assigned
|
|
164
|
+
# @!visibility private
|
|
165
|
+
def description=(description)
|
|
166
|
+
if description.nil?
|
|
167
|
+
fail ArgumentError, 'invalid value for "description", description cannot be nil.'
|
|
168
|
+
end
|
|
169
|
+
@description = description
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Custom attribute writer method with validation
|
|
173
|
+
# @param name [Object] Object to be assigned
|
|
174
|
+
# @!visibility private
|
|
175
|
+
def name=(name)
|
|
176
|
+
if name.nil?
|
|
177
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
178
|
+
end
|
|
179
|
+
@name = name
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Custom attribute writer method with validation
|
|
183
|
+
# @param tags [Object] Object to be assigned
|
|
184
|
+
# @!visibility private
|
|
185
|
+
def tags=(tags)
|
|
186
|
+
if tags.nil?
|
|
187
|
+
fail ArgumentError, 'invalid value for "tags", tags cannot be nil.'
|
|
188
|
+
end
|
|
189
|
+
@tags = tags
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Custom attribute writer method with validation
|
|
193
|
+
# @param value [Object] Object to be assigned
|
|
194
|
+
# @!visibility private
|
|
195
|
+
def value=(value)
|
|
196
|
+
if value.nil?
|
|
197
|
+
fail ArgumentError, 'invalid value for "value", value cannot be nil.'
|
|
198
|
+
end
|
|
199
|
+
@value = value
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
# @!visibility private
|
|
205
|
+
def to_hash
|
|
206
|
+
hash = {}
|
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
208
|
+
value = self.send(attr)
|
|
209
|
+
if value.nil?
|
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
self.additional_properties.each_pair do |attr, value|
|
|
217
|
+
hash[attr] = value
|
|
218
|
+
end
|
|
219
|
+
hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Checks equality by comparing each attribute.
|
|
223
|
+
# @param o [Object] Object to be compared
|
|
224
|
+
# @!visibility private
|
|
225
|
+
def ==(o)
|
|
226
|
+
return true if self.equal?(o)
|
|
227
|
+
self.class == o.class &&
|
|
228
|
+
attributes == o.attributes &&
|
|
229
|
+
description == o.description &&
|
|
230
|
+
id == o.id &&
|
|
231
|
+
is_fido == o.is_fido &&
|
|
232
|
+
is_totp == o.is_totp &&
|
|
233
|
+
name == o.name &&
|
|
234
|
+
parse_test_options == o.parse_test_options &&
|
|
235
|
+
parse_test_public_id == o.parse_test_public_id &&
|
|
236
|
+
tags == o.tags &&
|
|
237
|
+
value == o.value &&
|
|
238
|
+
additional_properties == o.additional_properties
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Calculates hash code according to all attributes.
|
|
242
|
+
# @return [Integer] Hash code
|
|
243
|
+
# @!visibility private
|
|
244
|
+
def hash
|
|
245
|
+
[attributes, description, id, is_fido, is_totp, name, parse_test_options, parse_test_public_id, tags, value, additional_properties].hash
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
# Attributes of the global variable.
|
|
21
|
+
class SyntheticsGlobalVariableAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A list of role identifiers that can be pulled from the Roles API, for restricting read and write access.
|
|
25
|
+
attr_accessor :restricted_roles
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'restricted_roles' => :'restricted_roles'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'restricted_roles' => :'Array<String>'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsGlobalVariableAttributes` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'restricted_roles')
|
|
64
|
+
if (value = attributes[:'restricted_roles']).is_a?(Array)
|
|
65
|
+
self.restricted_roles = value
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
71
|
+
# @return [Hash] Returns the object in the form of hash
|
|
72
|
+
# @!visibility private
|
|
73
|
+
def to_hash
|
|
74
|
+
hash = {}
|
|
75
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
76
|
+
value = self.send(attr)
|
|
77
|
+
if value.nil?
|
|
78
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
79
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
hash[param] = _to_hash(value)
|
|
83
|
+
end
|
|
84
|
+
self.additional_properties.each_pair do |attr, value|
|
|
85
|
+
hash[attr] = value
|
|
86
|
+
end
|
|
87
|
+
hash
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param o [Object] Object to be compared
|
|
92
|
+
# @!visibility private
|
|
93
|
+
def ==(o)
|
|
94
|
+
return true if self.equal?(o)
|
|
95
|
+
self.class == o.class &&
|
|
96
|
+
restricted_roles == o.restricted_roles &&
|
|
97
|
+
additional_properties == o.additional_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
# @!visibility private
|
|
103
|
+
def hash
|
|
104
|
+
[restricted_roles, additional_properties].hash
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# Options for the Global Variable for MFA.
|
|
21
|
+
class SyntheticsGlobalVariableOptions
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Parameters for the TOTP/MFA variable
|
|
25
|
+
attr_accessor :totp_parameters
|
|
26
|
+
|
|
27
|
+
attr_accessor :additional_properties
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
# @!visibility private
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'totp_parameters' => :'totp_parameters'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'totp_parameters' => :'SyntheticsGlobalVariableTOTPParameters'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
47
|
+
# @!visibility private
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsGlobalVariableOptions` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
self.additional_properties = {}
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
self.additional_properties[k.to_sym] = v
|
|
58
|
+
else
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
end
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'totp_parameters')
|
|
64
|
+
self.totp_parameters = attributes[:'totp_parameters']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
69
|
+
# @return [Hash] Returns the object in the form of hash
|
|
70
|
+
# @!visibility private
|
|
71
|
+
def to_hash
|
|
72
|
+
hash = {}
|
|
73
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
74
|
+
value = self.send(attr)
|
|
75
|
+
if value.nil?
|
|
76
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
77
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
hash[param] = _to_hash(value)
|
|
81
|
+
end
|
|
82
|
+
self.additional_properties.each_pair do |attr, value|
|
|
83
|
+
hash[attr] = value
|
|
84
|
+
end
|
|
85
|
+
hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param o [Object] Object to be compared
|
|
90
|
+
# @!visibility private
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
totp_parameters == o.totp_parameters &&
|
|
95
|
+
additional_properties == o.additional_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Calculates hash code according to all attributes.
|
|
99
|
+
# @return [Integer] Hash code
|
|
100
|
+
# @!visibility private
|
|
101
|
+
def hash
|
|
102
|
+
[totp_parameters, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -17,15 +17,21 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# Parser options to use for retrieving a Synthetic global variable from a Synthetic test. Used in conjunction with `parse_test_public_id`.
|
|
21
|
+
class SyntheticsGlobalVariableParseTestOptions
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
|
|
24
|
+
# When type is `http_header`, name of the header to use to extract the value.
|
|
25
|
+
attr_accessor :field
|
|
26
26
|
|
|
27
|
-
#
|
|
28
|
-
|
|
27
|
+
# When type is `local_variable`, name of the local variable to use to extract the value.
|
|
28
|
+
attr_accessor :local_variable_name
|
|
29
|
+
|
|
30
|
+
# Details of the parser to use for the global variable.
|
|
31
|
+
attr_accessor :parser
|
|
32
|
+
|
|
33
|
+
# Type of value to extract from a test for a Synthetic global variable.
|
|
34
|
+
attr_reader :type
|
|
29
35
|
|
|
30
36
|
attr_accessor :additional_properties
|
|
31
37
|
|
|
@@ -33,8 +39,10 @@ module DatadogAPIClient::V2
|
|
|
33
39
|
# @!visibility private
|
|
34
40
|
def self.attribute_map
|
|
35
41
|
{
|
|
36
|
-
:'
|
|
37
|
-
:'
|
|
42
|
+
:'field' => :'field',
|
|
43
|
+
:'local_variable_name' => :'localVariableName',
|
|
44
|
+
:'parser' => :'parser',
|
|
45
|
+
:'type' => :'type'
|
|
38
46
|
}
|
|
39
47
|
end
|
|
40
48
|
|
|
@@ -42,8 +50,10 @@ module DatadogAPIClient::V2
|
|
|
42
50
|
# @!visibility private
|
|
43
51
|
def self.openapi_types
|
|
44
52
|
{
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
53
|
+
:'field' => :'String',
|
|
54
|
+
:'local_variable_name' => :'String',
|
|
55
|
+
:'parser' => :'SyntheticsVariableParser',
|
|
56
|
+
:'type' => :'SyntheticsGlobalVariableParseTestOptionsType'
|
|
47
57
|
}
|
|
48
58
|
end
|
|
49
59
|
|
|
@@ -52,7 +62,7 @@ module DatadogAPIClient::V2
|
|
|
52
62
|
# @!visibility private
|
|
53
63
|
def initialize(attributes = {})
|
|
54
64
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SyntheticsGlobalVariableParseTestOptions` initialize method"
|
|
56
66
|
end
|
|
57
67
|
|
|
58
68
|
self.additional_properties = {}
|
|
@@ -65,12 +75,20 @@ module DatadogAPIClient::V2
|
|
|
65
75
|
end
|
|
66
76
|
}
|
|
67
77
|
|
|
68
|
-
if attributes.key?(:'
|
|
69
|
-
self.
|
|
78
|
+
if attributes.key?(:'field')
|
|
79
|
+
self.field = attributes[:'field']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'local_variable_name')
|
|
83
|
+
self.local_variable_name = attributes[:'local_variable_name']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'parser')
|
|
87
|
+
self.parser = attributes[:'parser']
|
|
70
88
|
end
|
|
71
89
|
|
|
72
|
-
if attributes.key?(:'
|
|
73
|
-
self.
|
|
90
|
+
if attributes.key?(:'type')
|
|
91
|
+
self.type = attributes[:'type']
|
|
74
92
|
end
|
|
75
93
|
end
|
|
76
94
|
|
|
@@ -78,29 +96,18 @@ module DatadogAPIClient::V2
|
|
|
78
96
|
# @return true if the model is valid
|
|
79
97
|
# @!visibility private
|
|
80
98
|
def valid?
|
|
81
|
-
return false if @
|
|
82
|
-
return false if @attachment_type.nil?
|
|
99
|
+
return false if @type.nil?
|
|
83
100
|
true
|
|
84
101
|
end
|
|
85
102
|
|
|
86
103
|
# Custom attribute writer method with validation
|
|
87
|
-
# @param
|
|
88
|
-
# @!visibility private
|
|
89
|
-
def attachment=(attachment)
|
|
90
|
-
if attachment.nil?
|
|
91
|
-
fail ArgumentError, 'invalid value for "attachment", attachment cannot be nil.'
|
|
92
|
-
end
|
|
93
|
-
@attachment = attachment
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Custom attribute writer method with validation
|
|
97
|
-
# @param attachment_type [Object] Object to be assigned
|
|
104
|
+
# @param type [Object] Object to be assigned
|
|
98
105
|
# @!visibility private
|
|
99
|
-
def
|
|
100
|
-
if
|
|
101
|
-
fail ArgumentError, 'invalid value for "
|
|
106
|
+
def type=(type)
|
|
107
|
+
if type.nil?
|
|
108
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
102
109
|
end
|
|
103
|
-
@
|
|
110
|
+
@type = type
|
|
104
111
|
end
|
|
105
112
|
|
|
106
113
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -129,8 +136,10 @@ module DatadogAPIClient::V2
|
|
|
129
136
|
def ==(o)
|
|
130
137
|
return true if self.equal?(o)
|
|
131
138
|
self.class == o.class &&
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
field == o.field &&
|
|
140
|
+
local_variable_name == o.local_variable_name &&
|
|
141
|
+
parser == o.parser &&
|
|
142
|
+
type == o.type &&
|
|
134
143
|
additional_properties == o.additional_properties
|
|
135
144
|
end
|
|
136
145
|
|
|
@@ -138,7 +147,7 @@ module DatadogAPIClient::V2
|
|
|
138
147
|
# @return [Integer] Hash code
|
|
139
148
|
# @!visibility private
|
|
140
149
|
def hash
|
|
141
|
-
[
|
|
150
|
+
[field, local_variable_name, parser, type, additional_properties].hash
|
|
142
151
|
end
|
|
143
152
|
end
|
|
144
153
|
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
# Type of value to extract from a test for a Synthetic global variable.
|
|
21
|
+
class SyntheticsGlobalVariableParseTestOptionsType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
HTTP_BODY = "http_body".freeze
|
|
25
|
+
HTTP_HEADER = "http_header".freeze
|
|
26
|
+
HTTP_STATUS_CODE = "http_status_code".freeze
|
|
27
|
+
LOCAL_VARIABLE = "local_variable".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
# Type of parser for a Synthetic global variable from a synthetics test.
|
|
21
|
+
class SyntheticsGlobalVariableParserType
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
RAW = "raw".freeze
|
|
25
|
+
JSON_PATH = "json_path".freeze
|
|
26
|
+
REGEX = "regex".freeze
|
|
27
|
+
X_PATH = "x_path".freeze
|
|
28
|
+
end
|
|
29
|
+
end
|