hubspot-api-client 3.3.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/hubspot-api-client.rb +61 -0
  4. data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +106 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +422 -0
  6. data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +61 -0
  7. data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +258 -0
  8. data/lib/hubspot/codegen/cms/audit-logs/models/collection_response_public_audit_log.rb +226 -0
  9. data/lib/hubspot/codegen/cms/audit-logs/models/error.rb +292 -0
  10. data/lib/hubspot/codegen/cms/audit-logs/models/error_detail.rb +258 -0
  11. data/lib/hubspot/codegen/cms/audit-logs/models/next_page.rb +224 -0
  12. data/lib/hubspot/codegen/cms/audit-logs/models/paging.rb +210 -0
  13. data/lib/hubspot/codegen/cms/audit-logs/models/public_audit_log.rb +352 -0
  14. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +183 -0
  15. data/lib/hubspot/codegen/cms/domains/api_client.rb +422 -0
  16. data/lib/hubspot/codegen/cms/domains/api_error.rb +61 -0
  17. data/lib/hubspot/codegen/cms/domains/configuration.rb +258 -0
  18. data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain.rb +240 -0
  19. data/lib/hubspot/codegen/cms/domains/models/domain.rb +1091 -0
  20. data/lib/hubspot/codegen/cms/domains/models/domain_cdn_config.rb +497 -0
  21. data/lib/hubspot/codegen/cms/domains/models/domain_setup_info.rb +231 -0
  22. data/lib/hubspot/codegen/cms/domains/models/error.rb +292 -0
  23. data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +258 -0
  24. data/lib/hubspot/codegen/cms/domains/models/next_page.rb +224 -0
  25. data/lib/hubspot/codegen/cms/domains/models/paging.rb +210 -0
  26. data/lib/hubspot/codegen/cms/performance/api/default_api.rb +186 -0
  27. data/lib/hubspot/codegen/cms/performance/api_client.rb +422 -0
  28. data/lib/hubspot/codegen/cms/performance/api_error.rb +61 -0
  29. data/lib/hubspot/codegen/cms/performance/configuration.rb +258 -0
  30. data/lib/hubspot/codegen/cms/performance/models/error.rb +292 -0
  31. data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +258 -0
  32. data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +528 -0
  33. data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +332 -0
  34. data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +225 -0
  35. data/lib/hubspot/codegen/cms/site-search/api_client.rb +422 -0
  36. data/lib/hubspot/codegen/cms/site-search/api_error.rb +61 -0
  37. data/lib/hubspot/codegen/cms/site-search/configuration.rb +258 -0
  38. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +427 -0
  39. data/lib/hubspot/codegen/cms/site-search/models/error.rb +292 -0
  40. data/lib/hubspot/codegen/cms/site-search/models/error_detail.rb +258 -0
  41. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +279 -0
  42. data/lib/hubspot/codegen/cms/site-search/models/public_search_results.rb +282 -0
  43. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +257 -0
  44. data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +368 -0
  45. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +422 -0
  46. data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +61 -0
  47. data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +258 -0
  48. data/lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb +242 -0
  49. data/lib/hubspot/codegen/cms/url-redirects/models/error.rb +292 -0
  50. data/lib/hubspot/codegen/cms/url-redirects/models/error_detail.rb +258 -0
  51. data/lib/hubspot/codegen/cms/url-redirects/models/next_page.rb +224 -0
  52. data/lib/hubspot/codegen/cms/url-redirects/models/paging.rb +210 -0
  53. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +596 -0
  54. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +306 -0
  55. data/lib/hubspot/version.rb +1 -1
  56. data/sample-apps/search-result-paging-app/.env.template +4 -0
  57. data/sample-apps/search-result-paging-app/.gitignore +35 -0
  58. data/sample-apps/search-result-paging-app/.rspec +1 -0
  59. data/sample-apps/search-result-paging-app/.ruby-version +1 -0
  60. data/sample-apps/search-result-paging-app/Dockerfile +22 -0
  61. data/sample-apps/search-result-paging-app/Gemfile +35 -0
  62. data/sample-apps/search-result-paging-app/Gemfile.lock +279 -0
  63. data/sample-apps/search-result-paging-app/README.md +0 -0
  64. data/sample-apps/search-result-paging-app/Rakefile +6 -0
  65. data/sample-apps/search-result-paging-app/app/assets/config/manifest.js +3 -0
  66. data/sample-apps/search-result-paging-app/app/assets/images/.keep +0 -0
  67. data/sample-apps/search-result-paging-app/app/assets/javascripts/application.js +25 -0
  68. data/sample-apps/search-result-paging-app/app/assets/javascripts/cable.js +13 -0
  69. data/sample-apps/search-result-paging-app/app/assets/javascripts/channels/.keep +0 -0
  70. data/sample-apps/search-result-paging-app/app/assets/stylesheets/application.css +77 -0
  71. data/sample-apps/search-result-paging-app/app/controllers/application_controller.rb +12 -0
  72. data/sample-apps/search-result-paging-app/app/controllers/concerns/.keep +0 -0
  73. data/sample-apps/search-result-paging-app/app/controllers/concerns/exception_handler.rb +12 -0
  74. data/sample-apps/search-result-paging-app/app/controllers/home_controller.rb +14 -0
  75. data/sample-apps/search-result-paging-app/app/controllers/oauth/authorization_controller.rb +19 -0
  76. data/sample-apps/search-result-paging-app/app/helpers/application_helper.rb +2 -0
  77. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
  78. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
  79. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
  80. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
  81. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
  82. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/get_page.rb +26 -0
  83. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +35 -0
  84. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +23 -0
  85. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
  86. data/sample-apps/search-result-paging-app/app/models/application_record.rb +3 -0
  87. data/sample-apps/search-result-paging-app/app/models/concerns/.keep +0 -0
  88. data/sample-apps/search-result-paging-app/app/views/home/index.html.erb +13 -0
  89. data/sample-apps/search-result-paging-app/app/views/layouts/application.html.erb +23 -0
  90. data/sample-apps/search-result-paging-app/app/views/oauth/authorization/login.html.erb +15 -0
  91. data/sample-apps/search-result-paging-app/app/views/shared/_header.html.erb +18 -0
  92. data/sample-apps/search-result-paging-app/bin/bundle +3 -0
  93. data/sample-apps/search-result-paging-app/bin/rails +9 -0
  94. data/sample-apps/search-result-paging-app/bin/rake +9 -0
  95. data/sample-apps/search-result-paging-app/bin/setup +36 -0
  96. data/sample-apps/search-result-paging-app/bin/spring +17 -0
  97. data/sample-apps/search-result-paging-app/bin/update +31 -0
  98. data/sample-apps/search-result-paging-app/bin/yarn +11 -0
  99. data/sample-apps/search-result-paging-app/config.ru +5 -0
  100. data/sample-apps/search-result-paging-app/config/application.rb +19 -0
  101. data/sample-apps/search-result-paging-app/config/boot.rb +3 -0
  102. data/sample-apps/search-result-paging-app/config/cable.yml +10 -0
  103. data/sample-apps/search-result-paging-app/config/database.yml +25 -0
  104. data/sample-apps/search-result-paging-app/config/environment.rb +5 -0
  105. data/sample-apps/search-result-paging-app/config/environments/development.rb +61 -0
  106. data/sample-apps/search-result-paging-app/config/environments/production.rb +94 -0
  107. data/sample-apps/search-result-paging-app/config/environments/test.rb +46 -0
  108. data/sample-apps/search-result-paging-app/config/initializers/assets.rb +14 -0
  109. data/sample-apps/search-result-paging-app/config/initializers/filter_parameter_logging.rb +4 -0
  110. data/sample-apps/search-result-paging-app/config/initializers/hubspot-api-client.rb +3 -0
  111. data/sample-apps/search-result-paging-app/config/initializers/mime_types.rb +1 -0
  112. data/sample-apps/search-result-paging-app/config/initializers/wrap_parameters.rb +14 -0
  113. data/sample-apps/search-result-paging-app/config/locales/en.yml +33 -0
  114. data/sample-apps/search-result-paging-app/config/puma.rb +34 -0
  115. data/sample-apps/search-result-paging-app/config/routes.rb +7 -0
  116. data/sample-apps/search-result-paging-app/config/spring.rb +6 -0
  117. data/sample-apps/search-result-paging-app/db/seeds.rb +7 -0
  118. data/sample-apps/search-result-paging-app/docker-compose.yml +11 -0
  119. data/sample-apps/search-result-paging-app/docker-entrypoint.sh +8 -0
  120. data/sample-apps/search-result-paging-app/lib/assets/.keep +0 -0
  121. data/sample-apps/search-result-paging-app/lib/tasks/.keep +0 -0
  122. data/sample-apps/search-result-paging-app/lib/tasks/search_contacts.rake +36 -0
  123. data/sample-apps/search-result-paging-app/log/.keep +0 -0
  124. data/sample-apps/search-result-paging-app/package.json +5 -0
  125. data/sample-apps/search-result-paging-app/public/404.html +67 -0
  126. data/sample-apps/search-result-paging-app/public/422.html +67 -0
  127. data/sample-apps/search-result-paging-app/public/500.html +66 -0
  128. data/sample-apps/search-result-paging-app/public/apple-touch-icon-precomposed.png +0 -0
  129. data/sample-apps/search-result-paging-app/public/apple-touch-icon.png +0 -0
  130. data/sample-apps/search-result-paging-app/public/favicon.ico +0 -0
  131. data/sample-apps/search-result-paging-app/public/robots.txt +1 -0
  132. data/sample-apps/search-result-paging-app/tmp/.keep +0 -0
  133. metadata +309 -2
