freeclimb 4.5.1 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/Gemfile.lock +58 -43
  4. data/README.md +13 -6
  5. data/docs/AddToConference.md +0 -2
  6. data/docs/AddToConferenceAllOf.md +0 -2
  7. data/docs/CreateWebRTCToken.md +22 -0
  8. data/docs/DefaultApi.md +302 -7
  9. data/docs/GetDigits.md +1 -1
  10. data/docs/GetDigitsAllOf.md +1 -1
  11. data/docs/IncomingNumberResult.md +3 -1
  12. data/docs/IncomingNumberResultAllOf.md +3 -1
  13. data/docs/MessageRequest.md +2 -2
  14. data/docs/MessageRequestAllOf.md +2 -2
  15. data/docs/MessageResult.md +3 -1
  16. data/docs/MessageResultAllOf.md +3 -1
  17. data/docs/Play.md +0 -2
  18. data/docs/PlayAllOf.md +0 -2
  19. data/docs/RemoveFromConference.md +1 -4
  20. data/docs/SMSTenDLCCampaign.md +10 -0
  21. data/docs/SMSTollFreeCampaign.md +30 -0
  22. data/docs/SMSTollFreeCampaignsListResult.md +32 -0
  23. data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
  24. data/docs/Say.md +0 -2
  25. data/docs/SayAllOf.md +0 -2
  26. data/docs/SetListen.md +0 -2
  27. data/docs/SetListenAllOf.md +0 -2
  28. data/docs/SetTalk.md +0 -2
  29. data/docs/SetTalkAllOf.md +0 -2
  30. data/docs/TFN.md +18 -0
  31. data/docs/TerminateConference.md +1 -4
  32. data/lib/freeclimb/api/default_api.rb +258 -7
  33. data/lib/freeclimb/models/add_to_conference.rb +1 -13
  34. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -13
  35. data/lib/freeclimb/models/create_web_rtc_token.rb +278 -0
  36. data/lib/freeclimb/models/get_digits.rb +1 -1
  37. data/lib/freeclimb/models/get_digits_all_of.rb +1 -1
  38. data/lib/freeclimb/models/incoming_number_result.rb +16 -5
  39. data/lib/freeclimb/models/incoming_number_result_all_of.rb +16 -5
  40. data/lib/freeclimb/models/message_request.rb +11 -9
  41. data/lib/freeclimb/models/message_request_all_of.rb +11 -9
  42. data/lib/freeclimb/models/message_result.rb +19 -5
  43. data/lib/freeclimb/models/message_result_all_of.rb +19 -5
  44. data/lib/freeclimb/models/play.rb +1 -13
  45. data/lib/freeclimb/models/play_all_of.rb +1 -13
  46. data/lib/freeclimb/models/remove_from_conference.rb +3 -23
  47. data/lib/freeclimb/models/say.rb +1 -13
  48. data/lib/freeclimb/models/say_all_of.rb +1 -13
  49. data/lib/freeclimb/models/set_listen.rb +2 -18
  50. data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
  51. data/lib/freeclimb/models/set_talk.rb +2 -18
  52. data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
  53. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +131 -1
  54. data/lib/freeclimb/models/sms_toll_free_campaign.rb +349 -0
  55. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
  56. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +226 -0
  57. data/lib/freeclimb/models/terminate_conference.rb +3 -23
  58. data/lib/freeclimb/models/tfn.rb +229 -0
  59. data/lib/freeclimb/utils/signature_information.rb +1 -1
  60. data/lib/freeclimb/version.rb +1 -1
  61. data/lib/freeclimb.rb +5 -2
  62. data/openapi.json +605 -110
  63. data/package.json +8 -0
  64. data/spec/api/default_api_spec.rb +104 -3
  65. data/spec/models/add_to_conference_spec.rb +0 -30
  66. data/spec/models/create_web_rtc_token_spec.rb +225 -0
  67. data/spec/models/get_digits_spec.rb +19 -19
  68. data/spec/models/incoming_number_result_spec.rb +25 -0
  69. data/spec/models/message_request_spec.rb +23 -23
  70. data/spec/models/message_result_spec.rb +30 -0
  71. data/spec/models/play_spec.rb +0 -30
  72. data/spec/models/remove_from_conference_spec.rb +1 -67
  73. data/spec/models/say_spec.rb +0 -30
  74. data/spec/models/set_listen_spec.rb +0 -31
  75. data/spec/models/set_talk_spec.rb +0 -31
  76. data/spec/models/sms_ten_dlc_campaign_spec.rb +165 -0
  77. data/spec/models/sms_toll_free_campaign_spec.rb +368 -0
  78. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +371 -0
  79. data/spec/models/terminate_conference_spec.rb +1 -67
  80. data/spec/models/tfn_spec.rb +162 -0
  81. data/spec/utils/request_verifier_spec.rb +5 -4
  82. data/spec/utils/signature_information_spec.rb +7 -1
  83. data/yarn.lock +1292 -0
  84. metadata +102 -82
