@@ -21,32 +21,51 @@ module DatadogAPIClient::V2
21
21
class PowerpackTemplateVariable
22
22
include BaseGenericModel
23
23
24
+ # The list of values that the template variable drop-down is limited to.
25
+ attr_accessor :available_values
26
+
24
27
# One or many template variable default values within the saved view, which are unioned together using `OR` if more than one is specified.
25
28
attr_accessor :defaults
26
29
27
30
# The name of the variable.
28
31
attr_reader :name
29
32
33
+ # The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
34
+ attr_accessor :prefix
35
+
30
36
attr_accessor :additional_properties
31
37
32
38
# Attribute mapping from ruby-style variable name to JSON key.
33
39
# @!visibility private
34
40
def self . attribute_map
35
41
{
42
+ :'available_values' => :'available_values' ,
36
43
:'defaults' => :'defaults' ,
37
- :'name' => :'name'
44
+ :'name' => :'name' ,
45
+ :'prefix' => :'prefix'
38
46
}
39
47
end
40
48
41
49
# Attribute type mapping.
42
50
# @!visibility private
43
51
def self . openapi_types
44
52
{
53
+ :'available_values' => :'Array<String>' ,
45
54
:'defaults' => :'Array<String>' ,
46
- :'name' => :'String'
55
+ :'name' => :'String' ,
56
+ :'prefix' => :'String'
47
57
}
48
58
end
49
59
60
+ # List of attributes with nullable: true
61
+ # @!visibility private
62
+ def self . openapi_nullable
63
+ Set . new ( [
64
+ :'available_values' ,
65
+ :'prefix' ,
66
+ ] )
67
+ end
68
+
50
69
# Initializes the object
51
70
# @param attributes [Hash] Model attributes in the form of hash
52
71
# @!visibility private
@@ -65,6 +84,12 @@ def initialize(attributes = {})
65
84
end
66
85
}
67
86
87
+ if attributes . key? ( :'available_values' )
88
+ if ( value = attributes [ :'available_values' ] ) . is_a? ( Array )
89
+ self . available_values = value
90
+ end
91
+ end
92
+
68
93
if attributes . key? ( :'defaults' )
69
94
if ( value = attributes [ :'defaults' ] ) . is_a? ( Array )
70
95
self . defaults = value
@@ -74,6 +99,10 @@ def initialize(attributes = {})
74
99
if attributes . key? ( :'name' )
75
100
self . name = attributes [ :'name' ]
76
101
end
102
+
103
+ if attributes . key? ( :'prefix' )
104
+ self . prefix = attributes [ :'prefix' ]
105
+ end
77
106
end
78
107
79
108
# Check to see if the all the properties in the model are valid
@@ -120,16 +149,18 @@ def to_hash
120
149
def ==( o )
121
150
return true if self . equal? ( o )
122
151
self . class == o . class &&
152
+ available_values == o . available_values &&
123
153
defaults == o . defaults &&
124
- name == o . name
154
+ name == o . name &&
155
+ prefix == o . prefix
125
156
additional_properties == o . additional_properties
126
157
end
127
158
128
159
# Calculates hash code according to all attributes.
129
160
# @return [Integer] Hash code
130
161
# @!visibility private
131
162
def hash
132
- [ defaults , name ] . hash
163
+ [ available_values , defaults , name , prefix ] . hash
133
164
end
134
165
end
135
166
end
0 commit comments