Class: Falcon::JsonschemaSubSchema
- Inherits:
-
Object
- Object
- Falcon::JsonschemaSubSchema
- Defined in:
- lib/crimson-falcon/models/jsonschema_sub_schema.rb
Instance Attribute Summary collapse
-
#_else ⇒ Object
Returns the value of attribute _else.
-
#_if ⇒ Object
Returns the value of attribute _if.
-
#_not ⇒ Object
Returns the value of attribute _not.
-
#_then ⇒ Object
Returns the value of attribute _then.
-
#additional_items ⇒ Object
Returns the value of attribute additional_items.
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#all_of ⇒ Object
Returns the value of attribute all_of.
-
#any_of ⇒ Object
Returns the value of attribute any_of.
-
#binary_encoding ⇒ Object
Returns the value of attribute binary_encoding.
-
#const ⇒ Object
Returns the value of attribute const.
-
#default ⇒ Object
Returns the value of attribute default.
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#deprecated ⇒ Object
Returns the value of attribute deprecated.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enum ⇒ Object
Returns the value of attribute enum.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#examples ⇒ Object
Returns the value of attribute examples.
-
#exclusive_maximum ⇒ Object
Returns the value of attribute exclusive_maximum.
-
#exclusive_minimum ⇒ Object
Returns the value of attribute exclusive_minimum.
-
#format ⇒ Object
Returns the value of attribute format.
-
#items ⇒ Object
Returns the value of attribute items.
-
#max_items ⇒ Object
Returns the value of attribute max_items.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#max_properties ⇒ Object
Returns the value of attribute max_properties.
-
#maximum ⇒ Object
Returns the value of attribute maximum.
-
#media ⇒ Object
Returns the value of attribute media.
-
#min_items ⇒ Object
Returns the value of attribute min_items.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#min_properties ⇒ Object
Returns the value of attribute min_properties.
-
#minimum ⇒ Object
Returns the value of attribute minimum.
-
#multiple_of ⇒ Object
Returns the value of attribute multiple_of.
-
#one_of ⇒ Object
Returns the value of attribute one_of.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#pattern_properties ⇒ Object
Returns the value of attribute pattern_properties.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#required ⇒ Object
Returns the value of attribute required.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
-
#uicomponent ⇒ Object
Returns the value of attribute uicomponent.
-
#unique_items ⇒ Object
Returns the value of attribute unique_items.
-
#x_cs_authorization ⇒ Object
Returns the value of attribute x_cs_authorization.
-
#x_cs_can_create ⇒ Object
Returns the value of attribute x_cs_can_create.
-
#x_cs_condition_group_fields ⇒ Object
Returns the value of attribute x_cs_condition_group_fields.
-
#x_cs_do_not_hide ⇒ Object
Returns the value of attribute x_cs_do_not_hide.
-
#x_cs_indexable ⇒ Object
Returns the value of attribute x_cs_indexable.
-
#x_cs_indexable_fields ⇒ Object
Returns the value of attribute x_cs_indexable_fields.
-
#x_cs_max_duration ⇒ Object
Returns the value of attribute x_cs_max_duration.
-
#x_cs_min_duration ⇒ Object
Returns the value of attribute x_cs_min_duration.
-
#x_cs_not_parameterizable ⇒ Object
Returns the value of attribute x_cs_not_parameterizable.
-
#x_cs_order ⇒ Object
Returns the value of attribute x_cs_order.
-
#x_cs_pivot ⇒ Object
Returns the value of attribute x_cs_pivot.
-
#x_cs_signals ⇒ Object
Returns the value of attribute x_cs_signals.
-
#x_cs_signals_category ⇒ Object
Returns the value of attribute x_cs_signals_category.
-
#x_cs_signals_operators ⇒ Object
Returns the value of attribute x_cs_signals_operators.
-
#x_cs_signals_sub_category ⇒ Object
Returns the value of attribute x_cs_signals_sub_category.
-
#x_cs_tags ⇒ Object
Returns the value of attribute x_cs_tags.
-
#x_cs_workflow ⇒ Object
Returns the value of attribute x_cs_workflow.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ JsonschemaSubSchema
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ JsonschemaSubSchema
Initializes the object
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 296 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::JsonschemaSubSchema` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `Falcon::JsonschemaSubSchema`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'ref') self.ref = attributes[:'ref'] end if attributes.key?(:'schema') self.schema = attributes[:'schema'] end if attributes.key?(:'additional_items') self.additional_items = attributes[:'additional_items'] end if attributes.key?(:'additional_properties') self.additional_properties = attributes[:'additional_properties'] end if attributes.key?(:'all_of') if (value = attributes[:'all_of']).is_a?(Array) self.all_of = value end end if attributes.key?(:'any_of') if (value = attributes[:'any_of']).is_a?(Array) self.any_of = value end end if attributes.key?(:'binary_encoding') self.binary_encoding = attributes[:'binary_encoding'] end if attributes.key?(:'const') self.const = attributes[:'const'] end if attributes.key?(:'default') self.default = attributes[:'default'] end if attributes.key?(:'dependencies') if (value = attributes[:'dependencies']).is_a?(Hash) self.dependencies = value end end if attributes.key?(:'deprecated') self.deprecated = attributes[:'deprecated'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'_else') self._else = attributes[:'_else'] end if attributes.key?(:'enum') if (value = attributes[:'enum']).is_a?(Array) self.enum = value end end if attributes.key?(:'error_message') self. = attributes[:'error_message'] end if attributes.key?(:'examples') if (value = attributes[:'examples']).is_a?(Array) self.examples = value end end if attributes.key?(:'exclusive_maximum') self.exclusive_maximum = attributes[:'exclusive_maximum'] end if attributes.key?(:'exclusive_minimum') self.exclusive_minimum = attributes[:'exclusive_minimum'] end if attributes.key?(:'format') self.format = attributes[:'format'] end if attributes.key?(:'_if') self._if = attributes[:'_if'] end if attributes.key?(:'items') self.items = attributes[:'items'] end if attributes.key?(:'max_items') self.max_items = attributes[:'max_items'] end if attributes.key?(:'max_length') self.max_length = attributes[:'max_length'] end if attributes.key?(:'max_properties') self.max_properties = attributes[:'max_properties'] end if attributes.key?(:'maximum') self.maximum = attributes[:'maximum'] end if attributes.key?(:'media') self.media = attributes[:'media'] end if attributes.key?(:'min_items') self.min_items = attributes[:'min_items'] end if attributes.key?(:'min_length') self.min_length = attributes[:'min_length'] end if attributes.key?(:'min_properties') self.min_properties = attributes[:'min_properties'] end if attributes.key?(:'minimum') self.minimum = attributes[:'minimum'] end if attributes.key?(:'multiple_of') self.multiple_of = attributes[:'multiple_of'] end if attributes.key?(:'_not') self._not = attributes[:'_not'] end if attributes.key?(:'one_of') if (value = attributes[:'one_of']).is_a?(Array) self.one_of = value end end if attributes.key?(:'pattern') self.pattern = attributes[:'pattern'] end if attributes.key?(:'pattern_properties') if (value = attributes[:'pattern_properties']).is_a?(Hash) self.pattern_properties = value end end if attributes.key?(:'properties') if (value = attributes[:'properties']).is_a?(Hash) self.properties = value end end if attributes.key?(:'required') if (value = attributes[:'required']).is_a?(Array) self.required = value end end if attributes.key?(:'_then') self._then = attributes[:'_then'] end if attributes.key?(:'title') self.title = attributes[:'title'] end if attributes.key?(:'type') self.type = attributes[:'type'] end if attributes.key?(:'uicomponent') self.uicomponent = attributes[:'uicomponent'] end if attributes.key?(:'unique_items') self.unique_items = attributes[:'unique_items'] end if attributes.key?(:'x_cs_authorization') self. = attributes[:'x_cs_authorization'] end if attributes.key?(:'x_cs_can_create') self.x_cs_can_create = attributes[:'x_cs_can_create'] end if attributes.key?(:'x_cs_condition_group_fields') self.x_cs_condition_group_fields = attributes[:'x_cs_condition_group_fields'] end if attributes.key?(:'x_cs_do_not_hide') self.x_cs_do_not_hide = attributes[:'x_cs_do_not_hide'] end if attributes.key?(:'x_cs_indexable') self.x_cs_indexable = attributes[:'x_cs_indexable'] end if attributes.key?(:'x_cs_indexable_fields') if (value = attributes[:'x_cs_indexable_fields']).is_a?(Array) self.x_cs_indexable_fields = value end end if attributes.key?(:'x_cs_max_duration') self.x_cs_max_duration = attributes[:'x_cs_max_duration'] end if attributes.key?(:'x_cs_min_duration') self.x_cs_min_duration = attributes[:'x_cs_min_duration'] end if attributes.key?(:'x_cs_not_parameterizable') self.x_cs_not_parameterizable = attributes[:'x_cs_not_parameterizable'] end if attributes.key?(:'x_cs_order') if (value = attributes[:'x_cs_order']).is_a?(Array) self.x_cs_order = value end end if attributes.key?(:'x_cs_pivot') self.x_cs_pivot = attributes[:'x_cs_pivot'] end if attributes.key?(:'x_cs_signals') self.x_cs_signals = attributes[:'x_cs_signals'] end if attributes.key?(:'x_cs_signals_category') self.x_cs_signals_category = attributes[:'x_cs_signals_category'] end if attributes.key?(:'x_cs_signals_operators') if (value = attributes[:'x_cs_signals_operators']).is_a?(Array) self.x_cs_signals_operators = value end end if attributes.key?(:'x_cs_signals_sub_category') self.x_cs_signals_sub_category = attributes[:'x_cs_signals_sub_category'] end if attributes.key?(:'x_cs_tags') if (value = attributes[:'x_cs_tags']).is_a?(Array) self. = value end end if attributes.key?(:'x_cs_workflow') self.x_cs_workflow = attributes[:'x_cs_workflow'] end end |
Instance Attribute Details
#_else ⇒ Object
Returns the value of attribute _else.
59 60 61 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 59 def _else @_else end |
#_if ⇒ Object
Returns the value of attribute _if.
73 74 75 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 73 def _if @_if end |
#_not ⇒ Object
Returns the value of attribute _not.
97 98 99 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 97 def _not @_not end |
#_then ⇒ Object
Returns the value of attribute _then.
109 110 111 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 109 def _then @_then end |
#additional_items ⇒ Object
Returns the value of attribute additional_items.
39 40 41 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 39 def additional_items @additional_items end |
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
41 42 43 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 41 def additional_properties @additional_properties end |
#all_of ⇒ Object
Returns the value of attribute all_of.
43 44 45 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 43 def all_of @all_of end |
#any_of ⇒ Object
Returns the value of attribute any_of.
45 46 47 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 45 def any_of @any_of end |
#binary_encoding ⇒ Object
Returns the value of attribute binary_encoding.
47 48 49 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 47 def binary_encoding @binary_encoding end |
#const ⇒ Object
Returns the value of attribute const.
49 50 51 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 49 def const @const end |
#default ⇒ Object
Returns the value of attribute default.
51 52 53 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 51 def default @default end |
#dependencies ⇒ Object
Returns the value of attribute dependencies.
53 54 55 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 53 def dependencies @dependencies end |
#deprecated ⇒ Object
Returns the value of attribute deprecated.
55 56 57 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 55 def deprecated @deprecated end |
#description ⇒ Object
Returns the value of attribute description.
57 58 59 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 57 def description @description end |
#enum ⇒ Object
Returns the value of attribute enum.
61 62 63 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 61 def enum @enum end |
#error_message ⇒ Object
Returns the value of attribute error_message.
63 64 65 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 63 def @error_message end |
#examples ⇒ Object
Returns the value of attribute examples.
65 66 67 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 65 def examples @examples end |
#exclusive_maximum ⇒ Object
Returns the value of attribute exclusive_maximum.
67 68 69 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 67 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Object
Returns the value of attribute exclusive_minimum.
69 70 71 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 69 def exclusive_minimum @exclusive_minimum end |
#format ⇒ Object
Returns the value of attribute format.
71 72 73 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 71 def format @format end |
#items ⇒ Object
Returns the value of attribute items.
75 76 77 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 75 def items @items end |
#max_items ⇒ Object
Returns the value of attribute max_items.
77 78 79 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 77 def max_items @max_items end |
#max_length ⇒ Object
Returns the value of attribute max_length.
79 80 81 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 79 def max_length @max_length end |
#max_properties ⇒ Object
Returns the value of attribute max_properties.
81 82 83 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 81 def max_properties @max_properties end |
#maximum ⇒ Object
Returns the value of attribute maximum.
83 84 85 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 83 def maximum @maximum end |
#media ⇒ Object
Returns the value of attribute media.
85 86 87 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 85 def media @media end |
#min_items ⇒ Object
Returns the value of attribute min_items.
87 88 89 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 87 def min_items @min_items end |
#min_length ⇒ Object
Returns the value of attribute min_length.
89 90 91 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 89 def min_length @min_length end |
#min_properties ⇒ Object
Returns the value of attribute min_properties.
91 92 93 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 91 def min_properties @min_properties end |
#minimum ⇒ Object
Returns the value of attribute minimum.
93 94 95 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 93 def minimum @minimum end |
#multiple_of ⇒ Object
Returns the value of attribute multiple_of.
95 96 97 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 95 def multiple_of @multiple_of end |
#one_of ⇒ Object
Returns the value of attribute one_of.
99 100 101 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 99 def one_of @one_of end |
#pattern ⇒ Object
Returns the value of attribute pattern.
101 102 103 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 101 def pattern @pattern end |
#pattern_properties ⇒ Object
Returns the value of attribute pattern_properties.
103 104 105 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 103 def pattern_properties @pattern_properties end |
#properties ⇒ Object
Returns the value of attribute properties.
105 106 107 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 105 def properties @properties end |
#ref ⇒ Object
Returns the value of attribute ref.
35 36 37 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 35 def ref @ref end |
#required ⇒ Object
Returns the value of attribute required.
107 108 109 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 107 def required @required end |
#schema ⇒ Object
Returns the value of attribute schema.
37 38 39 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 37 def schema @schema end |
#title ⇒ Object
Returns the value of attribute title.
111 112 113 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 111 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
113 114 115 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 113 def type @type end |
#uicomponent ⇒ Object
Returns the value of attribute uicomponent.
115 116 117 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 115 def uicomponent @uicomponent end |
#unique_items ⇒ Object
Returns the value of attribute unique_items.
117 118 119 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 117 def unique_items @unique_items end |
#x_cs_authorization ⇒ Object
Returns the value of attribute x_cs_authorization.
119 120 121 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 119 def @x_cs_authorization end |
#x_cs_can_create ⇒ Object
Returns the value of attribute x_cs_can_create.
121 122 123 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 121 def x_cs_can_create @x_cs_can_create end |
#x_cs_condition_group_fields ⇒ Object
Returns the value of attribute x_cs_condition_group_fields.
123 124 125 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 123 def x_cs_condition_group_fields @x_cs_condition_group_fields end |
#x_cs_do_not_hide ⇒ Object
Returns the value of attribute x_cs_do_not_hide.
125 126 127 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 125 def x_cs_do_not_hide @x_cs_do_not_hide end |
#x_cs_indexable ⇒ Object
Returns the value of attribute x_cs_indexable.
127 128 129 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 127 def x_cs_indexable @x_cs_indexable end |
#x_cs_indexable_fields ⇒ Object
Returns the value of attribute x_cs_indexable_fields.
129 130 131 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 129 def x_cs_indexable_fields @x_cs_indexable_fields end |
#x_cs_max_duration ⇒ Object
Returns the value of attribute x_cs_max_duration.
131 132 133 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 131 def x_cs_max_duration @x_cs_max_duration end |
#x_cs_min_duration ⇒ Object
Returns the value of attribute x_cs_min_duration.
133 134 135 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 133 def x_cs_min_duration @x_cs_min_duration end |
#x_cs_not_parameterizable ⇒ Object
Returns the value of attribute x_cs_not_parameterizable.
135 136 137 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 135 def x_cs_not_parameterizable @x_cs_not_parameterizable end |
#x_cs_order ⇒ Object
Returns the value of attribute x_cs_order.
137 138 139 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 137 def x_cs_order @x_cs_order end |
#x_cs_pivot ⇒ Object
Returns the value of attribute x_cs_pivot.
139 140 141 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 139 def x_cs_pivot @x_cs_pivot end |
#x_cs_signals ⇒ Object
Returns the value of attribute x_cs_signals.
141 142 143 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 141 def x_cs_signals @x_cs_signals end |
#x_cs_signals_category ⇒ Object
Returns the value of attribute x_cs_signals_category.
143 144 145 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 143 def x_cs_signals_category @x_cs_signals_category end |
#x_cs_signals_operators ⇒ Object
Returns the value of attribute x_cs_signals_operators.
145 146 147 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 145 def x_cs_signals_operators @x_cs_signals_operators end |
#x_cs_signals_sub_category ⇒ Object
Returns the value of attribute x_cs_signals_sub_category.
147 148 149 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 147 def x_cs_signals_sub_category @x_cs_signals_sub_category end |
#x_cs_tags ⇒ Object
Returns the value of attribute x_cs_tags.
149 150 151 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 149 def @x_cs_tags end |
#x_cs_workflow ⇒ Object
Returns the value of attribute x_cs_workflow.
151 152 153 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 151 def x_cs_workflow @x_cs_workflow end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
219 220 221 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 219 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 154 def self.attribute_map { :'ref' => :'$ref', :'schema' => :'$schema', :'additional_items' => :'additionalItems', :'additional_properties' => :'additionalProperties', :'all_of' => :'allOf', :'any_of' => :'anyOf', :'binary_encoding' => :'binaryEncoding', :'const' => :'const', :'default' => :'default', :'dependencies' => :'dependencies', :'deprecated' => :'deprecated', :'description' => :'description', :'_else' => :'else', :'enum' => :'enum', :'error_message' => :'errorMessage', :'examples' => :'examples', :'exclusive_maximum' => :'exclusiveMaximum', :'exclusive_minimum' => :'exclusiveMinimum', :'format' => :'format', :'_if' => :'if', :'items' => :'items', :'max_items' => :'maxItems', :'max_length' => :'maxLength', :'max_properties' => :'maxProperties', :'maximum' => :'maximum', :'media' => :'media', :'min_items' => :'minItems', :'min_length' => :'minLength', :'min_properties' => :'minProperties', :'minimum' => :'minimum', :'multiple_of' => :'multipleOf', :'_not' => :'not', :'one_of' => :'oneOf', :'pattern' => :'pattern', :'pattern_properties' => :'patternProperties', :'properties' => :'properties', :'required' => :'required', :'_then' => :'then', :'title' => :'title', :'type' => :'type', :'uicomponent' => :'ui:component', :'unique_items' => :'uniqueItems', :'x_cs_authorization' => :'x-cs-authorization', :'x_cs_can_create' => :'x-cs-can-create', :'x_cs_condition_group_fields' => :'x-cs-condition-group-fields', :'x_cs_do_not_hide' => :'x-cs-do-not-hide', :'x_cs_indexable' => :'x-cs-indexable', :'x_cs_indexable_fields' => :'x-cs-indexable-fields', :'x_cs_max_duration' => :'x-cs-max-duration', :'x_cs_min_duration' => :'x-cs-min-duration', :'x_cs_not_parameterizable' => :'x-cs-not-parameterizable', :'x_cs_order' => :'x-cs-order', :'x_cs_pivot' => :'x-cs-pivot', :'x_cs_signals' => :'x-cs-signals', :'x_cs_signals_category' => :'x-cs-signals-category', :'x_cs_signals_operators' => :'x-cs-signals-operators', :'x_cs_signals_sub_category' => :'x-cs-signals-subCategory', :'x_cs_tags' => :'x-cs-tags', :'x_cs_workflow' => :'x-cs-workflow' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
666 667 668 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 666 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
289 290 291 292 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 289 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 224 def self.openapi_types { :'ref' => :'String', :'schema' => :'String', :'additional_items' => :'String', :'additional_properties' => :'String', :'all_of' => :'Array<JsonschemaSubSchema>', :'any_of' => :'Array<JsonschemaSubSchema>', :'binary_encoding' => :'String', :'const' => :'Object', :'default' => :'Object', :'dependencies' => :'Hash<String, JsonschemaSubSchema>', :'deprecated' => :'Boolean', :'description' => :'String', :'_else' => :'JsonschemaSubSchema', :'enum' => :'Array<Object>', :'error_message' => :'String', :'examples' => :'Array<Object>', :'exclusive_maximum' => :'Boolean', :'exclusive_minimum' => :'Boolean', :'format' => :'String', :'_if' => :'JsonschemaSubSchema', :'items' => :'JsonschemaSubSchema', :'max_items' => :'Integer', :'max_length' => :'Integer', :'max_properties' => :'Integer', :'maximum' => :'Integer', :'media' => :'JsonschemaSubSchema', :'min_items' => :'Integer', :'min_length' => :'Integer', :'min_properties' => :'Integer', :'minimum' => :'Integer', :'multiple_of' => :'Integer', :'_not' => :'JsonschemaSubSchema', :'one_of' => :'Array<JsonschemaSubSchema>', :'pattern' => :'String', :'pattern_properties' => :'Hash<String, JsonschemaSubSchema>', :'properties' => :'Hash<String, JsonschemaSubSchema>', :'required' => :'Array<String>', :'_then' => :'JsonschemaSubSchema', :'title' => :'String', :'type' => :'String', :'uicomponent' => :'String', :'unique_items' => :'Boolean', :'x_cs_authorization' => :'JsonschemaAuthorization', :'x_cs_can_create' => :'Boolean', :'x_cs_condition_group_fields' => :'JsonschemaConditionGroupFields', :'x_cs_do_not_hide' => :'Boolean', :'x_cs_indexable' => :'Boolean', :'x_cs_indexable_fields' => :'Array<JsonschemaCollectionIndexField>', :'x_cs_max_duration' => :'Integer', :'x_cs_min_duration' => :'Integer', :'x_cs_not_parameterizable' => :'Boolean', :'x_cs_order' => :'Array<String>', :'x_cs_pivot' => :'JsonschemaPivot', :'x_cs_signals' => :'JsonschemaSignalsExtensions', :'x_cs_signals_category' => :'String', :'x_cs_signals_operators' => :'Array<String>', :'x_cs_signals_sub_category' => :'String', :'x_cs_tags' => :'Array<String>', :'x_cs_workflow' => :'JsonschemaWorkflowExtensions' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 587 def ==(o) return true if self.equal?(o) self.class == o.class && ref == o.ref && schema == o.schema && additional_items == o.additional_items && additional_properties == o.additional_properties && all_of == o.all_of && any_of == o.any_of && binary_encoding == o.binary_encoding && const == o.const && default == o.default && dependencies == o.dependencies && deprecated == o.deprecated && description == o.description && _else == o._else && enum == o.enum && == o. && examples == o.examples && exclusive_maximum == o.exclusive_maximum && exclusive_minimum == o.exclusive_minimum && format == o.format && _if == o._if && items == o.items && max_items == o.max_items && max_length == o.max_length && max_properties == o.max_properties && maximum == o.maximum && media == o.media && min_items == o.min_items && min_length == o.min_length && min_properties == o.min_properties && minimum == o.minimum && multiple_of == o.multiple_of && _not == o._not && one_of == o.one_of && pattern == o.pattern && pattern_properties == o.pattern_properties && properties == o.properties && required == o.required && _then == o._then && title == o.title && type == o.type && uicomponent == o.uicomponent && unique_items == o.unique_items && == o. && x_cs_can_create == o.x_cs_can_create && x_cs_condition_group_fields == o.x_cs_condition_group_fields && x_cs_do_not_hide == o.x_cs_do_not_hide && x_cs_indexable == o.x_cs_indexable && x_cs_indexable_fields == o.x_cs_indexable_fields && x_cs_max_duration == o.x_cs_max_duration && x_cs_min_duration == o.x_cs_min_duration && x_cs_not_parameterizable == o.x_cs_not_parameterizable && x_cs_order == o.x_cs_order && x_cs_pivot == o.x_cs_pivot && x_cs_signals == o.x_cs_signals && x_cs_signals_category == o.x_cs_signals_category && x_cs_signals_operators == o.x_cs_signals_operators && x_cs_signals_sub_category == o.x_cs_signals_sub_category && == o. && x_cs_workflow == o.x_cs_workflow end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 697 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = Falcon.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
768 769 770 771 772 773 774 775 776 777 778 779 780 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 768 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 673 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
653 654 655 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 653 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
659 660 661 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 659 def hash [ref, schema, additional_items, additional_properties, all_of, any_of, binary_encoding, const, default, dependencies, deprecated, description, _else, enum, , examples, exclusive_maximum, exclusive_minimum, format, _if, items, max_items, max_length, max_properties, maximum, media, min_items, min_length, min_properties, minimum, multiple_of, _not, one_of, pattern, pattern_properties, properties, required, _then, title, type, uicomponent, unique_items, , x_cs_can_create, x_cs_condition_group_fields, x_cs_do_not_hide, x_cs_indexable, x_cs_indexable_fields, x_cs_max_duration, x_cs_min_duration, x_cs_not_parameterizable, x_cs_order, x_cs_pivot, x_cs_signals, x_cs_signals_category, x_cs_signals_operators, x_cs_signals_sub_category, , x_cs_workflow].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
574 575 576 577 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 574 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
744 745 746 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 744 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 750 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
738 739 740 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 738 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
581 582 583 |
# File 'lib/crimson-falcon/models/jsonschema_sub_schema.rb', line 581 def valid? true end |