@@ -47,6 +47,9 @@ module Freeclimb
47
47
  # The number of segments into which the message was split
48
48
  attr_accessor :segment_count
49
49
 
50
+ # an array of HTTP URLs which were attached this this message
51
+ attr_accessor :media_urls
52
+
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  {
@@ -60,7 +63,8 @@ module Freeclimb
60
63
  :'notification_url' => :'notificationUrl',
61
64
  :'brand_id' => :'brandId',
62
65
  :'campaign_id' => :'campaignId',
63
- :'segment_count' => :'segmentCount'
66
+ :'segment_count' => :'segmentCount',
67
+ :'media_urls' => :'mediaUrls'
64
68
  }
65
69
  end
66
70
 
@@ -82,7 +86,8 @@ module Freeclimb
82
86
  :'notification_url' => :'String',
83
87
  :'brand_id' => :'String',
84
88
  :'campaign_id' => :'String',
85
- :'segment_count' => :'Float'
89
+ :'segment_count' => :'Float',
90
+ :'media_urls' => :'Array<String>'
86
91
  }
87
92
  end
88
93
 
@@ -99,7 +104,7 @@ module Freeclimb
99
104
  :'notification_url',
100
105
  :'brand_id',
101
106
  :'campaign_id',
102
- :'segment_count'
107
+ :'segment_count',
103
108
  ])
104
109
  end
105
110
 
@@ -161,6 +166,12 @@ module Freeclimb
161
166
  if attributes.key?(:'segment_count')
162
167
  self.segment_count = attributes[:'segment_count']
163
168
  end
169
+
170
+ if attributes.key?(:'media_urls')
171
+ if (value = attributes[:'media_urls']).is_a?(Array)
172
+ self.media_urls = value
173
+ end
174
+ end
164
175
  end
165
176
 
166
177
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -176,6 +187,8 @@ module Freeclimb
176
187
 
177
188
  if @account_id.nil?
178
189
  false
190
+ elsif @media_urls.nil?
191
+ false
179
192
  else
180
193
  list_invalid_properties.length() == 0
181
194
  end
@@ -196,7 +209,8 @@ module Freeclimb
196
209
  notification_url == o.notification_url &&
197
210
  brand_id == o.brand_id &&
198
211
  campaign_id == o.campaign_id &&
199
- segment_count == o.segment_count
212
+ segment_count == o.segment_count &&
213
+ media_urls == o.media_urls
200
214
  end
201
215
 
202
216
  # @see the `==` method
@@ -208,7 +222,7 @@ module Freeclimb
208
222
  # Calculates hash code according to all attributes.
209
223
  # @return [Integer] Hash code
210
224
  def hash
211
- [account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count].hash
225
+ [account_id, message_id, status, from, to, text, direction, notification_url, brand_id, campaign_id, segment_count, media_urls].hash
212
226
  end
213
227
 
