Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information about creator to Synthetics tests details #503

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-09-27 08:07:47.059556",
"spec_repo_commit": "c7fa062"
"regenerated": "2021-09-27 09:41:31.803693",
"spec_repo_commit": "c02444e"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-09-27 08:08:34.502583",
"spec_repo_commit": "c7fa062"
"regenerated": "2021-09-27 09:42:20.399473",
"spec_repo_commit": "c02444e"
}
}
}
2 changes: 2 additions & 0 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10398,6 +10398,8 @@ components:
properties:
config:
$ref: '#/components/schemas/SyntheticsTestConfig'
creator:
$ref: '#/components/schemas/Creator'
locations:
description: Array of locations used to run the test.
items:
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/SyntheticsTestDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **config** | [**SyntheticsTestConfig**](SyntheticsTestConfig.md) | | [optional] |
| **creator** | [**Creator**](Creator.md) | | [optional] |
| **locations** | **Array<String>** | Array of locations used to run the test. | [optional] |
| **message** | **String** | Notification message associated with the test. | [optional] |
| **monitor_id** | **Integer** | The associated monitor ID. | [optional][readonly] |
Expand All @@ -24,6 +25,7 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::SyntheticsTestDetails.new(
config: null,
creator: null,
locations: null,
message: null,
monitor_id: null,
Expand Down
11 changes: 10 additions & 1 deletion lib/datadog_api_client/v1/models/synthetics_test_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class SyntheticsTestDetails

attr_accessor :config

attr_accessor :creator

# Array of locations used to run the test.
attr_accessor :locations

Expand Down Expand Up @@ -57,6 +59,7 @@ class SyntheticsTestDetails
def self.attribute_map
{
:'config' => :'config',
:'creator' => :'creator',
:'locations' => :'locations',
:'message' => :'message',
:'monitor_id' => :'monitor_id',
Expand All @@ -80,6 +83,7 @@ def self.acceptable_attributes
def self.openapi_types
{
:'config' => :'SyntheticsTestConfig',
:'creator' => :'Creator',
:'locations' => :'Array<String>',
:'message' => :'String',
:'monitor_id' => :'Integer',
Expand Down Expand Up @@ -119,6 +123,10 @@ def initialize(attributes = {})
self.config = attributes[:'config']
end

if attributes.key?(:'creator')
self.creator = attributes[:'creator']
end

if attributes.key?(:'locations')
if (value = attributes[:'locations']).is_a?(Array)
self.locations = value
Expand Down Expand Up @@ -189,6 +197,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
config == o.config &&
creator == o.creator &&
locations == o.locations &&
message == o.message &&
monitor_id == o.monitor_id &&
Expand All @@ -211,7 +220,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[config, locations, message, monitor_id, name, options, public_id, status, steps, subtype, tags, type].hash
[config, creator, locations, message, monitor_id, name, options, public_id, status, steps, subtype, tags, type].hash
end

# Builds the object from hash
Expand Down