-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdashboard_default_timeframe_setting.rb
More file actions
47 lines (38 loc) · 1.35 KB
/
Copy pathdashboard_default_timeframe_setting.rb
File metadata and controls
47 lines (38 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
=begin
#Datadog API V1 Collection
#Collection of all Datadog Public endpoints.
The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.
=end
require 'date'
require 'time'
module DatadogAPIClient::V1
# The default timeframe applied when opening the dashboard. Set to `null` to clear the dashboard's default timeframe.
module DashboardDefaultTimeframeSetting
class << self
include BaseOneOfModel
# List of class defined in oneOf (OpenAPI v3)
def openapi_one_of
[
:'DashboardLiveTimeframe',
:'DashboardFixedTimeframe'
]
end
# Discriminator's property name (OpenAPI v3)
def openapi_discriminator_name
:'type'
end
# Builds the object
# @param data [Mixed] Data to be matched against the list of oneOf items
# @return [Object] Returns the model or the data itself
def build(data)
discriminator_value = data[openapi_discriminator_name]
return nil unless discriminator_value
end
end
end
end