214
228
  # Builds the object from hash
@@ -22,9 +22,6 @@ module Freeclimb
22
22
  # Number of times the audio file is played. Specifying '0' causes the Play action to loop until the Call is hung up.
23
23
  attr_accessor :loop
24
24
 
25
- # ID of the Conference the audio should be rendered to. If this is not specified, the audio is by default rendered to the caller associated with the call leg that corresponds to the current PerCL execution context. The call leg associated with this command must be in the specified Conference or the command will return an error.
26
- attr_accessor :conference_id
27
-
28
25
  # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
29
26
  attr_accessor :privacy_mode
30
27
 
@@ -33,7 +30,6 @@ module Freeclimb
33
30
  {
34
31
  :'file' => :'file',
35
32
  :'loop' => :'loop',
36
- :'conference_id' => :'conferenceId',
37
33
  :'privacy_mode' => :'privacyMode'
38
34
  }
39
35
  end
@@ -48,7 +44,6 @@ module Freeclimb
48
44
  {
49
45
  :'file' => :'String',
50
46
  :'loop' => :'Integer',
51
- :'conference_id' => :'String',
52
47
  :'privacy_mode' => :'Boolean'
53
48
  }
54
49
  end
@@ -93,10 +88,6 @@ module Freeclimb
93
88
  self.loop = attributes[:'loop']
94
89
  end
95
90
 
96
- if attributes.key?(:'conference_id')
97
- self.conference_id = attributes[:'conference_id']
98
- end
99
-
100
91
  if attributes.key?(:'privacy_mode')
101
92
  self.privacy_mode = attributes[:'privacy_mode']
102
93
  end
@@ -122,8 +113,6 @@ module Freeclimb
122
113
  false
123
114
  elsif @loop.nil?
124
115
  false
125
- elsif @conference_id.nil?
126
- false
127
116
  elsif @privacy_mode.nil?
128
117
  false
129
118
  else
@@ -138,7 +127,6 @@ module Freeclimb
138
127
  self.class == o.class &&
139
128
  file == o.file &&
140
129
  loop == o.loop &&
141
- conference_id == o.conference_id &&
142
130
  privacy_mode == o.privacy_mode && super(o)
143
131
  end
144
132
 
@@ -151,7 +139,7 @@ module Freeclimb
151
139
  # Calculates hash code according to all attributes.
152
140
  # @return [Integer] Hash code
153
141
  def hash
154
- [file, loop, conference_id, privacy_mode].hash
142
+ [file, loop, privacy_mode].hash
155
143
  end
156
144
 
157
145
  # Builds the object from hash
@@ -21,9 +21,6 @@ module Freeclimb
21
21
  # Number of times the audio file is played. Specifying '0' causes the Play action to loop until the Call is hung up.
22
22
  attr_accessor :loop
23
23
 
24
- # ID of the Conference the audio should be rendered to. If this is not specified, the audio is by default rendered to the caller associated with the call leg that corresponds to the current PerCL execution context. The call leg associated with this command must be in the specified Conference or the command will return an error.
25
- attr_accessor :conference_id
26
-
27
24
  # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
28
25
  attr_accessor :privacy_mode
29
26
 
@@ -32,7 +29,6 @@ module Freeclimb
32
29
  {
33
30
  :'file' => :'file',
34
31
  :'loop' => :'loop',
35
- :'conference_id' => :'conferenceId',
36
32
  :'privacy_mode' => :'privacyMode'
37
33
  }
38
34
  end
@@ -47,7 +43,6 @@ module Freeclimb
47
43
  {
48
44
  :'file' => :'String',
49
45
  :'loop' => :'Integer',
50
- :'conference_id' => :'String',
51
46
  :'privacy_mode' => :'Boolean'
52
47
  }
53
48
  end
@@ -81,10 +76,6 @@ module Freeclimb
81
76
  self.loop = attributes[:'loop']
82
77
  end
83
78
 
