Class: OryClient::ProjectBrandingTheme
- Inherits:
-
Object
- Object
- OryClient::ProjectBrandingTheme
- Defined in:
- lib/ory-client/models/project_branding_theme.rb
Instance Attribute Summary collapse
-
#accent_default_color ⇒ Object
AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
-
#accent_disabled_color ⇒ Object
AccentDisabledColor is a hex color code used by the Ory Account Experience theme.
-
#accent_emphasis_color ⇒ Object
AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.
-
#accent_muted_color ⇒ Object
AccentMutedColor is a hex color code used by the Ory Account Experience theme.
-
#accent_subtle_color ⇒ Object
AccentSubtleColor is a hex color code used by the Ory Account Experience theme.
-
#background_canvas_color ⇒ Object
BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.
-
#background_subtle_color ⇒ Object
BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.
-
#background_surface_color ⇒ Object
BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.
-
#border_default_color ⇒ Object
BorderDefaultColor is a hex color code used by the Ory Account Experience theme.
-
#created_at ⇒ Object
The Customization Creation Date.
-
#error_default_color ⇒ Object
ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.
-
#error_emphasis_color ⇒ Object
ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.
-
#error_muted_color ⇒ Object
ErrorMutedColor is a hex color code used by the Ory Account Experience theme.
-
#error_subtle_color ⇒ Object
ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.
-
#favicon_type ⇒ Object
Favicon Type The Favicon mime type.
-
#favicon_url ⇒ Object
Favicon URL Favicon can be an https:// or base64:// URL.
-
#foreground_default_color ⇒ Object
ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_disabled_color ⇒ Object
ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_muted_color ⇒ Object
ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_on_accent_color ⇒ Object
ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_on_dark_color ⇒ Object
ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_on_disabled_color ⇒ Object
ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.
-
#foreground_subtle_color ⇒ Object
ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.
-
#id ⇒ Object
The customization theme ID.
-
#input_background_color ⇒ Object
InputBackgroundColor is a hex color code used by the Ory Account Experience theme.
-
#input_disabled_color ⇒ Object
InputDisabledColor is a hex color code used by the Ory Account Experience theme.
-
#input_placeholder_color ⇒ Object
InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.
-
#input_text_color ⇒ Object
InputTextColor is a hex color code used by the Ory Account Experience theme.
-
#logo_type ⇒ Object
Logo Type The Logo mime type.
-
#logo_url ⇒ Object
Logo URL Logo can be an https:// or base64:// URL.
-
#name ⇒ Object
The customization theme name.
-
#primary_color ⇒ Object
Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.
-
#project_branding_id ⇒ Object
The ProjectBranding ID this customization is associated with.
-
#secondary_color ⇒ Object
Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.
-
#success_emphasis_color ⇒ Object
SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.
-
#text_default_color ⇒ Object
TextDefaultColor is a hex color code used by the Ory Account Experience theme.
-
#text_disabled_color ⇒ Object
TextDisabledColor is a hex color code used by the Ory Account Experience theme.
-
#updated_at ⇒ Object
Last Time Branding was Updated.
Class Method Summary collapse
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.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.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ProjectBrandingTheme
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 = {}) ⇒ ProjectBrandingTheme
Initializes the object
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 287 288 289 290 291 292 293 294 295 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 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 233 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::ProjectBrandingTheme` 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 `OryClient::ProjectBrandingTheme`. 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?(:'accent_default_color') self.accent_default_color = attributes[:'accent_default_color'] end if attributes.key?(:'accent_disabled_color') self.accent_disabled_color = attributes[:'accent_disabled_color'] end if attributes.key?(:'accent_emphasis_color') self.accent_emphasis_color = attributes[:'accent_emphasis_color'] end if attributes.key?(:'accent_muted_color') self.accent_muted_color = attributes[:'accent_muted_color'] end if attributes.key?(:'accent_subtle_color') self.accent_subtle_color = attributes[:'accent_subtle_color'] end if attributes.key?(:'background_canvas_color') self.background_canvas_color = attributes[:'background_canvas_color'] end if attributes.key?(:'background_subtle_color') self.background_subtle_color = attributes[:'background_subtle_color'] end if attributes.key?(:'background_surface_color') self.background_surface_color = attributes[:'background_surface_color'] end if attributes.key?(:'border_default_color') self.border_default_color = attributes[:'border_default_color'] end if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] else self.created_at = nil end if attributes.key?(:'error_default_color') self.error_default_color = attributes[:'error_default_color'] end if attributes.key?(:'error_emphasis_color') self.error_emphasis_color = attributes[:'error_emphasis_color'] end if attributes.key?(:'error_muted_color') self.error_muted_color = attributes[:'error_muted_color'] end if attributes.key?(:'error_subtle_color') self.error_subtle_color = attributes[:'error_subtle_color'] end if attributes.key?(:'favicon_type') self.favicon_type = attributes[:'favicon_type'] end if attributes.key?(:'favicon_url') self.favicon_url = attributes[:'favicon_url'] end if attributes.key?(:'foreground_default_color') self.foreground_default_color = attributes[:'foreground_default_color'] end if attributes.key?(:'foreground_disabled_color') self.foreground_disabled_color = attributes[:'foreground_disabled_color'] end if attributes.key?(:'foreground_muted_color') self.foreground_muted_color = attributes[:'foreground_muted_color'] end if attributes.key?(:'foreground_on_accent_color') self.foreground_on_accent_color = attributes[:'foreground_on_accent_color'] end if attributes.key?(:'foreground_on_dark_color') self.foreground_on_dark_color = attributes[:'foreground_on_dark_color'] end if attributes.key?(:'foreground_on_disabled_color') self.foreground_on_disabled_color = attributes[:'foreground_on_disabled_color'] end if attributes.key?(:'foreground_subtle_color') self.foreground_subtle_color = attributes[:'foreground_subtle_color'] end if attributes.key?(:'id') self.id = attributes[:'id'] else self.id = nil end if attributes.key?(:'input_background_color') self.input_background_color = attributes[:'input_background_color'] end if attributes.key?(:'input_disabled_color') self.input_disabled_color = attributes[:'input_disabled_color'] end if attributes.key?(:'input_placeholder_color') self.input_placeholder_color = attributes[:'input_placeholder_color'] end if attributes.key?(:'input_text_color') self.input_text_color = attributes[:'input_text_color'] end if attributes.key?(:'logo_type') self.logo_type = attributes[:'logo_type'] end if attributes.key?(:'logo_url') self.logo_url = attributes[:'logo_url'] end if attributes.key?(:'name') self.name = attributes[:'name'] else self.name = nil end if attributes.key?(:'primary_color') self.primary_color = attributes[:'primary_color'] end if attributes.key?(:'project_branding_id') self.project_branding_id = attributes[:'project_branding_id'] else self.project_branding_id = nil end if attributes.key?(:'secondary_color') self.secondary_color = attributes[:'secondary_color'] end if attributes.key?(:'success_emphasis_color') self.success_emphasis_color = attributes[:'success_emphasis_color'] end if attributes.key?(:'text_default_color') self.text_default_color = attributes[:'text_default_color'] end if attributes.key?(:'text_disabled_color') self.text_disabled_color = attributes[:'text_disabled_color'] end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] else self.updated_at = nil end end |
Instance Attribute Details
#accent_default_color ⇒ Object
AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
19 20 21 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 19 def accent_default_color @accent_default_color end |
#accent_disabled_color ⇒ Object
AccentDisabledColor is a hex color code used by the Ory Account Experience theme.
22 23 24 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 22 def accent_disabled_color @accent_disabled_color end |
#accent_emphasis_color ⇒ Object
AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.
25 26 27 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 25 def accent_emphasis_color @accent_emphasis_color end |
#accent_muted_color ⇒ Object
AccentMutedColor is a hex color code used by the Ory Account Experience theme.
28 29 30 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 28 def accent_muted_color @accent_muted_color end |
#accent_subtle_color ⇒ Object
AccentSubtleColor is a hex color code used by the Ory Account Experience theme.
31 32 33 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 31 def accent_subtle_color @accent_subtle_color end |
#background_canvas_color ⇒ Object
BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.
34 35 36 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 34 def background_canvas_color @background_canvas_color end |
#background_subtle_color ⇒ Object
BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.
37 38 39 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 37 def background_subtle_color @background_subtle_color end |
#background_surface_color ⇒ Object
BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.
40 41 42 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 40 def background_surface_color @background_surface_color end |
#border_default_color ⇒ Object
BorderDefaultColor is a hex color code used by the Ory Account Experience theme.
43 44 45 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 43 def border_default_color @border_default_color end |
#created_at ⇒ Object
The Customization Creation Date.
46 47 48 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 46 def created_at @created_at end |
#error_default_color ⇒ Object
ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.
49 50 51 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 49 def error_default_color @error_default_color end |
#error_emphasis_color ⇒ Object
ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.
52 53 54 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 52 def error_emphasis_color @error_emphasis_color end |
#error_muted_color ⇒ Object
ErrorMutedColor is a hex color code used by the Ory Account Experience theme.
55 56 57 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 55 def error_muted_color @error_muted_color end |
#error_subtle_color ⇒ Object
ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.
58 59 60 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 58 def error_subtle_color @error_subtle_color end |
#favicon_type ⇒ Object
Favicon Type The Favicon mime type.
61 62 63 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 61 def favicon_type @favicon_type end |
#favicon_url ⇒ Object
Favicon URL Favicon can be an https:// or base64:// URL. If the URL is not allowed, the favicon will be stored inside the Ory Network storage bucket.
64 65 66 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 64 def favicon_url @favicon_url end |
#foreground_default_color ⇒ Object
ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.
67 68 69 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 67 def foreground_default_color @foreground_default_color end |
#foreground_disabled_color ⇒ Object
ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.
70 71 72 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 70 def foreground_disabled_color @foreground_disabled_color end |
#foreground_muted_color ⇒ Object
ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.
73 74 75 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 73 def foreground_muted_color @foreground_muted_color end |
#foreground_on_accent_color ⇒ Object
ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.
76 77 78 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 76 def foreground_on_accent_color @foreground_on_accent_color end |
#foreground_on_dark_color ⇒ Object
ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.
79 80 81 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 79 def foreground_on_dark_color @foreground_on_dark_color end |
#foreground_on_disabled_color ⇒ Object
ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.
82 83 84 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 82 def foreground_on_disabled_color @foreground_on_disabled_color end |
#foreground_subtle_color ⇒ Object
ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.
85 86 87 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 85 def foreground_subtle_color @foreground_subtle_color end |
#id ⇒ Object
The customization theme ID.
88 89 90 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 88 def id @id end |
#input_background_color ⇒ Object
InputBackgroundColor is a hex color code used by the Ory Account Experience theme.
91 92 93 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 91 def input_background_color @input_background_color end |
#input_disabled_color ⇒ Object
InputDisabledColor is a hex color code used by the Ory Account Experience theme.
94 95 96 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 94 def input_disabled_color @input_disabled_color end |
#input_placeholder_color ⇒ Object
InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.
97 98 99 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 97 def input_placeholder_color @input_placeholder_color end |
#input_text_color ⇒ Object
InputTextColor is a hex color code used by the Ory Account Experience theme.
100 101 102 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 100 def input_text_color @input_text_color end |
#logo_type ⇒ Object
Logo Type The Logo mime type.
103 104 105 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 103 def logo_type @logo_type end |
#logo_url ⇒ Object
Logo URL Logo can be an https:// or base64:// URL. If the URL is not allowed, the logo will be stored inside the Ory Network storage bucket.
106 107 108 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 106 def logo_url @logo_url end |
#name ⇒ Object
The customization theme name.
109 110 111 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 109 def name @name end |
#primary_color ⇒ Object
Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.
112 113 114 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 112 def primary_color @primary_color end |
#project_branding_id ⇒ Object
The ProjectBranding ID this customization is associated with.
115 116 117 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 115 def project_branding_id @project_branding_id end |
#secondary_color ⇒ Object
Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.
118 119 120 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 118 def secondary_color @secondary_color end |
#success_emphasis_color ⇒ Object
SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.
121 122 123 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 121 def success_emphasis_color @success_emphasis_color end |
#text_default_color ⇒ Object
TextDefaultColor is a hex color code used by the Ory Account Experience theme.
124 125 126 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 124 def text_default_color @text_default_color end |
#text_disabled_color ⇒ Object
TextDisabledColor is a hex color code used by the Ory Account Experience theme.
127 128 129 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 127 def text_disabled_color @text_disabled_color end |
#updated_at ⇒ Object
Last Time Branding was Updated.
130 131 132 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 130 def updated_at @updated_at end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
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/ory-client/models/project_branding_theme.rb', line 533 def self._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 = OryClient.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
177 178 179 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 177 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 133 def self.attribute_map { :'accent_default_color' => :'accent_default_color', :'accent_disabled_color' => :'accent_disabled_color', :'accent_emphasis_color' => :'accent_emphasis_color', :'accent_muted_color' => :'accent_muted_color', :'accent_subtle_color' => :'accent_subtle_color', :'background_canvas_color' => :'background_canvas_color', :'background_subtle_color' => :'background_subtle_color', :'background_surface_color' => :'background_surface_color', :'border_default_color' => :'border_default_color', :'created_at' => :'created_at', :'error_default_color' => :'error_default_color', :'error_emphasis_color' => :'error_emphasis_color', :'error_muted_color' => :'error_muted_color', :'error_subtle_color' => :'error_subtle_color', :'favicon_type' => :'favicon_type', :'favicon_url' => :'favicon_url', :'foreground_default_color' => :'foreground_default_color', :'foreground_disabled_color' => :'foreground_disabled_color', :'foreground_muted_color' => :'foreground_muted_color', :'foreground_on_accent_color' => :'foreground_on_accent_color', :'foreground_on_dark_color' => :'foreground_on_dark_color', :'foreground_on_disabled_color' => :'foreground_on_disabled_color', :'foreground_subtle_color' => :'foreground_subtle_color', :'id' => :'id', :'input_background_color' => :'input_background_color', :'input_disabled_color' => :'input_disabled_color', :'input_placeholder_color' => :'input_placeholder_color', :'input_text_color' => :'input_text_color', :'logo_type' => :'logo_type', :'logo_url' => :'logo_url', :'name' => :'name', :'primary_color' => :'primary_color', :'project_branding_id' => :'project_branding_id', :'secondary_color' => :'secondary_color', :'success_emphasis_color' => :'success_emphasis_color', :'text_default_color' => :'text_default_color', :'text_disabled_color' => :'text_disabled_color', :'updated_at' => :'updated_at' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 509 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{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[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
226 227 228 229 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 226 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 217 218 219 220 221 222 223 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 182 def self.openapi_types { :'accent_default_color' => :'String', :'accent_disabled_color' => :'String', :'accent_emphasis_color' => :'String', :'accent_muted_color' => :'String', :'accent_subtle_color' => :'String', :'background_canvas_color' => :'String', :'background_subtle_color' => :'String', :'background_surface_color' => :'String', :'border_default_color' => :'String', :'created_at' => :'Time', :'error_default_color' => :'String', :'error_emphasis_color' => :'String', :'error_muted_color' => :'String', :'error_subtle_color' => :'String', :'favicon_type' => :'String', :'favicon_url' => :'String', :'foreground_default_color' => :'String', :'foreground_disabled_color' => :'String', :'foreground_muted_color' => :'String', :'foreground_on_accent_color' => :'String', :'foreground_on_dark_color' => :'String', :'foreground_on_disabled_color' => :'String', :'foreground_subtle_color' => :'String', :'id' => :'String', :'input_background_color' => :'String', :'input_disabled_color' => :'String', :'input_placeholder_color' => :'String', :'input_text_color' => :'String', :'logo_type' => :'String', :'logo_url' => :'String', :'name' => :'String', :'primary_color' => :'String', :'project_branding_id' => :'String', :'secondary_color' => :'String', :'success_emphasis_color' => :'String', :'text_default_color' => :'String', :'text_disabled_color' => :'String', :'updated_at' => :'Time' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 451 def ==(o) return true if self.equal?(o) self.class == o.class && accent_default_color == o.accent_default_color && accent_disabled_color == o.accent_disabled_color && accent_emphasis_color == o.accent_emphasis_color && accent_muted_color == o.accent_muted_color && accent_subtle_color == o.accent_subtle_color && background_canvas_color == o.background_canvas_color && background_subtle_color == o.background_subtle_color && background_surface_color == o.background_surface_color && border_default_color == o.border_default_color && created_at == o.created_at && error_default_color == o.error_default_color && error_emphasis_color == o.error_emphasis_color && error_muted_color == o.error_muted_color && error_subtle_color == o.error_subtle_color && favicon_type == o.favicon_type && favicon_url == o.favicon_url && foreground_default_color == o.foreground_default_color && foreground_disabled_color == o.foreground_disabled_color && foreground_muted_color == o.foreground_muted_color && foreground_on_accent_color == o.foreground_on_accent_color && foreground_on_dark_color == o.foreground_on_dark_color && foreground_on_disabled_color == o.foreground_on_disabled_color && foreground_subtle_color == o.foreground_subtle_color && id == o.id && input_background_color == o.input_background_color && input_disabled_color == o.input_disabled_color && input_placeholder_color == o.input_placeholder_color && input_text_color == o.input_text_color && logo_type == o.logo_type && logo_url == o.logo_url && name == o.name && primary_color == o.primary_color && project_branding_id == o.project_branding_id && secondary_color == o.secondary_color && success_emphasis_color == o.success_emphasis_color && text_default_color == o.text_default_color && text_disabled_color == o.text_disabled_color && updated_at == o.updated_at end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 604 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 |
#eql?(o) ⇒ Boolean
496 497 498 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 496 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
502 503 504 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 502 def hash [accent_default_color, accent_disabled_color, accent_emphasis_color, accent_muted_color, accent_subtle_color, background_canvas_color, background_subtle_color, background_surface_color, border_default_color, created_at, error_default_color, error_emphasis_color, error_muted_color, error_subtle_color, favicon_type, favicon_url, foreground_default_color, foreground_disabled_color, foreground_muted_color, foreground_on_accent_color, foreground_on_dark_color, foreground_on_disabled_color, foreground_subtle_color, id, input_background_color, input_disabled_color, input_placeholder_color, input_text_color, logo_type, logo_url, name, primary_color, project_branding_id, secondary_color, success_emphasis_color, text_default_color, text_disabled_color, updated_at].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 411 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') end if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end if @project_branding_id.nil? invalid_properties.push('invalid value for "project_branding_id", project_branding_id cannot be nil.') end if @updated_at.nil? invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
580 581 582 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 580 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
586 587 588 589 590 591 592 593 594 595 596 597 598 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 586 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
574 575 576 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 574 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
439 440 441 442 443 444 445 446 447 |
# File 'lib/ory-client/models/project_branding_theme.rb', line 439 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @id.nil? return false if @name.nil? return false if @project_branding_id.nil? return false if @updated_at.nil? true end |