datadog_api_client 2.41.0 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.generator/schemas/v1/openapi.yaml +69 -8
- data/.generator/schemas/v2/openapi.yaml +1568 -40
- data/CHANGELOG.md +15 -0
- data/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb +24 -0
- data/examples/v2/actions-datastores/CreateDatastore.rb +15 -0
- data/examples/v2/actions-datastores/DeleteDatastore.rb +8 -0
- data/examples/v2/actions-datastores/DeleteDatastoreItem.rb +17 -0
- data/examples/v2/actions-datastores/GetDatastore.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastoreItems.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastores.rb +5 -0
- data/examples/v2/actions-datastores/UpdateDatastore.rb +18 -0
- data/examples/v2/actions-datastores/UpdateDatastoreItem.rb +18 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb +0 -3
- data/examples/v2/aws-integration/DeleteAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/GetAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/ListAWSAccounts.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb +0 -3
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -3
- data/examples/v2/aws-logs-integration/ListAWSLogsServices.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2836340212.rb +52 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule.rb +50 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb +42 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb +11 -0
- data/examples/v2/incidents/GetIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb +11 -0
- data/examples/v2/incidents/ListIncidentNotificationRules.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule.rb +51 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb +45 -0
- data/lib/datadog_api_client/configuration.rb +5 -8
- data/lib/datadog_api_client/inflector.rb +67 -0
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +27 -0
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +9 -0
- data/lib/datadog_api_client/v1/models/gcp_account.rb +18 -4
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +655 -0
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +0 -42
- data/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +367 -0
- data/lib/datadog_api_client/v2/api/org_connections_api.rb +8 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data_single_or_array.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes.rb +180 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes_org_access.rb +28 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/datastore.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/datastore_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/datastore_data_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/datastore_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_item_conflict_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/datastore_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_primary_key_generation_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +17 -2
- data/lib/datadog_api_client/v2/models/incident_notification_rule.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes.rb +265 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_conditions_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes.rb +201 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_included_items.rb +64 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_update_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_object.rb +164 -0
- data/lib/datadog_api_client/v2/models/item_api_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_array.rb +139 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema.rb +117 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema_field.rb +144 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/put_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes.rb +158 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes_item_changes.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +87 -1
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
# Configuration and metadata to create a new datastore.
|
|
21
|
+
class CreateAppsDatastoreRequestDataAttributes
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# A human-readable description about the datastore.
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# The display name for the new datastore.
|
|
28
|
+
attr_reader :name
|
|
29
|
+
|
|
30
|
+
# The organization access level for the datastore. For example, 'contributor'.
|
|
31
|
+
attr_accessor :org_access
|
|
32
|
+
|
|
33
|
+
# The name of the primary key column for this datastore. Primary column names:
|
|
34
|
+
# - Must abide by both [PostgreSQL naming conventions](https://www.postgresql.org/docs/7.0/syntax525.htm)
|
|
35
|
+
# - Cannot exceed 63 characters
|
|
36
|
+
attr_reader :primary_column_name
|
|
37
|
+
|
|
38
|
+
# Can be set to `uuid` to automatically generate primary keys when new items are added. Default value is `none`, which requires you to supply a primary key for each new item.
|
|
39
|
+
attr_accessor :primary_key_generation_strategy
|
|
40
|
+
|
|
41
|
+
attr_accessor :additional_properties
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
# @!visibility private
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'description' => :'description',
|
|
48
|
+
:'name' => :'name',
|
|
49
|
+
:'org_access' => :'org_access',
|
|
50
|
+
:'primary_column_name' => :'primary_column_name',
|
|
51
|
+
:'primary_key_generation_strategy' => :'primary_key_generation_strategy'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
# @!visibility private
|
|
57
|
+
def self.openapi_types
|
|
58
|
+
{
|
|
59
|
+
:'description' => :'String',
|
|
60
|
+
:'name' => :'String',
|
|
61
|
+
:'org_access' => :'CreateAppsDatastoreRequestDataAttributesOrgAccess',
|
|
62
|
+
:'primary_column_name' => :'String',
|
|
63
|
+
:'primary_key_generation_strategy' => :'DatastorePrimaryKeyGenerationStrategy'
|
|
64
|
+
}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
|
69
|
+
# @!visibility private
|
|
70
|
+
def initialize(attributes = {})
|
|
71
|
+
if (!attributes.is_a?(Hash))
|
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CreateAppsDatastoreRequestDataAttributes` initialize method"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
self.additional_properties = {}
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
79
|
+
self.additional_properties[k.to_sym] = v
|
|
80
|
+
else
|
|
81
|
+
h[k.to_sym] = v
|
|
82
|
+
end
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'description')
|
|
86
|
+
self.description = attributes[:'description']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'name')
|
|
90
|
+
self.name = attributes[:'name']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'org_access')
|
|
94
|
+
self.org_access = attributes[:'org_access']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'primary_column_name')
|
|
98
|
+
self.primary_column_name = attributes[:'primary_column_name']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'primary_key_generation_strategy')
|
|
102
|
+
self.primary_key_generation_strategy = attributes[:'primary_key_generation_strategy']
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Check to see if the all the properties in the model are valid
|
|
107
|
+
# @return true if the model is valid
|
|
108
|
+
# @!visibility private
|
|
109
|
+
def valid?
|
|
110
|
+
return false if @name.nil?
|
|
111
|
+
return false if @primary_column_name.nil?
|
|
112
|
+
return false if @primary_column_name.to_s.length > 63
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param name [Object] Object to be assigned
|
|
118
|
+
# @!visibility private
|
|
119
|
+
def name=(name)
|
|
120
|
+
if name.nil?
|
|
121
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
|
122
|
+
end
|
|
123
|
+
@name = name
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Custom attribute writer method with validation
|
|
127
|
+
# @param primary_column_name [Object] Object to be assigned
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def primary_column_name=(primary_column_name)
|
|
130
|
+
if primary_column_name.nil?
|
|
131
|
+
fail ArgumentError, 'invalid value for "primary_column_name", primary_column_name cannot be nil.'
|
|
132
|
+
end
|
|
133
|
+
if primary_column_name.to_s.length > 63
|
|
134
|
+
fail ArgumentError, 'invalid value for "primary_column_name", the character length must be smaller than or equal to 63.'
|
|
135
|
+
end
|
|
136
|
+
@primary_column_name = primary_column_name
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
140
|
+
# @return [Hash] Returns the object in the form of hash
|
|
141
|
+
# @!visibility private
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = self.send(attr)
|
|
146
|
+
if value.nil?
|
|
147
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
148
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
self.additional_properties.each_pair do |attr, value|
|
|
154
|
+
hash[attr] = value
|
|
155
|
+
end
|
|
156
|
+
hash
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Checks equality by comparing each attribute.
|
|
160
|
+
# @param o [Object] Object to be compared
|
|
161
|
+
# @!visibility private
|
|
162
|
+
def ==(o)
|
|
163
|
+
return true if self.equal?(o)
|
|
164
|
+
self.class == o.class &&
|
|
165
|
+
description == o.description &&
|
|
166
|
+
name == o.name &&
|
|
167
|
+
org_access == o.org_access &&
|
|
168
|
+
primary_column_name == o.primary_column_name &&
|
|
169
|
+
primary_key_generation_strategy == o.primary_key_generation_strategy &&
|
|
170
|
+
additional_properties == o.additional_properties
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Calculates hash code according to all attributes.
|
|
174
|
+
# @return [Integer] Hash code
|
|
175
|
+
# @!visibility private
|
|
176
|
+
def hash
|
|
177
|
+
[description, name, org_access, primary_column_name, primary_key_generation_strategy, additional_properties].hash
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
end
|
data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes_org_access.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 organization access level for the datastore. For example, 'contributor'.
|
|
21
|
+
class CreateAppsDatastoreRequestDataAttributesOrgAccess
|
|
22
|
+
include BaseEnumModel
|
|
23
|
+
|
|
24
|
+
CONTRIBUTOR = "contributor".freeze
|
|
25
|
+
VIEWER = "viewer".freeze
|
|
26
|
+
MANAGER = "manager".freeze
|
|
27
|
+
end
|
|
28
|
+
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
|
+
# Response after successfully creating a new datastore, containing the datastore's assigned ID.
|
|
21
|
+
class CreateAppsDatastoreResponse
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The newly created datastore's data.
|
|
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' => :'CreateAppsDatastoreResponseData'
|
|
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::CreateAppsDatastoreResponse` 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
|
|
@@ -0,0 +1,133 @@
|
|
|
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 newly created datastore's data.
|
|
21
|
+
class CreateAppsDatastoreResponseData
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# The unique identifier assigned to the newly created datastore.
|
|
25
|
+
attr_accessor :id
|
|
26
|
+
|
|
27
|
+
# The resource type for datastores.
|
|
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' => :'String',
|
|
46
|
+
:'type' => :'DatastoreDataType'
|
|
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::CreateAppsDatastoreResponseData` 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 @type.nil?
|
|
82
|
+
true
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Custom attribute writer method with validation
|
|
86
|
+
# @param type [Object] Object to be assigned
|
|
87
|
+
# @!visibility private
|
|
88
|
+
def type=(type)
|
|
89
|
+
if type.nil?
|
|
90
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
|
91
|
+
end
|
|
92
|
+
@type = type
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Returns the object in the form of hash, with additionalProperties support.
|
|
96
|
+
# @return [Hash] Returns the object in the form of hash
|
|
97
|
+
# @!visibility private
|
|
98
|
+
def to_hash
|
|
99
|
+
hash = {}
|
|
100
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
101
|
+
value = self.send(attr)
|
|
102
|
+
if value.nil?
|
|
103
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
104
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
hash[param] = _to_hash(value)
|
|
108
|
+
end
|
|
109
|
+
self.additional_properties.each_pair do |attr, value|
|
|
110
|
+
hash[attr] = value
|
|
111
|
+
end
|
|
112
|
+
hash
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param o [Object] Object to be compared
|
|
117
|
+
# @!visibility private
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
id == o.id &&
|
|
122
|
+
type == o.type &&
|
|
123
|
+
additional_properties == o.additional_properties
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
# @!visibility private
|
|
129
|
+
def hash
|
|
130
|
+
[id, type, additional_properties].hash
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
# Create request for a notification rule.
|
|
21
|
+
class CreateIncidentNotificationRuleRequest
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Notification rule data for a create request.
|
|
25
|
+
attr_reader :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' => :'IncidentNotificationRuleCreateData'
|
|
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::CreateIncidentNotificationRuleRequest` 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
|
+
# 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 @data.nil?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param data [Object] Object to be assigned
|
|
78
|
+
# @!visibility private
|
|
79
|
+
def data=(data)
|
|
80
|
+
if data.nil?
|
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
|
82
|
+
end
|
|
83
|
+
@data = data
|
|
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
|
+
data == o.data &&
|
|
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
|
+
[data, additional_properties].hash
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
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
|
+
# A datastore's complete configuration and metadata.
|
|
21
|
+
class Datastore
|
|
22
|
+
include BaseGenericModel
|
|
23
|
+
|
|
24
|
+
# Core information about a datastore, including its unique identifier and attributes.
|
|
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' => :'DatastoreData'
|
|
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::Datastore` 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
|