84
- if attributes.key?(:'conference_id')
85
- self.conference_id = attributes[:'conference_id']
86
- end
87
-
88
79
  if attributes.key?(:'privacy_mode')
89
80
  self.privacy_mode = attributes[:'privacy_mode']
90
81
  end
@@ -109,8 +100,6 @@ module Freeclimb
109
100
  false
110
101
  elsif @loop.nil?
111
102
  false
112
- elsif @conference_id.nil?
113
- false
114
103
  elsif @privacy_mode.nil?
115
104
  false
116
105
  else
@@ -125,7 +114,6 @@ module Freeclimb
125
114
  self.class == o.class &&
126
115
  file == o.file &&
127
116
  loop == o.loop &&
128
- conference_id == o.conference_id &&
129
117
  privacy_mode == o.privacy_mode
130
118
  end
131
119
 
@@ -138,7 +126,7 @@ module Freeclimb
138
126
  # Calculates hash code according to all attributes.
139
127
  # @return [Integer] Hash code
140
128
  def hash
141
- [file, loop, conference_id, privacy_mode].hash
129
+ [file, loop, privacy_mode].hash
142
130
  end
143
131
 
144
132
  # Builds the object from hash
@@ -16,13 +16,9 @@ require 'time'
16
16
  module Freeclimb
17
17
  # The `RemoveFromConference` command removes a Participant from a Conference but does not hang up. Instead, the Call is simply unbridged and what happens next with the Call is determined by the PerCL returned in response to the `leaveConferenceUrl` attribute.
18
18
  class RemoveFromConference < PerclCommand
19
- # ID of the Call leg to be removed from the Conference. The Call must be in a Conference or an error will be triggered.
20
- attr_accessor :call_id
21
-
22
19
  # Attribute mapping from ruby-style variable name to JSON key.
23
20
  def self.attribute_map
24
21
  {
25
- :'call_id' => :'callId'
26
22
  }
27
23
  end
28
24
 
@@ -34,7 +30,6 @@ module Freeclimb
34
30
  # Attribute type mapping.
35
31
  def self.openapi_types
36
32
  {
37
- :'call_id' => :'String'
38
33
  }
39
34
  end
40
35
 
@@ -47,8 +42,7 @@ module Freeclimb
47
42
  # List of class defined in allOf (OpenAPI v3)
48
43
  def self.openapi_all_of
49
44
  [
50
- :'PerclCommand',
51
- :'RemoveFromConferenceAllOf'
45
+ :'PerclCommand'
52
46
  ]
53
47
  end
54
48
 
@@ -69,10 +63,6 @@ module Freeclimb
69
63
 
70
64
  # call parent's initialize
71
65
  super(attributes)
72
-
73
- if attributes.key?(:'call_id')
74
- self.call_id = attributes[:'call_id']
75
- end
76
66
  self.command = "RemoveFromConference"
77
67
  end
78
68
 
@@ -80,10 +70,6 @@ module Freeclimb
80
70
  # @return Array for valid properties with the reasons
81
71
  def list_invalid_properties
82
72
  invalid_properties = super
83
- if @call_id.nil?
84
- invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
85
- end
86
-
87
73
  invalid_properties
88
74
  end
89
75
 
@@ -91,19 +77,13 @@ module Freeclimb
91
77
  # @return true if the model is valid
92
78
  def valid?
93
79
 
94
- if @call_id.nil?
95
- false
96
- else
97
- list_invalid_properties.length() == 0
98
- end
99
80
  end
100
81
 
101
82
  # Checks equality by comparing each attribute.
102
83
  # @param [Object] Object to be compared
103
84
  def ==(o)
104
85
  return true if self.equal?(o)
105
- self.class == o.class &&
106
- call_id == o.call_id && super(o)
86
+ self.class == o.class && super(o)
107
87
  end
108
88
 
109
89
  # @see the `==` method
@@ -115,7 +95,7 @@ module Freeclimb
115
95
  # Calculates hash code according to all attributes.
