You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failArgumentError,"`#{k}` is not a valid attribute in `DatadogAPIClient::V1::CalendarInterval`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+
end
71
+
h[k.to_sym]=v
72
+
}
73
+
74
+
ifattributes.key?(:'alignment')
75
+
self.alignment=attributes[:'alignment']
76
+
end
77
+
78
+
ifattributes.key?(:'quantity')
79
+
self.quantity=attributes[:'quantity']
80
+
end
81
+
82
+
ifattributes.key?(:'timezone')
83
+
self.timezone=attributes[:'timezone']
84
+
end
85
+
86
+
ifattributes.key?(:'type')
87
+
self.type=attributes[:'type']
88
+
end
89
+
end
90
+
91
+
# Check to see if the all the properties in the model are valid
92
+
# @return true if the model is valid
93
+
# @!visibility private
94
+
defvalid?
95
+
returnfalseif@type.nil?
96
+
true
97
+
end
98
+
99
+
# Custom attribute writer method with validation
100
+
# @param type [Object] Object to be assigned
101
+
# @!visibility private
102
+
deftype=(type)
103
+
iftype.nil?
104
+
failArgumentError,'invalid value for "type", type cannot be nil.'
105
+
end
106
+
@type=type
107
+
end
108
+
109
+
# Checks equality by comparing each attribute.
110
+
# @param o [Object] Object to be compared
111
+
# @!visibility private
112
+
def ==(o)
113
+
returntrueifself.equal?(o)
114
+
self.class == o.class &&
115
+
alignment == o.alignment &&
116
+
quantity == o.quantity &&
117
+
timezone == o.timezone &&
118
+
type == o.type
119
+
end
120
+
121
+
# Calculates hash code according to all attributes.
0 commit comments