hubspot-api-client 13.1.0 → 13.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +16 -16
- data/README.md +4 -2
- data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
- data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +2 -2
- data/lib/hubspot/codegen/cms/site-search/api/public_api.rb +1 -4
- data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +2 -2
- data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
- data/lib/hubspot/codegen/cms/site-search/models/{search_hit_field.rb → indexed_field.rb} +35 -35
- data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +23 -21
- data/lib/hubspot/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping.rb → collection_response_with_total_url_mapping_forward_paging.rb} +4 -6
- data/lib/hubspot/codegen/cms/url-redirects/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +14 -226
- data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +31 -31
- data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/products/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +2 -2
- data/lib/hubspot/codegen/files/files/api/files_api.rb +2 -2
- data/lib/hubspot/codegen/files/files/api/folders_api.rb +3 -3
- data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +18 -14
- data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +10 -6
- data/lib/hubspot/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view.rb → collection_response_smtp_api_token_view_forward_paging.rb} +4 -5
- data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +15 -15
- data/lib/hubspot/codegen/marketing/transactional/models/{paging.rb → forward_paging.rb} +3 -3
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +3 -13
- data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +22 -30
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
- data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
- data/lib/hubspot/version.rb +1 -1
- data/spec/codegen/cms/site-search/api/public_api_spec.rb +0 -1
- data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
- data/spec/codegen/cms/site-search/models/{search_hit_field_spec.rb → indexed_field_spec.rb} +10 -10
- data/spec/codegen/cms/url-redirects/api/redirects_api_spec.rb +3 -5
- data/spec/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping_spec.rb → collection_response_with_total_url_mapping_forward_paging_spec.rb} +6 -6
- data/spec/codegen/cms/url-redirects/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/cms/url-redirects/models/url_mapping_create_request_body_spec.rb +10 -10
- data/spec/codegen/cms/url-redirects/models/url_mapping_spec.rb +2 -78
- data/spec/codegen/crm/contacts/api/basic_api_spec.rb +2 -0
- data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +3 -3
- data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +14 -14
- data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +26 -26
- data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +17 -17
- data/spec/codegen/crm/objects/feedback_submissions/api/public_object_api_spec.rb +2 -2
- data/spec/codegen/crm/quotes/api/public_object_api_spec.rb +2 -2
- data/spec/codegen/marketing/transactional/api/public_smtp_tokens_api_spec.rb +2 -2
- data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +1 -1
- data/spec/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view_spec.rb → collection_response_smtp_api_token_view_forward_paging_spec.rb} +6 -6
- data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +7 -7
- data/spec/codegen/marketing/transactional/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
- data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +4 -4
- metadata +17 -17
@@ -15,8 +15,7 @@ require 'date'
|
|
15
15
|
module Hubspot
|
16
16
|
module Marketing
|
17
17
|
module Transactional
|
18
|
-
class
|
19
|
-
# The actual collection of tokens.
|
18
|
+
class CollectionResponseSmtpApiTokenViewForwardPaging
|
20
19
|
attr_accessor :results
|
21
20
|
|
22
21
|
attr_accessor :paging
|
@@ -33,7 +32,7 @@ module Hubspot
|
|
33
32
|
def self.openapi_types
|
34
33
|
{
|
35
34
|
:'results' => :'Array<SmtpApiTokenView>',
|
36
|
-
:'paging' => :'
|
35
|
+
:'paging' => :'ForwardPaging'
|
37
36
|
}
|
38
37
|
end
|
39
38
|
|
@@ -47,13 +46,13 @@ module Hubspot
|
|
47
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
47
|
def initialize(attributes = {})
|
49
48
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Marketing::Transactional::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Marketing::Transactional::CollectionResponseSmtpApiTokenViewForwardPaging` initialize method"
|
51
50
|
end
|
52
51
|
|
53
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Marketing::Transactional::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Marketing::Transactional::CollectionResponseSmtpApiTokenViewForwardPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
56
|
end
|
58
57
|
h[k.to_sym] = v
|
59
58
|
}
|
@@ -16,8 +16,6 @@ module Hubspot
|
|
16
16
|
module Marketing
|
17
17
|
module Transactional
|
18
18
|
class EmailSendStatusView
|
19
|
-
attr_accessor :event_id
|
20
|
-
|
21
19
|
# Identifier used to query the status of the send.
|
22
20
|
attr_accessor :status_id
|
23
21
|
|
@@ -36,6 +34,8 @@ module Hubspot
|
|
36
34
|
# Status of the send request.
|
37
35
|
attr_accessor :status
|
38
36
|
|
37
|
+
attr_accessor :event_id
|
38
|
+
|
39
39
|
class EnumAttributeValidator
|
40
40
|
attr_reader :datatype
|
41
41
|
attr_reader :allowable_values
|
@@ -61,26 +61,26 @@ module Hubspot
|
|
61
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
62
|
def self.attribute_map
|
63
63
|
{
|
64
|
-
:'event_id' => :'eventId',
|
65
64
|
:'status_id' => :'statusId',
|
66
65
|
:'send_result' => :'sendResult',
|
67
66
|
:'requested_at' => :'requestedAt',
|
68
67
|
:'started_at' => :'startedAt',
|
69
68
|
:'completed_at' => :'completedAt',
|
70
|
-
:'status' => :'status'
|
69
|
+
:'status' => :'status',
|
70
|
+
:'event_id' => :'eventId'
|
71
71
|
}
|
72
72
|
end
|
73
73
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:'event_id' => :'EventIdView',
|
78
77
|
:'status_id' => :'String',
|
79
78
|
:'send_result' => :'String',
|
80
79
|
:'requested_at' => :'DateTime',
|
81
80
|
:'started_at' => :'DateTime',
|
82
81
|
:'completed_at' => :'DateTime',
|
83
|
-
:'status' => :'String'
|
82
|
+
:'status' => :'String',
|
83
|
+
:'event_id' => :'EventIdView'
|
84
84
|
}
|
85
85
|
end
|
86
86
|
|
@@ -105,10 +105,6 @@ module Hubspot
|
|
105
105
|
h[k.to_sym] = v
|
106
106
|
}
|
107
107
|
|
108
|
-
if attributes.key?(:'event_id')
|
109
|
-
self.event_id = attributes[:'event_id']
|
110
|
-
end
|
111
|
-
|
112
108
|
if attributes.key?(:'status_id')
|
113
109
|
self.status_id = attributes[:'status_id']
|
114
110
|
end
|
@@ -132,6 +128,10 @@ module Hubspot
|
|
132
128
|
if attributes.key?(:'status')
|
133
129
|
self.status = attributes[:'status']
|
134
130
|
end
|
131
|
+
|
132
|
+
if attributes.key?(:'event_id')
|
133
|
+
self.event_id = attributes[:'event_id']
|
134
|
+
end
|
135
135
|
end
|
136
136
|
|
137
137
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -153,7 +153,7 @@ module Hubspot
|
|
153
153
|
# @return true if the model is valid
|
154
154
|
def valid?
|
155
155
|
return false if @status_id.nil?
|
156
|
-
send_result_validator = EnumAttributeValidator.new('String', ["SENT", "IDEMPOTENT_IGNORE", "QUEUED", "IDEMPOTENT_FAIL", "THROTTLED", "EMAIL_DISABLED", "PORTAL_SUSPENDED", "INVALID_TO_ADDRESS", "BLOCKED_DOMAIN", "PREVIOUSLY_BOUNCED", "EMAIL_UNCONFIRMED", "PREVIOUS_SPAM", "PREVIOUSLY_UNSUBSCRIBED_MESSAGE", "PREVIOUSLY_UNSUBSCRIBED_PORTAL", "INVALID_FROM_ADDRESS", "CAMPAIGN_CANCELLED", "VALIDATION_FAILED", "MTA_IGNORE", "BLOCKED_ADDRESS", "PORTAL_OVER_LIMIT", "PORTAL_EXPIRED", "PORTAL_MISSING_MARKETING_SCOPE", "MISSING_TEMPLATE_PROPERTIES", "MISSING_REQUIRED_PARAMETER", "PORTAL_AUTHENTICATION_FAILURE", "MISSING_CONTENT", "CORRUPT_INPUT", "TEMPLATE_RENDER_EXCEPTION", "GRAYMAIL_SUPPRESSED", "UNCONFIGURED_SENDING_DOMAIN", "UNDELIVERABLE", "CANCELLED_ABUSE", "QUARANTINED_ADDRESS", "ADDRESS_ONLY_ACCEPTED_ON_PROD", "PORTAL_NOT_AUTHORIZED_FOR_APPLICATION", "ADDRESS_LIST_BOMBED", "ADDRESS_OPTED_OUT", "RECIPIENT_FATIGUE_SUPPRESSED", "TOO_MANY_RECIPIENTS", "PREVIOUSLY_UNSUBSCRIBED_BRAND", "NON_MARKETABLE_CONTACT"])
|
156
|
+
send_result_validator = EnumAttributeValidator.new('String', ["SENT", "IDEMPOTENT_IGNORE", "QUEUED", "IDEMPOTENT_FAIL", "THROTTLED", "EMAIL_DISABLED", "PORTAL_SUSPENDED", "INVALID_TO_ADDRESS", "BLOCKED_DOMAIN", "PREVIOUSLY_BOUNCED", "EMAIL_UNCONFIRMED", "PREVIOUS_SPAM", "PREVIOUSLY_UNSUBSCRIBED_MESSAGE", "PREVIOUSLY_UNSUBSCRIBED_PORTAL", "INVALID_FROM_ADDRESS", "CAMPAIGN_CANCELLED", "VALIDATION_FAILED", "MTA_IGNORE", "BLOCKED_ADDRESS", "PORTAL_OVER_LIMIT", "PORTAL_EXPIRED", "PORTAL_MISSING_MARKETING_SCOPE", "MISSING_TEMPLATE_PROPERTIES", "MISSING_REQUIRED_PARAMETER", "PORTAL_AUTHENTICATION_FAILURE", "MISSING_CONTENT", "CORRUPT_INPUT", "TEMPLATE_RENDER_EXCEPTION", "GRAYMAIL_SUPPRESSED", "UNCONFIGURED_SENDING_DOMAIN", "UNDELIVERABLE", "CANCELLED_ABUSE", "QUARANTINED_ADDRESS", "ADDRESS_ONLY_ACCEPTED_ON_PROD", "PORTAL_NOT_AUTHORIZED_FOR_APPLICATION", "ADDRESS_LIST_BOMBED", "ADDRESS_OPTED_OUT", "RECIPIENT_FATIGUE_SUPPRESSED", "TOO_MANY_RECIPIENTS", "PREVIOUSLY_UNSUBSCRIBED_BRAND", "NON_MARKETABLE_CONTACT", "PREVIOUSLY_UNSUBSCRIBED_BUSINESS_UNIT"])
|
157
157
|
return false unless send_result_validator.valid?(@send_result)
|
158
158
|
return false if @status.nil?
|
159
159
|
status_validator = EnumAttributeValidator.new('String', ["PENDING", "PROCESSING", "CANCELED", "COMPLETE"])
|
@@ -164,7 +164,7 @@ module Hubspot
|
|
164
164
|
# Custom attribute writer method checking allowed values (enum).
|
165
165
|
# @param [Object] send_result Object to be assigned
|
166
166
|
def send_result=(send_result)
|
167
|
-
validator = EnumAttributeValidator.new('String', ["SENT", "IDEMPOTENT_IGNORE", "QUEUED", "IDEMPOTENT_FAIL", "THROTTLED", "EMAIL_DISABLED", "PORTAL_SUSPENDED", "INVALID_TO_ADDRESS", "BLOCKED_DOMAIN", "PREVIOUSLY_BOUNCED", "EMAIL_UNCONFIRMED", "PREVIOUS_SPAM", "PREVIOUSLY_UNSUBSCRIBED_MESSAGE", "PREVIOUSLY_UNSUBSCRIBED_PORTAL", "INVALID_FROM_ADDRESS", "CAMPAIGN_CANCELLED", "VALIDATION_FAILED", "MTA_IGNORE", "BLOCKED_ADDRESS", "PORTAL_OVER_LIMIT", "PORTAL_EXPIRED", "PORTAL_MISSING_MARKETING_SCOPE", "MISSING_TEMPLATE_PROPERTIES", "MISSING_REQUIRED_PARAMETER", "PORTAL_AUTHENTICATION_FAILURE", "MISSING_CONTENT", "CORRUPT_INPUT", "TEMPLATE_RENDER_EXCEPTION", "GRAYMAIL_SUPPRESSED", "UNCONFIGURED_SENDING_DOMAIN", "UNDELIVERABLE", "CANCELLED_ABUSE", "QUARANTINED_ADDRESS", "ADDRESS_ONLY_ACCEPTED_ON_PROD", "PORTAL_NOT_AUTHORIZED_FOR_APPLICATION", "ADDRESS_LIST_BOMBED", "ADDRESS_OPTED_OUT", "RECIPIENT_FATIGUE_SUPPRESSED", "TOO_MANY_RECIPIENTS", "PREVIOUSLY_UNSUBSCRIBED_BRAND", "NON_MARKETABLE_CONTACT"])
|
167
|
+
validator = EnumAttributeValidator.new('String', ["SENT", "IDEMPOTENT_IGNORE", "QUEUED", "IDEMPOTENT_FAIL", "THROTTLED", "EMAIL_DISABLED", "PORTAL_SUSPENDED", "INVALID_TO_ADDRESS", "BLOCKED_DOMAIN", "PREVIOUSLY_BOUNCED", "EMAIL_UNCONFIRMED", "PREVIOUS_SPAM", "PREVIOUSLY_UNSUBSCRIBED_MESSAGE", "PREVIOUSLY_UNSUBSCRIBED_PORTAL", "INVALID_FROM_ADDRESS", "CAMPAIGN_CANCELLED", "VALIDATION_FAILED", "MTA_IGNORE", "BLOCKED_ADDRESS", "PORTAL_OVER_LIMIT", "PORTAL_EXPIRED", "PORTAL_MISSING_MARKETING_SCOPE", "MISSING_TEMPLATE_PROPERTIES", "MISSING_REQUIRED_PARAMETER", "PORTAL_AUTHENTICATION_FAILURE", "MISSING_CONTENT", "CORRUPT_INPUT", "TEMPLATE_RENDER_EXCEPTION", "GRAYMAIL_SUPPRESSED", "UNCONFIGURED_SENDING_DOMAIN", "UNDELIVERABLE", "CANCELLED_ABUSE", "QUARANTINED_ADDRESS", "ADDRESS_ONLY_ACCEPTED_ON_PROD", "PORTAL_NOT_AUTHORIZED_FOR_APPLICATION", "ADDRESS_LIST_BOMBED", "ADDRESS_OPTED_OUT", "RECIPIENT_FATIGUE_SUPPRESSED", "TOO_MANY_RECIPIENTS", "PREVIOUSLY_UNSUBSCRIBED_BRAND", "NON_MARKETABLE_CONTACT", "PREVIOUSLY_UNSUBSCRIBED_BUSINESS_UNIT"])
|
168
168
|
unless validator.valid?(send_result)
|
169
169
|
fail ArgumentError, "invalid value for \"send_result\", must be one of #{validator.allowable_values}."
|
170
170
|
end
|
@@ -186,13 +186,13 @@ module Hubspot
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
event_id == o.event_id &&
|
190
189
|
status_id == o.status_id &&
|
191
190
|
send_result == o.send_result &&
|
192
191
|
requested_at == o.requested_at &&
|
193
192
|
started_at == o.started_at &&
|
194
193
|
completed_at == o.completed_at &&
|
195
|
-
status == o.status
|
194
|
+
status == o.status &&
|
195
|
+
event_id == o.event_id
|
196
196
|
end
|
197
197
|
|
198
198
|
# @see the `==` method
|
@@ -204,7 +204,7 @@ module Hubspot
|
|
204
204
|
# Calculates hash code according to all attributes.
|
205
205
|
# @return [Integer] Hash code
|
206
206
|
def hash
|
207
|
-
[
|
207
|
+
[status_id, send_result, requested_at, started_at, completed_at, status, event_id].hash
|
208
208
|
end
|
209
209
|
|
210
210
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module Hubspot
|
16
16
|
module Marketing
|
17
17
|
module Transactional
|
18
|
-
class
|
18
|
+
class ForwardPaging
|
19
19
|
attr_accessor :_next
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -42,13 +42,13 @@ module Hubspot
|
|
42
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
43
|
def initialize(attributes = {})
|
44
44
|
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Marketing::Transactional::
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Marketing::Transactional::ForwardPaging` initialize method"
|
46
46
|
end
|
47
47
|
|
48
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
49
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Marketing::Transactional::
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Marketing::Transactional::ForwardPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
52
|
end
|
53
53
|
h[k.to_sym] = v
|
54
54
|
}
|
@@ -114,16 +114,8 @@ module Hubspot
|
|
114
114
|
# @return Array for valid properties with the reasons
|
115
115
|
def list_invalid_properties
|
116
116
|
invalid_properties = Array.new
|
117
|
-
if @
|
118
|
-
invalid_properties.push('invalid value for "
|
119
|
-
end
|
120
|
-
|
121
|
-
if @cc.nil?
|
122
|
-
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
123
|
-
end
|
124
|
-
|
125
|
-
if @bcc.nil?
|
126
|
-
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
117
|
+
if @to.nil?
|
118
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
127
119
|
end
|
128
120
|
|
129
121
|
invalid_properties
|
@@ -132,9 +124,7 @@ module Hubspot
|
|
132
124
|
# Check to see if the all the properties in the model are valid
|
133
125
|
# @return true if the model is valid
|
134
126
|
def valid?
|
135
|
-
return false if @
|
136
|
-
return false if @cc.nil?
|
137
|
-
return false if @bcc.nil?
|
127
|
+
return false if @to.nil?
|
138
128
|
true
|
139
129
|
end
|
140
130
|
|
@@ -16,6 +16,9 @@ module Hubspot
|
|
16
16
|
module Marketing
|
17
17
|
module Transactional
|
18
18
|
class PublicSingleSendRequestEgg
|
19
|
+
# The content ID for the transactional email, which can be found in email tool UI.
|
20
|
+
attr_accessor :email_id
|
21
|
+
|
19
22
|
attr_accessor :message
|
20
23
|
|
21
24
|
# The contactProperties field is a map of contact property values. Each contact property value contains a name and value property. Each property will get set on the contact record and will be visible in the template under {{ contact.NAME }}. Use these properties when you want to set a contact property while you’re sending the email. For example, when sending a reciept you may want to set a last_paid_date property, as the sending of the receipt will have information about the last payment.
|
@@ -24,26 +27,23 @@ module Hubspot
|
|
24
27
|
# The customProperties field is a map of property values. Each property value contains a name and value property. Each property will be visible in the template under {{ custom.NAME }}. Note: Custom properties do not currently support arrays. To provide a listing in an email, one workaround is to build an HTML list (either with tables or ul) and specify it as a custom property.
|
25
28
|
attr_accessor :custom_properties
|
26
29
|
|
27
|
-
# The content ID for the transactional email, which can be found in email tool UI.
|
28
|
-
attr_accessor :email_id
|
29
|
-
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
+
:'email_id' => :'emailId',
|
33
34
|
:'message' => :'message',
|
34
35
|
:'contact_properties' => :'contactProperties',
|
35
|
-
:'custom_properties' => :'customProperties'
|
36
|
-
:'email_id' => :'emailId'
|
36
|
+
:'custom_properties' => :'customProperties'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
40
|
# Attribute type mapping.
|
41
41
|
def self.openapi_types
|
42
42
|
{
|
43
|
+
:'email_id' => :'Integer',
|
43
44
|
:'message' => :'PublicSingleSendEmail',
|
44
45
|
:'contact_properties' => :'Hash<String, String>',
|
45
|
-
:'custom_properties' => :'Object'
|
46
|
-
:'email_id' => :'Integer'
|
46
|
+
:'custom_properties' => :'Hash<String, Object>'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -68,6 +68,10 @@ module Hubspot
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
+
if attributes.key?(:'email_id')
|
72
|
+
self.email_id = attributes[:'email_id']
|
73
|
+
end
|
74
|
+
|
71
75
|
if attributes.key?(:'message')
|
72
76
|
self.message = attributes[:'message']
|
73
77
|
end
|
@@ -79,11 +83,9 @@ module Hubspot
|
|
79
83
|
end
|
80
84
|
|
81
85
|
if attributes.key?(:'custom_properties')
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
if attributes.key?(:'email_id')
|
86
|
-
self.email_id = attributes[:'email_id']
|
86
|
+
if (value = attributes[:'custom_properties']).is_a?(Hash)
|
87
|
+
self.custom_properties = value
|
88
|
+
end
|
87
89
|
end
|
88
90
|
end
|
89
91
|
|
@@ -91,32 +93,22 @@ module Hubspot
|
|
91
93
|
# @return Array for valid properties with the reasons
|
92
94
|
def list_invalid_properties
|
93
95
|
invalid_properties = Array.new
|
94
|
-
if @message.nil?
|
95
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
96
|
-
end
|
97
|
-
|
98
|
-
if @contact_properties.nil?
|
99
|
-
invalid_properties.push('invalid value for "contact_properties", contact_properties cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
|
-
if @custom_properties.nil?
|
103
|
-
invalid_properties.push('invalid value for "custom_properties", custom_properties cannot be nil.')
|
104
|
-
end
|
105
|
-
|
106
96
|
if @email_id.nil?
|
107
97
|
invalid_properties.push('invalid value for "email_id", email_id cannot be nil.')
|
108
98
|
end
|
109
99
|
|
100
|
+
if @message.nil?
|
101
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
102
|
+
end
|
103
|
+
|
110
104
|
invalid_properties
|
111
105
|
end
|
112
106
|
|
113
107
|
# Check to see if the all the properties in the model are valid
|
114
108
|
# @return true if the model is valid
|
115
109
|
def valid?
|
116
|
-
return false if @message.nil?
|
117
|
-
return false if @contact_properties.nil?
|
118
|
-
return false if @custom_properties.nil?
|
119
110
|
return false if @email_id.nil?
|
111
|
+
return false if @message.nil?
|
120
112
|
true
|
121
113
|
end
|
122
114
|
|
@@ -125,10 +117,10 @@ module Hubspot
|
|
125
117
|
def ==(o)
|
126
118
|
return true if self.equal?(o)
|
127
119
|
self.class == o.class &&
|
120
|
+
email_id == o.email_id &&
|
128
121
|
message == o.message &&
|
129
122
|
contact_properties == o.contact_properties &&
|
130
|
-
custom_properties == o.custom_properties
|
131
|
-
email_id == o.email_id
|
123
|
+
custom_properties == o.custom_properties
|
132
124
|
end
|
133
125
|
|
134
126
|
# @see the `==` method
|
@@ -140,7 +132,7 @@ module Hubspot
|
|
140
132
|
# Calculates hash code according to all attributes.
|
141
133
|
# @return [Integer] Hash code
|
142
134
|
def hash
|
143
|
-
[message, contact_properties, custom_properties
|
135
|
+
[email_id, message, contact_properties, custom_properties].hash
|
144
136
|
end
|
145
137
|
|
146
138
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ module Hubspot
|
|
16
16
|
module Marketing
|
17
17
|
module Transactional
|
18
18
|
class SmtpApiTokenRequestEgg
|
19
|
-
# Indicates whether a contact should be created for recipients
|
19
|
+
# Indicates whether a contact should be created for email recipients.
|
20
20
|
attr_accessor :create_contact
|
21
21
|
|
22
22
|
# A name for the campaign tied to the SMTP API token.
|
@@ -31,7 +31,7 @@ module Hubspot
|
|
31
31
|
# Timestamp generated when a token is created.
|
32
32
|
attr_accessor :created_at
|
33
33
|
|
34
|
-
# Indicates whether a contact should be created for recipients
|
34
|
+
# Indicates whether a contact should be created for email recipients.
|
35
35
|
attr_accessor :create_contact
|
36
36
|
|
37
37
|
# A name for the campaign tied to the token.
|
data/lib/hubspot/version.rb
CHANGED
@@ -57,7 +57,6 @@ describe 'PublicApi' do
|
|
57
57
|
# @option opts [Boolean] :autocomplete Specifies whether or not you are showing autocomplete results. Defaults to false.
|
58
58
|
# @option opts [Float] :popularity_boost Specifies how strongly a result is boosted based on its view count. Defaults to 1.0.
|
59
59
|
# @option opts [Float] :boost_limit Specifies the maximum amount a result will be boosted based on its view count. Defaults to 5.0. Read more about elasticsearch boosting [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-boost.html).
|
60
|
-
# @option opts [Float] :min_score Specifies the minimum search score threshold for returned results. This value is intentionally set low by default in order to return many results. Increase this for higher precision, but less recall.
|
61
60
|
# @option opts [String] :boost_recent Specifies a relative time window where scores of documents published outside this time window decay. This can only be used for blog posts. For example, boostRecent=10d will boost documents published within the last 10 days. Supported timeunits are ms (milliseconds), s (seconds), m (minutes), h (hours), d (days).
|
62
61
|
# @option opts [Integer] :table_id Specifies a specific HubDB table to search. Only returns results from the specified table. Can be used in tandem with the `hubdbQuery` parameter to further filter results.
|
63
62
|
# @option opts [String] :hubdb_query Specify a HubDB query to further filter the search results.
|
@@ -75,7 +75,7 @@ describe 'ContentSearchResult' do
|
|
75
75
|
describe 'test attribute "language"' do
|
76
76
|
it 'should work' do
|
77
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["af", "af-na", "af-za", "agq", "agq-cm", "ak", "ak-gh", "am", "am-et", "ar", "ar-001", "ar-ae", "ar-bh", "ar-dj", "ar-dz", "ar-eg", "ar-eh", "ar-er", "ar-il", "ar-iq", "ar-jo", "ar-km", "ar-kw", "ar-lb", "ar-ly", "ar-ma", "ar-mr", "ar-om", "ar-ps", "ar-qa", "ar-sa", "ar-sd", "ar-so", "ar-ss", "ar-sy", "ar-td", "ar-tn", "ar-ye", "as", "as-in", "asa", "asa-tz", "ast", "ast-es", "az", "az-az", "bas", "bas-cm", "be", "be-by", "bem", "bem-zm", "bez", "bez-tz", "bg", "bg-bg", "bm", "bm-ml", "bn", "bn-bd", "bn-in", "bo", "bo-cn", "bo-in", "br", "br-fr", "brx", "brx-in", "bs", "bs-ba", "ca", "ca-ad", "ca-es", "ca-fr", "ca-it", "ccp", "ccp-bd", "ccp-in", "ce", "ce-ru", "cgg", "cgg-ug", "chr", "chr-us", "ckb", "ckb-iq", "ckb-ir", "cs", "cs-cz", "cu", "cu-ru", "cy", "cy-gb", "da", "da-dk", "da-gl", "dav", "dav-ke", "de", "de-at", "de-be", "de-ch", "de-de", "de-gr", "de-it", "de-li", "de-lu", "dje", "dje-ne", "dsb", "dsb-de", "dua", "dua-cm", "dyo", "dyo-sn", "dz", "dz-bt", "ebu", "ebu-ke", "ee", "ee-gh", "ee-tg", "el", "el-cy", "el-gr", "en", "en-001", "en-150", "en-ag", "en-ai", "en-as", "en-at", "en-au", "en-bb", "en-be", "en-bi", "en-bm", "en-bs", "en-bw", "en-bz", "en-ca", "en-cc", "en-ch", "en-ck", "en-cm", "en-cx", "en-cy", "en-de", "en-dg", "en-dk", "en-dm", "en-er", "en-fi", "en-fj", "en-fk", "en-fm", "en-gb", "en-gd", "en-gg", "en-gh", "en-gi", "en-gm", "en-gu", "en-gy", "en-hk", "en-ie", "en-il", "en-im", "en-in", "en-io", "en-je", "en-jm", "en-ke", "en-ki", "en-kn", "en-ky", "en-lc", "en-lr", "en-ls", "en-mg", "en-mh", "en-mo", "en-mp", "en-ms", "en-mt", "en-mu", "en-mw", "en-my", "en-na", "en-nf", "en-ng", "en-nl", "en-nr", "en-nu", "en-nz", "en-pg", "en-ph", "en-pk", "en-pn", "en-pr", "en-pw", "en-rw", "en-sb", "en-sc", "en-sd", "en-se", "en-sg", "en-sh", "en-si", "en-sl", "en-ss", "en-sx", "en-sz", "en-tc", "en-tk", "en-to", "en-tt", "en-tv", "en-tz", "en-ug", "en-um", "en-us", "en-vc", "en-vg", "en-vi", "en-vu", "en-ws", "en-za", "en-zm", "en-zw", "eo", "eo-001", "es", "es-419", "es-ar", "es-bo", "es-br", "es-bz", "es-cl", "es-co", "es-cr", "es-cu", "es-do", "es-ea", "es-ec", "es-es", "es-gq", "es-gt", "es-hn", "es-ic", "es-mx", "es-ni", "es-pa", "es-pe", "es-ph", "es-pr", "es-py", "es-sv", "es-us", "es-uy", "es-ve", "et", "et-ee", "eu", "eu-es", "ewo", "ewo-cm", "fa", "fa-af", "fa-ir", "ff", "ff-cm", "ff-gn", "ff-mr", "ff-sn", "fi", "fi-fi", "fil", "fil-ph", "fo", "fo-dk", "fo-fo", "fr", "fr-be", "fr-bf", "fr-bi", "fr-bj", "fr-bl", "fr-ca", "fr-cd", "fr-cf", "fr-cg", "fr-ch", "fr-ci", "fr-cm", "fr-dj", "fr-dz", "fr-fr", "fr-ga", "fr-gf", "fr-gn", "fr-gp", "fr-gq", "fr-ht", "fr-km", "fr-lu", "fr-ma", "fr-mc", "fr-mf", "fr-mg", "fr-ml", "fr-mq", "fr-mr", "fr-mu", "fr-nc", "fr-ne", "fr-pf", "fr-pm", "fr-re", "fr-rw", "fr-sc", "fr-sn", "fr-sy", "fr-td", "fr-tg", "fr-tn", "fr-vu", "fr-wf", "fr-yt", "fur", "fur-it", "fy", "fy-nl", "ga", "ga-ie", "gd", "gd-gb", "gl", "gl-es", "gsw", "gsw-ch", "gsw-fr", "gsw-li", "gu", "gu-in", "guz", "guz-ke", "gv", "gv-im", "ha", "ha-gh", "ha-ne", "ha-ng", "haw", "haw-us", "he", "hi", "hi-in", "hr", "hr-ba", "hr-hr", "hsb", "hsb-de", "hu", "hu-hu", "hy", "hy-am", "id", "ig", "ig-ng", "ii", "ii-cn", "id-id", "is", "is-is", "it", "it-ch", "it-it", "it-sm", "it-va", "he-il", "ja", "ja-jp", "jgo", "jgo-cm", "yi", "yi-001", "jmc", "jmc-tz", "ka", "ka-ge", "kab", "kab-dz", "kam", "kam-ke", "kde", "kde-tz", "kea", "kea-cv", "khq", "khq-ml", "ki", "ki-ke", "kk", "kk-kz", "kkj", "kkj-cm", "kl", "kl-gl", "kln", "kln-ke", "km", "km-kh", "kn", "kn-in", "ko", "ko-kp", "ko-kr", "kok", "kok-in", "ks", "ks-in", "ksb", "ksb-tz", "ksf", "ksf-cm", "ksh", "ksh-de", "kw", "kw-gb", "ky", "ky-kg", "lag", "lag-tz", "lb", "lb-lu", "lg", "lg-ug", "lkt", "lkt-us", "ln", "ln-ao", "ln-cd", "ln-cf", "ln-cg", "lo", "lo-la", "lrc", "lrc-iq", "lrc-ir", "lt", "lt-lt", "lu", "lu-cd", "luo", "luo-ke", "luy", "luy-ke", "lv", "lv-lv", "mas", "mas-ke", "mas-tz", "mer", "mer-ke", "mfe", "mfe-mu", "mg", "mg-mg", "mgh", "mgh-mz", "mgo", "mgo-cm", "mk", "mk-mk", "ml", "ml-in", "mn", "mn-mn", "mr", "mr-in", "ms", "ms-bn", "ms-my", "ms-sg", "mt", "mt-mt", "mua", "mua-cm", "my", "my-mm", "mzn", "mzn-ir", "naq", "naq-na", "nb", "nb-no", "nb-sj", "nd", "nd-zw", "nds", "nds-de", "nds-nl", "ne", "ne-in", "ne-np", "nl", "nl-aw", "nl-be", "nl-bq", "nl-cw", "nl-nl", "nl-sr", "nl-sx", "nmg", "nmg-cm", "nn", "nn-no", "nnh", "nnh-cm", "no", "no-no", "nus", "nus-ss", "nyn", "nyn-ug", "om", "om-et", "om-ke", "or", "or-in", "os", "os-ge", "os-ru", "pa", "pa-in", "pa-pk", "pl", "pl-pl", "prg", "prg-001", "ps", "ps-af", "pt", "pt-ao", "pt-br", "pt-ch", "pt-cv", "pt-gq", "pt-gw", "pt-lu", "pt-mo", "pt-mz", "pt-pt", "pt-st", "pt-tl", "qu", "qu-bo", "qu-ec", "qu-pe", "rm", "rm-ch", "rn", "rn-bi", "ro", "ro-md", "ro-ro", "rof", "rof-tz", "ru", "ru-by", "ru-kg", "ru-kz", "ru-md", "ru-ru", "ru-ua", "rw", "rw-rw", "rwk", "rwk-tz", "sa", "sah", "sah-ru", "saq", "saq-ke", "sbp", "sbp-tz", "sd", "sd-pk", "se", "se-fi", "se-no", "se-se", "seh", "seh-mz", "ses", "ses-ml", "sg", "sg-cf", "shi", "shi-ma", "si", "si-lk", "sk", "sk-sk", "sl", "sl-si", "smn", "smn-fi", "sn", "sn-zw", "so", "so-dj", "so-et", "so-ke", "so-so", "sq", "sq-al", "sq-mk", "sq-xk", "sr", "sr-ba", "sr-cs", "sr-me", "sr-rs", "sr-xk", "sv", "sv-ax", "sv-fi", "sv-se", "sw", "sw-cd", "sw-ke", "sw-tz", "sw-ug", "sy", "ta", "ta-in", "ta-lk", "ta-my", "ta-sg", "te", "te-in", "teo", "teo-ke", "teo-ug", "tg", "tg-tj", "th", "th-th", "ti", "ti-er", "ti-et", "tk", "tk-tm", "to", "to-to", "tr", "tr-cy", "tr-tr", "tt", "tt-ru", "twq", "twq-ne", "tzm", "tzm-ma", "ug", "ug-cn", "uk", "uk-ua", "ur", "ur-in", "ur-pk", "uz", "uz-af", "uz-uz", "vai", "vai-lr", "vi", "vi-vn", "vo", "vo-001", "vun", "vun-tz", "wae", "wae-ch", "wo", "wo-sn", "xog", "xog-ug", "yav", "yav-cm", "yo", "yo-bj", "yo-ng", "yue", "yue-cn", "yue-hk", "zgh", "zgh-ma", "zh", "zh-cn", "zh-hk", "zh-mo", "zh-sg", "zh-tw", "zh-hans", "zh-hant", "zu", "zu-za"])
|
78
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["af", "af-na", "af-za", "agq", "agq-cm", "ak", "ak-gh", "am", "am-et", "ar", "ar-001", "ar-ae", "ar-bh", "ar-dj", "ar-dz", "ar-eg", "ar-eh", "ar-er", "ar-il", "ar-iq", "ar-jo", "ar-km", "ar-kw", "ar-lb", "ar-ly", "ar-ma", "ar-mr", "ar-om", "ar-ps", "ar-qa", "ar-sa", "ar-sd", "ar-so", "ar-ss", "ar-sy", "ar-td", "ar-tn", "ar-ye", "as", "as-in", "asa", "asa-tz", "ast", "ast-es", "az", "az-az", "bas", "bas-cm", "be", "be-by", "bem", "bem-zm", "bez", "bez-tz", "bg", "bg-bg", "bm", "bm-ml", "bn", "bn-bd", "bn-in", "bo", "bo-cn", "bo-in", "br", "br-fr", "brx", "brx-in", "bs", "bs-ba", "ca", "ca-ad", "ca-es", "ca-fr", "ca-it", "ccp", "ccp-bd", "ccp-in", "ce", "ce-ru", "ceb", "ceb-ph", "cgg", "cgg-ug", "chr", "chr-us", "ckb", "ckb-iq", "ckb-ir", "cs", "cs-cz", "cu", "cu-ru", "cy", "cy-gb", "da", "da-dk", "da-gl", "dav", "dav-ke", "de", "de-at", "de-be", "de-ch", "de-de", "de-gr", "de-it", "de-li", "de-lu", "dje", "dje-ne", "doi", "doi-in", "dsb", "dsb-de", "dua", "dua-cm", "dyo", "dyo-sn", "dz", "dz-bt", "ebu", "ebu-ke", "ee", "ee-gh", "ee-tg", "el", "el-cy", "el-gr", "en", "en-001", "en-150", "en-ae", "en-ag", "en-ai", "en-as", "en-at", "en-au", "en-bb", "en-be", "en-bi", "en-bm", "en-bs", "en-bw", "en-bz", "en-ca", "en-cc", "en-ch", "en-ck", "en-cm", "en-cx", "en-cy", "en-de", "en-dg", "en-dk", "en-dm", "en-er", "en-fi", "en-fj", "en-fk", "en-fm", "en-gb", "en-gd", "en-gg", "en-gh", "en-gi", "en-gm", "en-gu", "en-gy", "en-hk", "en-ie", "en-il", "en-im", "en-in", "en-io", "en-je", "en-jm", "en-ke", "en-ki", "en-kn", "en-ky", "en-lc", "en-lr", "en-ls", "en-lu", "en-mg", "en-mh", "en-mo", "en-mp", "en-ms", "en-mt", "en-mu", "en-mw", "en-my", "en-na", "en-nf", "en-ng", "en-nl", "en-nr", "en-nu", "en-nz", "en-pg", "en-ph", "en-pk", "en-pn", "en-pr", "en-pw", "en-rw", "en-sb", "en-sc", "en-sd", "en-se", "en-sg", "en-sh", "en-si", "en-sl", "en-ss", "en-sx", "en-sz", "en-tc", "en-tk", "en-to", "en-tt", "en-tv", "en-tz", "en-ug", "en-um", "en-us", "en-vc", "en-vg", "en-vi", "en-vu", "en-ws", "en-za", "en-zm", "en-zw", "eo", "eo-001", "es", "es-419", "es-ar", "es-bo", "es-br", "es-bz", "es-cl", "es-co", "es-cr", "es-cu", "es-do", "es-ea", "es-ec", "es-es", "es-gq", "es-gt", "es-hn", "es-ic", "es-mx", "es-ni", "es-pa", "es-pe", "es-ph", "es-pr", "es-py", "es-sv", "es-us", "es-uy", "es-ve", "et", "et-ee", "eu", "eu-es", "ewo", "ewo-cm", "fa", "fa-af", "fa-ir", "ff", "ff-bf", "ff-cm", "ff-gh", "ff-gm", "ff-gn", "ff-gw", "ff-lr", "ff-mr", "ff-ne", "ff-ng", "ff-sl", "ff-sn", "fi", "fi-fi", "fil", "fil-ph", "fo", "fo-dk", "fo-fo", "fr", "fr-be", "fr-bf", "fr-bi", "fr-bj", "fr-bl", "fr-ca", "fr-cd", "fr-cf", "fr-cg", "fr-ch", "fr-ci", "fr-cm", "fr-dj", "fr-dz", "fr-fr", "fr-ga", "fr-gf", "fr-gn", "fr-gp", "fr-gq", "fr-ht", "fr-km", "fr-lu", "fr-ma", "fr-mc", "fr-mf", "fr-mg", "fr-ml", "fr-mq", "fr-mr", "fr-mu", "fr-nc", "fr-ne", "fr-pf", "fr-pm", "fr-re", "fr-rw", "fr-sc", "fr-sn", "fr-sy", "fr-td", "fr-tg", "fr-tn", "fr-vu", "fr-wf", "fr-yt", "fur", "fur-it", "fy", "fy-nl", "ga", "ga-gb", "ga-ie", "gd", "gd-gb", "gl", "gl-es", "gsw", "gsw-ch", "gsw-fr", "gsw-li", "gu", "gu-in", "guz", "guz-ke", "gv", "gv-im", "ha", "ha-gh", "ha-ne", "ha-ng", "haw", "haw-us", "he", "hi", "hi-in", "hr", "hr-ba", "hr-hr", "hsb", "hsb-de", "hu", "hu-hu", "hy", "hy-am", "ia", "ia-001", "id", "ig", "ig-ng", "ii", "ii-cn", "id-id", "is", "is-is", "it", "it-ch", "it-it", "it-sm", "it-va", "he-il", "ja", "ja-jp", "jgo", "jgo-cm", "yi", "yi-001", "jmc", "jmc-tz", "jv", "jv-id", "ka", "ka-ge", "kab", "kab-dz", "kam", "kam-ke", "kde", "kde-tz", "kea", "kea-cv", "khq", "khq-ml", "ki", "ki-ke", "kk", "kk-kz", "kkj", "kkj-cm", "kl", "kl-gl", "kln", "kln-ke", "km", "km-kh", "kn", "kn-in", "ko", "ko-kp", "ko-kr", "kok", "kok-in", "ks", "ks-in", "ksb", "ksb-tz", "ksf", "ksf-cm", "ksh", "ksh-de", "kw", "kw-gb", "ku", "ku-tr", "ky", "ky-kg", "lag", "lag-tz", "lb", "lb-lu", "lg", "lg-ug", "lkt", "lkt-us", "ln", "ln-ao", "ln-cd", "ln-cf", "ln-cg", "lo", "lo-la", "lrc", "lrc-iq", "lrc-ir", "lt", "lt-lt", "lu", "lu-cd", "luo", "luo-ke", "luy", "luy-ke", "lv", "lv-lv", "mai", "mai-in", "mas", "mas-ke", "mas-tz", "mer", "mer-ke", "mfe", "mfe-mu", "mg", "mg-mg", "mgh", "mgh-mz", "mgo", "mgo-cm", "mi", "mi-nz", "mk", "mk-mk", "ml", "ml-in", "mn", "mn-mn", "mni", "mni-in", "mr", "mr-in", "ms", "ms-bn", "ms-id", "ms-my", "ms-sg", "mt", "mt-mt", "mua", "mua-cm", "my", "my-mm", "mzn", "mzn-ir", "naq", "naq-na", "nb", "nb-no", "nb-sj", "nd", "nd-zw", "nds", "nds-de", "nds-nl", "ne", "ne-in", "ne-np", "nl", "nl-aw", "nl-be", "nl-ch", "nl-bq", "nl-cw", "nl-lu", "nl-nl", "nl-sr", "nl-sx", "nmg", "nmg-cm", "nn", "nn-no", "nnh", "nnh-cm", "no", "no-no", "nus", "nus-ss", "nyn", "nyn-ug", "om", "om-et", "om-ke", "or", "or-in", "os", "os-ge", "os-ru", "pa", "pa-in", "pa-pk", "pcm", "pcm-ng", "pl", "pl-pl", "prg", "prg-001", "ps", "ps-af", "ps-pk", "pt", "pt-ao", "pt-br", "pt-ch", "pt-cv", "pt-gq", "pt-gw", "pt-lu", "pt-mo", "pt-mz", "pt-pt", "pt-st", "pt-tl", "qu", "qu-bo", "qu-ec", "qu-pe", "rm", "rm-ch", "rn", "rn-bi", "ro", "ro-md", "ro-ro", "rof", "rof-tz", "ru", "ru-by", "ru-kg", "ru-kz", "ru-md", "ru-ru", "ru-ua", "rw", "rw-rw", "rwk", "rwk-tz", "sa", "sa-in", "sah", "sah-ru", "saq", "saq-ke", "sat", "sat-in", "sbp", "sbp-tz", "sd", "sd-in", "sd-pk", "se", "se-fi", "se-no", "se-se", "seh", "seh-mz", "ses", "ses-ml", "sg", "sg-cf", "shi", "shi-ma", "si", "si-lk", "sk", "sk-sk", "sl", "sl-si", "smn", "smn-fi", "sn", "sn-zw", "so", "so-dj", "so-et", "so-ke", "so-so", "sq", "sq-al", "sq-mk", "sq-xk", "sr", "sr-ba", "sr-cs", "sr-me", "sr-rs", "sr-xk", "su", "su-id", "sv", "sv-ax", "sv-fi", "sv-se", "sw", "sw-cd", "sw-ke", "sw-tz", "sw-ug", "sy", "ta", "ta-in", "ta-lk", "ta-my", "ta-sg", "te", "te-in", "teo", "teo-ke", "teo-ug", "tg", "tg-tj", "th", "th-th", "ti", "ti-er", "ti-et", "tk", "tk-tm", "tl", "to", "to-to", "tr", "tr-cy", "tr-tr", "tt", "tt-ru", "twq", "twq-ne", "tzm", "tzm-ma", "ug", "ug-cn", "uk", "uk-ua", "ur", "ur-in", "ur-pk", "uz", "uz-af", "uz-uz", "vai", "vai-lr", "vi", "vi-vn", "vo", "vo-001", "vun", "vun-tz", "wae", "wae-ch", "wo", "wo-sn", "xh", "xh-za", "xog", "xog-ug", "yav", "yav-cm", "yo", "yo-bj", "yo-ng", "yue", "yue-cn", "yue-hk", "zgh", "zgh-ma", "zh", "zh-cn", "zh-hk", "zh-mo", "zh-sg", "zh-tw", "zh-hans", "zh-hant", "zu", "zu-za"])
|
79
79
|
# validator.allowable_values.each do |value|
|
80
80
|
# expect { @instance.language = value }.not_to raise_error
|
81
81
|
# end
|
@@ -14,43 +14,43 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Hubspot::Cms::SiteSearch::
|
17
|
+
# Unit tests for Hubspot::Cms::SiteSearch::IndexedField
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'IndexedField' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = Hubspot::Cms::SiteSearch::
|
23
|
+
@instance = Hubspot::Cms::SiteSearch::IndexedField.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(Hubspot::Cms::SiteSearch::
|
30
|
+
describe 'test an instance of IndexedField' do
|
31
|
+
it 'should create an instance of IndexedField' do
|
32
|
+
expect(@instance).to be_instance_of(Hubspot::Cms::SiteSearch::IndexedField)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "value"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "values"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "metadata_field"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -47,8 +47,8 @@ describe 'RedirectsApi' do
|
|
47
47
|
# unit tests for create
|
48
48
|
# Create a redirect
|
49
49
|
# Creates and configures a new URL redirect.
|
50
|
+
# @param url_mapping_create_request_body
|
50
51
|
# @param [Hash] opts the optional parameters
|
51
|
-
# @option opts [UrlMappingCreateRequestBody] :url_mapping_create_request_body
|
52
52
|
# @return [UrlMapping]
|
53
53
|
describe 'create test' do
|
54
54
|
it 'should work' do
|
@@ -79,12 +79,10 @@ describe 'RedirectsApi' do
|
|
79
79
|
# @option opts [DateTime] :updated_after Only return redirects last updated after this date.
|
80
80
|
# @option opts [DateTime] :updated_before Only return redirects last updated before this date.
|
81
81
|
# @option opts [Array<String>] :sort
|
82
|
-
# @option opts [Array<String>] :properties
|
83
82
|
# @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results.
|
84
|
-
# @option opts [String] :before
|
85
83
|
# @option opts [Integer] :limit Maximum number of result per page
|
86
84
|
# @option opts [Boolean] :archived Whether to return only results that have been archived.
|
87
|
-
# @return [
|
85
|
+
# @return [CollectionResponseWithTotalUrlMappingForwardPaging]
|
88
86
|
describe 'get_page test' do
|
89
87
|
it 'should work' do
|
90
88
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -95,8 +93,8 @@ describe 'RedirectsApi' do
|
|
95
93
|
# Update a redirect
|
96
94
|
# Updates the settings for an existing URL redirect.
|
97
95
|
# @param url_redirect_id
|
96
|
+
# @param url_mapping
|
98
97
|
# @param [Hash] opts the optional parameters
|
99
|
-
# @option opts [UrlMapping] :url_mapping
|
100
98
|
# @return [UrlMapping]
|
101
99
|
describe 'update test' do
|
102
100
|
it 'should work' do
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Hubspot::Cms::UrlRedirects::
|
17
|
+
# Unit tests for Hubspot::Cms::UrlRedirects::CollectionResponseWithTotalUrlMappingForwardPaging
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'CollectionResponseWithTotalUrlMappingForwardPaging' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = Hubspot::Cms::UrlRedirects::
|
23
|
+
@instance = Hubspot::Cms::UrlRedirects::CollectionResponseWithTotalUrlMappingForwardPaging.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(Hubspot::Cms::UrlRedirects::
|
30
|
+
describe 'test an instance of CollectionResponseWithTotalUrlMappingForwardPaging' do
|
31
|
+
it 'should create an instance of CollectionResponseWithTotalUrlMappingForwardPaging' do
|
32
|
+
expect(@instance).to be_instance_of(Hubspot::Cms::UrlRedirects::CollectionResponseWithTotalUrlMappingForwardPaging)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "total"' do
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for Hubspot::Cms::UrlRedirects::
|
17
|
+
# Unit tests for Hubspot::Cms::UrlRedirects::ForwardPaging
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'ForwardPaging' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = Hubspot::Cms::UrlRedirects::
|
23
|
+
@instance = Hubspot::Cms::UrlRedirects::ForwardPaging.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(Hubspot::Cms::UrlRedirects::
|
30
|
+
describe 'test an instance of ForwardPaging' do
|
31
|
+
it 'should create an instance of ForwardPaging' do
|
32
|
+
expect(@instance).to be_instance_of(Hubspot::Cms::UrlRedirects::ForwardPaging)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "_next"' do
|