116
96
  # @return [Integer] Hash code
117
97
  def hash
118
- [call_id].hash
98
+ [].hash
119
99
  end
120
100
 
121
101
  # Builds the object from hash
@@ -25,9 +25,6 @@ module Freeclimb
25
25
  # Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.
26
26
  attr_accessor :loop
27
27
 
28
- # D of the Conference the speech should be rendered to. If this is not specified, the speech is by default rendered to the Caller associated with the call leg that corresponds to the current PerCL execution context. The call leg associated with this command must be in the specified Conference or the command will return an error.
29
- attr_accessor :conference_id
30
-
31
28
  # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
32
29
  attr_accessor :privacy_mode
33
30
 
@@ -37,7 +34,6 @@ module Freeclimb
37
34
  :'text' => :'text',
38
35
  :'language' => :'language',
39
36
  :'loop' => :'loop',
40
- :'conference_id' => :'conferenceId',
41
37
  :'privacy_mode' => :'privacyMode'
42
38
  }
43
39
  end
@@ -53,7 +49,6 @@ module Freeclimb
53
49
  :'text' => :'String',
54
50
  :'language' => :'String',
55
51
  :'loop' => :'Integer',
56
- :'conference_id' => :'String',
57
52
  :'privacy_mode' => :'Boolean'
58
53
  }
59
54
  end
@@ -104,10 +99,6 @@ module Freeclimb
104
99
  self.loop = 1
105
100
  end
106
101
 
107
- if attributes.key?(:'conference_id')
108
- self.conference_id = attributes[:'conference_id']
109
- end
110
-
111
102
  if attributes.key?(:'privacy_mode')
112
103
  self.privacy_mode = attributes[:'privacy_mode']
113
104
  end
@@ -135,8 +126,6 @@ module Freeclimb
135
126
  false
136
127
  elsif @loop.nil?
137
128
  false
138
- elsif @conference_id.nil?
139
- false
140
129
  elsif @privacy_mode.nil?
141
130
  false
142
131
  else
@@ -152,7 +141,6 @@ module Freeclimb
152
141
  text == o.text &&
153
142
  language == o.language &&
154
143
  loop == o.loop &&
155
- conference_id == o.conference_id &&
156
144
  privacy_mode == o.privacy_mode && super(o)
157
145
  end
158
146
 
@@ -165,7 +153,7 @@ module Freeclimb
165
153
  # Calculates hash code according to all attributes.
166
154
  # @return [Integer] Hash code
167
155
  def hash
168
- [text, language, loop, conference_id, privacy_mode].hash
156
+ [text, language, loop, privacy_mode].hash
169
157
  end
170
158
 
171
159
  # Builds the object from hash
@@ -24,9 +24,6 @@ module Freeclimb
24
24
  # Number of times the text is said. Specifying '0' causes the `Say` action to loop until the Call is hung up.
25
25
  attr_accessor :loop
26
26
 
27
- # D of the Conference the speech should be rendered to. If this is not specified, the speech is by default rendered to the Caller associated with the call leg that corresponds to the current PerCL execution context. The call leg associated with this command must be in the specified Conference or the command will return an error.
28
- attr_accessor :conference_id
29
-
30
27
  # Parameter `privacyMode` will not log the `text` as required by PCI compliance.
31
28
  attr_accessor :privacy_mode
32
29
 
@@ -36,7 +33,6 @@ module Freeclimb
36
33
  :'text' => :'text',
37
34
  :'language' => :'language',
38
35
  :'loop' => :'loop',
39
- :'conference_id' => :'conferenceId',
40
36
  :'privacy_mode' => :'privacyMode'
41
37
  }
42
38
  end
@@ -52,7 +48,6 @@ module Freeclimb
52
48
  :'text' => :'String',
53
49
  :'language' => :'String',
54
50
  :'loop' => :'Integer',
55
- :'conference_id' => :'String',
56
51
  :'privacy_mode' => :'Boolean'
