Class: Hubspot::Cms::Domains::Domain
- Inherits:
-
Object
- Object
- Hubspot::Cms::Domains::Domain
- Defined in:
- lib/hubspot/codegen/cms/domains/models/domain.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#actual_cname ⇒ Object
Returns the value of attribute actual_cname.
-
#actual_ip ⇒ Object
Returns the value of attribute actual_ip.
-
#apex_domain ⇒ Object
Returns the value of attribute apex_domain.
-
#apex_ip_addresses ⇒ Object
Returns the value of attribute apex_ip_addresses.
-
#apex_resolution_status ⇒ Object
Returns the value of attribute apex_resolution_status.
-
#author_at ⇒ Object
Returns the value of attribute author_at.
-
#brand_id ⇒ Object
Returns the value of attribute brand_id.
-
#cdn_purge_embargo_time ⇒ Object
Returns the value of attribute cdn_purge_embargo_time.
-
#certificate_id ⇒ Object
Returns the value of attribute certificate_id.
-
#consecutive_non_resolving_count ⇒ Object
Returns the value of attribute consecutive_non_resolving_count.
-
#correct_cname ⇒ Object
Returns the value of attribute correct_cname.
-
#cos_object_type ⇒ Object
Returns the value of attribute cos_object_type.
-
#created ⇒ Object
Returns the value of attribute created.
-
#created_by_id ⇒ Object
Returns the value of attribute created_by_id.
-
#deletable ⇒ Object
Returns the value of attribute deletable.
-
#derived_brand_name ⇒ Object
Returns the value of attribute derived_brand_name.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#domain_cdn_config ⇒ Object
Returns the value of attribute domain_cdn_config.
-
#full_category_key ⇒ Object
Returns the value of attribute full_category_key.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_any_primary ⇒ Object
Returns the value of attribute is_any_primary.
-
#is_dns_correct ⇒ Object
Returns the value of attribute is_dns_correct.
-
#is_internal_domain ⇒ Object
Returns the value of attribute is_internal_domain.
-
#is_legacy ⇒ Object
Returns the value of attribute is_legacy.
-
#is_legacy_domain ⇒ Object
Returns the value of attribute is_legacy_domain.
-
#is_resolving ⇒ Object
Returns the value of attribute is_resolving.
-
#is_resolving_ignoring_manually_marked_as_resolving ⇒ Object
Returns the value of attribute is_resolving_ignoring_manually_marked_as_resolving.
-
#is_resolving_internal_property ⇒ Object
Returns the value of attribute is_resolving_internal_property.
-
#is_setup_complete ⇒ Object
Returns the value of attribute is_setup_complete.
-
#is_ssl_enabled ⇒ Object
Returns the value of attribute is_ssl_enabled.
-
#is_ssl_only ⇒ Object
Returns the value of attribute is_ssl_only.
-
#is_staging_domain ⇒ Object
Returns the value of attribute is_staging_domain.
-
#is_used_for_any_content_type ⇒ Object
Returns the value of attribute is_used_for_any_content_type.
-
#is_used_for_blog_post ⇒ Object
Returns the value of attribute is_used_for_blog_post.
-
#is_used_for_email ⇒ Object
Returns the value of attribute is_used_for_email.
-
#is_used_for_knowledge ⇒ Object
Returns the value of attribute is_used_for_knowledge.
-
#is_used_for_landing_page ⇒ Object
Returns the value of attribute is_used_for_landing_page.
-
#is_used_for_site_page ⇒ Object
Returns the value of attribute is_used_for_site_page.
-
#label ⇒ Object
Returns the value of attribute label.
-
#manually_marked_as_resolving ⇒ Object
Returns the value of attribute manually_marked_as_resolving.
-
#portal_id ⇒ Object
Returns the value of attribute portal_id.
-
#primary_blog ⇒ Object
Returns the value of attribute primary_blog.
-
#primary_blog_post ⇒ Object
Returns the value of attribute primary_blog_post.
-
#primary_click_tracking ⇒ Object
Returns the value of attribute primary_click_tracking.
-
#primary_email ⇒ Object
Returns the value of attribute primary_email.
-
#primary_knowledge ⇒ Object
Returns the value of attribute primary_knowledge.
-
#primary_landing_page ⇒ Object
Returns the value of attribute primary_landing_page.
-
#primary_legacy_page ⇒ Object
Returns the value of attribute primary_legacy_page.
-
#primary_site_page ⇒ Object
Returns the value of attribute primary_site_page.
-
#public_suffix ⇒ Object
Returns the value of attribute public_suffix.
-
#secondary_to_domain ⇒ Object
Returns the value of attribute secondary_to_domain.
-
#set_up_language ⇒ Object
Returns the value of attribute set_up_language.
-
#setup_info ⇒ Object
Returns the value of attribute setup_info.
-
#setup_task_id ⇒ Object
Returns the value of attribute setup_task_id.
-
#site_id ⇒ Object
Returns the value of attribute site_id.
-
#ssl_cname ⇒ Object
Returns the value of attribute ssl_cname.
-
#ssl_request_id ⇒ Object
Returns the value of attribute ssl_request_id.
-
#team_ids ⇒ Object
Returns the value of attribute team_ids.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#updated_by_id ⇒ Object
Returns the value of attribute updated_by_id.
Class Method Summary collapse
-
.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 = {}) ⇒ Domain
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 = {}) ⇒ Domain
Initializes the object
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 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 301 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Domains::Domain` 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 `Hubspot::Cms::Domains::Domain`. 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?(:'portal_id') self.portal_id = attributes[:'portal_id'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'created') self.created = attributes[:'created'] end if attributes.key?(:'updated') self.updated = attributes[:'updated'] end if attributes.key?(:'domain') self.domain = attributes[:'domain'] end if attributes.key?(:'primary_landing_page') self.primary_landing_page = attributes[:'primary_landing_page'] end if attributes.key?(:'primary_email') self.primary_email = attributes[:'primary_email'] end if attributes.key?(:'primary_blog') self.primary_blog = attributes[:'primary_blog'] end if attributes.key?(:'primary_blog_post') self.primary_blog_post = attributes[:'primary_blog_post'] end if attributes.key?(:'primary_site_page') self.primary_site_page = attributes[:'primary_site_page'] end if attributes.key?(:'primary_knowledge') self.primary_knowledge = attributes[:'primary_knowledge'] end if attributes.key?(:'primary_legacy_page') self.primary_legacy_page = attributes[:'primary_legacy_page'] end if attributes.key?(:'primary_click_tracking') self.primary_click_tracking = attributes[:'primary_click_tracking'] end if attributes.key?(:'full_category_key') self.full_category_key = attributes[:'full_category_key'] end if attributes.key?(:'secondary_to_domain') self.secondary_to_domain = attributes[:'secondary_to_domain'] end if attributes.key?(:'is_resolving') self.is_resolving = attributes[:'is_resolving'] end if attributes.key?(:'is_dns_correct') self.is_dns_correct = attributes[:'is_dns_correct'] end if attributes.key?(:'manually_marked_as_resolving') self.manually_marked_as_resolving = attributes[:'manually_marked_as_resolving'] end if attributes.key?(:'consecutive_non_resolving_count') self.consecutive_non_resolving_count = attributes[:'consecutive_non_resolving_count'] end if attributes.key?(:'ssl_cname') self.ssl_cname = attributes[:'ssl_cname'] end if attributes.key?(:'is_ssl_enabled') self.is_ssl_enabled = attributes[:'is_ssl_enabled'] end if attributes.key?(:'is_ssl_only') self.is_ssl_only = attributes[:'is_ssl_only'] end if attributes.key?(:'certificate_id') self.certificate_id = attributes[:'certificate_id'] end if attributes.key?(:'ssl_request_id') self.ssl_request_id = attributes[:'ssl_request_id'] end if attributes.key?(:'is_used_for_blog_post') self.is_used_for_blog_post = attributes[:'is_used_for_blog_post'] end if attributes.key?(:'is_used_for_site_page') self.is_used_for_site_page = attributes[:'is_used_for_site_page'] end if attributes.key?(:'is_used_for_landing_page') self.is_used_for_landing_page = attributes[:'is_used_for_landing_page'] end if attributes.key?(:'is_used_for_email') self.is_used_for_email = attributes[:'is_used_for_email'] end if attributes.key?(:'is_used_for_knowledge') self.is_used_for_knowledge = attributes[:'is_used_for_knowledge'] end if attributes.key?(:'setup_task_id') self.setup_task_id = attributes[:'setup_task_id'] end if attributes.key?(:'is_setup_complete') self.is_setup_complete = attributes[:'is_setup_complete'] end if attributes.key?(:'set_up_language') self.set_up_language = attributes[:'set_up_language'] end if attributes.key?(:'team_ids') if (value = attributes[:'team_ids']).is_a?(Array) self.team_ids = value end end if attributes.key?(:'actual_cname') self.actual_cname = attributes[:'actual_cname'] end if attributes.key?(:'correct_cname') self.correct_cname = attributes[:'correct_cname'] end if attributes.key?(:'actual_ip') self.actual_ip = attributes[:'actual_ip'] end if attributes.key?(:'apex_resolution_status') self.apex_resolution_status = attributes[:'apex_resolution_status'] end if attributes.key?(:'apex_domain') self.apex_domain = attributes[:'apex_domain'] end if attributes.key?(:'public_suffix') self.public_suffix = attributes[:'public_suffix'] end if attributes.key?(:'apex_ip_addresses') if (value = attributes[:'apex_ip_addresses']).is_a?(Array) self.apex_ip_addresses = value end end if attributes.key?(:'site_id') self.site_id = attributes[:'site_id'] end if attributes.key?(:'brand_id') self.brand_id = attributes[:'brand_id'] end if attributes.key?(:'deletable') self.deletable = attributes[:'deletable'] end if attributes.key?(:'domain_cdn_config') self.domain_cdn_config = attributes[:'domain_cdn_config'] end if attributes.key?(:'setup_info') self.setup_info = attributes[:'setup_info'] end if attributes.key?(:'derived_brand_name') self.derived_brand_name = attributes[:'derived_brand_name'] end if attributes.key?(:'created_by_id') self.created_by_id = attributes[:'created_by_id'] end if attributes.key?(:'updated_by_id') self.updated_by_id = attributes[:'updated_by_id'] end if attributes.key?(:'label') self.label = attributes[:'label'] end if attributes.key?(:'is_any_primary') self.is_any_primary = attributes[:'is_any_primary'] end if attributes.key?(:'is_legacy_domain') self.is_legacy_domain = attributes[:'is_legacy_domain'] end if attributes.key?(:'is_internal_domain') self.is_internal_domain = attributes[:'is_internal_domain'] end if attributes.key?(:'is_resolving_internal_property') self.is_resolving_internal_property = attributes[:'is_resolving_internal_property'] end if attributes.key?(:'is_resolving_ignoring_manually_marked_as_resolving') self.is_resolving_ignoring_manually_marked_as_resolving = attributes[:'is_resolving_ignoring_manually_marked_as_resolving'] end if attributes.key?(:'is_used_for_any_content_type') self.is_used_for_any_content_type = attributes[:'is_used_for_any_content_type'] end if attributes.key?(:'is_legacy') self.is_legacy = attributes[:'is_legacy'] end if attributes.key?(:'author_at') self. = attributes[:'author_at'] end if attributes.key?(:'cos_object_type') self.cos_object_type = attributes[:'cos_object_type'] end if attributes.key?(:'cdn_purge_embargo_time') self. = attributes[:'cdn_purge_embargo_time'] end if attributes.key?(:'is_staging_domain') self.is_staging_domain = attributes[:'is_staging_domain'] end end |
Instance Attribute Details
#actual_cname ⇒ Object
Returns the value of attribute actual_cname.
85 86 87 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 85 def actual_cname @actual_cname end |
#actual_ip ⇒ Object
Returns the value of attribute actual_ip.
89 90 91 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 89 def actual_ip @actual_ip end |
#apex_domain ⇒ Object
Returns the value of attribute apex_domain.
93 94 95 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 93 def apex_domain @apex_domain end |
#apex_ip_addresses ⇒ Object
Returns the value of attribute apex_ip_addresses.
97 98 99 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 97 def apex_ip_addresses @apex_ip_addresses end |
#apex_resolution_status ⇒ Object
Returns the value of attribute apex_resolution_status.
91 92 93 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 91 def apex_resolution_status @apex_resolution_status end |
#author_at ⇒ Object
Returns the value of attribute author_at.
131 132 133 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 131 def @author_at end |
#brand_id ⇒ Object
Returns the value of attribute brand_id.
101 102 103 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 101 def brand_id @brand_id end |
#cdn_purge_embargo_time ⇒ Object
Returns the value of attribute cdn_purge_embargo_time.
135 136 137 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 135 def @cdn_purge_embargo_time end |
#certificate_id ⇒ Object
Returns the value of attribute certificate_id.
63 64 65 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 63 def certificate_id @certificate_id end |
#consecutive_non_resolving_count ⇒ Object
Returns the value of attribute consecutive_non_resolving_count.
55 56 57 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 55 def consecutive_non_resolving_count @consecutive_non_resolving_count end |
#correct_cname ⇒ Object
Returns the value of attribute correct_cname.
87 88 89 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 87 def correct_cname @correct_cname end |
#cos_object_type ⇒ Object
Returns the value of attribute cos_object_type.
133 134 135 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 133 def cos_object_type @cos_object_type end |
#created ⇒ Object
Returns the value of attribute created.
23 24 25 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 23 def created @created end |
#created_by_id ⇒ Object
Returns the value of attribute created_by_id.
111 112 113 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 111 def created_by_id @created_by_id end |
#deletable ⇒ Object
Returns the value of attribute deletable.
103 104 105 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 103 def deletable @deletable end |
#derived_brand_name ⇒ Object
Returns the value of attribute derived_brand_name.
109 110 111 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 109 def derived_brand_name @derived_brand_name end |
#domain ⇒ Object
Returns the value of attribute domain.
27 28 29 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 27 def domain @domain end |
#domain_cdn_config ⇒ Object
Returns the value of attribute domain_cdn_config.
105 106 107 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 105 def domain_cdn_config @domain_cdn_config end |
#full_category_key ⇒ Object
Returns the value of attribute full_category_key.
45 46 47 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 45 def full_category_key @full_category_key end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 21 def id @id end |
#is_any_primary ⇒ Object
Returns the value of attribute is_any_primary.
117 118 119 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 117 def is_any_primary @is_any_primary end |
#is_dns_correct ⇒ Object
Returns the value of attribute is_dns_correct.
51 52 53 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 51 def is_dns_correct @is_dns_correct end |
#is_internal_domain ⇒ Object
Returns the value of attribute is_internal_domain.
121 122 123 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 121 def is_internal_domain @is_internal_domain end |
#is_legacy ⇒ Object
Returns the value of attribute is_legacy.
129 130 131 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 129 def is_legacy @is_legacy end |
#is_legacy_domain ⇒ Object
Returns the value of attribute is_legacy_domain.
119 120 121 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 119 def is_legacy_domain @is_legacy_domain end |
#is_resolving ⇒ Object
Returns the value of attribute is_resolving.
49 50 51 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 49 def is_resolving @is_resolving end |
#is_resolving_ignoring_manually_marked_as_resolving ⇒ Object
Returns the value of attribute is_resolving_ignoring_manually_marked_as_resolving.
125 126 127 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 125 def is_resolving_ignoring_manually_marked_as_resolving @is_resolving_ignoring_manually_marked_as_resolving end |
#is_resolving_internal_property ⇒ Object
Returns the value of attribute is_resolving_internal_property.
123 124 125 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 123 def is_resolving_internal_property @is_resolving_internal_property end |
#is_setup_complete ⇒ Object
Returns the value of attribute is_setup_complete.
79 80 81 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 79 def is_setup_complete @is_setup_complete end |
#is_ssl_enabled ⇒ Object
Returns the value of attribute is_ssl_enabled.
59 60 61 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 59 def is_ssl_enabled @is_ssl_enabled end |
#is_ssl_only ⇒ Object
Returns the value of attribute is_ssl_only.
61 62 63 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 61 def is_ssl_only @is_ssl_only end |
#is_staging_domain ⇒ Object
Returns the value of attribute is_staging_domain.
137 138 139 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 137 def is_staging_domain @is_staging_domain end |
#is_used_for_any_content_type ⇒ Object
Returns the value of attribute is_used_for_any_content_type.
127 128 129 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 127 def is_used_for_any_content_type @is_used_for_any_content_type end |
#is_used_for_blog_post ⇒ Object
Returns the value of attribute is_used_for_blog_post.
67 68 69 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 67 def is_used_for_blog_post @is_used_for_blog_post end |
#is_used_for_email ⇒ Object
Returns the value of attribute is_used_for_email.
73 74 75 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 73 def is_used_for_email @is_used_for_email end |
#is_used_for_knowledge ⇒ Object
Returns the value of attribute is_used_for_knowledge.
75 76 77 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 75 def is_used_for_knowledge @is_used_for_knowledge end |
#is_used_for_landing_page ⇒ Object
Returns the value of attribute is_used_for_landing_page.
71 72 73 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 71 def is_used_for_landing_page @is_used_for_landing_page end |
#is_used_for_site_page ⇒ Object
Returns the value of attribute is_used_for_site_page.
69 70 71 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 69 def is_used_for_site_page @is_used_for_site_page end |
#label ⇒ Object
Returns the value of attribute label.
115 116 117 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 115 def label @label end |
#manually_marked_as_resolving ⇒ Object
Returns the value of attribute manually_marked_as_resolving.
53 54 55 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 53 def manually_marked_as_resolving @manually_marked_as_resolving end |
#portal_id ⇒ Object
Returns the value of attribute portal_id.
19 20 21 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 19 def portal_id @portal_id end |
#primary_blog ⇒ Object
Returns the value of attribute primary_blog.
33 34 35 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 33 def primary_blog @primary_blog end |
#primary_blog_post ⇒ Object
Returns the value of attribute primary_blog_post.
35 36 37 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 35 def primary_blog_post @primary_blog_post end |
#primary_click_tracking ⇒ Object
Returns the value of attribute primary_click_tracking.
43 44 45 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 43 def primary_click_tracking @primary_click_tracking end |
#primary_email ⇒ Object
Returns the value of attribute primary_email.
31 32 33 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 31 def primary_email @primary_email end |
#primary_knowledge ⇒ Object
Returns the value of attribute primary_knowledge.
39 40 41 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 39 def primary_knowledge @primary_knowledge end |
#primary_landing_page ⇒ Object
Returns the value of attribute primary_landing_page.
29 30 31 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 29 def primary_landing_page @primary_landing_page end |
#primary_legacy_page ⇒ Object
Returns the value of attribute primary_legacy_page.
41 42 43 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 41 def primary_legacy_page @primary_legacy_page end |
#primary_site_page ⇒ Object
Returns the value of attribute primary_site_page.
37 38 39 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 37 def primary_site_page @primary_site_page end |
#public_suffix ⇒ Object
Returns the value of attribute public_suffix.
95 96 97 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 95 def public_suffix @public_suffix end |
#secondary_to_domain ⇒ Object
Returns the value of attribute secondary_to_domain.
47 48 49 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 47 def secondary_to_domain @secondary_to_domain end |
#set_up_language ⇒ Object
Returns the value of attribute set_up_language.
81 82 83 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 81 def set_up_language @set_up_language end |
#setup_info ⇒ Object
Returns the value of attribute setup_info.
107 108 109 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 107 def setup_info @setup_info end |
#setup_task_id ⇒ Object
Returns the value of attribute setup_task_id.
77 78 79 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 77 def setup_task_id @setup_task_id end |
#site_id ⇒ Object
Returns the value of attribute site_id.
99 100 101 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 99 def site_id @site_id end |
#ssl_cname ⇒ Object
Returns the value of attribute ssl_cname.
57 58 59 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 57 def ssl_cname @ssl_cname end |
#ssl_request_id ⇒ Object
Returns the value of attribute ssl_request_id.
65 66 67 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 65 def ssl_request_id @ssl_request_id end |
#team_ids ⇒ Object
Returns the value of attribute team_ids.
83 84 85 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 83 def team_ids @team_ids end |
#updated ⇒ Object
Returns the value of attribute updated.
25 26 27 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 25 def updated @updated end |
#updated_by_id ⇒ Object
Returns the value of attribute updated_by_id.
113 114 115 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 113 def updated_by_id @updated_by_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 217 218 219 220 221 222 223 224 225 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 162 def self.attribute_map { :'portal_id' => :'portalId', :'id' => :'id', :'created' => :'created', :'updated' => :'updated', :'domain' => :'domain', :'primary_landing_page' => :'primaryLandingPage', :'primary_email' => :'primaryEmail', :'primary_blog' => :'primaryBlog', :'primary_blog_post' => :'primaryBlogPost', :'primary_site_page' => :'primarySitePage', :'primary_knowledge' => :'primaryKnowledge', :'primary_legacy_page' => :'primaryLegacyPage', :'primary_click_tracking' => :'primaryClickTracking', :'full_category_key' => :'fullCategoryKey', :'secondary_to_domain' => :'secondaryToDomain', :'is_resolving' => :'isResolving', :'is_dns_correct' => :'isDnsCorrect', :'manually_marked_as_resolving' => :'manuallyMarkedAsResolving', :'consecutive_non_resolving_count' => :'consecutiveNonResolvingCount', :'ssl_cname' => :'sslCname', :'is_ssl_enabled' => :'isSslEnabled', :'is_ssl_only' => :'isSslOnly', :'certificate_id' => :'certificateId', :'ssl_request_id' => :'sslRequestId', :'is_used_for_blog_post' => :'isUsedForBlogPost', :'is_used_for_site_page' => :'isUsedForSitePage', :'is_used_for_landing_page' => :'isUsedForLandingPage', :'is_used_for_email' => :'isUsedForEmail', :'is_used_for_knowledge' => :'isUsedForKnowledge', :'setup_task_id' => :'setupTaskId', :'is_setup_complete' => :'isSetupComplete', :'set_up_language' => :'setUpLanguage', :'team_ids' => :'teamIds', :'actual_cname' => :'actualCname', :'correct_cname' => :'correctCname', :'actual_ip' => :'actualIp', :'apex_resolution_status' => :'apexResolutionStatus', :'apex_domain' => :'apexDomain', :'public_suffix' => :'publicSuffix', :'apex_ip_addresses' => :'apexIpAddresses', :'site_id' => :'siteId', :'brand_id' => :'brandId', :'deletable' => :'deletable', :'domain_cdn_config' => :'domainCdnConfig', :'setup_info' => :'setupInfo', :'derived_brand_name' => :'derivedBrandName', :'created_by_id' => :'createdById', :'updated_by_id' => :'updatedById', :'label' => :'label', :'is_any_primary' => :'isAnyPrimary', :'is_legacy_domain' => :'isLegacyDomain', :'is_internal_domain' => :'isInternalDomain', :'is_resolving_internal_property' => :'isResolvingInternalProperty', :'is_resolving_ignoring_manually_marked_as_resolving' => :'isResolvingIgnoringManuallyMarkedAsResolving', :'is_used_for_any_content_type' => :'isUsedForAnyContentType', :'is_legacy' => :'isLegacy', :'author_at' => :'authorAt', :'cos_object_type' => :'cosObjectType', :'cdn_purge_embargo_time' => :'cdnPurgeEmbargoTime', :'is_staging_domain' => :'isStagingDomain' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
978 979 980 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 978 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
294 295 296 297 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 294 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 287 288 289 290 291 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 228 def self.openapi_types { :'portal_id' => :'Integer', :'id' => :'Integer', :'created' => :'Integer', :'updated' => :'Integer', :'domain' => :'String', :'primary_landing_page' => :'Boolean', :'primary_email' => :'Boolean', :'primary_blog' => :'Boolean', :'primary_blog_post' => :'Boolean', :'primary_site_page' => :'Boolean', :'primary_knowledge' => :'Boolean', :'primary_legacy_page' => :'Boolean', :'primary_click_tracking' => :'Boolean', :'full_category_key' => :'String', :'secondary_to_domain' => :'String', :'is_resolving' => :'Boolean', :'is_dns_correct' => :'Boolean', :'manually_marked_as_resolving' => :'Boolean', :'consecutive_non_resolving_count' => :'Integer', :'ssl_cname' => :'String', :'is_ssl_enabled' => :'Boolean', :'is_ssl_only' => :'Boolean', :'certificate_id' => :'Integer', :'ssl_request_id' => :'Integer', :'is_used_for_blog_post' => :'Boolean', :'is_used_for_site_page' => :'Boolean', :'is_used_for_landing_page' => :'Boolean', :'is_used_for_email' => :'Boolean', :'is_used_for_knowledge' => :'Boolean', :'setup_task_id' => :'Integer', :'is_setup_complete' => :'Boolean', :'set_up_language' => :'String', :'team_ids' => :'Array<Integer>', :'actual_cname' => :'String', :'correct_cname' => :'String', :'actual_ip' => :'String', :'apex_resolution_status' => :'String', :'apex_domain' => :'String', :'public_suffix' => :'String', :'apex_ip_addresses' => :'Array<String>', :'site_id' => :'Integer', :'brand_id' => :'Integer', :'deletable' => :'Boolean', :'domain_cdn_config' => :'DomainCdnConfig', :'setup_info' => :'DomainSetupInfo', :'derived_brand_name' => :'String', :'created_by_id' => :'Integer', :'updated_by_id' => :'Integer', :'label' => :'String', :'is_any_primary' => :'Boolean', :'is_legacy_domain' => :'Boolean', :'is_internal_domain' => :'Boolean', :'is_resolving_internal_property' => :'Boolean', :'is_resolving_ignoring_manually_marked_as_resolving' => :'Boolean', :'is_used_for_any_content_type' => :'Boolean', :'is_legacy' => :'Boolean', :'author_at' => :'Integer', :'cos_object_type' => :'String', :'cdn_purge_embargo_time' => :'Integer', :'is_staging_domain' => :'Boolean' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 898 def ==(o) return true if self.equal?(o) self.class == o.class && portal_id == o.portal_id && id == o.id && created == o.created && updated == o.updated && domain == o.domain && primary_landing_page == o.primary_landing_page && primary_email == o.primary_email && primary_blog == o.primary_blog && primary_blog_post == o.primary_blog_post && primary_site_page == o.primary_site_page && primary_knowledge == o.primary_knowledge && primary_legacy_page == o.primary_legacy_page && primary_click_tracking == o.primary_click_tracking && full_category_key == o.full_category_key && secondary_to_domain == o.secondary_to_domain && is_resolving == o.is_resolving && is_dns_correct == o.is_dns_correct && manually_marked_as_resolving == o.manually_marked_as_resolving && consecutive_non_resolving_count == o.consecutive_non_resolving_count && ssl_cname == o.ssl_cname && is_ssl_enabled == o.is_ssl_enabled && is_ssl_only == o.is_ssl_only && certificate_id == o.certificate_id && ssl_request_id == o.ssl_request_id && is_used_for_blog_post == o.is_used_for_blog_post && is_used_for_site_page == o.is_used_for_site_page && is_used_for_landing_page == o.is_used_for_landing_page && is_used_for_email == o.is_used_for_email && is_used_for_knowledge == o.is_used_for_knowledge && setup_task_id == o.setup_task_id && is_setup_complete == o.is_setup_complete && set_up_language == o.set_up_language && team_ids == o.team_ids && actual_cname == o.actual_cname && correct_cname == o.correct_cname && actual_ip == o.actual_ip && apex_resolution_status == o.apex_resolution_status && apex_domain == o.apex_domain && public_suffix == o.public_suffix && apex_ip_addresses == o.apex_ip_addresses && site_id == o.site_id && brand_id == o.brand_id && deletable == o.deletable && domain_cdn_config == o.domain_cdn_config && setup_info == o.setup_info && derived_brand_name == o.derived_brand_name && created_by_id == o.created_by_id && updated_by_id == o.updated_by_id && label == o.label && is_any_primary == o.is_any_primary && is_legacy_domain == o.is_legacy_domain && is_internal_domain == o.is_internal_domain && is_resolving_internal_property == o.is_resolving_internal_property && is_resolving_ignoring_manually_marked_as_resolving == o.is_resolving_ignoring_manually_marked_as_resolving && is_used_for_any_content_type == o.is_used_for_any_content_type && is_legacy == o.is_legacy && == o. && cos_object_type == o.cos_object_type && == o. && is_staging_domain == o.is_staging_domain end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 1006 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.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 Hubspot::Cms::Domains.const_get(type).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
1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 1075 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
985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 985 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.openapi_types.each_pair do |key, type| if 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 # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
965 966 967 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 965 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
971 972 973 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 971 def hash [portal_id, id, created, updated, domain, primary_landing_page, primary_email, primary_blog, primary_blog_post, primary_site_page, primary_knowledge, primary_legacy_page, primary_click_tracking, full_category_key, secondary_to_domain, is_resolving, is_dns_correct, manually_marked_as_resolving, consecutive_non_resolving_count, ssl_cname, is_ssl_enabled, is_ssl_only, certificate_id, ssl_request_id, is_used_for_blog_post, is_used_for_site_page, is_used_for_landing_page, is_used_for_email, is_used_for_knowledge, setup_task_id, is_setup_complete, set_up_language, team_ids, actual_cname, correct_cname, actual_ip, apex_resolution_status, apex_domain, public_suffix, apex_ip_addresses, site_id, brand_id, deletable, domain_cdn_config, setup_info, derived_brand_name, created_by_id, updated_by_id, label, is_any_primary, is_legacy_domain, is_internal_domain, is_resolving_internal_property, is_resolving_ignoring_manually_marked_as_resolving, is_used_for_any_content_type, is_legacy, , cos_object_type, , is_staging_domain].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 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 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 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 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 561 def list_invalid_properties invalid_properties = Array.new if @portal_id.nil? invalid_properties.push('invalid value for "portal_id", portal_id cannot be nil.') end if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @created.nil? invalid_properties.push('invalid value for "created", created cannot be nil.') end if @updated.nil? invalid_properties.push('invalid value for "updated", updated cannot be nil.') end if @domain.nil? invalid_properties.push('invalid value for "domain", domain cannot be nil.') end if @primary_landing_page.nil? invalid_properties.push('invalid value for "primary_landing_page", primary_landing_page cannot be nil.') end if @primary_email.nil? invalid_properties.push('invalid value for "primary_email", primary_email cannot be nil.') end if @primary_blog.nil? invalid_properties.push('invalid value for "primary_blog", primary_blog cannot be nil.') end if @primary_blog_post.nil? invalid_properties.push('invalid value for "primary_blog_post", primary_blog_post cannot be nil.') end if @primary_site_page.nil? invalid_properties.push('invalid value for "primary_site_page", primary_site_page cannot be nil.') end if @primary_knowledge.nil? invalid_properties.push('invalid value for "primary_knowledge", primary_knowledge cannot be nil.') end if @primary_legacy_page.nil? invalid_properties.push('invalid value for "primary_legacy_page", primary_legacy_page cannot be nil.') end if @primary_click_tracking.nil? invalid_properties.push('invalid value for "primary_click_tracking", primary_click_tracking cannot be nil.') end if @full_category_key.nil? invalid_properties.push('invalid value for "full_category_key", full_category_key cannot be nil.') end if @secondary_to_domain.nil? invalid_properties.push('invalid value for "secondary_to_domain", secondary_to_domain cannot be nil.') end if @is_resolving.nil? invalid_properties.push('invalid value for "is_resolving", is_resolving cannot be nil.') end if @is_dns_correct.nil? invalid_properties.push('invalid value for "is_dns_correct", is_dns_correct cannot be nil.') end if @manually_marked_as_resolving.nil? invalid_properties.push('invalid value for "manually_marked_as_resolving", manually_marked_as_resolving cannot be nil.') end if @consecutive_non_resolving_count.nil? invalid_properties.push('invalid value for "consecutive_non_resolving_count", consecutive_non_resolving_count cannot be nil.') end if @ssl_cname.nil? invalid_properties.push('invalid value for "ssl_cname", ssl_cname cannot be nil.') end if @is_ssl_enabled.nil? invalid_properties.push('invalid value for "is_ssl_enabled", is_ssl_enabled cannot be nil.') end if @is_ssl_only.nil? invalid_properties.push('invalid value for "is_ssl_only", is_ssl_only cannot be nil.') end if @certificate_id.nil? invalid_properties.push('invalid value for "certificate_id", certificate_id cannot be nil.') end if @ssl_request_id.nil? invalid_properties.push('invalid value for "ssl_request_id", ssl_request_id cannot be nil.') end if @is_used_for_blog_post.nil? invalid_properties.push('invalid value for "is_used_for_blog_post", is_used_for_blog_post cannot be nil.') end if @is_used_for_site_page.nil? invalid_properties.push('invalid value for "is_used_for_site_page", is_used_for_site_page cannot be nil.') end if @is_used_for_landing_page.nil? invalid_properties.push('invalid value for "is_used_for_landing_page", is_used_for_landing_page cannot be nil.') end if @is_used_for_email.nil? invalid_properties.push('invalid value for "is_used_for_email", is_used_for_email cannot be nil.') end if @is_used_for_knowledge.nil? invalid_properties.push('invalid value for "is_used_for_knowledge", is_used_for_knowledge cannot be nil.') end if @setup_task_id.nil? invalid_properties.push('invalid value for "setup_task_id", setup_task_id cannot be nil.') end if @is_setup_complete.nil? invalid_properties.push('invalid value for "is_setup_complete", is_setup_complete cannot be nil.') end if @set_up_language.nil? invalid_properties.push('invalid value for "set_up_language", set_up_language cannot be nil.') end if @team_ids.nil? invalid_properties.push('invalid value for "team_ids", team_ids cannot be nil.') end if @actual_cname.nil? invalid_properties.push('invalid value for "actual_cname", actual_cname cannot be nil.') end if @correct_cname.nil? invalid_properties.push('invalid value for "correct_cname", correct_cname cannot be nil.') end if @actual_ip.nil? invalid_properties.push('invalid value for "actual_ip", actual_ip cannot be nil.') end if @apex_resolution_status.nil? invalid_properties.push('invalid value for "apex_resolution_status", apex_resolution_status cannot be nil.') end if @apex_domain.nil? invalid_properties.push('invalid value for "apex_domain", apex_domain cannot be nil.') end if @public_suffix.nil? invalid_properties.push('invalid value for "public_suffix", public_suffix cannot be nil.') end if @apex_ip_addresses.nil? invalid_properties.push('invalid value for "apex_ip_addresses", apex_ip_addresses cannot be nil.') end if @site_id.nil? invalid_properties.push('invalid value for "site_id", site_id cannot be nil.') end if @brand_id.nil? invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.') end if @deletable.nil? invalid_properties.push('invalid value for "deletable", deletable cannot be nil.') end if @domain_cdn_config.nil? invalid_properties.push('invalid value for "domain_cdn_config", domain_cdn_config cannot be nil.') end if @setup_info.nil? invalid_properties.push('invalid value for "setup_info", setup_info cannot be nil.') end if @derived_brand_name.nil? invalid_properties.push('invalid value for "derived_brand_name", derived_brand_name cannot be nil.') end if @created_by_id.nil? invalid_properties.push('invalid value for "created_by_id", created_by_id cannot be nil.') end if @updated_by_id.nil? invalid_properties.push('invalid value for "updated_by_id", updated_by_id cannot be nil.') end if @label.nil? invalid_properties.push('invalid value for "label", label cannot be nil.') end if @is_any_primary.nil? invalid_properties.push('invalid value for "is_any_primary", is_any_primary cannot be nil.') end if @is_legacy_domain.nil? invalid_properties.push('invalid value for "is_legacy_domain", is_legacy_domain cannot be nil.') end if @is_internal_domain.nil? invalid_properties.push('invalid value for "is_internal_domain", is_internal_domain cannot be nil.') end if @is_resolving_internal_property.nil? invalid_properties.push('invalid value for "is_resolving_internal_property", is_resolving_internal_property cannot be nil.') end if @is_resolving_ignoring_manually_marked_as_resolving.nil? invalid_properties.push('invalid value for "is_resolving_ignoring_manually_marked_as_resolving", is_resolving_ignoring_manually_marked_as_resolving cannot be nil.') end if @is_used_for_any_content_type.nil? invalid_properties.push('invalid value for "is_used_for_any_content_type", is_used_for_any_content_type cannot be nil.') end if @is_legacy.nil? invalid_properties.push('invalid value for "is_legacy", is_legacy cannot be nil.') end if @author_at.nil? invalid_properties.push('invalid value for "author_at", author_at cannot be nil.') end if @cos_object_type.nil? invalid_properties.push('invalid value for "cos_object_type", cos_object_type cannot be nil.') end if @cdn_purge_embargo_time.nil? invalid_properties.push('invalid value for "cdn_purge_embargo_time", cdn_purge_embargo_time cannot be nil.') end if @is_staging_domain.nil? invalid_properties.push('invalid value for "is_staging_domain", is_staging_domain cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
1051 1052 1053 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 1051 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 1057 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
1045 1046 1047 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 1045 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 |
# File 'lib/hubspot/codegen/cms/domains/models/domain.rb', line 808 def valid? return false if @portal_id.nil? return false if @id.nil? return false if @created.nil? return false if @updated.nil? return false if @domain.nil? return false if @primary_landing_page.nil? return false if @primary_email.nil? return false if @primary_blog.nil? return false if @primary_blog_post.nil? return false if @primary_site_page.nil? return false if @primary_knowledge.nil? return false if @primary_legacy_page.nil? return false if @primary_click_tracking.nil? return false if @full_category_key.nil? return false if @secondary_to_domain.nil? return false if @is_resolving.nil? return false if @is_dns_correct.nil? return false if @manually_marked_as_resolving.nil? return false if @consecutive_non_resolving_count.nil? return false if @ssl_cname.nil? return false if @is_ssl_enabled.nil? return false if @is_ssl_only.nil? return false if @certificate_id.nil? return false if @ssl_request_id.nil? return false if @is_used_for_blog_post.nil? return false if @is_used_for_site_page.nil? return false if @is_used_for_landing_page.nil? return false if @is_used_for_email.nil? return false if @is_used_for_knowledge.nil? return false if @setup_task_id.nil? return false if @is_setup_complete.nil? return false if @set_up_language.nil? return false if @team_ids.nil? return false if @actual_cname.nil? return false if @correct_cname.nil? return false if @actual_ip.nil? return false if @apex_resolution_status.nil? apex_resolution_status_validator = EnumAttributeValidator.new('String', ["INELIGIBLE", "SUGGEST_RESOLVING", "ALREADY_RESOLVING", "ERROR"]) return false unless apex_resolution_status_validator.valid?(@apex_resolution_status) return false if @apex_domain.nil? return false if @public_suffix.nil? return false if @apex_ip_addresses.nil? return false if @site_id.nil? return false if @brand_id.nil? return false if @deletable.nil? return false if @domain_cdn_config.nil? return false if @setup_info.nil? return false if @derived_brand_name.nil? return false if @created_by_id.nil? return false if @updated_by_id.nil? return false if @label.nil? return false if @is_any_primary.nil? return false if @is_legacy_domain.nil? return false if @is_internal_domain.nil? return false if @is_resolving_internal_property.nil? return false if @is_resolving_ignoring_manually_marked_as_resolving.nil? return false if @is_used_for_any_content_type.nil? return false if @is_legacy.nil? return false if @author_at.nil? return false if @cos_object_type.nil? cos_object_type_validator = EnumAttributeValidator.new('String', ["CONTENT", "EXTENSION_RESOURCE", "LAYOUT", "CUSTOM_WIDGET", "WIDGET", "FORM", "PLACEMENT", "IMAGE", "DOMAIN_SETTINGS", "SITE_SETTINGS", "EMAIL_ADDRESS", "WORKFLOW", "HUBDB_TABLE", "REDIRECT_URL", "DESIGN_FOLDER", "SITE_MAP", "DOMAIN", "BLOG", "FILE", "FOLDER", "SITE_MENU", "THEME", "CONTENT_GROUP", "FOLLOW_ME", "KNOWLEDGE_BASE", "LIST_MEMBERSHIP", "CONTACT_MEMBERSHIP", "PASSWORD_PROTECTED", "UNRESTRICTED_ACCESS", "MARKETPLACE_LISTING", "LAYOUT_SECTION", "THEME_SETTINGS", "VIDEO_PLAYER", "URL_MAPPING", "KNOWLEDGE_CATEGORY", "KNOWLEDGE_HOMEPAGE_CATEGORY", "RAW_ASSET", "GLOBAL_CONTENT", "HUBDB_TABLE_ROW", "BLOG_AUTHOR", "SERVERLESS_FUNCTION", "KNOWLEDGE_CATEGORY_TRANSLATION"]) return false unless cos_object_type_validator.valid?(@cos_object_type) return false if @cdn_purge_embargo_time.nil? return false if @is_staging_domain.nil? true end |