talon_one 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -6
- data/docs/AccountAnalytics.md +1 -0
- data/docs/AccountLimits.md +1 -0
- data/docs/Application.md +1 -0
- data/docs/AttributesMandatory.md +9 -0
- data/docs/AttributesSettings.md +8 -0
- data/docs/BaseSamlConnection.md +15 -0
- data/docs/CampaignAnalytics.md +9 -3
- data/docs/CampaignCopy.md +4 -0
- data/docs/Change.md +2 -2
- data/docs/CustomerInventory.md +9 -0
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +2 -3
- data/docs/InlineResponse20026.md +3 -2
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +9 -0
- data/docs/IntegrationApi.md +66 -0
- data/docs/ManagementApi.md +162 -101
- data/docs/NewApplication.md +1 -0
- data/docs/NewSamlConnection.md +3 -2
- data/docs/SamlConnection.md +4 -5
- data/docs/SamlConnectionMetadata.md +11 -0
- data/docs/UpdateApplication.md +1 -0
- data/lib/talon_one.rb +6 -0
- data/lib/talon_one/api/integration_api.rb +60 -0
- data/lib/talon_one/api/management_api.rb +177 -119
- data/lib/talon_one/models/account_analytics.rb +19 -4
- data/lib/talon_one/models/account_limits.rb +11 -1
- data/lib/talon_one/models/application.rb +10 -1
- data/lib/talon_one/models/attributes_mandatory.rb +199 -0
- data/lib/talon_one/models/attributes_settings.rb +184 -0
- data/lib/talon_one/models/base_saml_connection.rb +336 -0
- data/lib/talon_one/models/campaign_analytics.rb +94 -4
- data/lib/talon_one/models/campaign_copy.rb +46 -4
- data/lib/talon_one/models/change.rb +2 -2
- data/lib/talon_one/models/customer_inventory.rb +194 -0
- data/lib/talon_one/models/inline_response_200_20.rb +1 -1
- data/lib/talon_one/models/inline_response_200_21.rb +1 -1
- data/lib/talon_one/models/inline_response_200_22.rb +1 -1
- data/lib/talon_one/models/inline_response_200_23.rb +1 -1
- data/lib/talon_one/models/inline_response_200_24.rb +1 -1
- data/lib/talon_one/models/inline_response_200_25.rb +7 -11
- data/lib/talon_one/models/inline_response_200_26.rb +11 -7
- data/lib/talon_one/models/inline_response_200_27.rb +1 -1
- data/lib/talon_one/models/inline_response_200_28.rb +1 -1
- data/lib/talon_one/models/inline_response_200_29.rb +204 -0
- data/lib/talon_one/models/new_application.rb +10 -1
- data/lib/talon_one/models/new_saml_connection.rb +58 -43
- data/lib/talon_one/models/saml_connection.rb +45 -78
- data/lib/talon_one/models/saml_connection_metadata.rb +271 -0
- data/lib/talon_one/models/update_application.rb +13 -4
- data/lib/talon_one/version.rb +1 -1
- data/spec/api/integration_api_spec.rb +14 -0
- data/spec/api/management_api_spec.rb +50 -36
- data/spec/models/account_analytics_spec.rb +6 -0
- data/spec/models/account_limits_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/attributes_mandatory_spec.rb +47 -0
- data/spec/models/attributes_settings_spec.rb +41 -0
- data/spec/models/base_saml_connection_spec.rb +83 -0
- data/spec/models/campaign_analytics_spec.rb +36 -0
- data/spec/models/campaign_copy_spec.rb +24 -0
- data/spec/models/customer_inventory_spec.rb +47 -0
- data/spec/models/inline_response_200_25_spec.rb +0 -6
- data/spec/models/inline_response_200_26_spec.rb +6 -0
- data/spec/models/inline_response_200_29_spec.rb +47 -0
- data/spec/models/new_application_spec.rb +6 -0
- data/spec/models/new_saml_connection_spec.rb +13 -7
- data/spec/models/saml_connection_metadata_spec.rb +59 -0
- data/spec/models/saml_connection_spec.rb +9 -15
- data/spec/models/update_application_spec.rb +6 -0
- data/talon_one-1.3.0.gem +0 -0
- metadata +27 -2
@@ -20,11 +20,27 @@ module TalonOne
|
|
20
20
|
# Application IDs of the applications to which a campaign should be copied to
|
21
21
|
attr_accessor :application_ids
|
22
22
|
|
23
|
+
# A detailed description of the campaign.
|
24
|
+
attr_accessor :description
|
25
|
+
|
26
|
+
# Datetime when the campaign will become active.
|
27
|
+
attr_accessor :start_time
|
28
|
+
|
29
|
+
# Datetime when the campaign will become in-active.
|
30
|
+
attr_accessor :end_time
|
31
|
+
|
32
|
+
# A list of tags for the campaign.
|
33
|
+
attr_accessor :tags
|
34
|
+
|
23
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
36
|
def self.attribute_map
|
25
37
|
{
|
26
38
|
:'name' => :'name',
|
27
|
-
:'application_ids' => :'applicationIds'
|
39
|
+
:'application_ids' => :'applicationIds',
|
40
|
+
:'description' => :'description',
|
41
|
+
:'start_time' => :'startTime',
|
42
|
+
:'end_time' => :'endTime',
|
43
|
+
:'tags' => :'tags'
|
28
44
|
}
|
29
45
|
end
|
30
46
|
|
@@ -32,7 +48,11 @@ module TalonOne
|
|
32
48
|
def self.swagger_types
|
33
49
|
{
|
34
50
|
:'name' => :'String',
|
35
|
-
:'application_ids' => :'Array<String>'
|
51
|
+
:'application_ids' => :'Array<String>',
|
52
|
+
:'description' => :'String',
|
53
|
+
:'start_time' => :'DateTime',
|
54
|
+
:'end_time' => :'DateTime',
|
55
|
+
:'tags' => :'Array<String>'
|
36
56
|
}
|
37
57
|
end
|
38
58
|
|
@@ -53,6 +73,24 @@ module TalonOne
|
|
53
73
|
self.application_ids = value
|
54
74
|
end
|
55
75
|
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'description')
|
78
|
+
self.description = attributes[:'description']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'startTime')
|
82
|
+
self.start_time = attributes[:'startTime']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'endTime')
|
86
|
+
self.end_time = attributes[:'endTime']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'tags')
|
90
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
91
|
+
self.tags = value
|
92
|
+
end
|
93
|
+
end
|
56
94
|
end
|
57
95
|
|
58
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,7 +117,11 @@ module TalonOne
|
|
79
117
|
return true if self.equal?(o)
|
80
118
|
self.class == o.class &&
|
81
119
|
name == o.name &&
|
82
|
-
application_ids == o.application_ids
|
120
|
+
application_ids == o.application_ids &&
|
121
|
+
description == o.description &&
|
122
|
+
start_time == o.start_time &&
|
123
|
+
end_time == o.end_time &&
|
124
|
+
tags == o.tags
|
83
125
|
end
|
84
126
|
|
85
127
|
# @see the `==` method
|
@@ -91,7 +133,7 @@ module TalonOne
|
|
91
133
|
# Calculates hash code according to all attributes.
|
92
134
|
# @return [Fixnum] Hash code
|
93
135
|
def hash
|
94
|
-
[name, application_ids].hash
|
136
|
+
[name, application_ids, description, start_time, end_time, tags].hash
|
95
137
|
end
|
96
138
|
|
97
139
|
# Builds the object from hash
|
@@ -27,10 +27,10 @@ module TalonOne
|
|
27
27
|
# API endpoint on which the change was initiated.
|
28
28
|
attr_accessor :entity
|
29
29
|
|
30
|
-
# Resource before the change
|
30
|
+
# Resource before the change occurred.
|
31
31
|
attr_accessor :old
|
32
32
|
|
33
|
-
# Resource after the change
|
33
|
+
# Resource after the change occurred.
|
34
34
|
attr_accessor :new
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,194 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.7
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TalonOne
|
16
|
+
class CustomerInventory
|
17
|
+
attr_accessor :profile
|
18
|
+
|
19
|
+
attr_accessor :referrals
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'profile' => :'profile',
|
25
|
+
:'referrals' => :'referrals'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'profile' => :'CustomerProfile',
|
33
|
+
:'referrals' => :'Array<Referral>'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'profile')
|
46
|
+
self.profile = attributes[:'profile']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'referrals')
|
50
|
+
if (value = attributes[:'referrals']).is_a?(Array)
|
51
|
+
self.referrals = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Checks equality by comparing each attribute.
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def ==(o)
|
72
|
+
return true if self.equal?(o)
|
73
|
+
self.class == o.class &&
|
74
|
+
profile == o.profile &&
|
75
|
+
referrals == o.referrals
|
76
|
+
end
|
77
|
+
|
78
|
+
# @see the `==` method
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def eql?(o)
|
81
|
+
self == o
|
82
|
+
end
|
83
|
+
|
84
|
+
# Calculates hash code according to all attributes.
|
85
|
+
# @return [Fixnum] Hash code
|
86
|
+
def hash
|
87
|
+
[profile, referrals].hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Builds the object from hash
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
# @return [Object] Returns the model itself
|
93
|
+
def build_from_hash(attributes)
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
97
|
+
# check to ensure the input is an array given that the the attribute
|
98
|
+
# is documented as an array but the input is not
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
+
end
|
106
|
+
|
107
|
+
self
|
108
|
+
end
|
109
|
+
|
110
|
+
# Deserializes the data based on type
|
111
|
+
# @param string type Data type
|
112
|
+
# @param string value Value to be deserialized
|
113
|
+
# @return [Object] Deserialized data
|
114
|
+
def _deserialize(type, value)
|
115
|
+
case type.to_sym
|
116
|
+
when :DateTime
|
117
|
+
DateTime.parse(value)
|
118
|
+
when :Date
|
119
|
+
Date.parse(value)
|
120
|
+
when :String
|
121
|
+
value.to_s
|
122
|
+
when :Integer
|
123
|
+
value.to_i
|
124
|
+
when :Float
|
125
|
+
value.to_f
|
126
|
+
when :BOOLEAN
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
+
true
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
when :Object
|
133
|
+
# generic object (usually a Hash), return directly
|
134
|
+
value
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
141
|
+
{}.tap do |hash|
|
142
|
+
value.each do |k, v|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
else # model
|
147
|
+
temp_model = TalonOne.const_get(type).new
|
148
|
+
temp_model.build_from_hash(value)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns the string representation of the object
|
153
|
+
# @return [String] String presentation of the object
|
154
|
+
def to_s
|
155
|
+
to_hash.to_s
|
156
|
+
end
|
157
|
+
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_body
|
161
|
+
to_hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = self.send(attr)
|
170
|
+
next if value.nil?
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Outputs non-array value in the form of hash
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
178
|
+
# @param [Object] value Any valid value
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
180
|
+
def _to_hash(value)
|
181
|
+
if value.is_a?(Array)
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
183
|
+
elsif value.is_a?(Hash)
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
+
end
|
187
|
+
elsif value.respond_to? :to_hash
|
188
|
+
value.to_hash
|
189
|
+
else
|
190
|
+
value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
@@ -16,15 +16,12 @@ module TalonOne
|
|
16
16
|
class InlineResponse20025
|
17
17
|
attr_accessor :total_result_size
|
18
18
|
|
19
|
-
attr_accessor :has_more
|
20
|
-
|
21
19
|
attr_accessor :data
|
22
20
|
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
26
24
|
:'total_result_size' => :'totalResultSize',
|
27
|
-
:'has_more' => :'hasMore',
|
28
25
|
:'data' => :'data'
|
29
26
|
}
|
30
27
|
end
|
@@ -33,8 +30,7 @@ module TalonOne
|
|
33
30
|
def self.swagger_types
|
34
31
|
{
|
35
32
|
:'total_result_size' => :'Integer',
|
36
|
-
:'
|
37
|
-
:'data' => :'Array<Change>'
|
33
|
+
:'data' => :'Array<User>'
|
38
34
|
}
|
39
35
|
end
|
40
36
|
|
@@ -50,10 +46,6 @@ module TalonOne
|
|
50
46
|
self.total_result_size = attributes[:'totalResultSize']
|
51
47
|
end
|
52
48
|
|
53
|
-
if attributes.has_key?(:'hasMore')
|
54
|
-
self.has_more = attributes[:'hasMore']
|
55
|
-
end
|
56
|
-
|
57
49
|
if attributes.has_key?(:'data')
|
58
50
|
if (value = attributes[:'data']).is_a?(Array)
|
59
51
|
self.data = value
|
@@ -65,6 +57,10 @@ module TalonOne
|
|
65
57
|
# @return Array for valid properties with the reasons
|
66
58
|
def list_invalid_properties
|
67
59
|
invalid_properties = Array.new
|
60
|
+
if @total_result_size.nil?
|
61
|
+
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
62
|
+
end
|
63
|
+
|
68
64
|
if @data.nil?
|
69
65
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
70
66
|
end
|
@@ -75,6 +71,7 @@ module TalonOne
|
|
75
71
|
# Check to see if the all the properties in the model are valid
|
76
72
|
# @return true if the model is valid
|
77
73
|
def valid?
|
74
|
+
return false if @total_result_size.nil?
|
78
75
|
return false if @data.nil?
|
79
76
|
true
|
80
77
|
end
|
@@ -85,7 +82,6 @@ module TalonOne
|
|
85
82
|
return true if self.equal?(o)
|
86
83
|
self.class == o.class &&
|
87
84
|
total_result_size == o.total_result_size &&
|
88
|
-
has_more == o.has_more &&
|
89
85
|
data == o.data
|
90
86
|
end
|
91
87
|
|
@@ -98,7 +94,7 @@ module TalonOne
|
|
98
94
|
# Calculates hash code according to all attributes.
|
99
95
|
# @return [Fixnum] Hash code
|
100
96
|
def hash
|
101
|
-
[total_result_size,
|
97
|
+
[total_result_size, data].hash
|
102
98
|
end
|
103
99
|
|
104
100
|
# Builds the object from hash
|
@@ -16,12 +16,15 @@ module TalonOne
|
|
16
16
|
class InlineResponse20026
|
17
17
|
attr_accessor :total_result_size
|
18
18
|
|
19
|
+
attr_accessor :has_more
|
20
|
+
|
19
21
|
attr_accessor :data
|
20
22
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
24
|
def self.attribute_map
|
23
25
|
{
|
24
26
|
:'total_result_size' => :'totalResultSize',
|
27
|
+
:'has_more' => :'hasMore',
|
25
28
|
:'data' => :'data'
|
26
29
|
}
|
27
30
|
end
|
@@ -30,7 +33,8 @@ module TalonOne
|
|
30
33
|
def self.swagger_types
|
31
34
|
{
|
32
35
|
:'total_result_size' => :'Integer',
|
33
|
-
:'
|
36
|
+
:'has_more' => :'BOOLEAN',
|
37
|
+
:'data' => :'Array<Change>'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -46,6 +50,10 @@ module TalonOne
|
|
46
50
|
self.total_result_size = attributes[:'totalResultSize']
|
47
51
|
end
|
48
52
|
|
53
|
+
if attributes.has_key?(:'hasMore')
|
54
|
+
self.has_more = attributes[:'hasMore']
|
55
|
+
end
|
56
|
+
|
49
57
|
if attributes.has_key?(:'data')
|
50
58
|
if (value = attributes[:'data']).is_a?(Array)
|
51
59
|
self.data = value
|
@@ -57,10 +65,6 @@ module TalonOne
|
|
57
65
|
# @return Array for valid properties with the reasons
|
58
66
|
def list_invalid_properties
|
59
67
|
invalid_properties = Array.new
|
60
|
-
if @total_result_size.nil?
|
61
|
-
invalid_properties.push('invalid value for "total_result_size", total_result_size cannot be nil.')
|
62
|
-
end
|
63
|
-
|
64
68
|
if @data.nil?
|
65
69
|
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
66
70
|
end
|
@@ -71,7 +75,6 @@ module TalonOne
|
|
71
75
|
# Check to see if the all the properties in the model are valid
|
72
76
|
# @return true if the model is valid
|
73
77
|
def valid?
|
74
|
-
return false if @total_result_size.nil?
|
75
78
|
return false if @data.nil?
|
76
79
|
true
|
77
80
|
end
|
@@ -82,6 +85,7 @@ module TalonOne
|
|
82
85
|
return true if self.equal?(o)
|
83
86
|
self.class == o.class &&
|
84
87
|
total_result_size == o.total_result_size &&
|
88
|
+
has_more == o.has_more &&
|
85
89
|
data == o.data
|
86
90
|
end
|
87
91
|
|
@@ -94,7 +98,7 @@ module TalonOne
|
|
94
98
|
# Calculates hash code according to all attributes.
|
95
99
|
# @return [Fixnum] Hash code
|
96
100
|
def hash
|
97
|
-
[total_result_size, data].hash
|
101
|
+
[total_result_size, has_more, data].hash
|
98
102
|
end
|
99
103
|
|
100
104
|
# Builds the object from hash
|