57
52
  }
58
53
  end
@@ -92,10 +87,6 @@ module Freeclimb
92
87
  self.loop = 1
93
88
  end
94
89
 
95
- if attributes.key?(:'conference_id')
96
- self.conference_id = attributes[:'conference_id']
97
- end
98
-
99
90
  if attributes.key?(:'privacy_mode')
100
91
  self.privacy_mode = attributes[:'privacy_mode']
101
92
  end
@@ -122,8 +113,6 @@ module Freeclimb
122
113
  false
123
114
  elsif @loop.nil?
124
115
  false
125
- elsif @conference_id.nil?
126
- false
127
116
  elsif @privacy_mode.nil?
128
117
  false
129
118
  else
@@ -139,7 +128,6 @@ module Freeclimb
139
128
  text == o.text &&
140
129
  language == o.language &&
141
130
  loop == o.loop &&
142
- conference_id == o.conference_id &&
143
131
  privacy_mode == o.privacy_mode
144
132
  end
145
133
 
@@ -152,7 +140,7 @@ module Freeclimb
152
140
  # Calculates hash code according to all attributes.
153
141
  # @return [Integer] Hash code
154
142
  def hash
155
- [text, language, loop, conference_id, privacy_mode].hash
143
+ [text, language, loop, privacy_mode].hash
156
144
  end
157
145
 
158
146
  # Builds the object from hash
@@ -16,16 +16,12 @@ require 'time'
16
16
  module Freeclimb
17
17
  # The `SetListen` command enables or disables the listen privilege for a Conference Participant provided both calls are in the same conference. The Participant can hear what the other participants are saying only if this privilege is enabled.
18
18
  class SetListen < PerclCommand
19
- # ID of the call leg that is to be assigned the listen privilege. The Call must be in a Conference or an error will be triggered.
20
- attr_accessor :call_id
21
-
22
19
  # Specifying `false` will silence the Conference for this Participant.
23
20
  attr_accessor :listen
24
21
 
25
22
  # Attribute mapping from ruby-style variable name to JSON key.
26
23
  def self.attribute_map
27
24
  {
28
- :'call_id' => :'callId',
29
25
  :'listen' => :'listen'
30
26
  }
31
27
  end
@@ -38,7 +34,6 @@ module Freeclimb
38
34
  # Attribute type mapping.
39
35
  def self.openapi_types
40
36
  {
41
- :'call_id' => :'String',
42
37
  :'listen' => :'Boolean'
43
38
  }
44
39
  end
@@ -75,10 +70,6 @@ module Freeclimb
75
70
  # call parent's initialize
76
71
  super(attributes)
77
72
 
78
- if attributes.key?(:'call_id')
79
- self.call_id = attributes[:'call_id']
80
- end
81
-
82
73
  if attributes.key?(:'listen')
83
74
  self.listen = attributes[:'listen']
84
75
  end
@@ -89,10 +80,6 @@ module Freeclimb
89
80
  # @return Array for valid properties with the reasons
90
81
  def list_invalid_properties
91
82
  invalid_properties = super
92
- if @call_id.nil?
93
- invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
94
- end
95
-
96
83
  invalid_properties
97
84
  end
98
85
 
@@ -100,9 +87,7 @@ module Freeclimb
100
87
  # @return true if the model is valid
101
88
  def valid?
102
89
 
103
- if @call_id.nil?
104
- false
105
- elsif @listen.nil?
90
+ if @listen.nil?
106
91
  false
107
92
  else
108
93
  list_invalid_properties.length() == 0
@@ -114,7 +99,6 @@ module Freeclimb
114
99
  def ==(o)
115
100
  return true if self.equal?(o)
116
101
  self.class == o.class &&
117
- call_id == o.call_id &&
118
102
  listen == o.listen && super(o)
119
103
  end
120
104
 
@@ -127,7 +111,7 @@ module Freeclimb
127
111
  # Calculates hash code according to all attributes.