@@ -0,0 +1,1091 @@
1
+ =begin
2
+ #Domains
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Hubspot
16
+ module Cms
17
+ module Domains
18
+ class Domain
19
+ attr_accessor :portal_id
20
+
21
+ attr_accessor :id
22
+
23
+ attr_accessor :created
24
+
25
+ attr_accessor :updated
26
+
27
+ attr_accessor :domain
28
+
29
+ attr_accessor :primary_landing_page
30
+
31
+ attr_accessor :primary_email
32
+
33
+ attr_accessor :primary_blog
34
+
35
+ attr_accessor :primary_blog_post
36
+
37
+ attr_accessor :primary_site_page
38
+
39
+ attr_accessor :primary_knowledge
40
+
41
+ attr_accessor :primary_legacy_page
42
+
43
+ attr_accessor :primary_click_tracking
44
+
45
+ attr_accessor :full_category_key
46
+
47
+ attr_accessor :secondary_to_domain
48
+
49
+ attr_accessor :is_resolving
50
+
51
+ attr_accessor :is_dns_correct
52
+
53
+ attr_accessor :manually_marked_as_resolving
54
+
55
+ attr_accessor :consecutive_non_resolving_count
56
+
57
+ attr_accessor :ssl_cname
58
+
59
+ attr_accessor :is_ssl_enabled
60
+
61
+ attr_accessor :is_ssl_only
62
+
63
+ attr_accessor :certificate_id
64
+
65
+ attr_accessor :ssl_request_id
66
+
67
+ attr_accessor :is_used_for_blog_post
68
+
69
+ attr_accessor :is_used_for_site_page
70
+
71
+ attr_accessor :is_used_for_landing_page
72
+
73
+ attr_accessor :is_used_for_email
74
+
75
+ attr_accessor :is_used_for_knowledge
76
+
77
+ attr_accessor :setup_task_id
78
+
79
+ attr_accessor :is_setup_complete
80
+
81
+ attr_accessor :set_up_language
82
+
83
+ attr_accessor :team_ids
84
+
85
+ attr_accessor :actual_cname
86
+
87
+ attr_accessor :correct_cname
88
+
89
+ attr_accessor :actual_ip
90
+
91
+ attr_accessor :apex_resolution_status
92
+
93
+ attr_accessor :apex_domain
94
+
95
+ attr_accessor :public_suffix
96
+
97
+ attr_accessor :apex_ip_addresses
98
+
99
+ attr_accessor :site_id
100
+
101
+ attr_accessor :brand_id
102
+
103
+ attr_accessor :deletable
104
+
105
+ attr_accessor :domain_cdn_config
106
+
107
+ attr_accessor :setup_info
108
+
109
+ attr_accessor :derived_brand_name
110
+
111
+ attr_accessor :created_by_id
112
+
113
+ attr_accessor :updated_by_id
114
+
115
+ attr_accessor :label
116
+
117
+ attr_accessor :is_any_primary
118
+
119
+ attr_accessor :is_legacy_domain
120
+
121
+ attr_accessor :is_internal_domain
122
+
123
+ attr_accessor :is_resolving_internal_property
124
+
125
+ attr_accessor :is_resolving_ignoring_manually_marked_as_resolving
126
+
127
+ attr_accessor :is_used_for_any_content_type
128
+
129
+ attr_accessor :is_legacy
130
+
131
+ attr_accessor :author_at
132
+
133
+ attr_accessor :cos_object_type
134
+
135
+ attr_accessor :cdn_purge_embargo_time
136
+
137
+ attr_accessor :is_staging_domain
138
+
139
+ class EnumAttributeValidator
140
+ attr_reader :datatype
141
+ attr_reader :allowable_values
142
+
143
+ def initialize(datatype, allowable_values)
144
+ @allowable_values = allowable_values.map do |value|
145
+ case datatype.to_s
146
+ when /Integer/i
147
+ value.to_i
148
+ when /Float/i
149
+ value.to_f
150
+ else
151
+ value
152
+ end
153
+ end
154
+ end
155
+
156
+ def valid?(value)
157
+ !value || allowable_values.include?(value)
158
+ end
159
+ end
160
+
161
+ # Attribute mapping from ruby-style variable name to JSON key.
162
+ def self.attribute_map
163
+ {
164
+ :'portal_id' => :'portalId',
165
+ :'id' => :'id',
166
+ :'created' => :'created',
167
+ :'updated' => :'updated',
168
+ :'domain' => :'domain',
169
+ :'primary_landing_page' => :'primaryLandingPage',
170
+ :'primary_email' => :'primaryEmail',
171
+ :'primary_blog' => :'primaryBlog',
172
+ :'primary_blog_post' => :'primaryBlogPost',
173
+ :'primary_site_page' => :'primarySitePage',
174
+ :'primary_knowledge' => :'primaryKnowledge',
175
+ :'primary_legacy_page' => :'primaryLegacyPage',
176
+ :'primary_click_tracking' => :'primaryClickTracking',
177
+ :'full_category_key' => :'fullCategoryKey',
178
+ :'secondary_to_domain' => :'secondaryToDomain',
179
+ :'is_resolving' => :'isResolving',
180
+ :'is_dns_correct' => :'isDnsCorrect',
181
+ :'manually_marked_as_resolving' => :'manuallyMarkedAsResolving',
182
+ :'consecutive_non_resolving_count' => :'consecutiveNonResolvingCount',
183
+ :'ssl_cname' => :'sslCname',
184
+ :'is_ssl_enabled' => :'isSslEnabled',
185
+ :'is_ssl_only' => :'isSslOnly',
186
+ :'certificate_id' => :'certificateId',
187
+ :'ssl_request_id' => :'sslRequestId',
188
+ :'is_used_for_blog_post' => :'isUsedForBlogPost',
189
+ :'is_used_for_site_page' => :'isUsedForSitePage',
190
+ :'is_used_for_landing_page' => :'isUsedForLandingPage',
191
+ :'is_used_for_email' => :'isUsedForEmail',
192
+ :'is_used_for_knowledge' => :'isUsedForKnowledge',
193
+ :'setup_task_id' => :'setupTaskId',
194
+ :'is_setup_complete' => :'isSetupComplete',
195
+ :'set_up_language' => :'setUpLanguage',
196
+ :'team_ids' => :'teamIds',
197
+ :'actual_cname' => :'actualCname',
198
+ :'correct_cname' => :'correctCname',
199
+ :'actual_ip' => :'actualIp',
200
+ :'apex_resolution_status' => :'apexResolutionStatus',
201
+ :'apex_domain' => :'apexDomain',
202
+ :'public_suffix' => :'publicSuffix',
203
+ :'apex_ip_addresses' => :'apexIpAddresses',
204
+ :'site_id' => :'siteId',
205
+ :'brand_id' => :'brandId',
206
+ :'deletable' => :'deletable',
207
+ :'domain_cdn_config' => :'domainCdnConfig',
208
+ :'setup_info' => :'setupInfo',
209
+ :'derived_brand_name' => :'derivedBrandName',
210
+ :'created_by_id' => :'createdById',
211
+ :'updated_by_id' => :'updatedById',
212
+ :'label' => :'label',
213
+ :'is_any_primary' => :'isAnyPrimary',
214
+ :'is_legacy_domain' => :'isLegacyDomain',
215
+ :'is_internal_domain' => :'isInternalDomain',
216
+ :'is_resolving_internal_property' => :'isResolvingInternalProperty',
217
+ :'is_resolving_ignoring_manually_marked_as_resolving' => :'isResolvingIgnoringManuallyMarkedAsResolving',
218
+ :'is_used_for_any_content_type' => :'isUsedForAnyContentType',
219
+ :'is_legacy' => :'isLegacy',
220
+ :'author_at' => :'authorAt',
221
+ :'cos_object_type' => :'cosObjectType',
222
+ :'cdn_purge_embargo_time' => :'cdnPurgeEmbargoTime',
223
+ :'is_staging_domain' => :'isStagingDomain'
224
+ }
225
+ end
226
+
227
+ # Attribute type mapping.
228
+ def self.openapi_types
229
+ {
230
+ :'portal_id' => :'Integer',
231
+ :'id' => :'Integer',
232
+ :'created' => :'Integer',
233
+ :'updated' => :'Integer',
234
+ :'domain' => :'String',
235
+ :'primary_landing_page' => :'Boolean',
236
+ :'primary_email' => :'Boolean',
237
+ :'primary_blog' => :'Boolean',
238
+ :'primary_blog_post' => :'Boolean',
239
+ :'primary_site_page' => :'Boolean',
240
+ :'primary_knowledge' => :'Boolean',
241
+ :'primary_legacy_page' => :'Boolean',
242
+ :'primary_click_tracking' => :'Boolean',
243
+ :'full_category_key' => :'String',
244
+ :'secondary_to_domain' => :'String',
245
+ :'is_resolving' => :'Boolean',
246
+ :'is_dns_correct' => :'Boolean',
247
+ :'manually_marked_as_resolving' => :'Boolean',
248
+ :'consecutive_non_resolving_count' => :'Integer',
249
+ :'ssl_cname' => :'String',
250
+ :'is_ssl_enabled' => :'Boolean',
251
+ :'is_ssl_only' => :'Boolean',
252
+ :'certificate_id' => :'Integer',
253
+ :'ssl_request_id' => :'Integer',
254
+ :'is_used_for_blog_post' => :'Boolean',
255
+ :'is_used_for_site_page' => :'Boolean',
256
+ :'is_used_for_landing_page' => :'Boolean',
257
+ :'is_used_for_email' => :'Boolean',
258
+ :'is_used_for_knowledge' => :'Boolean',
259
+ :'setup_task_id' => :'Integer',
260
+ :'is_setup_complete' => :'Boolean',
261
+ :'set_up_language' => :'String',
262
+ :'team_ids' => :'Array<Integer>',
263
+ :'actual_cname' => :'String',
264
+ :'correct_cname' => :'String',
265
+ :'actual_ip' => :'String',
266
+ :'apex_resolution_status' => :'String',
267
+ :'apex_domain' => :'String',
268
+ :'public_suffix' => :'String',
269
+ :'apex_ip_addresses' => :'Array<String>',
270
+ :'site_id' => :'Integer',
271
+ :'brand_id' => :'Integer',
272
+ :'deletable' => :'Boolean',
273
+ :'domain_cdn_config' => :'DomainCdnConfig',
274
+ :'setup_info' => :'DomainSetupInfo',
275
+ :'derived_brand_name' => :'String',
276
+ :'created_by_id' => :'Integer',
277
+ :'updated_by_id' => :'Integer',
278
+ :'label' => :'String',
279
+ :'is_any_primary' => :'Boolean',
280
+ :'is_legacy_domain' => :'Boolean',
281
+ :'is_internal_domain' => :'Boolean',
282
+ :'is_resolving_internal_property' => :'Boolean',
283
+ :'is_resolving_ignoring_manually_marked_as_resolving' => :'Boolean',
284
+ :'is_used_for_any_content_type' => :'Boolean',
285
+ :'is_legacy' => :'Boolean',
286
+ :'author_at' => :'Integer',
287
+ :'cos_object_type' => :'String',
288
+ :'cdn_purge_embargo_time' => :'Integer',
289
+ :'is_staging_domain' => :'Boolean'
290
+ }
291
+ end
292
+
293
+ # List of attributes with nullable: true
294
+ def self.openapi_nullable
295
+ Set.new([
296
+ ])
297
+ end
298
+
299
+ # Initializes the object
300
+ # @param [Hash] attributes Model attributes in the form of hash
301
+ def initialize(attributes = {})
302
+ if (!attributes.is_a?(Hash))
303
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::Domains::Domain` initialize method"
304
+ end
305
+
306
+ # check to see if the attribute exists and convert string to symbol for hash key
307
+ attributes = attributes.each_with_object({}) { |(k, v), h|
308
+ if (!self.class.attribute_map.key?(k.to_sym))
309
+ 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
310
+ end
311
+ h[k.to_sym] = v
312
+ }
313
+
314
+ if attributes.key?(:'portal_id')
315
+ self.portal_id = attributes[:'portal_id']
316
+ end
317
+
318
+ if attributes.key?(:'id')
319
+ self.id = attributes[:'id']
320
+ end
321
+
322
+ if attributes.key?(:'created')
323
+ self.created = attributes[:'created']
324
+ end
325
+
326
+ if attributes.key?(:'updated')
327
+ self.updated = attributes[:'updated']
328
+ end
329
+
330
+ if attributes.key?(:'domain')
331
+ self.domain = attributes[:'domain']
332
+ end
333
+
334
+ if attributes.key?(:'primary_landing_page')
335
+ self.primary_landing_page = attributes[:'primary_landing_page']
336
+ end
337
+
338
+ if attributes.key?(:'primary_email')
339
+ self.primary_email = attributes[:'primary_email']
340
+ end
341
+
342
+ if attributes.key?(:'primary_blog')
343
+ self.primary_blog = attributes[:'primary_blog']
344
+ end
345
+
346
+ if attributes.key?(:'primary_blog_post')
347
+ self.primary_blog_post = attributes[:'primary_blog_post']
348
+ end
349
+
350
+ if attributes.key?(:'primary_site_page')
351
+ self.primary_site_page = attributes[:'primary_site_page']
352
+ end
353
+
354
+ if attributes.key?(:'primary_knowledge')
355
+ self.primary_knowledge = attributes[:'primary_knowledge']
356
+ end
357
+
358
+ if attributes.key?(:'primary_legacy_page')
359
+ self.primary_legacy_page = attributes[:'primary_legacy_page']
360
+ end
361
+
362
+ if attributes.key?(:'primary_click_tracking')
363
+ self.primary_click_tracking = attributes[:'primary_click_tracking']
364
+ end
365
+
366
+ if attributes.key?(:'full_category_key')
367
+ self.full_category_key = attributes[:'full_category_key']
368
+ end
369
+
370
+ if attributes.key?(:'secondary_to_domain')
371
+ self.secondary_to_domain = attributes[:'secondary_to_domain']
372
+ end
373
+
374
+ if attributes.key?(:'is_resolving')
375
+ self.is_resolving = attributes[:'is_resolving']
376
+ end
377
+
378
+ if attributes.key?(:'is_dns_correct')
379
+ self.is_dns_correct = attributes[:'is_dns_correct']
380
+ end
381
+
382
+ if attributes.key?(:'manually_marked_as_resolving')
383
+ self.manually_marked_as_resolving = attributes[:'manually_marked_as_resolving']
384
+ end
385
+
386
+ if attributes.key?(:'consecutive_non_resolving_count')
387
+ self.consecutive_non_resolving_count = attributes[:'consecutive_non_resolving_count']
388
+ end
389
+
390
+ if attributes.key?(:'ssl_cname')
391
+ self.ssl_cname = attributes[:'ssl_cname']
392
+ end
393
+
394
+ if attributes.key?(:'is_ssl_enabled')
395
+ self.is_ssl_enabled = attributes[:'is_ssl_enabled']
396
+ end
397
+
398
+ if attributes.key?(:'is_ssl_only')
399
+ self.is_ssl_only = attributes[:'is_ssl_only']
400
+ end
401
+
402
+ if attributes.key?(:'certificate_id')
403
+ self.certificate_id = attributes[:'certificate_id']
404
+ end
405
+
406
+ if attributes.key?(:'ssl_request_id')
407
+ self.ssl_request_id = attributes[:'ssl_request_id']
408
+ end
409
+
410
+ if attributes.key?(:'is_used_for_blog_post')
411
+ self.is_used_for_blog_post = attributes[:'is_used_for_blog_post']
412
+ end
413
+
414
+ if attributes.key?(:'is_used_for_site_page')
415
+ self.is_used_for_site_page = attributes[:'is_used_for_site_page']
416
+ end
417
+
418
+ if attributes.key?(:'is_used_for_landing_page')
419
+ self.is_used_for_landing_page = attributes[:'is_used_for_landing_page']
420
+ end
421
+
422
+ if attributes.key?(:'is_used_for_email')
423
+ self.is_used_for_email = attributes[:'is_used_for_email']
424
+ end
425
+
426
+ if attributes.key?(:'is_used_for_knowledge')
427
+ self.is_used_for_knowledge = attributes[:'is_used_for_knowledge']
428
+ end
429
+
430
+ if attributes.key?(:'setup_task_id')
431
+ self.setup_task_id = attributes[:'setup_task_id']
432
+ end
433
+
434
+ if attributes.key?(:'is_setup_complete')
435
+ self.is_setup_complete = attributes[:'is_setup_complete']
436
+ end
437
+
438
+ if attributes.key?(:'set_up_language')
439
+ self.set_up_language = attributes[:'set_up_language']
440
+ end
441
+
442
+ if attributes.key?(:'team_ids')
443
+ if (value = attributes[:'team_ids']).is_a?(Array)
444
+ self.team_ids = value
445
+ end
446
+ end
447
+
448
+ if attributes.key?(:'actual_cname')
449
+ self.actual_cname = attributes[:'actual_cname']
450
+ end
451
+
452
+ if attributes.key?(:'correct_cname')
453
+ self.correct_cname = attributes[:'correct_cname']
454
+ end
455
+
456
+ if attributes.key?(:'actual_ip')
457
+ self.actual_ip = attributes[:'actual_ip']
458
+ end
459
+
460
+ if attributes.key?(:'apex_resolution_status')
461
+ self.apex_resolution_status = attributes[:'apex_resolution_status']
462
+ end
463
+
464
+ if attributes.key?(:'apex_domain')
465
+ self.apex_domain = attributes[:'apex_domain']
466
+ end
467
+
468
+ if attributes.key?(:'public_suffix')
469
+ self.public_suffix = attributes[:'public_suffix']
470
+ end
471
+
472
+ if attributes.key?(:'apex_ip_addresses')
473
+ if (value = attributes[:'apex_ip_addresses']).is_a?(Array)
474
+ self.apex_ip_addresses = value
475
+ end
476
+ end
477
+
478
+ if attributes.key?(:'site_id')
479
+ self.site_id = attributes[:'site_id']
480
+ end
481
+
482
+ if attributes.key?(:'brand_id')
483
+ self.brand_id = attributes[:'brand_id']
484
+ end
485
+
486
+ if attributes.key?(:'deletable')
487
+ self.deletable = attributes[:'deletable']
488
+ end
489
+
490
+ if attributes.key?(:'domain_cdn_config')
491
+ self.domain_cdn_config = attributes[:'domain_cdn_config']
492
+ end
493
+
494
+ if attributes.key?(:'setup_info')
495
+ self.setup_info = attributes[:'setup_info']
496
+ end
497
+
498
+ if attributes.key?(:'derived_brand_name')
499
+ self.derived_brand_name = attributes[:'derived_brand_name']
500
+ end
501
+
502
+ if attributes.key?(:'created_by_id')
503
+ self.created_by_id = attributes[:'created_by_id']
504
+ end
505
+
506
+ if attributes.key?(:'updated_by_id')
507
+ self.updated_by_id = attributes[:'updated_by_id']
508
+ end
509
+
510
+ if attributes.key?(:'label')
511
+ self.label = attributes[:'label']
512
+ end
513
+
514
+ if attributes.key?(:'is_any_primary')
515
+ self.is_any_primary = attributes[:'is_any_primary']
516
+ end
517
+
518
+ if attributes.key?(:'is_legacy_domain')
519
+ self.is_legacy_domain = attributes[:'is_legacy_domain']
520
+ end
521
+
522
+ if attributes.key?(:'is_internal_domain')
523
+ self.is_internal_domain = attributes[:'is_internal_domain']
524
+ end
525
+
526
+ if attributes.key?(:'is_resolving_internal_property')
527
+ self.is_resolving_internal_property = attributes[:'is_resolving_internal_property']
528
+ end
529
+
530
+ if attributes.key?(:'is_resolving_ignoring_manually_marked_as_resolving')
531
+ self.is_resolving_ignoring_manually_marked_as_resolving = attributes[:'is_resolving_ignoring_manually_marked_as_resolving']
532
+ end
533
+
534
+ if attributes.key?(:'is_used_for_any_content_type')
535
+ self.is_used_for_any_content_type = attributes[:'is_used_for_any_content_type']
536
+ end
537
+
538
+ if attributes.key?(:'is_legacy')
539
+ self.is_legacy = attributes[:'is_legacy']
540
+ end
541
+
542
+ if attributes.key?(:'author_at')
543
+ self.author_at = attributes[:'author_at']
544
+ end
545
+
546
+ if attributes.key?(:'cos_object_type')
547
+ self.cos_object_type = attributes[:'cos_object_type']
548
+ end
549
+
550
+ if attributes.key?(:'cdn_purge_embargo_time')
551
+ self.cdn_purge_embargo_time = attributes[:'cdn_purge_embargo_time']
552
+ end
553
+
554
+ if attributes.key?(:'is_staging_domain')
555
+ self.is_staging_domain = attributes[:'is_staging_domain']
556
+ end
557
+ end
558
+
559
+ # Show invalid properties with the reasons. Usually used together with valid?
560
+ # @return Array for valid properties with the reasons
561
+ def list_invalid_properties
562
+ invalid_properties = Array.new
563
+ if @portal_id.nil?
564
+ invalid_properties.push('invalid value for "portal_id", portal_id cannot be nil.')
565
+ end
566
+
567
+ if @id.nil?
568
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
569
+ end
570
+
571
+ if @created.nil?
572
+ invalid_properties.push('invalid value for "created", created cannot be nil.')
573
+ end
574
+
575
+ if @updated.nil?
576
+ invalid_properties.push('invalid value for "updated", updated cannot be nil.')
577
+ end
578
+
579
+ if @domain.nil?
580
+ invalid_properties.push('invalid value for "domain", domain cannot be nil.')
581
+ end
582
+
583
+ if @primary_landing_page.nil?
584
+ invalid_properties.push('invalid value for "primary_landing_page", primary_landing_page cannot be nil.')
585
+ end
586
+
587
+ if @primary_email.nil?
588
+ invalid_properties.push('invalid value for "primary_email", primary_email cannot be nil.')
589
+ end
590
+
591
+ if @primary_blog.nil?
592
+ invalid_properties.push('invalid value for "primary_blog", primary_blog cannot be nil.')
593
+ end
594
+
595
+ if @primary_blog_post.nil?
596
+ invalid_properties.push('invalid value for "primary_blog_post", primary_blog_post cannot be nil.')
597
+ end
598
+
599
+ if @primary_site_page.nil?
600
+ invalid_properties.push('invalid value for "primary_site_page", primary_site_page cannot be nil.')
601
+ end
602
+
603
+ if @primary_knowledge.nil?
604
+ invalid_properties.push('invalid value for "primary_knowledge", primary_knowledge cannot be nil.')
605
+ end
606
+
607
+ if @primary_legacy_page.nil?
608
+ invalid_properties.push('invalid value for "primary_legacy_page", primary_legacy_page cannot be nil.')
609
+ end
610
+
611
+ if @primary_click_tracking.nil?
612
+ invalid_properties.push('invalid value for "primary_click_tracking", primary_click_tracking cannot be nil.')
613
+ end
614
+
615
+ if @full_category_key.nil?
616
+ invalid_properties.push('invalid value for "full_category_key", full_category_key cannot be nil.')
617
+ end
618
+
619
+ if @secondary_to_domain.nil?
620
+ invalid_properties.push('invalid value for "secondary_to_domain", secondary_to_domain cannot be nil.')
621
+ end
622
+
623
+ if @is_resolving.nil?
624
+ invalid_properties.push('invalid value for "is_resolving", is_resolving cannot be nil.')
625
+ end
626
+
627
+ if @is_dns_correct.nil?
628
+ invalid_properties.push('invalid value for "is_dns_correct", is_dns_correct cannot be nil.')
629
+ end
630
+
631
+ if @manually_marked_as_resolving.nil?
632
+ invalid_properties.push('invalid value for "manually_marked_as_resolving", manually_marked_as_resolving cannot be nil.')
633
+ end
634
+
635
+ if @consecutive_non_resolving_count.nil?
636
+ invalid_properties.push('invalid value for "consecutive_non_resolving_count", consecutive_non_resolving_count cannot be nil.')
637
+ end
638
+
639
+ if @ssl_cname.nil?
640
+ invalid_properties.push('invalid value for "ssl_cname", ssl_cname cannot be nil.')
641
+ end
642
+
643
+ if @is_ssl_enabled.nil?
644
+ invalid_properties.push('invalid value for "is_ssl_enabled", is_ssl_enabled cannot be nil.')
645
+ end
646
+
647
+ if @is_ssl_only.nil?
648
+ invalid_properties.push('invalid value for "is_ssl_only", is_ssl_only cannot be nil.')
649
+ end
650
+
651
+ if @certificate_id.nil?
652
+ invalid_properties.push('invalid value for "certificate_id", certificate_id cannot be nil.')
653
+ end
654
+
655
+ if @ssl_request_id.nil?
656
+ invalid_properties.push('invalid value for "ssl_request_id", ssl_request_id cannot be nil.')
657
+ end
658
+
659
+ if @is_used_for_blog_post.nil?
660
+ invalid_properties.push('invalid value for "is_used_for_blog_post", is_used_for_blog_post cannot be nil.')
661
+ end
662
+
663
+ if @is_used_for_site_page.nil?
664
+ invalid_properties.push('invalid value for "is_used_for_site_page", is_used_for_site_page cannot be nil.')
665
+ end
666
+
667
+ if @is_used_for_landing_page.nil?
668
+ invalid_properties.push('invalid value for "is_used_for_landing_page", is_used_for_landing_page cannot be nil.')
669
+ end
670
+
671
+ if @is_used_for_email.nil?
672
+ invalid_properties.push('invalid value for "is_used_for_email", is_used_for_email cannot be nil.')
673
+ end
674
+
675
+ if @is_used_for_knowledge.nil?
676
+ invalid_properties.push('invalid value for "is_used_for_knowledge", is_used_for_knowledge cannot be nil.')
677
+ end
678
+
679
+ if @setup_task_id.nil?
680
+ invalid_properties.push('invalid value for "setup_task_id", setup_task_id cannot be nil.')
681
+ end
682
+
683
+ if @is_setup_complete.nil?
684
+ invalid_properties.push('invalid value for "is_setup_complete", is_setup_complete cannot be nil.')
685
+ end
686
+
687
+ if @set_up_language.nil?
688
+ invalid_properties.push('invalid value for "set_up_language", set_up_language cannot be nil.')
689
+ end
690
+
691
+ if @team_ids.nil?
692
+ invalid_properties.push('invalid value for "team_ids", team_ids cannot be nil.')
693
+ end
694
+
695
+ if @actual_cname.nil?
696
+ invalid_properties.push('invalid value for "actual_cname", actual_cname cannot be nil.')
697
+ end
698
+
699
+ if @correct_cname.nil?
700
+ invalid_properties.push('invalid value for "correct_cname", correct_cname cannot be nil.')
701
+ end
702
+
703
+ if @actual_ip.nil?
704
+ invalid_properties.push('invalid value for "actual_ip", actual_ip cannot be nil.')
705
+ end
706
+
707
+ if @apex_resolution_status.nil?
708
+ invalid_properties.push('invalid value for "apex_resolution_status", apex_resolution_status cannot be nil.')
709
+ end
710
+
711
+ if @apex_domain.nil?
712
+ invalid_properties.push('invalid value for "apex_domain", apex_domain cannot be nil.')
713
+ end
714
+
715
+ if @public_suffix.nil?
716
+ invalid_properties.push('invalid value for "public_suffix", public_suffix cannot be nil.')
717
+ end
718
+
719
+ if @apex_ip_addresses.nil?
720
+ invalid_properties.push('invalid value for "apex_ip_addresses", apex_ip_addresses cannot be nil.')
721
+ end
722
+
723
+ if @site_id.nil?
724
+ invalid_properties.push('invalid value for "site_id", site_id cannot be nil.')
725
+ end
726
+
727
+ if @brand_id.nil?
728
+ invalid_properties.push('invalid value for "brand_id", brand_id cannot be nil.')
729
+ end
730
+
731
+ if @deletable.nil?
732
+ invalid_properties.push('invalid value for "deletable", deletable cannot be nil.')
733
+ end
734
+
735
+ if @domain_cdn_config.nil?
736
+ invalid_properties.push('invalid value for "domain_cdn_config", domain_cdn_config cannot be nil.')
737
+ end
738
+
739
+ if @setup_info.nil?
740
+ invalid_properties.push('invalid value for "setup_info", setup_info cannot be nil.')
741
+ end
742
+
743
+ if @derived_brand_name.nil?
744
+ invalid_properties.push('invalid value for "derived_brand_name", derived_brand_name cannot be nil.')
745
+ end
746
+
747
+ if @created_by_id.nil?
748
+ invalid_properties.push('invalid value for "created_by_id", created_by_id cannot be nil.')
749
+ end
750
+
751
+ if @updated_by_id.nil?
752
+ invalid_properties.push('invalid value for "updated_by_id", updated_by_id cannot be nil.')
753
+ end
754
+
755
+ if @label.nil?
756
+ invalid_properties.push('invalid value for "label", label cannot be nil.')
757
+ end
758
+
759
+ if @is_any_primary.nil?
760
+ invalid_properties.push('invalid value for "is_any_primary", is_any_primary cannot be nil.')
761
+ end
762
+
763
+ if @is_legacy_domain.nil?
764
+ invalid_properties.push('invalid value for "is_legacy_domain", is_legacy_domain cannot be nil.')
765
+ end
766
+
767
+ if @is_internal_domain.nil?
768
+ invalid_properties.push('invalid value for "is_internal_domain", is_internal_domain cannot be nil.')
769
+ end
770
+
771
+ if @is_resolving_internal_property.nil?
772
+ invalid_properties.push('invalid value for "is_resolving_internal_property", is_resolving_internal_property cannot be nil.')
773
+ end
774
+
775
+ if @is_resolving_ignoring_manually_marked_as_resolving.nil?
776
+ invalid_properties.push('invalid value for "is_resolving_ignoring_manually_marked_as_resolving", is_resolving_ignoring_manually_marked_as_resolving cannot be nil.')
777
+ end
778
+
779
+ if @is_used_for_any_content_type.nil?
780
+ invalid_properties.push('invalid value for "is_used_for_any_content_type", is_used_for_any_content_type cannot be nil.')
781
+ end
782
+
783
+ if @is_legacy.nil?
784
+ invalid_properties.push('invalid value for "is_legacy", is_legacy cannot be nil.')
785
+ end
786
+
787
+ if @author_at.nil?
788
+ invalid_properties.push('invalid value for "author_at", author_at cannot be nil.')
789
+ end
790
+
791
+ if @cos_object_type.nil?
792
+ invalid_properties.push('invalid value for "cos_object_type", cos_object_type cannot be nil.')
793
+ end
794
+
795
+ if @cdn_purge_embargo_time.nil?
796
+ invalid_properties.push('invalid value for "cdn_purge_embargo_time", cdn_purge_embargo_time cannot be nil.')
797
+ end
798
+
799
+ if @is_staging_domain.nil?
800
+ invalid_properties.push('invalid value for "is_staging_domain", is_staging_domain cannot be nil.')
801
+ end
802
+
803
+ invalid_properties
804
+ end
805
+
806
+ # Check to see if the all the properties in the model are valid
807
+ # @return true if the model is valid
808
+ def valid?
809
+ return false if @portal_id.nil?
810
+ return false if @id.nil?
811
+ return false if @created.nil?
812
+ return false if @updated.nil?
813
+ return false if @domain.nil?
814
+ return false if @primary_landing_page.nil?
815
+ return false if @primary_email.nil?
816
+ return false if @primary_blog.nil?
817
+ return false if @primary_blog_post.nil?
818
+ return false if @primary_site_page.nil?
819
+ return false if @primary_knowledge.nil?
820
+ return false if @primary_legacy_page.nil?
821
+ return false if @primary_click_tracking.nil?
822
+ return false if @full_category_key.nil?
823
+ return false if @secondary_to_domain.nil?
824
+ return false if @is_resolving.nil?
825
+ return false if @is_dns_correct.nil?
826
+ return false if @manually_marked_as_resolving.nil?
827
+ return false if @consecutive_non_resolving_count.nil?
828
+ return false if @ssl_cname.nil?
829
+ return false if @is_ssl_enabled.nil?
830
+ return false if @is_ssl_only.nil?
831
+ return false if @certificate_id.nil?
832
+ return false if @ssl_request_id.nil?
833
+ return false if @is_used_for_blog_post.nil?
834
+ return false if @is_used_for_site_page.nil?
835
+ return false if @is_used_for_landing_page.nil?
836
+ return false if @is_used_for_email.nil?
837
+ return false if @is_used_for_knowledge.nil?
838
+ return false if @setup_task_id.nil?
839
+ return false if @is_setup_complete.nil?
840
+ return false if @set_up_language.nil?
841
+ return false if @team_ids.nil?
842
+ return false if @actual_cname.nil?
843
+ return false if @correct_cname.nil?
844
+ return false if @actual_ip.nil?
845
+ return false if @apex_resolution_status.nil?
846
+ apex_resolution_status_validator = EnumAttributeValidator.new('String', ["INELIGIBLE", "SUGGEST_RESOLVING", "ALREADY_RESOLVING", "ERROR"])
847
+ return false unless apex_resolution_status_validator.valid?(@apex_resolution_status)
848
+ return false if @apex_domain.nil?
849
+ return false if @public_suffix.nil?
850
+ return false if @apex_ip_addresses.nil?
851
+ return false if @site_id.nil?
852
+ return false if @brand_id.nil?
853
+ return false if @deletable.nil?
854
+ return false if @domain_cdn_config.nil?
855
+ return false if @setup_info.nil?
856
+ return false if @derived_brand_name.nil?
857
+ return false if @created_by_id.nil?
858
+ return false if @updated_by_id.nil?
859
+ return false if @label.nil?
860
+ return false if @is_any_primary.nil?
861
+ return false if @is_legacy_domain.nil?
862
+ return false if @is_internal_domain.nil?
863
+ return false if @is_resolving_internal_property.nil?
864
+ return false if @is_resolving_ignoring_manually_marked_as_resolving.nil?
865
+ return false if @is_used_for_any_content_type.nil?
866
+ return false if @is_legacy.nil?
867
+ return false if @author_at.nil?
868
+ return false if @cos_object_type.nil?
869
+ 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"])
870
+ return false unless cos_object_type_validator.valid?(@cos_object_type)
871
+ return false if @cdn_purge_embargo_time.nil?
872
+ return false if @is_staging_domain.nil?
873
+ true
874
+ end
875
+
876
+ # Custom attribute writer method checking allowed values (enum).
877
+ # @param [Object] apex_resolution_status Object to be assigned
878
+ def apex_resolution_status=(apex_resolution_status)
879
+ validator = EnumAttributeValidator.new('String', ["INELIGIBLE", "SUGGEST_RESOLVING", "ALREADY_RESOLVING", "ERROR"])
880
+ unless validator.valid?(apex_resolution_status)
881
+ fail ArgumentError, "invalid value for \"apex_resolution_status\", must be one of #{validator.allowable_values}."
882
+ end
883
+ @apex_resolution_status = apex_resolution_status
884
+ end
885
+
886
+ # Custom attribute writer method checking allowed values (enum).
887
+ # @param [Object] cos_object_type Object to be assigned
888
+ def cos_object_type=(cos_object_type)
889
+ 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"])
890
+ unless validator.valid?(cos_object_type)
891
+ fail ArgumentError, "invalid value for \"cos_object_type\", must be one of #{validator.allowable_values}."
892
+ end
893
+ @cos_object_type = cos_object_type
894
+ end
895
+
896
+ # Checks equality by comparing each attribute.
897
+ # @param [Object] Object to be compared
898
+ def ==(o)
899
+ return true if self.equal?(o)
900
+ self.class == o.class &&
901
+ portal_id == o.portal_id &&
902
+ id == o.id &&
903
+ created == o.created &&
904
+ updated == o.updated &&
905
+ domain == o.domain &&
906
+ primary_landing_page == o.primary_landing_page &&
907
+ primary_email == o.primary_email &&
908
+ primary_blog == o.primary_blog &&
909
+ primary_blog_post == o.primary_blog_post &&
910
+ primary_site_page == o.primary_site_page &&
911
+ primary_knowledge == o.primary_knowledge &&
912
+ primary_legacy_page == o.primary_legacy_page &&
913
+ primary_click_tracking == o.primary_click_tracking &&
914
+ full_category_key == o.full_category_key &&
915
+ secondary_to_domain == o.secondary_to_domain &&
916
+ is_resolving == o.is_resolving &&
917
+ is_dns_correct == o.is_dns_correct &&
918
+ manually_marked_as_resolving == o.manually_marked_as_resolving &&
919
+ consecutive_non_resolving_count == o.consecutive_non_resolving_count &&
920
+ ssl_cname == o.ssl_cname &&
921
+ is_ssl_enabled == o.is_ssl_enabled &&
922
+ is_ssl_only == o.is_ssl_only &&
923
+ certificate_id == o.certificate_id &&
924
+ ssl_request_id == o.ssl_request_id &&
925
+ is_used_for_blog_post == o.is_used_for_blog_post &&
926
+ is_used_for_site_page == o.is_used_for_site_page &&
927
+ is_used_for_landing_page == o.is_used_for_landing_page &&
928
+ is_used_for_email == o.is_used_for_email &&
929
+ is_used_for_knowledge == o.is_used_for_knowledge &&
930
+ setup_task_id == o.setup_task_id &&
931
+ is_setup_complete == o.is_setup_complete &&
932
+ set_up_language == o.set_up_language &&
933
+ team_ids == o.team_ids &&
934
+ actual_cname == o.actual_cname &&
935
+ correct_cname == o.correct_cname &&
936
+ actual_ip == o.actual_ip &&
937
+ apex_resolution_status == o.apex_resolution_status &&
938
+ apex_domain == o.apex_domain &&
939
+ public_suffix == o.public_suffix &&
940
+ apex_ip_addresses == o.apex_ip_addresses &&
941
+ site_id == o.site_id &&
942
+ brand_id == o.brand_id &&
943
+ deletable == o.deletable &&
944
+ domain_cdn_config == o.domain_cdn_config &&
945
+ setup_info == o.setup_info &&
946
+ derived_brand_name == o.derived_brand_name &&
947
+ created_by_id == o.created_by_id &&
948
+ updated_by_id == o.updated_by_id &&
949
+ label == o.label &&
950
+ is_any_primary == o.is_any_primary &&
951
+ is_legacy_domain == o.is_legacy_domain &&
952
+ is_internal_domain == o.is_internal_domain &&
953
+ is_resolving_internal_property == o.is_resolving_internal_property &&
954
+ is_resolving_ignoring_manually_marked_as_resolving == o.is_resolving_ignoring_manually_marked_as_resolving &&
955
+ is_used_for_any_content_type == o.is_used_for_any_content_type &&
956
+ is_legacy == o.is_legacy &&
957
+ author_at == o.author_at &&
958
+ cos_object_type == o.cos_object_type &&
959
+ cdn_purge_embargo_time == o.cdn_purge_embargo_time &&
960
+ is_staging_domain == o.is_staging_domain
961
+ end
962
+
963
+ # @see the `==` method
964
+ # @param [Object] Object to be compared
965
+ def eql?(o)
966
+ self == o
967
+ end
968
+
969
+ # Calculates hash code according to all attributes.
970
+ # @return [Integer] Hash code
971
+ def hash
972
+ [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, author_at, cos_object_type, cdn_purge_embargo_time, is_staging_domain].hash
973
+ end
974
+
975
+ # Builds the object from hash
976
+ # @param [Hash] attributes Model attributes in the form of hash
977
+ # @return [Object] Returns the model itself
978
+ def self.build_from_hash(attributes)
979
+ new.build_from_hash(attributes)
980
+ end
981
+
982
+ # Builds the object from hash
983
+ # @param [Hash] attributes Model attributes in the form of hash
984
+ # @return [Object] Returns the model itself
985
+ def build_from_hash(attributes)
986
+ return nil unless attributes.is_a?(Hash)
987
+ self.class.openapi_types.each_pair do |key, type|
988
+ if type =~ /\AArray<(.*)>/i
989
+ # check to ensure the input is an array given that the attribute
990
+ # is documented as an array but the input is not
991
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
992
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
993
+ end
994
+ elsif !attributes[self.class.attribute_map[key]].nil?
995
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
996
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
997
+ end
998
+
999
+ self
1000
+ end
1001
+
1002
+ # Deserializes the data based on type
1003
+ # @param string type Data type
1004
+ # @param string value Value to be deserialized
1005
+ # @return [Object] Deserialized data
1006
+ def _deserialize(type, value)
1007
+ case type.to_sym
1008
+ when :DateTime
1009
+ DateTime.parse(value)
1010
+ when :Date
1011
+ Date.parse(value)
1012
+ when :String
1013
+ value.to_s
1014
+ when :Integer
1015
+ value.to_i
1016
+ when :Float
1017
+ value.to_f
1018
+ when :Boolean
1019
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1020
+ true
1021
+ else
1022
+ false
1023
+ end
1024
+ when :Object
1025
+ # generic object (usually a Hash), return directly
1026
+ value
1027
+ when /\AArray<(?<inner_type>.+)>\z/
1028
+ inner_type = Regexp.last_match[:inner_type]
1029
+ value.map { |v| _deserialize(inner_type, v) }
1030
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1031
+ k_type = Regexp.last_match[:k_type]
1032
+ v_type = Regexp.last_match[:v_type]
1033
+ {}.tap do |hash|
1034
+ value.each do |k, v|
1035
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1036
+ end
1037
+ end
1038
+ else # model
1039
+ Hubspot::Cms::Domains.const_get(type).build_from_hash(value)
1040
+ end
1041
+ end
1042
+
1043
+ # Returns the string representation of the object
1044
+ # @return [String] String presentation of the object
1045
+ def to_s
1046
+ to_hash.to_s
1047
+ end
1048
+
1049
+ # to_body is an alias to to_hash (backward compatibility)
1050
+ # @return [Hash] Returns the object in the form of hash
1051
+ def to_body
1052
+ to_hash
1053
+ end
1054
+
1055
+ # Returns the object in the form of hash
1056
+ # @return [Hash] Returns the object in the form of hash
1057
+ def to_hash
1058
+ hash = {}
1059
+ self.class.attribute_map.each_pair do |attr, param|
1060
+ value = self.send(attr)
1061
+ if value.nil?
1062
+ is_nullable = self.class.openapi_nullable.include?(attr)
1063
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1064
+ end
1065
+
1066
+ hash[param] = _to_hash(value)
1067
+ end
1068
+ hash
1069
+ end
1070
+
1071
+ # Outputs non-array value in the form of hash
1072
+ # For object, use to_hash. Otherwise, just return the value
1073
+ # @param [Object] value Any valid value
1074
+ # @return [Hash] Returns the value in the form of hash
1075
+ def _to_hash(value)
1076
+ if value.is_a?(Array)
1077
+ value.compact.map { |v| _to_hash(v) }
1078
+ elsif value.is_a?(Hash)
1079
+ {}.tap do |hash|
1080
+ value.each { |k, v| hash[k] = _to_hash(v) }
1081
+ end
1082
+ elsif value.respond_to? :to_hash
1083
+ value.to_hash
1084
+ else
1085
+ value
1086
+ end
1087
+ end
1088
+ end
1089
+ end
1090
+ end
1091
+ end