datadog_api_client 2.26.1 → 2.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/schemas/v1/openapi.yaml +2152 -10
- data/.generator/schemas/v2/openapi.yaml +1771 -41
- data/.generator/src/generator/formatter.py +1 -1
- data/.github/workflows/approved_status.yml +4 -0
- data/.github/workflows/changelog.yml +5 -0
- data/.github/workflows/codeql-analysis.yml +4 -0
- data/.github/workflows/docs.yml +3 -0
- data/.github/workflows/labeler.yml +5 -0
- data/.github/workflows/prepare_release.yml +4 -0
- data/.github/workflows/publish.yml +5 -0
- data/.github/workflows/release.yml +4 -0
- data/.github/workflows/stale.yml +6 -0
- data/.github/workflows/test.yml +3 -0
- data/.github/workflows/test_integration.yml +3 -0
- data/CHANGELOG.md +27 -0
- data/examples/v1/dashboards/CreateDashboard_1433408735.rb +44 -0
- data/examples/v1/dashboards/CreateDashboard_794302680.rb +152 -0
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsMobileTest.rb +27 -0
- data/examples/v1/synthetics/FetchUptimes.rb +13 -0
- data/examples/v1/synthetics/GetMobileTest.rb +8 -0
- data/examples/v1/synthetics/UpdateMobileTest.rb +30 -0
- data/examples/v2/logs/AggregateLogs_2955613758.rb +0 -1
- data/examples/v2/microsoft-teams-integration/CreateApiHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/CreateApiHandle_1540689753.rb +17 -0
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/DeleteApiHandle_377884154.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandle.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandleByName_1103107145.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetApiHandle_2883785101.rb +8 -0
- data/examples/v2/microsoft-teams-integration/GetChannelByName.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListApiHandles.rb +5 -0
- data/examples/v2/microsoft-teams-integration/ListApiHandles_769592979.rb +5 -0
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle.rb +17 -0
- data/examples/v2/microsoft-teams-integration/UpdateApiHandle_419892746.rb +18 -0
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +9 -0
- data/lib/datadog_api_client/inflector.rb +51 -0
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +272 -0
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +3 -3
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +2 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +11 -1
- data/lib/datadog_api_client/v1/models/synthetics_config_variable_type.rb +1 -0
- data/lib/datadog_api_client/v1/models/synthetics_fetch_uptimes_payload.rb +167 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_device_id.rb +251 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step.rb +203 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_step_type.rb +42 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test.rb +263 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding_items.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_binding_items_role.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_ci_options.rb +123 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_config.rb +117 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_initial_application_arguments.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_initial_application_arguments_property_names.rb +105 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options.rb +354 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options.rb +155 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_options_monitor_options_notification_preset_name.rb +29 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_test_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application.rb +154 -0
- data/lib/datadog_api_client/v1/models/synthetics_mobile_tests_mobile_application_reference_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request_port.rb +63 -0
- data/lib/datadog_api_client/v1/models/synthetics_test_uptime.rb +135 -0
- data/lib/datadog_api_client/v1/models/synthetics_uptime.rb +161 -0
- data/lib/datadog_api_client/v1/models/table_widget_request.rb +16 -4
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_match_type.rb +31 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_palette.rb +36 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace.rb +63 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all.rb +144 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_all_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring.rb +165 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_replace_substring_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/table_widget_text_format_rule.rb +163 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +31 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +31 -1
- data/lib/datadog_api_client/v2/api/authn_mappings_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/incidents_api.rb +1 -1
- data/lib/datadog_api_client/v2/api/metrics_api.rb +4 -4
- data/lib/datadog_api_client/v2/api/microsoft_teams_integration_api.rb +497 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +3 -3
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/fastly_services_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_notification_handle.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_metric_type_category.rb +27 -0
- data/lib/datadog_api_client/v2/models/metric_tag_configuration_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_attributes.rb +186 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response_attributes.rb +249 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_request_attributes.rb +202 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handle_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_api_handles_response.rb +125 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_attributes.rb +165 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_response_data.rb +147 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_channel_info_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_api_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_create_api_handle_response.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_get_channel_by_name_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_api_handle_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/microsoft_teams_update_api_handle_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/powerpack_template_variable.rb +35 -4
- data/lib/datadog_api_client/v2/models/security_monitoring_reference_table.rb +145 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_update_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_create_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_response.rb +13 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_standard_rule_test_payload.rb +13 -1
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +1 -26
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +72 -2
@@ -0,0 +1,263 @@
|
|
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
|
+
# Object containing details about a Synthetic mobile test.
|
21
|
+
class SyntheticsMobileTest
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Configuration object for a Synthetic mobile test.
|
25
|
+
attr_reader :config
|
26
|
+
|
27
|
+
# The `SyntheticsMobileTest` `device_ids`.
|
28
|
+
attr_accessor :device_ids
|
29
|
+
|
30
|
+
# Notification message associated with the test.
|
31
|
+
attr_accessor :message
|
32
|
+
|
33
|
+
# The associated monitor ID.
|
34
|
+
attr_accessor :monitor_id
|
35
|
+
|
36
|
+
# Name of the test.
|
37
|
+
attr_reader :name
|
38
|
+
|
39
|
+
# Object describing the extra options for a Synthetic test.
|
40
|
+
attr_reader :options
|
41
|
+
|
42
|
+
# The public ID of the test.
|
43
|
+
attr_accessor :public_id
|
44
|
+
|
45
|
+
# Define whether you want to start (`live`) or pause (`paused`) a
|
46
|
+
# Synthetic test.
|
47
|
+
attr_accessor :status
|
48
|
+
|
49
|
+
# Array of steps for the test.
|
50
|
+
attr_accessor :steps
|
51
|
+
|
52
|
+
# Array of tags attached to the test.
|
53
|
+
attr_accessor :tags
|
54
|
+
|
55
|
+
# Type of the Synthetic test, `mobile`.
|
56
|
+
attr_reader :type
|
57
|
+
|
58
|
+
attr_accessor :additional_properties
|
59
|
+
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
61
|
+
# @!visibility private
|
62
|
+
def self.attribute_map
|
63
|
+
{
|
64
|
+
:'config' => :'config',
|
65
|
+
:'device_ids' => :'device_ids',
|
66
|
+
:'message' => :'message',
|
67
|
+
:'monitor_id' => :'monitor_id',
|
68
|
+
:'name' => :'name',
|
69
|
+
:'options' => :'options',
|
70
|
+
:'public_id' => :'public_id',
|
71
|
+
:'status' => :'status',
|
72
|
+
:'steps' => :'steps',
|
73
|
+
:'tags' => :'tags',
|
74
|
+
:'type' => :'type'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Attribute type mapping.
|
79
|
+
# @!visibility private
|
80
|
+
def self.openapi_types
|
81
|
+
{
|
82
|
+
:'config' => :'SyntheticsMobileTestConfig',
|
83
|
+
:'device_ids' => :'Array<SyntheticsMobileDeviceID>',
|
84
|
+
:'message' => :'String',
|
85
|
+
:'monitor_id' => :'Integer',
|
86
|
+
:'name' => :'String',
|
87
|
+
:'options' => :'SyntheticsMobileTestOptions',
|
88
|
+
:'public_id' => :'String',
|
89
|
+
:'status' => :'SyntheticsTestPauseStatus',
|
90
|
+
:'steps' => :'Array<SyntheticsMobileStep>',
|
91
|
+
:'tags' => :'Array<String>',
|
92
|
+
:'type' => :'SyntheticsMobileTestType'
|
93
|
+
}
|
94
|
+
end
|
95
|
+
|
96
|
+
# Initializes the object
|
97
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
98
|
+
# @!visibility private
|
99
|
+
def initialize(attributes = {})
|
100
|
+
if (!attributes.is_a?(Hash))
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileTest` initialize method"
|
102
|
+
end
|
103
|
+
|
104
|
+
self.additional_properties = {}
|
105
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
106
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
107
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
108
|
+
self.additional_properties[k.to_sym] = v
|
109
|
+
else
|
110
|
+
h[k.to_sym] = v
|
111
|
+
end
|
112
|
+
}
|
113
|
+
|
114
|
+
if attributes.key?(:'config')
|
115
|
+
self.config = attributes[:'config']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'device_ids')
|
119
|
+
if (value = attributes[:'device_ids']).is_a?(Array)
|
120
|
+
self.device_ids = value
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'message')
|
125
|
+
self.message = attributes[:'message']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'monitor_id')
|
129
|
+
self.monitor_id = attributes[:'monitor_id']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'name')
|
133
|
+
self.name = attributes[:'name']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'options')
|
137
|
+
self.options = attributes[:'options']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'public_id')
|
141
|
+
self.public_id = attributes[:'public_id']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'status')
|
145
|
+
self.status = attributes[:'status']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'steps')
|
149
|
+
if (value = attributes[:'steps']).is_a?(Array)
|
150
|
+
self.steps = value
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'tags')
|
155
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
156
|
+
self.tags = value
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'type')
|
161
|
+
self.type = attributes[:'type']
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# Check to see if the all the properties in the model are valid
|
166
|
+
# @return true if the model is valid
|
167
|
+
# @!visibility private
|
168
|
+
def valid?
|
169
|
+
return false if @config.nil?
|
170
|
+
return false if @name.nil?
|
171
|
+
return false if @options.nil?
|
172
|
+
return false if @type.nil?
|
173
|
+
true
|
174
|
+
end
|
175
|
+
|
176
|
+
# Custom attribute writer method with validation
|
177
|
+
# @param config [Object] Object to be assigned
|
178
|
+
# @!visibility private
|
179
|
+
def config=(config)
|
180
|
+
if config.nil?
|
181
|
+
fail ArgumentError, 'invalid value for "config", config cannot be nil.'
|
182
|
+
end
|
183
|
+
@config = config
|
184
|
+
end
|
185
|
+
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param name [Object] Object to be assigned
|
188
|
+
# @!visibility private
|
189
|
+
def name=(name)
|
190
|
+
if name.nil?
|
191
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
192
|
+
end
|
193
|
+
@name = name
|
194
|
+
end
|
195
|
+
|
196
|
+
# Custom attribute writer method with validation
|
197
|
+
# @param options [Object] Object to be assigned
|
198
|
+
# @!visibility private
|
199
|
+
def options=(options)
|
200
|
+
if options.nil?
|
201
|
+
fail ArgumentError, 'invalid value for "options", options cannot be nil.'
|
202
|
+
end
|
203
|
+
@options = options
|
204
|
+
end
|
205
|
+
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param type [Object] Object to be assigned
|
208
|
+
# @!visibility private
|
209
|
+
def type=(type)
|
210
|
+
if type.nil?
|
211
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
212
|
+
end
|
213
|
+
@type = type
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
# @!visibility private
|
219
|
+
def to_hash
|
220
|
+
hash = {}
|
221
|
+
self.class.attribute_map.each_pair do |attr, param|
|
222
|
+
value = self.send(attr)
|
223
|
+
if value.nil?
|
224
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
225
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
226
|
+
end
|
227
|
+
|
228
|
+
hash[param] = _to_hash(value)
|
229
|
+
end
|
230
|
+
self.additional_properties.each_pair do |attr, value|
|
231
|
+
hash[attr] = value
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Checks equality by comparing each attribute.
|
237
|
+
# @param o [Object] Object to be compared
|
238
|
+
# @!visibility private
|
239
|
+
def ==(o)
|
240
|
+
return true if self.equal?(o)
|
241
|
+
self.class == o.class &&
|
242
|
+
config == o.config &&
|
243
|
+
device_ids == o.device_ids &&
|
244
|
+
message == o.message &&
|
245
|
+
monitor_id == o.monitor_id &&
|
246
|
+
name == o.name &&
|
247
|
+
options == o.options &&
|
248
|
+
public_id == o.public_id &&
|
249
|
+
status == o.status &&
|
250
|
+
steps == o.steps &&
|
251
|
+
tags == o.tags &&
|
252
|
+
type == o.type
|
253
|
+
additional_properties == o.additional_properties
|
254
|
+
end
|
255
|
+
|
256
|
+
# Calculates hash code according to all attributes.
|
257
|
+
# @return [Integer] Hash code
|
258
|
+
# @!visibility private
|
259
|
+
def hash
|
260
|
+
[config, device_ids, message, monitor_id, name, options, public_id, status, steps, tags, type].hash
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
@@ -0,0 +1,105 @@
|
|
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
|
+
# Objects describing the binding used for a mobile test.
|
21
|
+
class SyntheticsMobileTestBinding
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Object describing the binding used for a mobile test.
|
25
|
+
attr_accessor :items
|
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
|
+
:'items' => :'items'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'items' => :'SyntheticsMobileTestBindingItems'
|
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::V1::SyntheticsMobileTestBinding` 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?(:'items')
|
64
|
+
self.items = attributes[:'items']
|
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
|
+
items == o.items
|
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
|
+
[items].hash
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
@@ -0,0 +1,117 @@
|
|
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
|
+
# Object describing the binding used for a mobile test.
|
21
|
+
class SyntheticsMobileTestBindingItems
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# List of principals for a mobile test binding.
|
25
|
+
attr_accessor :principals
|
26
|
+
|
27
|
+
# The definition of `SyntheticsMobileTestBindingItemsRole` object.
|
28
|
+
attr_accessor :role
|
29
|
+
|
30
|
+
attr_accessor :additional_properties
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
# @!visibility private
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'principals' => :'principals',
|
37
|
+
:'role' => :'role'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
# @!visibility private
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'principals' => :'Array<String>',
|
46
|
+
:'role' => :'SyntheticsMobileTestBindingItemsRole'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
52
|
+
# @!visibility private
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SyntheticsMobileTestBindingItems` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
self.additional_properties = {}
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
self.additional_properties[k.to_sym] = v
|
63
|
+
else
|
64
|
+
h[k.to_sym] = v
|
65
|
+
end
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'principals')
|
69
|
+
if (value = attributes[:'principals']).is_a?(Array)
|
70
|
+
self.principals = value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'role')
|
75
|
+
self.role = attributes[:'role']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
80
|
+
# @return [Hash] Returns the object in the form of hash
|
81
|
+
# @!visibility private
|
82
|
+
def to_hash
|
83
|
+
hash = {}
|
84
|
+
self.class.attribute_map.each_pair do |attr, param|
|
85
|
+
value = self.send(attr)
|
86
|
+
if value.nil?
|
87
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
88
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
89
|
+
end
|
90
|
+
|
91
|
+
hash[param] = _to_hash(value)
|
92
|
+
end
|
93
|
+
self.additional_properties.each_pair do |attr, value|
|
94
|
+
hash[attr] = value
|
95
|
+
end
|
96
|
+
hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param o [Object] Object to be compared
|
101
|
+
# @!visibility private
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
principals == o.principals &&
|
106
|
+
role == o.role
|
107
|
+
additional_properties == o.additional_properties
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Integer] Hash code
|
112
|
+
# @!visibility private
|
113
|
+
def hash
|
114
|
+
[principals, role].hash
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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 definition of `SyntheticsMobileTestBindingItemsRole` object.
|
21
|
+
class SyntheticsMobileTestBindingItemsRole
|
22
|
+
include BaseEnumModel
|
23
|
+
|
24
|
+
EDITOR = "editor".freeze
|
25
|
+
VIEWER = "viewer".freeze
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,123 @@
|
|
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
|
+
# CI/CD options for a Synthetic test.
|
21
|
+
class SyntheticsMobileTestCiOptions
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Execution rule for a Synthetic test.
|
25
|
+
attr_reader :execution_rule
|
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
|
+
:'execution_rule' => :'executionRule'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
# @!visibility private
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'execution_rule' => :'SyntheticsTestExecutionRule'
|
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::V1::SyntheticsMobileTestCiOptions` 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?(:'execution_rule')
|
64
|
+
self.execution_rule = attributes[:'execution_rule']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
# @!visibility private
|
71
|
+
def valid?
|
72
|
+
return false if @execution_rule.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom attribute writer method with validation
|
77
|
+
# @param execution_rule [Object] Object to be assigned
|
78
|
+
# @!visibility private
|
79
|
+
def execution_rule=(execution_rule)
|
80
|
+
if execution_rule.nil?
|
81
|
+
fail ArgumentError, 'invalid value for "execution_rule", execution_rule cannot be nil.'
|
82
|
+
end
|
83
|
+
@execution_rule = execution_rule
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
87
|
+
# @return [Hash] Returns the object in the form of hash
|
88
|
+
# @!visibility private
|
89
|
+
def to_hash
|
90
|
+
hash = {}
|
91
|
+
self.class.attribute_map.each_pair do |attr, param|
|
92
|
+
value = self.send(attr)
|
93
|
+
if value.nil?
|
94
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
95
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
96
|
+
end
|
97
|
+
|
98
|
+
hash[param] = _to_hash(value)
|
99
|
+
end
|
100
|
+
self.additional_properties.each_pair do |attr, value|
|
101
|
+
hash[attr] = value
|
102
|
+
end
|
103
|
+
hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param o [Object] Object to be compared
|
108
|
+
# @!visibility private
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
execution_rule == o.execution_rule
|
113
|
+
additional_properties == o.additional_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
# @!visibility private
|
119
|
+
def hash
|
120
|
+
[execution_rule].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|