128
112
  # @return [Integer] Hash code
129
113
  def hash
130
- [call_id, listen].hash
114
+ [listen].hash
131
115
  end
132
116
 
133
117
  # Builds the object from hash
@@ -15,16 +15,12 @@ require 'time'
15
15
 
16
16
  module Freeclimb
17
17
  class SetListenAllOf
18
- # ID of the call leg that is to be assigned the listen privilege. The Call must be in a Conference or an error will be triggered.
19
- attr_accessor :call_id
20
-
21
18
  # Specifying `false` will silence the Conference for this Participant.
22
19
  attr_accessor :listen
23
20
 
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'call_id' => :'callId',
28
24
  :'listen' => :'listen'
29
25
  }
30
26
  end
@@ -37,7 +33,6 @@ module Freeclimb
37
33
  # Attribute type mapping.
38
34
  def self.openapi_types
39
35
  {
40
- :'call_id' => :'String',
41
36
  :'listen' => :'Boolean'
42
37
  }
43
38
  end
@@ -63,10 +58,6 @@ module Freeclimb
63
58
  h[k.to_sym] = v
64
59
  }
65
60
 
66
- if attributes.key?(:'call_id')
67
- self.call_id = attributes[:'call_id']
68
- end
69
-
70
61
  if attributes.key?(:'listen')
71
62
  self.listen = attributes[:'listen']
72
63
  end
@@ -76,10 +67,6 @@ module Freeclimb
76
67
  # @return Array for valid properties with the reasons
77
68
  def list_invalid_properties
78
69
  invalid_properties = Array.new
79
- if @call_id.nil?
80
- invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
81
- end
82
-
83
70
  invalid_properties
84
71
  end
85
72
 
@@ -87,9 +74,7 @@ module Freeclimb
87
74
  # @return true if the model is valid
88
75
  def valid?
89
76
 
90
- if @call_id.nil?
91
- false
92
- elsif @listen.nil?
77
+ if @listen.nil?
93
78
  false
94
79
  else
95
80
  list_invalid_properties.length() == 0
@@ -101,7 +86,6 @@ module Freeclimb
101
86
  def ==(o)
102
87
  return true if self.equal?(o)
103
88
  self.class == o.class &&
104
- call_id == o.call_id &&
105
89
  listen == o.listen
106
90
  end
107
91
 
@@ -114,7 +98,7 @@ module Freeclimb
114
98
  # Calculates hash code according to all attributes.
115
99
  # @return [Integer] Hash code
116
100
  def hash
117
- [call_id, listen].hash
101
+ [listen].hash
118
102
  end
119
103
 
120
104
  # Builds the object from hash
@@ -16,16 +16,12 @@ require 'time'
16
16
  module Freeclimb
17
17
  # The `SetTalk` command enables or disables the talk privilege for a Participant in a Conference provided both calls are in the same conference. If 'true', no audio from that Participant is shared with the other Participants of the Conference.
18
18
  class SetTalk < PerclCommand
19
- # ID of the call leg that is to be muted or unmuted. The Call must be in a Conference or an error will be triggered.
20
- attr_accessor :call_id
21
-
22
19
  # Specifying `false` mutes the Participant.
23
20
  attr_accessor :talk
24
21
 
25
22
  # Attribute mapping from ruby-style variable name to JSON key.
26
23
  def self.attribute_map
27
24
  {
28
- :'call_id' => :'callId',
29
25
  :'talk' => :'talk'
30
26
  }
31
27
  end
@@ -38,7 +34,6 @@ module Freeclimb
38
34
  # Attribute type mapping.
39
35
  def self.openapi_types
40
36
  {
41
- :'call_id' => :'String',
42
37
  :'talk' => :'Boolean'
43
38
  }
44
39
  end
@@ -75,10 +70,6 @@ module Freeclimb
75
70
  # call parent's initialize
76
71
  super(attributes)
77
72
 
