@@ -130,15 +130,15 @@ def list_invalid_properties
130130 # @return true if the model is valid
131131 def valid?
132132 return false if @type . nil?
133- type_validator = EnumAttributeValidator . new ( 'String' , [ "authorizations" , "buckets" , "dashboards" , "orgs" , "sources" , "tasks" , "telegrafs" , "users" , "variables" , "scrapers" , "secrets" , "labels" , "views" , "documents" , "notificationRules" , "notificationEndpoints" , "checks" , "dbrp" , "notebooks" , "annotations" , "remotes" , "replications" ] )
133+ type_validator = EnumAttributeValidator . new ( 'String' , [ "authorizations" , "buckets" , "dashboards" , "orgs" , "sources" , "tasks" , "telegrafs" , "users" , "variables" , "scrapers" , "secrets" , "labels" , "views" , "documents" , "notificationRules" , "notificationEndpoints" , "checks" , "dbrp" , "notebooks" , "annotations" , "remotes" , "replications" , "flows" , "functions" ] )
134134 return false unless type_validator . valid? ( @type )
135135 true
136136 end
137137
138138 # Custom attribute writer method checking allowed values (enum).
139139 # @param [Object] type Object to be assigned
140140 def type = ( type )
141- validator = EnumAttributeValidator . new ( 'String' , [ "authorizations" , "buckets" , "dashboards" , "orgs" , "sources" , "tasks" , "telegrafs" , "users" , "variables" , "scrapers" , "secrets" , "labels" , "views" , "documents" , "notificationRules" , "notificationEndpoints" , "checks" , "dbrp" , "notebooks" , "annotations" , "remotes" , "replications" ] )
141+ validator = EnumAttributeValidator . new ( 'String' , [ "authorizations" , "buckets" , "dashboards" , "orgs" , "sources" , "tasks" , "telegrafs" , "users" , "variables" , "scrapers" , "secrets" , "labels" , "views" , "documents" , "notificationRules" , "notificationEndpoints" , "checks" , "dbrp" , "notebooks" , "annotations" , "remotes" , "replications" , "flows" , "functions" ] )
142142 unless validator . valid? ( type )
143143 fail ArgumentError , "invalid value for \" type\" , must be one of #{ validator . allowable_values } ."
144144 end
0 commit comments