braze_api_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/braze_api_client.gemspec +1 -1
- data/docs/RestApi.md +26 -26
- data/docs/UsersAliasNewResponse.md +20 -0
- data/docs/{IdentifierOneOf.md → UsersDeleteResponse.md} +4 -4
- data/docs/UsersExternalIdsRemoveResponse.md +22 -0
- data/docs/UsersExternalIdsRenameResponse.md +22 -0
- data/docs/UsersExternalIdsRenameResponseExternalIds.md +20 -0
- data/docs/UsersIdentifyResponse.md +20 -0
- data/lib/braze_api_client/api/rest_api.rb +25 -25
- data/lib/braze_api_client/api_client.rb +2 -2
- data/lib/braze_api_client/api_error.rb +1 -1
- data/lib/braze_api_client/configuration.rb +1 -1
- data/lib/braze_api_client/models/general_error.rb +1 -1
- data/lib/braze_api_client/models/{attributes_array.rb → users_alias_new_response.rb} +20 -18
- data/lib/braze_api_client/models/{events_array.rb → users_delete_response.rb} +11 -13
- data/lib/braze_api_client/models/{users_track_request.rb → users_external_ids_remove_response.rb} +32 -37
- data/lib/braze_api_client/models/{attributes_push_tokens.rb → users_external_ids_rename_response.rb} +27 -33
- data/lib/braze_api_client/models/{attributes_facebook.rb → users_external_ids_rename_response_external_ids.rb} +17 -28
- data/lib/braze_api_client/models/{attributes_current_location.rb → users_identify_response.rb} +17 -17
- data/lib/braze_api_client/models/users_track_response.rb +1 -1
- data/lib/braze_api_client/version.rb +2 -2
- data/lib/braze_api_client.rb +7 -14
- data/spec/api/rest_api_spec.rb +7 -7
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/general_error_spec.rb +1 -1
- data/spec/models/{attributes_current_location_spec.rb → users_alias_new_response_spec.rb} +9 -9
- data/spec/models/{identifier_one_of2_spec.rb → users_delete_response_spec.rb} +8 -8
- data/spec/models/{attributes_facebook_spec.rb → users_external_ids_remove_response_spec.rb} +10 -10
- data/spec/models/users_external_ids_rename_response_external_ids_spec.rb +40 -0
- data/spec/models/{attributes_push_tokens_spec.rb → users_external_ids_rename_response_spec.rb} +10 -10
- data/spec/models/users_identify_response_spec.rb +40 -0
- data/spec/models/users_track_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +26 -54
- data/docs/Attributes.md +0 -58
- data/docs/AttributesArray.md +0 -18
- data/docs/AttributesCurrentLocation.md +0 -20
- data/docs/AttributesFacebook.md +0 -22
- data/docs/AttributesPushTokens.md +0 -22
- data/docs/AttributesTwitter.md +0 -26
- data/docs/Event.md +0 -26
- data/docs/EventsArray.md +0 -18
- data/docs/Identifier.md +0 -51
- data/docs/IdentifierOneOf1.md +0 -18
- data/docs/IdentifierOneOf2.md +0 -18
- data/docs/UsersTrackRequest.md +0 -18
- data/lib/braze_api_client/models/attributes.rb +0 -458
- data/lib/braze_api_client/models/attributes_twitter.rb +0 -254
- data/lib/braze_api_client/models/event.rb +0 -264
- data/lib/braze_api_client/models/identifier.rb +0 -106
- data/lib/braze_api_client/models/identifier_one_of.rb +0 -223
- data/lib/braze_api_client/models/identifier_one_of1.rb +0 -223
- data/lib/braze_api_client/models/identifier_one_of2.rb +0 -223
- data/spec/models/attributes_array_spec.rb +0 -34
- data/spec/models/attributes_spec.rb +0 -166
- data/spec/models/attributes_twitter_spec.rb +0 -58
- data/spec/models/event_spec.rb +0 -58
- data/spec/models/events_array_spec.rb +0 -34
- data/spec/models/identifier_one_of1_spec.rb +0 -34
- data/spec/models/identifier_one_of_spec.rb +0 -34
- data/spec/models/identifier_spec.rb +0 -31
- data/spec/models/users_track_request_spec.rb +0 -34
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,13 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersAliasNewResponse
|
18
|
+
attr_accessor :aliases_processed
|
19
|
+
|
20
|
+
attr_accessor :message
|
19
21
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
23
|
def self.attribute_map
|
22
24
|
{
|
23
|
-
:'
|
25
|
+
:'aliases_processed' => :'aliases_processed',
|
26
|
+
:'message' => :'message'
|
24
27
|
}
|
25
28
|
end
|
26
29
|
|
@@ -32,7 +35,8 @@ module BrazeClient
|
|
32
35
|
# Attribute type mapping.
|
33
36
|
def self.openapi_types
|
34
37
|
{
|
35
|
-
:'
|
38
|
+
:'aliases_processed' => :'Integer',
|
39
|
+
:'message' => :'String'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -46,21 +50,23 @@ module BrazeClient
|
|
46
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
51
|
def initialize(attributes = {})
|
48
52
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersAliasNewResponse` initialize method"
|
50
54
|
end
|
51
55
|
|
52
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersAliasNewResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
60
|
end
|
57
61
|
h[k.to_sym] = v
|
58
62
|
}
|
59
63
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
+
if attributes.key?(:'aliases_processed')
|
65
|
+
self.aliases_processed = attributes[:'aliases_processed']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'message')
|
69
|
+
self.message = attributes[:'message']
|
64
70
|
end
|
65
71
|
end
|
66
72
|
|
@@ -68,17 +74,12 @@ module BrazeClient
|
|
68
74
|
# @return Array for valid properties with the reasons
|
69
75
|
def list_invalid_properties
|
70
76
|
invalid_properties = Array.new
|
71
|
-
if @attributes.nil?
|
72
|
-
invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
77
|
invalid_properties
|
76
78
|
end
|
77
79
|
|
78
80
|
# Check to see if the all the properties in the model are valid
|
79
81
|
# @return true if the model is valid
|
80
82
|
def valid?
|
81
|
-
return false if @attributes.nil?
|
82
83
|
true
|
83
84
|
end
|
84
85
|
|
@@ -87,7 +88,8 @@ module BrazeClient
|
|
87
88
|
def ==(o)
|
88
89
|
return true if self.equal?(o)
|
89
90
|
self.class == o.class &&
|
90
|
-
|
91
|
+
aliases_processed == o.aliases_processed &&
|
92
|
+
message == o.message
|
91
93
|
end
|
92
94
|
|
93
95
|
# @see the `==` method
|
@@ -99,7 +101,7 @@ module BrazeClient
|
|
99
101
|
# Calculates hash code according to all attributes.
|
100
102
|
# @return [Integer] Hash code
|
101
103
|
def hash
|
102
|
-
[
|
104
|
+
[aliases_processed, message].hash
|
103
105
|
end
|
104
106
|
|
105
107
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersDeleteResponse
|
18
|
+
attr_accessor :deleted
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'deleted' => :'deleted'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
@@ -32,7 +32,7 @@ module BrazeClient
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'deleted' => :'Integer'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -46,21 +46,19 @@ module BrazeClient
|
|
46
46
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
47
|
def initialize(attributes = {})
|
48
48
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersDeleteResponse` initialize method"
|
50
50
|
end
|
51
51
|
|
52
52
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
53
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
54
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersDeleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
56
|
end
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
|
62
|
-
self.attributes = value
|
63
|
-
end
|
60
|
+
if attributes.key?(:'deleted')
|
61
|
+
self.deleted = attributes[:'deleted']
|
64
62
|
end
|
65
63
|
end
|
66
64
|
|
@@ -82,7 +80,7 @@ module BrazeClient
|
|
82
80
|
def ==(o)
|
83
81
|
return true if self.equal?(o)
|
84
82
|
self.class == o.class &&
|
85
|
-
|
83
|
+
deleted == o.deleted
|
86
84
|
end
|
87
85
|
|
88
86
|
# @see the `==` method
|
@@ -94,7 +92,7 @@ module BrazeClient
|
|
94
92
|
# Calculates hash code according to all attributes.
|
95
93
|
# @return [Integer] Hash code
|
96
94
|
def hash
|
97
|
-
[
|
95
|
+
[deleted].hash
|
98
96
|
end
|
99
97
|
|
100
98
|
# Builds the object from hash
|
data/lib/braze_api_client/models/{users_track_request.rb → users_external_ids_remove_response.rb}
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,13 +14,19 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersExternalIdsRemoveResponse
|
18
|
+
attr_accessor :message
|
19
|
+
|
20
|
+
attr_accessor :removal_errors
|
21
|
+
|
22
|
+
attr_accessor :removed_ids
|
19
23
|
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'
|
27
|
+
:'message' => :'message',
|
28
|
+
:'removal_errors' => :'removal_errors',
|
29
|
+
:'removed_ids' => :'removed_ids'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
@@ -32,7 +38,9 @@ module BrazeClient
|
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
35
|
-
:'
|
41
|
+
:'message' => :'String',
|
42
|
+
:'removal_errors' => :'Array<Object>',
|
43
|
+
:'removed_ids' => :'Array<String>'
|
36
44
|
}
|
37
45
|
end
|
38
46
|
|
@@ -42,32 +50,34 @@ module BrazeClient
|
|
42
50
|
])
|
43
51
|
end
|
44
52
|
|
45
|
-
# List of class defined in anyOf (OpenAPI v3)
|
46
|
-
def self.openapi_any_of
|
47
|
-
[
|
48
|
-
:'AttributesArray',
|
49
|
-
:'EventsArray'
|
50
|
-
]
|
51
|
-
end
|
52
|
-
|
53
53
|
# Initializes the object
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersExternalIdsRemoveResponse` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersExternalIdsRemoveResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
|
70
|
-
|
68
|
+
if attributes.key?(:'message')
|
69
|
+
self.message = attributes[:'message']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'removal_errors')
|
73
|
+
if (value = attributes[:'removal_errors']).is_a?(Array)
|
74
|
+
self.removal_errors = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'removed_ids')
|
79
|
+
if (value = attributes[:'removed_ids']).is_a?(Array)
|
80
|
+
self.removed_ids = value
|
71
81
|
end
|
72
82
|
end
|
73
83
|
end
|
@@ -76,29 +86,12 @@ module BrazeClient
|
|
76
86
|
# @return Array for valid properties with the reasons
|
77
87
|
def list_invalid_properties
|
78
88
|
invalid_properties = Array.new
|
79
|
-
if @attributes.nil?
|
80
|
-
invalid_properties.push('invalid value for "attributes", attributes cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
89
|
invalid_properties
|
84
90
|
end
|
85
91
|
|
86
92
|
# Check to see if the all the properties in the model are valid
|
87
93
|
# @return true if the model is valid
|
88
94
|
def valid?
|
89
|
-
return false if @attributes.nil?
|
90
|
-
_any_of_found = false
|
91
|
-
self.class.openapi_any_of.each do |_class|
|
92
|
-
_any_of = BrazeClient.const_get(_class).build_from_hash(self.to_hash)
|
93
|
-
if _any_of.valid?
|
94
|
-
_any_of_found = true
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
if !_any_of_found
|
99
|
-
return false
|
100
|
-
end
|
101
|
-
|
102
95
|
true
|
103
96
|
end
|
104
97
|
|
@@ -107,7 +100,9 @@ module BrazeClient
|
|
107
100
|
def ==(o)
|
108
101
|
return true if self.equal?(o)
|
109
102
|
self.class == o.class &&
|
110
|
-
|
103
|
+
message == o.message &&
|
104
|
+
removal_errors == o.removal_errors &&
|
105
|
+
removed_ids == o.removed_ids
|
111
106
|
end
|
112
107
|
|
113
108
|
# @see the `==` method
|
@@ -119,7 +114,7 @@ module BrazeClient
|
|
119
114
|
# Calculates hash code according to all attributes.
|
120
115
|
# @return [Integer] Hash code
|
121
116
|
def hash
|
122
|
-
[
|
117
|
+
[message, removal_errors, removed_ids].hash
|
123
118
|
end
|
124
119
|
|
125
120
|
# Builds the object from hash
|
data/lib/braze_api_client/models/{attributes_push_tokens.rb → users_external_ids_rename_response.rb}
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersExternalIdsRenameResponse
|
18
|
+
attr_accessor :message
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :rename_errors
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :external_ids
|
23
23
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
|
-
:'
|
28
|
-
:'
|
29
|
-
:'
|
27
|
+
:'message' => :'message',
|
28
|
+
:'rename_errors' => :'rename_errors',
|
29
|
+
:'external_ids' => :'external_ids'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module BrazeClient
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'
|
41
|
+
:'message' => :'String',
|
42
|
+
:'rename_errors' => :'Array<Object>',
|
43
|
+
:'external_ids' => :'Array<UsersExternalIdsRenameResponseExternalIds>'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -54,27 +54,31 @@ module BrazeClient
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersExternalIdsRenameResponse` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersExternalIdsRenameResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
68
|
+
if attributes.key?(:'message')
|
69
|
+
self.message = attributes[:'message']
|
70
70
|
end
|
71
71
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
|
72
|
+
if attributes.key?(:'rename_errors')
|
73
|
+
if (value = attributes[:'rename_errors']).is_a?(Array)
|
74
|
+
self.rename_errors = value
|
75
|
+
end
|
74
76
|
end
|
75
77
|
|
76
|
-
if attributes.key?(:'
|
77
|
-
|
78
|
+
if attributes.key?(:'external_ids')
|
79
|
+
if (value = attributes[:'external_ids']).is_a?(Array)
|
80
|
+
self.external_ids = value
|
81
|
+
end
|
78
82
|
end
|
79
83
|
end
|
80
84
|
|
@@ -82,22 +86,12 @@ module BrazeClient
|
|
82
86
|
# @return Array for valid properties with the reasons
|
83
87
|
def list_invalid_properties
|
84
88
|
invalid_properties = Array.new
|
85
|
-
if @app_id.nil?
|
86
|
-
invalid_properties.push('invalid value for "app_id", app_id cannot be nil.')
|
87
|
-
end
|
88
|
-
|
89
|
-
if @token.nil?
|
90
|
-
invalid_properties.push('invalid value for "token", token cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
89
|
invalid_properties
|
94
90
|
end
|
95
91
|
|
96
92
|
# Check to see if the all the properties in the model are valid
|
97
93
|
# @return true if the model is valid
|
98
94
|
def valid?
|
99
|
-
return false if @app_id.nil?
|
100
|
-
return false if @token.nil?
|
101
95
|
true
|
102
96
|
end
|
103
97
|
|
@@ -106,9 +100,9 @@ module BrazeClient
|
|
106
100
|
def ==(o)
|
107
101
|
return true if self.equal?(o)
|
108
102
|
self.class == o.class &&
|
109
|
-
|
110
|
-
|
111
|
-
|
103
|
+
message == o.message &&
|
104
|
+
rename_errors == o.rename_errors &&
|
105
|
+
external_ids == o.external_ids
|
112
106
|
end
|
113
107
|
|
114
108
|
# @see the `==` method
|
@@ -120,7 +114,7 @@ module BrazeClient
|
|
120
114
|
# Calculates hash code according to all attributes.
|
121
115
|
# @return [Integer] Hash code
|
122
116
|
def hash
|
123
|
-
[
|
117
|
+
[message, rename_errors, external_ids].hash
|
124
118
|
end
|
125
119
|
|
126
120
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,19 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersExternalIdsRenameResponseExternalIds
|
18
|
+
attr_accessor :current_external_id
|
19
19
|
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :num_friends
|
20
|
+
attr_accessor :new_external_id
|
23
21
|
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
23
|
def self.attribute_map
|
26
24
|
{
|
27
|
-
:'
|
28
|
-
:'
|
29
|
-
:'num_friends' => :'num_friends'
|
25
|
+
:'current_external_id' => :'current_external_id',
|
26
|
+
:'new_external_id' => :'new_external_id'
|
30
27
|
}
|
31
28
|
end
|
32
29
|
|
@@ -38,9 +35,8 @@ module BrazeClient
|
|
38
35
|
# Attribute type mapping.
|
39
36
|
def self.openapi_types
|
40
37
|
{
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'num_friends' => :'Integer'
|
38
|
+
:'current_external_id' => :'String',
|
39
|
+
:'new_external_id' => :'String'
|
44
40
|
}
|
45
41
|
end
|
46
42
|
|
@@ -54,29 +50,23 @@ module BrazeClient
|
|
54
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
51
|
def initialize(attributes = {})
|
56
52
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersExternalIdsRenameResponseExternalIds` initialize method"
|
58
54
|
end
|
59
55
|
|
60
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersExternalIdsRenameResponseExternalIds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
60
|
end
|
65
61
|
h[k.to_sym] = v
|
66
62
|
}
|
67
63
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.key?(:'likes')
|
73
|
-
if (value = attributes[:'likes']).is_a?(Array)
|
74
|
-
self.likes = value
|
75
|
-
end
|
64
|
+
if attributes.key?(:'current_external_id')
|
65
|
+
self.current_external_id = attributes[:'current_external_id']
|
76
66
|
end
|
77
67
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
68
|
+
if attributes.key?(:'new_external_id')
|
69
|
+
self.new_external_id = attributes[:'new_external_id']
|
80
70
|
end
|
81
71
|
end
|
82
72
|
|
@@ -98,9 +88,8 @@ module BrazeClient
|
|
98
88
|
def ==(o)
|
99
89
|
return true if self.equal?(o)
|
100
90
|
self.class == o.class &&
|
101
|
-
|
102
|
-
|
103
|
-
num_friends == o.num_friends
|
91
|
+
current_external_id == o.current_external_id &&
|
92
|
+
new_external_id == o.new_external_id
|
104
93
|
end
|
105
94
|
|
106
95
|
# @see the `==` method
|
@@ -112,7 +101,7 @@ module BrazeClient
|
|
112
101
|
# Calculates hash code according to all attributes.
|
113
102
|
# @return [Integer] Hash code
|
114
103
|
def hash
|
115
|
-
[
|
104
|
+
[current_external_id, new_external_id].hash
|
116
105
|
end
|
117
106
|
|
118
107
|
# Builds the object from hash
|
data/lib/braze_api_client/models/{attributes_current_location.rb → users_identify_response.rb}
RENAMED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -14,16 +14,16 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BrazeClient
|
17
|
-
class
|
18
|
-
attr_accessor :
|
17
|
+
class UsersIdentifyResponse
|
18
|
+
attr_accessor :message
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :aliases_processed
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'message' => :'message',
|
26
|
+
:'aliases_processed' => :'aliases_processed'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -35,8 +35,8 @@ module BrazeClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'message' => :'String',
|
39
|
+
:'aliases_processed' => :'Integer'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -50,23 +50,23 @@ module BrazeClient
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BrazeClient::UsersIdentifyResponse` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BrazeClient::UsersIdentifyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
63
63
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
64
|
+
if attributes.key?(:'message')
|
65
|
+
self.message = attributes[:'message']
|
66
66
|
end
|
67
67
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
68
|
+
if attributes.key?(:'aliases_processed')
|
69
|
+
self.aliases_processed = attributes[:'aliases_processed']
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
@@ -88,8 +88,8 @@ module BrazeClient
|
|
88
88
|
def ==(o)
|
89
89
|
return true if self.equal?(o)
|
90
90
|
self.class == o.class &&
|
91
|
-
|
92
|
-
|
91
|
+
message == o.message &&
|
92
|
+
aliases_processed == o.aliases_processed
|
93
93
|
end
|
94
94
|
|
95
95
|
# @see the `==` method
|
@@ -101,7 +101,7 @@ module BrazeClient
|
|
101
101
|
# Calculates hash code according to all attributes.
|
102
102
|
# @return [Integer] Hash code
|
103
103
|
def hash
|
104
|
-
[
|
104
|
+
[message, aliases_processed].hash
|
105
105
|
end
|
106
106
|
|
107
107
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Track users, send messages, export data, and more
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.1.
|
6
|
+
The version of the OpenAPI document: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.1
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module BrazeClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.1'
|
15
15
|
end
|