78
- if attributes.key?(:'call_id')
79
- self.call_id = attributes[:'call_id']
80
- end
81
-
82
73
  if attributes.key?(:'talk')
83
74
  self.talk = attributes[:'talk']
84
75
  end
@@ -89,10 +80,6 @@ module Freeclimb
89
80
  # @return Array for valid properties with the reasons
90
81
  def list_invalid_properties
91
82
  invalid_properties = super
92
- if @call_id.nil?
93
- invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
94
- end
95
-
96
83
  invalid_properties
97
84
  end
98
85
 
@@ -100,9 +87,7 @@ module Freeclimb
100
87
  # @return true if the model is valid
101
88
  def valid?
102
89
 
103
- if @call_id.nil?
104
- false
105
- elsif @talk.nil?
90
+ if @talk.nil?
106
91
  false
107
92
  else
108
93
  list_invalid_properties.length() == 0
@@ -114,7 +99,6 @@ module Freeclimb
114
99
  def ==(o)
115
100
  return true if self.equal?(o)
116
101
  self.class == o.class &&
117
- call_id == o.call_id &&
118
102
  talk == o.talk && super(o)
119
103
  end
120
104
 
@@ -127,7 +111,7 @@ module Freeclimb
127
111
  # Calculates hash code according to all attributes.
128
112
  # @return [Integer] Hash code
129
113
  def hash
130
- [call_id, talk].hash
114
+ [talk].hash
131
115
  end
132
116
 
133
117
  # Builds the object from hash
@@ -15,16 +15,12 @@ require 'time'
15
15
 
16
16
  module Freeclimb
17
17
  class SetTalkAllOf
18
- # ID of the call leg that is to be muted or unmuted. The Call must be in a Conference or an error will be triggered.
19
- attr_accessor :call_id
20
-
21
18
  # Specifying `false` mutes the Participant.
22
19
  attr_accessor :talk
23
20
 
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'call_id' => :'callId',
28
24
  :'talk' => :'talk'
29
25
  }
30
26
  end
@@ -37,7 +33,6 @@ module Freeclimb
37
33
  # Attribute type mapping.
38
34
  def self.openapi_types
39
35
  {
40
- :'call_id' => :'String',
41
36
  :'talk' => :'Boolean'
42
37
  }
43
38
  end
@@ -63,10 +58,6 @@ module Freeclimb
63
58
  h[k.to_sym] = v
64
59
  }
65
60
 
66
- if attributes.key?(:'call_id')
67
- self.call_id = attributes[:'call_id']
68
- end
69
-
70
61
  if attributes.key?(:'talk')
71
62
  self.talk = attributes[:'talk']
72
63
  end
@@ -76,10 +67,6 @@ module Freeclimb
76
67
  # @return Array for valid properties with the reasons
77
68
  def list_invalid_properties
78
69
  invalid_properties = Array.new
79
- if @call_id.nil?
80
- invalid_properties.push('invalid value for "call_id", call_id cannot be nil.')
81
- end
82
-
83
70
  invalid_properties
84
71
  end
85
72
 
@@ -87,9 +74,7 @@ module Freeclimb
87
74
  # @return true if the model is valid
88
75
  def valid?
89
76
 
90
- if @call_id.nil?
91
- false
92
- elsif @talk.nil?
77
+ if @talk.nil?
93
78
  false
94
79
  else
95
80
  list_invalid_properties.length() == 0
@@ -101,7 +86,6 @@ module Freeclimb
101
86
  def ==(o)
102
87
  return true if self.equal?(o)
103
88
  self.class == o.class &&
104
- call_id == o.call_id &&
105
89
  talk == o.talk
106
90
  end
107
91
 
@@ -114,7 +98,7 @@ module Freeclimb
114
98
  # Calculates hash code according to all attributes.
115
99
  # @return [Integer] Hash code
116
100
  def hash
117
- [call_id, talk].hash
101
+ [talk].hash
118
102
  end
119
103
 
120
104
  # Builds the object from hash