datadog_api_client 2.57.0 → 2.58.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 +2 -0
- data/.generator/schemas/v2/openapi.yaml +748 -397
- data/CHANGELOG.md +21 -0
- data/examples/v1/monitors/CreateMonitor_1348801712.rb +23 -0
- data/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +5 -0
- data/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +20 -0
- data/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +24 -0
- data/examples/v2/governance-console/UpdateGovernanceControl.rb +0 -1
- data/examples/v2/status-pages/PatchMaintenanceUpdate.rb +15 -0
- data/lib/datadog_api_client/configuration.rb +1 -3
- data/lib/datadog_api_client/inflector.rb +33 -14
- data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
- data/lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb +160 -0
- data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +73 -0
- data/lib/datadog_api_client/v2/api/status_pages_api.rb +83 -1
- data/lib/datadog_api_client/v2/models/agent_trigger.rb +105 -0
- data/lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb +135 -0
- data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb +147 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_data.rb → ci_app_git_hub_account_data.rb} +10 -8
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb +115 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_response.rb → ci_app_git_hub_account_response.rb} +5 -5
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_quota_reached_action.rb → ci_app_git_hub_account_type.rb} +4 -4
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_request.rb → ci_app_git_hub_account_update_request.rb} +5 -5
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb +159 -0
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb +146 -0
- data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb +148 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_adaptive_config.rb → ci_app_git_hub_accounts_response.rb} +19 -25
- data/lib/datadog_api_client/v2/models/completion_condition.rb +4 -29
- data/lib/datadog_api_client/v2/models/completion_gate.rb +4 -29
- data/lib/datadog_api_client/v2/models/create_degradation_request.rb +13 -3
- data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -1
- data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/degradation_request_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/deployment_gates_fdd_rule_options.rb +13 -1
- data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +13 -1
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb +63 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb +119 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb +119 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb +196 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +15 -5
- data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/error_handler.rb +4 -29
- data/lib/datadog_api_client/v2/models/fleet_agent_info_details_v2.rb +1 -49
- data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +1 -22
- data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +10 -13
- data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +4 -0
- data/lib/datadog_api_client/v2/models/maintenance_update.rb +105 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb +167 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_type.rb → maintenance_update_data_attributes_status.rb} +6 -3
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb +125 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb +123 -0
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_attributes.rb → maintenance_update_data_relationships_user.rb} +17 -38
- data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/outbound_edge.rb +8 -0
- data/lib/datadog_api_client/v2/models/parameter.rb +4 -0
- data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +13 -3
- data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +11 -1
- data/lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_data.rb → patch_maintenance_update_request_data.rb} +9 -21
- data/lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb +105 -0
- data/lib/datadog_api_client/v2/models/{rum_rate_limit_scope_type.rb → patch_maintenance_update_request_data_type.rb} +3 -3
- data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +1 -11
- data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/readiness_gate.rb +4 -29
- data/lib/datadog_api_client/v2/models/retry_strategy.rb +12 -26
- data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +18 -29
- data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +1 -1
- data/lib/datadog_api_client/v2/models/spec.rb +1 -1
- data/lib/datadog_api_client/v2/models/step.rb +11 -2
- data/lib/datadog_api_client/v2/models/step_display.rb +2 -1
- data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +9 -1
- data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
- data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_list_item_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +2 -2
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +39 -18
- data/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb +0 -8
- data/examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb +0 -8
- data/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb +0 -28
- data/lib/datadog_api_client/v2/api/rum_rate_limit_api.rb +0 -277
- data/lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb +0 -185
- data/lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb +0 -223
- data/lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb +0 -28
- data/lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb +0 -26
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'date'
|
|
17
|
+
require 'time'
|
|
18
|
+
|
|
19
|
+
module DatadogAPIClient::V2
|
|
20
|
+
# The data object identifying a Datadog user linked to a maintenance update.
|
|
21
|
+
class MaintenanceUpdateDataRelationshipsUserData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The ID of the Datadog user.
|
|
25
|
+
attr_reader :id
|
|
26
|
+
|
|
27
|
+
# Users resource type.
|
|
28
|
+
attr_reader :type
|
|
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
|
+
:'id' => :'id',
|
|
37
|
+
:'type' => :'type'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
# @!visibility private
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'id' => :'UUID',
|
|
46
|
+
:'type' => :'StatusPagesUserType'
|
|
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::V2::MaintenanceUpdateDataRelationshipsUserData` 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?(:'id')
|
|
69
|
+
self.id = attributes[:'id']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'type')
|
|
73
|
+
self.type = attributes[:'type']
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Check to see if the all the properties in the model are valid
|
|
78
|
+
# @return true if the model is valid
|
|
79
|
+
# @!visibility private
|
|
80
|
+
def valid?
|
|
81
|
+
return false if @id.nil?
|
|
82
|
+
return false if @type.nil?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Custom attribute writer method with validation
|
|
87
|
+
# @param id [Object] Object to be assigned
|
|
88
|
+
# @!visibility private
|
|
89
|
+
def id=(id)
|
|
90
|
+
if id.nil?
|
|
91
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
|
92
|
+
end
|
|
93
|
+
@id = id
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Custom attribute writer method with validation
|
|
97
|
+
# @param type [Object] Object to be assigned
|
|
98
|
+
# @!visibility private
|
|
99
|
+
def type=(type)
|
|
100
|
+
if type.nil?
|
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
102
|
+
end
|
|
103
|
+
@type = type
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
107
|
+
# @return [Hash] Returns the object in the form of hash
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def to_hash
|
|
110
|
+
hash = {}
|
|
111
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
112
|
+
value = self.send(attr)
|
|
113
|
+
if value.nil?
|
|
114
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
115
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
hash[param] = _to_hash(value)
|
|
119
|
+
end
|
|
120
|
+
self.additional_properties.each_pair do |attr, value|
|
|
121
|
+
hash[attr] = value
|
|
122
|
+
end
|
|
123
|
+
hash
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Checks equality by comparing each attribute.
|
|
127
|
+
# @param o [Object] Object to be compared
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def ==(o)
|
|
130
|
+
return true if self.equal?(o)
|
|
131
|
+
self.class == o.class &&
|
|
132
|
+
id == o.id &&
|
|
133
|
+
type == o.type &&
|
|
134
|
+
additional_properties == o.additional_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Calculates hash code according to all attributes.
|
|
138
|
+
# @return [Integer] Hash code
|
|
139
|
+
# @!visibility private
|
|
140
|
+
def hash
|
|
141
|
+
[id, type, additional_properties].hash
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Trigger a workflow from a Monitor. For automatic triggering a handle must be configured and the workflow must be published.
|
|
25
25
|
attr_reader :monitor_trigger
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Names of existing workflow steps that run first after a trigger fires.
|
|
28
28
|
attr_accessor :start_step_names
|
|
29
29
|
|
|
30
30
|
attr_accessor :additional_properties
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Trigger a workflow from a Notebook.
|
|
25
25
|
attr_reader :notebook_trigger
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Names of existing workflow steps that run first after a trigger fires.
|
|
28
28
|
attr_accessor :start_step_names
|
|
29
29
|
|
|
30
30
|
attr_accessor :additional_properties
|
|
@@ -24,7 +24,7 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle must be configured and the workflow must be published.
|
|
25
25
|
attr_reader :on_call_trigger
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# Names of existing workflow steps that run first after a trigger fires.
|
|
28
28
|
attr_accessor :start_step_names
|
|
29
29
|
|
|
30
30
|
attr_accessor :additional_properties
|
|
@@ -79,7 +79,9 @@ module DatadogAPIClient::V2
|
|
|
79
79
|
# @!visibility private
|
|
80
80
|
def valid?
|
|
81
81
|
return false if @branch_name.nil?
|
|
82
|
+
return false if @branch_name.to_s.length < 1
|
|
82
83
|
return false if @next_step_name.nil?
|
|
84
|
+
return false if @next_step_name.to_s.length < 1
|
|
83
85
|
true
|
|
84
86
|
end
|
|
85
87
|
|
|
@@ -90,6 +92,9 @@ module DatadogAPIClient::V2
|
|
|
90
92
|
if branch_name.nil?
|
|
91
93
|
fail ArgumentError, 'invalid value for "branch_name", branch_name cannot be nil.'
|
|
92
94
|
end
|
|
95
|
+
if branch_name.to_s.length < 1
|
|
96
|
+
fail ArgumentError, 'invalid value for "branch_name", the character length must be great than or equal to 1.'
|
|
97
|
+
end
|
|
93
98
|
@branch_name = branch_name
|
|
94
99
|
end
|
|
95
100
|
|
|
@@ -100,6 +105,9 @@ module DatadogAPIClient::V2
|
|
|
100
105
|
if next_step_name.nil?
|
|
101
106
|
fail ArgumentError, 'invalid value for "next_step_name", next_step_name cannot be nil.'
|
|
102
107
|
end
|
|
108
|
+
if next_step_name.to_s.length < 1
|
|
109
|
+
fail ArgumentError, 'invalid value for "next_step_name", the character length must be great than or equal to 1.'
|
|
110
|
+
end
|
|
103
111
|
@next_step_name = next_step_name
|
|
104
112
|
end
|
|
105
113
|
|
|
@@ -79,6 +79,7 @@ module DatadogAPIClient::V2
|
|
|
79
79
|
# @!visibility private
|
|
80
80
|
def valid?
|
|
81
81
|
return false if @name.nil?
|
|
82
|
+
return false if @name.to_s.length < 1
|
|
82
83
|
return false if @value.nil?
|
|
83
84
|
true
|
|
84
85
|
end
|
|
@@ -90,6 +91,9 @@ module DatadogAPIClient::V2
|
|
|
90
91
|
if name.nil?
|
|
91
92
|
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
92
93
|
end
|
|
94
|
+
if name.to_s.length < 1
|
|
95
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
96
|
+
end
|
|
93
97
|
@name = name
|
|
94
98
|
end
|
|
95
99
|
|
|
@@ -24,13 +24,17 @@ module DatadogAPIClient::V2
|
|
|
24
24
|
# The data object for updating a degradation.
|
|
25
25
|
attr_accessor :data
|
|
26
26
|
|
|
27
|
+
# The supported metadata for a degradation request.
|
|
28
|
+
attr_accessor :meta
|
|
29
|
+
|
|
27
30
|
attr_accessor :additional_properties
|
|
28
31
|
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
33
|
# @!visibility private
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
|
-
:'data' => :'data'
|
|
36
|
+
:'data' => :'data',
|
|
37
|
+
:'meta' => :'meta'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -38,7 +42,8 @@ module DatadogAPIClient::V2
|
|
|
38
42
|
# @!visibility private
|
|
39
43
|
def self.openapi_types
|
|
40
44
|
{
|
|
41
|
-
:'data' => :'PatchDegradationRequestData'
|
|
45
|
+
:'data' => :'PatchDegradationRequestData',
|
|
46
|
+
:'meta' => :'DegradationRequestMeta'
|
|
42
47
|
}
|
|
43
48
|
end
|
|
44
49
|
|
|
@@ -63,6 +68,10 @@ module DatadogAPIClient::V2
|
|
|
63
68
|
if attributes.key?(:'data')
|
|
64
69
|
self.data = attributes[:'data']
|
|
65
70
|
end
|
|
71
|
+
|
|
72
|
+
if attributes.key?(:'meta')
|
|
73
|
+
self.meta = attributes[:'meta']
|
|
74
|
+
end
|
|
66
75
|
end
|
|
67
76
|
|
|
68
77
|
# Returns the object in the form of hash, with additionalProperties support.
|
|
@@ -92,6 +101,7 @@ module DatadogAPIClient::V2
|
|
|
92
101
|
return true if self.equal?(o)
|
|
93
102
|
self.class == o.class &&
|
|
94
103
|
data == o.data &&
|
|
104
|
+
meta == o.meta &&
|
|
95
105
|
additional_properties == o.additional_properties
|
|
96
106
|
end
|
|
97
107
|
|
|
@@ -99,7 +109,7 @@ module DatadogAPIClient::V2
|
|
|
99
109
|
# @return [Integer] Hash code
|
|
100
110
|
# @!visibility private
|
|
101
111
|
def hash
|
|
102
|
-
[data, additional_properties].hash
|
|
112
|
+
[data, meta, additional_properties].hash
|
|
103
113
|
end
|
|
104
114
|
end
|
|
105
115
|
end
|
|
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
|
|
|
21
21
|
class PatchMaintenanceRequestDataAttributes
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
+
# The description shown when the maintenance is canceled.
|
|
25
|
+
attr_accessor :canceled_description
|
|
26
|
+
|
|
24
27
|
# Timestamp of when the maintenance was completed.
|
|
25
28
|
attr_accessor :completed_date
|
|
26
29
|
|
|
@@ -51,6 +54,7 @@ module DatadogAPIClient::V2
|
|
|
51
54
|
# @!visibility private
|
|
52
55
|
def self.attribute_map
|
|
53
56
|
{
|
|
57
|
+
:'canceled_description' => :'canceled_description',
|
|
54
58
|
:'completed_date' => :'completed_date',
|
|
55
59
|
:'completed_description' => :'completed_description',
|
|
56
60
|
:'components_affected' => :'components_affected',
|
|
@@ -66,6 +70,7 @@ module DatadogAPIClient::V2
|
|
|
66
70
|
# @!visibility private
|
|
67
71
|
def self.openapi_types
|
|
68
72
|
{
|
|
73
|
+
:'canceled_description' => :'String',
|
|
69
74
|
:'completed_date' => :'Time',
|
|
70
75
|
:'completed_description' => :'String',
|
|
71
76
|
:'components_affected' => :'Array<PatchMaintenanceRequestDataAttributesComponentsAffectedItems>',
|
|
@@ -95,6 +100,10 @@ module DatadogAPIClient::V2
|
|
|
95
100
|
end
|
|
96
101
|
}
|
|
97
102
|
|
|
103
|
+
if attributes.key?(:'canceled_description')
|
|
104
|
+
self.canceled_description = attributes[:'canceled_description']
|
|
105
|
+
end
|
|
106
|
+
|
|
98
107
|
if attributes.key?(:'completed_date')
|
|
99
108
|
self.completed_date = attributes[:'completed_date']
|
|
100
109
|
end
|
|
@@ -156,6 +165,7 @@ module DatadogAPIClient::V2
|
|
|
156
165
|
def ==(o)
|
|
157
166
|
return true if self.equal?(o)
|
|
158
167
|
self.class == o.class &&
|
|
168
|
+
canceled_description == o.canceled_description &&
|
|
159
169
|
completed_date == o.completed_date &&
|
|
160
170
|
completed_description == o.completed_description &&
|
|
161
171
|
components_affected == o.components_affected &&
|
|
@@ -171,7 +181,7 @@ module DatadogAPIClient::V2
|
|
|
171
181
|
# @return [Integer] Hash code
|
|
172
182
|
# @!visibility private
|
|
173
183
|
def hash
|
|
174
|
-
[completed_date, completed_description, components_affected, in_progress_description, scheduled_description, start_date, status, title, additional_properties].hash
|
|
184
|
+
[canceled_description, completed_date, completed_description, components_affected, in_progress_description, scheduled_description, start_date, status, title, additional_properties].hash
|
|
175
185
|
end
|
|
176
186
|
end
|
|
177
187
|
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
|
+
# Request object for editing a maintenance update.
|
|
21
|
+
class PatchMaintenanceUpdateRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The data object for editing a maintenance update.
|
|
25
|
+
attr_accessor :data
|
|
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
|
+
:'data' => :'data'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'data' => :'PatchMaintenanceUpdateRequestData'
|
|
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::PatchMaintenanceUpdateRequest` 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?(:'data')
|
|
64
|
+
self.data = attributes[:'data']
|
|
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
|
+
data == o.data &&
|
|
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
|
+
[data, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -17,18 +17,17 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
# The
|
|
21
|
-
class
|
|
20
|
+
# The data object for editing a maintenance update.
|
|
21
|
+
class PatchMaintenanceUpdateRequestData
|
|
22
22
|
include BaseGenericModel
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
|
|
24
|
+
# Attributes for editing a maintenance update.
|
|
25
|
+
attr_accessor :attributes
|
|
26
26
|
|
|
27
|
-
# The
|
|
28
|
-
# Must match `scope_id` in the path.
|
|
27
|
+
# The ID of the maintenance update to edit. Must match the `update_id` path parameter.
|
|
29
28
|
attr_reader :id
|
|
30
29
|
|
|
31
|
-
#
|
|
30
|
+
# Maintenance updates resource type.
|
|
32
31
|
attr_reader :type
|
|
33
32
|
|
|
34
33
|
attr_accessor :additional_properties
|
|
@@ -47,9 +46,9 @@ module DatadogAPIClient::V2
|
|
|
47
46
|
# @!visibility private
|
|
48
47
|
def self.openapi_types
|
|
49
48
|
{
|
|
50
|
-
:'attributes' => :'
|
|
49
|
+
:'attributes' => :'PatchMaintenanceUpdateRequestDataAttributes',
|
|
51
50
|
:'id' => :'String',
|
|
52
|
-
:'type' => :'
|
|
51
|
+
:'type' => :'PatchMaintenanceUpdateRequestDataType'
|
|
53
52
|
}
|
|
54
53
|
end
|
|
55
54
|
|
|
@@ -58,7 +57,7 @@ module DatadogAPIClient::V2
|
|
|
58
57
|
# @!visibility private
|
|
59
58
|
def initialize(attributes = {})
|
|
60
59
|
if (!attributes.is_a?(Hash))
|
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::PatchMaintenanceUpdateRequestData` initialize method"
|
|
62
61
|
end
|
|
63
62
|
|
|
64
63
|
self.additional_properties = {}
|
|
@@ -88,22 +87,11 @@ module DatadogAPIClient::V2
|
|
|
88
87
|
# @return true if the model is valid
|
|
89
88
|
# @!visibility private
|
|
90
89
|
def valid?
|
|
91
|
-
return false if @attributes.nil?
|
|
92
90
|
return false if @id.nil?
|
|
93
91
|
return false if @type.nil?
|
|
94
92
|
true
|
|
95
93
|
end
|
|
96
94
|
|
|
97
|
-
# Custom attribute writer method with validation
|
|
98
|
-
# @param attributes [Object] Object to be assigned
|
|
99
|
-
# @!visibility private
|
|
100
|
-
def attributes=(attributes)
|
|
101
|
-
if attributes.nil?
|
|
102
|
-
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
|
103
|
-
end
|
|
104
|
-
@attributes = attributes
|
|
105
|
-
end
|
|
106
|
-
|
|
107
95
|
# Custom attribute writer method with validation
|
|
108
96
|
# @param id [Object] Object to be assigned
|
|
109
97
|
# @!visibility private
|
|
@@ -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
|
+
# Attributes for editing a maintenance update.
|
|
21
|
+
class PatchMaintenanceUpdateRequestDataAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The message body of the update.
|
|
25
|
+
attr_accessor :description
|
|
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
|
+
:'description' => :'description'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
# @!visibility private
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'description' => :'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::PatchMaintenanceUpdateRequestDataAttributes` 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?(:'description')
|
|
64
|
+
self.description = attributes[:'description']
|
|
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
|
+
description == o.description &&
|
|
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
|
+
[description, additional_properties].hash
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -17,10 +17,10 @@ require 'date'
|
|
|
17
17
|
require 'time'
|
|
18
18
|
|
|
19
19
|
module DatadogAPIClient::V2
|
|
20
|
-
#
|
|
21
|
-
class
|
|
20
|
+
# Maintenance updates resource type.
|
|
21
|
+
class PatchMaintenanceUpdateRequestDataType
|
|
22
22
|
include BaseEnumModel
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
MAINTENANCE_UPDATES = "maintenance_updates".freeze
|
|
25
25
|
end
|
|
26
26
|
end
|
|
@@ -30,9 +30,6 @@ module DatadogAPIClient::V2
|
|
|
30
30
|
# The base64-encoded image data displayed in email notifications sent to status page subscribers.
|
|
31
31
|
attr_accessor :email_header_image
|
|
32
32
|
|
|
33
|
-
# Whether the status page is enabled.
|
|
34
|
-
attr_accessor :enabled
|
|
35
|
-
|
|
36
33
|
# The base64-encoded image data displayed in the browser tab.
|
|
37
34
|
attr_accessor :favicon
|
|
38
35
|
|
|
@@ -63,7 +60,6 @@ module DatadogAPIClient::V2
|
|
|
63
60
|
:'company_logo' => :'company_logo',
|
|
64
61
|
:'domain_prefix' => :'domain_prefix',
|
|
65
62
|
:'email_header_image' => :'email_header_image',
|
|
66
|
-
:'enabled' => :'enabled',
|
|
67
63
|
:'favicon' => :'favicon',
|
|
68
64
|
:'name' => :'name',
|
|
69
65
|
:'slack_app_icon' => :'slack_app_icon',
|
|
@@ -81,7 +77,6 @@ module DatadogAPIClient::V2
|
|
|
81
77
|
:'company_logo' => :'String',
|
|
82
78
|
:'domain_prefix' => :'String',
|
|
83
79
|
:'email_header_image' => :'String',
|
|
84
|
-
:'enabled' => :'Boolean',
|
|
85
80
|
:'favicon' => :'String',
|
|
86
81
|
:'name' => :'String',
|
|
87
82
|
:'slack_app_icon' => :'String',
|
|
@@ -122,10 +117,6 @@ module DatadogAPIClient::V2
|
|
|
122
117
|
self.email_header_image = attributes[:'email_header_image']
|
|
123
118
|
end
|
|
124
119
|
|
|
125
|
-
if attributes.key?(:'enabled')
|
|
126
|
-
self.enabled = attributes[:'enabled']
|
|
127
|
-
end
|
|
128
|
-
|
|
129
120
|
if attributes.key?(:'favicon')
|
|
130
121
|
self.favicon = attributes[:'favicon']
|
|
131
122
|
end
|
|
@@ -184,7 +175,6 @@ module DatadogAPIClient::V2
|
|
|
184
175
|
company_logo == o.company_logo &&
|
|
185
176
|
domain_prefix == o.domain_prefix &&
|
|
186
177
|
email_header_image == o.email_header_image &&
|
|
187
|
-
enabled == o.enabled &&
|
|
188
178
|
favicon == o.favicon &&
|
|
189
179
|
name == o.name &&
|
|
190
180
|
slack_app_icon == o.slack_app_icon &&
|
|
@@ -199,7 +189,7 @@ module DatadogAPIClient::V2
|
|
|
199
189
|
# @return [Integer] Hash code
|
|
200
190
|
# @!visibility private
|
|
201
191
|
def hash
|
|
202
|
-
[company_logo, domain_prefix, email_header_image,
|
|
192
|
+
[company_logo, domain_prefix, email_header_image, favicon, name, slack_app_icon, slack_subscriptions_enabled, subscriptions_enabled, type, visualization_type, additional_properties].hash
|
|
203
193
|
end
|
|
204
194
|
end
|
|
205
195
|
end
|