sunshine-conversations-client 12.3.1 → 12.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG_RB.md +6 -0
- data/README.md +4 -4
- data/docs/Android.md +7 -1
- data/docs/AndroidAllOf.md +7 -1
- data/docs/AndroidUpdate.md +6 -0
- data/docs/AndroidUpdateAllOf.md +7 -1
- data/docs/IntegrationUpdate.md +6 -0
- data/lib/sunshine-conversations-client/models/android.rb +80 -2
- data/lib/sunshine-conversations-client/models/android_all_of.rb +80 -2
- data/lib/sunshine-conversations-client/models/android_update.rb +79 -1
- data/lib/sunshine-conversations-client/models/android_update_all_of.rb +79 -1
- data/lib/sunshine-conversations-client/models/integration_update.rb +79 -1
- data/lib/sunshine-conversations-client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3337bf4bfa753c921b672d671104b12f9733da52
|
4
|
+
data.tar.gz: 92c61010698547a460a469f95f1c7c020ea9ed15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 266bac0bf204bc46b03a4058f8bb985eed7f95181f378cabbe21aeae46bbbd7901b5dcdb6375969539ffdd21f2f216a0822e197a321b3c9ca7275b32a96c8ca7
|
7
|
+
data.tar.gz: 1f9ba45bdec2e132b16c2601310ca2973438b7ff9a8c98593481547ea481a370550fff83a8e0e078b00d5f5f19f2eebe27589c6054987008f152dd2646a3e05d
|
data/CHANGELOG_RB.md
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ SunshineConversationsClient - the Ruby gem for the Sunshine Conversations API
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator Codegen](https://github.com/OpenAPITools/openapi-generator) project using the [Sunshine Conversations API spec](https://github.com/zendesk/sunshine-conversations-api-spec).
|
6
6
|
|
7
7
|
- API version: 12.3.1
|
8
|
-
- Package version: 12.
|
8
|
+
- Package version: 12.4.0
|
9
9
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
10
10
|
|
11
11
|
## Sunshine Conversations API Version
|
@@ -32,16 +32,16 @@ gem build sunshine-conversations-client.gemspec
|
|
32
32
|
Then either install the gem locally:
|
33
33
|
|
34
34
|
```shell
|
35
|
-
gem install ./sunshine-conversations-client-12.
|
35
|
+
gem install ./sunshine-conversations-client-12.4.0.gem
|
36
36
|
```
|
37
37
|
|
38
|
-
(for development, run `gem install --dev ./sunshine-conversations-client-12.
|
38
|
+
(for development, run `gem install --dev ./sunshine-conversations-client-12.4.0.gem` to install the development dependencies)
|
39
39
|
|
40
40
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
41
41
|
|
42
42
|
Finally add this to the Gemfile:
|
43
43
|
|
44
|
-
gem 'sunshine-conversations-client', '~> 12.
|
44
|
+
gem 'sunshine-conversations-client', '~> 12.4.0'
|
45
45
|
|
46
46
|
### Install from Git
|
47
47
|
|
data/docs/Android.md
CHANGED
@@ -4,7 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**type** | **String** | To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Copy the `
|
7
|
+
**type** | **String** | <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data. | [optional] [default to 'android']
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
@@ -16,6 +19,9 @@ Name | Type | Description | Notes
|
|
16
19
|
require 'SunshineConversationsClient'
|
17
20
|
|
18
21
|
instance = SunshineConversationsClient::Android.new(type: null,
|
22
|
+
project_id: <project-id>,
|
23
|
+
client_email: <client-email>,
|
24
|
+
private_key: <private-key>,
|
19
25
|
server_key: <server-key>,
|
20
26
|
sender_id: <sender-id>,
|
21
27
|
can_user_create_more_conversations: null,
|
data/docs/AndroidAllOf.md
CHANGED
@@ -4,7 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**type** | **String** | To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Copy the `
|
7
|
+
**type** | **String** | <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data. | [optional] [default to 'android']
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
@@ -16,6 +19,9 @@ Name | Type | Description | Notes
|
|
16
19
|
require 'SunshineConversationsClient'
|
17
20
|
|
18
21
|
instance = SunshineConversationsClient::AndroidAllOf.new(type: null,
|
22
|
+
project_id: <project-id>,
|
23
|
+
client_email: <client-email>,
|
24
|
+
private_key: <private-key>,
|
19
25
|
server_key: <server-key>,
|
20
26
|
sender_id: <sender-id>,
|
21
27
|
can_user_create_more_conversations: null,
|
data/docs/AndroidUpdate.md
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**display_name** | **String** | A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`. | [optional]
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
@@ -15,6 +18,9 @@ Name | Type | Description | Notes
|
|
15
18
|
require 'SunshineConversationsClient'
|
16
19
|
|
17
20
|
instance = SunshineConversationsClient::AndroidUpdate.new(display_name: My awesome integration,
|
21
|
+
project_id: <project-id>,
|
22
|
+
client_email: <client-email>,
|
23
|
+
private_key: <private-key>,
|
18
24
|
server_key: <server-key>,
|
19
25
|
sender_id: <sender-id>,
|
20
26
|
can_user_create_more_conversations: null)
|
data/docs/AndroidUpdateAllOf.md
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
8
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
9
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
7
10
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
8
11
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
9
12
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the android integration. | [optional]
|
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
|
|
13
16
|
```ruby
|
14
17
|
require 'SunshineConversationsClient'
|
15
18
|
|
16
|
-
instance = SunshineConversationsClient::AndroidUpdateAllOf.new(
|
19
|
+
instance = SunshineConversationsClient::AndroidUpdateAllOf.new(project_id: <project-id>,
|
20
|
+
client_email: <client-email>,
|
21
|
+
private_key: <private-key>,
|
22
|
+
server_key: <server-key>,
|
17
23
|
sender_id: <sender-id>,
|
18
24
|
can_user_create_more_conversations: null)
|
19
25
|
```
|
data/docs/IntegrationUpdate.md
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**display_name** | **String** | A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`. | [optional]
|
8
|
+
**project_id** | **String** | Your project ID from your generated private key file. | [optional]
|
9
|
+
**client_email** | **String** | Your client email from your generated private key file. | [optional]
|
10
|
+
**private_key** | **String** | Your private key from your generated private key file. | [optional]
|
8
11
|
**server_key** | **String** | Your server key from the fcm console. | [optional]
|
9
12
|
**sender_id** | **String** | Your sender id from the fcm console. | [optional]
|
10
13
|
**can_user_create_more_conversations** | **Boolean** | Allows users to create more than one conversation on the web messenger integration. | [optional]
|
@@ -39,6 +42,9 @@ Name | Type | Description | Notes
|
|
39
42
|
require 'SunshineConversationsClient'
|
40
43
|
|
41
44
|
instance = SunshineConversationsClient::IntegrationUpdate.new(display_name: My awesome integration,
|
45
|
+
project_id: <project-id>,
|
46
|
+
client_email: <client-email>,
|
47
|
+
private_key: <private-key>,
|
42
48
|
server_key: <server-key>,
|
43
49
|
sender_id: <sender-id>,
|
44
50
|
can_user_create_more_conversations: null,
|
@@ -11,9 +11,18 @@ require 'date'
|
|
11
11
|
|
12
12
|
module SunshineConversationsClient
|
13
13
|
class Android < Integration
|
14
|
-
# To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/).
|
14
|
+
# <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data.
|
15
15
|
attr_accessor :type
|
16
16
|
|
17
|
+
# Your project ID from your generated private key file.
|
18
|
+
attr_accessor :project_id
|
19
|
+
|
20
|
+
# Your client email from your generated private key file.
|
21
|
+
attr_accessor :client_email
|
22
|
+
|
23
|
+
# Your private key from your generated private key file.
|
24
|
+
attr_accessor :private_key
|
25
|
+
|
17
26
|
# Your server key from the fcm console.
|
18
27
|
attr_accessor :server_key
|
19
28
|
|
@@ -30,6 +39,9 @@ module SunshineConversationsClient
|
|
30
39
|
def self.attribute_map
|
31
40
|
{
|
32
41
|
:'type' => :'type',
|
42
|
+
:'project_id' => :'projectId',
|
43
|
+
:'client_email' => :'clientEmail',
|
44
|
+
:'private_key' => :'privateKey',
|
33
45
|
:'server_key' => :'serverKey',
|
34
46
|
:'sender_id' => :'senderId',
|
35
47
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
@@ -41,6 +53,9 @@ module SunshineConversationsClient
|
|
41
53
|
def self.openapi_types
|
42
54
|
{
|
43
55
|
:'type' => :'String',
|
56
|
+
:'project_id' => :'String',
|
57
|
+
:'client_email' => :'String',
|
58
|
+
:'private_key' => :'String',
|
44
59
|
:'server_key' => :'String',
|
45
60
|
:'sender_id' => :'String',
|
46
61
|
:'can_user_create_more_conversations' => :'Boolean',
|
@@ -51,6 +66,9 @@ module SunshineConversationsClient
|
|
51
66
|
# List of attributes with nullable: true
|
52
67
|
def self.openapi_nullable
|
53
68
|
Set.new([
|
69
|
+
:'project_id',
|
70
|
+
:'client_email',
|
71
|
+
:'private_key',
|
54
72
|
:'server_key',
|
55
73
|
:'sender_id',
|
56
74
|
])
|
@@ -88,6 +106,18 @@ module SunshineConversationsClient
|
|
88
106
|
self.type = 'android'
|
89
107
|
end
|
90
108
|
|
109
|
+
if attributes.key?(:'project_id')
|
110
|
+
self.project_id = attributes[:'project_id']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'client_email')
|
114
|
+
self.client_email = attributes[:'client_email']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'private_key')
|
118
|
+
self.private_key = attributes[:'private_key']
|
119
|
+
end
|
120
|
+
|
91
121
|
if attributes.key?(:'server_key')
|
92
122
|
self.server_key = attributes[:'server_key']
|
93
123
|
end
|
@@ -109,6 +139,18 @@ module SunshineConversationsClient
|
|
109
139
|
# @return Array for valid properties with the reasons
|
110
140
|
def list_invalid_properties
|
111
141
|
invalid_properties = super
|
142
|
+
if !@project_id.nil? && @project_id.to_s.length < 1
|
143
|
+
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
144
|
+
end
|
145
|
+
|
146
|
+
if !@client_email.nil? && @client_email.to_s.length < 1
|
147
|
+
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if !@private_key.nil? && @private_key.to_s.length < 1
|
151
|
+
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
152
|
+
end
|
153
|
+
|
112
154
|
if !@server_key.nil? && @server_key.to_s.length < 1
|
113
155
|
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
114
156
|
end
|
@@ -123,11 +165,44 @@ module SunshineConversationsClient
|
|
123
165
|
# Check to see if the all the properties in the model are valid
|
124
166
|
# @return true if the model is valid
|
125
167
|
def valid?
|
168
|
+
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
169
|
+
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
170
|
+
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
126
171
|
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
127
172
|
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
128
173
|
true && super
|
129
174
|
end
|
130
175
|
|
176
|
+
# Custom attribute writer method with validation
|
177
|
+
# @param [Object] project_id Value to be assigned
|
178
|
+
def project_id=(project_id)
|
179
|
+
if !project_id.nil? && project_id.to_s.length < 1
|
180
|
+
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
181
|
+
end
|
182
|
+
|
183
|
+
@project_id = project_id
|
184
|
+
end
|
185
|
+
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] client_email Value to be assigned
|
188
|
+
def client_email=(client_email)
|
189
|
+
if !client_email.nil? && client_email.to_s.length < 1
|
190
|
+
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
191
|
+
end
|
192
|
+
|
193
|
+
@client_email = client_email
|
194
|
+
end
|
195
|
+
|
196
|
+
# Custom attribute writer method with validation
|
197
|
+
# @param [Object] private_key Value to be assigned
|
198
|
+
def private_key=(private_key)
|
199
|
+
if !private_key.nil? && private_key.to_s.length < 1
|
200
|
+
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
201
|
+
end
|
202
|
+
|
203
|
+
@private_key = private_key
|
204
|
+
end
|
205
|
+
|
131
206
|
# Custom attribute writer method with validation
|
132
207
|
# @param [Object] server_key Value to be assigned
|
133
208
|
def server_key=(server_key)
|
@@ -154,6 +229,9 @@ module SunshineConversationsClient
|
|
154
229
|
return true if self.equal?(o)
|
155
230
|
self.class == o.class &&
|
156
231
|
type == o.type &&
|
232
|
+
project_id == o.project_id &&
|
233
|
+
client_email == o.client_email &&
|
234
|
+
private_key == o.private_key &&
|
157
235
|
server_key == o.server_key &&
|
158
236
|
sender_id == o.sender_id &&
|
159
237
|
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
@@ -169,7 +247,7 @@ module SunshineConversationsClient
|
|
169
247
|
# Calculates hash code according to all attributes.
|
170
248
|
# @return [Integer] Hash code
|
171
249
|
def hash
|
172
|
-
[type, server_key, sender_id, can_user_create_more_conversations, attachments_enabled].hash
|
250
|
+
[type, project_id, client_email, private_key, server_key, sender_id, can_user_create_more_conversations, attachments_enabled].hash
|
173
251
|
end
|
174
252
|
|
175
253
|
# Builds the object from hash
|
@@ -11,9 +11,18 @@ require 'date'
|
|
11
11
|
|
12
12
|
module SunshineConversationsClient
|
13
13
|
class AndroidAllOf
|
14
|
-
# To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/).
|
14
|
+
# <aside class=\"notice\">Firebase Cloud Messaging has deprecated its legacy APIs for HTTP and XMPP. Legacy credentials <code>serverKey</code> and <code>senderId</code> will stop working as of June 2024 and must be replaced with OAuth 2.0 access token based credentials.</aside> To configure an android integration, first visit the [Firebase Console](https://console.firebase.google.com/). Generate a private key from the Service accounts tab in the settings. Copy the `project_id`, `client_email` and `private_key` from the generated JSON file and call the create integrations endpoint with this data.
|
15
15
|
attr_accessor :type
|
16
16
|
|
17
|
+
# Your project ID from your generated private key file.
|
18
|
+
attr_accessor :project_id
|
19
|
+
|
20
|
+
# Your client email from your generated private key file.
|
21
|
+
attr_accessor :client_email
|
22
|
+
|
23
|
+
# Your private key from your generated private key file.
|
24
|
+
attr_accessor :private_key
|
25
|
+
|
17
26
|
# Your server key from the fcm console.
|
18
27
|
attr_accessor :server_key
|
19
28
|
|
@@ -30,6 +39,9 @@ module SunshineConversationsClient
|
|
30
39
|
def self.attribute_map
|
31
40
|
{
|
32
41
|
:'type' => :'type',
|
42
|
+
:'project_id' => :'projectId',
|
43
|
+
:'client_email' => :'clientEmail',
|
44
|
+
:'private_key' => :'privateKey',
|
33
45
|
:'server_key' => :'serverKey',
|
34
46
|
:'sender_id' => :'senderId',
|
35
47
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
@@ -41,6 +53,9 @@ module SunshineConversationsClient
|
|
41
53
|
def self.openapi_types
|
42
54
|
{
|
43
55
|
:'type' => :'String',
|
56
|
+
:'project_id' => :'String',
|
57
|
+
:'client_email' => :'String',
|
58
|
+
:'private_key' => :'String',
|
44
59
|
:'server_key' => :'String',
|
45
60
|
:'sender_id' => :'String',
|
46
61
|
:'can_user_create_more_conversations' => :'Boolean',
|
@@ -51,6 +66,9 @@ module SunshineConversationsClient
|
|
51
66
|
# List of attributes with nullable: true
|
52
67
|
def self.openapi_nullable
|
53
68
|
Set.new([
|
69
|
+
:'project_id',
|
70
|
+
:'client_email',
|
71
|
+
:'private_key',
|
54
72
|
:'server_key',
|
55
73
|
:'sender_id',
|
56
74
|
])
|
@@ -77,6 +95,18 @@ module SunshineConversationsClient
|
|
77
95
|
self.type = 'android'
|
78
96
|
end
|
79
97
|
|
98
|
+
if attributes.key?(:'project_id')
|
99
|
+
self.project_id = attributes[:'project_id']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'client_email')
|
103
|
+
self.client_email = attributes[:'client_email']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'private_key')
|
107
|
+
self.private_key = attributes[:'private_key']
|
108
|
+
end
|
109
|
+
|
80
110
|
if attributes.key?(:'server_key')
|
81
111
|
self.server_key = attributes[:'server_key']
|
82
112
|
end
|
@@ -98,6 +128,18 @@ module SunshineConversationsClient
|
|
98
128
|
# @return Array for valid properties with the reasons
|
99
129
|
def list_invalid_properties
|
100
130
|
invalid_properties = Array.new
|
131
|
+
if !@project_id.nil? && @project_id.to_s.length < 1
|
132
|
+
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if !@client_email.nil? && @client_email.to_s.length < 1
|
136
|
+
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if !@private_key.nil? && @private_key.to_s.length < 1
|
140
|
+
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
141
|
+
end
|
142
|
+
|
101
143
|
if !@server_key.nil? && @server_key.to_s.length < 1
|
102
144
|
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
103
145
|
end
|
@@ -112,11 +154,44 @@ module SunshineConversationsClient
|
|
112
154
|
# Check to see if the all the properties in the model are valid
|
113
155
|
# @return true if the model is valid
|
114
156
|
def valid?
|
157
|
+
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
158
|
+
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
159
|
+
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
115
160
|
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
116
161
|
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
117
162
|
true
|
118
163
|
end
|
119
164
|
|
165
|
+
# Custom attribute writer method with validation
|
166
|
+
# @param [Object] project_id Value to be assigned
|
167
|
+
def project_id=(project_id)
|
168
|
+
if !project_id.nil? && project_id.to_s.length < 1
|
169
|
+
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
170
|
+
end
|
171
|
+
|
172
|
+
@project_id = project_id
|
173
|
+
end
|
174
|
+
|
175
|
+
# Custom attribute writer method with validation
|
176
|
+
# @param [Object] client_email Value to be assigned
|
177
|
+
def client_email=(client_email)
|
178
|
+
if !client_email.nil? && client_email.to_s.length < 1
|
179
|
+
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
180
|
+
end
|
181
|
+
|
182
|
+
@client_email = client_email
|
183
|
+
end
|
184
|
+
|
185
|
+
# Custom attribute writer method with validation
|
186
|
+
# @param [Object] private_key Value to be assigned
|
187
|
+
def private_key=(private_key)
|
188
|
+
if !private_key.nil? && private_key.to_s.length < 1
|
189
|
+
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
190
|
+
end
|
191
|
+
|
192
|
+
@private_key = private_key
|
193
|
+
end
|
194
|
+
|
120
195
|
# Custom attribute writer method with validation
|
121
196
|
# @param [Object] server_key Value to be assigned
|
122
197
|
def server_key=(server_key)
|
@@ -143,6 +218,9 @@ module SunshineConversationsClient
|
|
143
218
|
return true if self.equal?(o)
|
144
219
|
self.class == o.class &&
|
145
220
|
type == o.type &&
|
221
|
+
project_id == o.project_id &&
|
222
|
+
client_email == o.client_email &&
|
223
|
+
private_key == o.private_key &&
|
146
224
|
server_key == o.server_key &&
|
147
225
|
sender_id == o.sender_id &&
|
148
226
|
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
@@ -158,7 +236,7 @@ module SunshineConversationsClient
|
|
158
236
|
# Calculates hash code according to all attributes.
|
159
237
|
# @return [Integer] Hash code
|
160
238
|
def hash
|
161
|
-
[type, server_key, sender_id, can_user_create_more_conversations, attachments_enabled].hash
|
239
|
+
[type, project_id, client_email, private_key, server_key, sender_id, can_user_create_more_conversations, attachments_enabled].hash
|
162
240
|
end
|
163
241
|
|
164
242
|
# Builds the object from hash
|
@@ -14,6 +14,15 @@ module SunshineConversationsClient
|
|
14
14
|
# A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`.
|
15
15
|
attr_accessor :display_name
|
16
16
|
|
17
|
+
# Your project ID from your generated private key file.
|
18
|
+
attr_accessor :project_id
|
19
|
+
|
20
|
+
# Your client email from your generated private key file.
|
21
|
+
attr_accessor :client_email
|
22
|
+
|
23
|
+
# Your private key from your generated private key file.
|
24
|
+
attr_accessor :private_key
|
25
|
+
|
17
26
|
# Your server key from the fcm console.
|
18
27
|
attr_accessor :server_key
|
19
28
|
|
@@ -27,6 +36,9 @@ module SunshineConversationsClient
|
|
27
36
|
def self.attribute_map
|
28
37
|
{
|
29
38
|
:'display_name' => :'displayName',
|
39
|
+
:'project_id' => :'projectId',
|
40
|
+
:'client_email' => :'clientEmail',
|
41
|
+
:'private_key' => :'privateKey',
|
30
42
|
:'server_key' => :'serverKey',
|
31
43
|
:'sender_id' => :'senderId',
|
32
44
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations'
|
@@ -37,6 +49,9 @@ module SunshineConversationsClient
|
|
37
49
|
def self.openapi_types
|
38
50
|
{
|
39
51
|
:'display_name' => :'String',
|
52
|
+
:'project_id' => :'String',
|
53
|
+
:'client_email' => :'String',
|
54
|
+
:'private_key' => :'String',
|
40
55
|
:'server_key' => :'String',
|
41
56
|
:'sender_id' => :'String',
|
42
57
|
:'can_user_create_more_conversations' => :'Boolean'
|
@@ -47,6 +62,9 @@ module SunshineConversationsClient
|
|
47
62
|
def self.openapi_nullable
|
48
63
|
Set.new([
|
49
64
|
:'display_name',
|
65
|
+
:'project_id',
|
66
|
+
:'client_email',
|
67
|
+
:'private_key',
|
50
68
|
:'server_key',
|
51
69
|
:'sender_id',
|
52
70
|
])
|
@@ -79,6 +97,18 @@ module SunshineConversationsClient
|
|
79
97
|
self.display_name = attributes[:'display_name']
|
80
98
|
end
|
81
99
|
|
100
|
+
if attributes.key?(:'project_id')
|
101
|
+
self.project_id = attributes[:'project_id']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'client_email')
|
105
|
+
self.client_email = attributes[:'client_email']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'private_key')
|
109
|
+
self.private_key = attributes[:'private_key']
|
110
|
+
end
|
111
|
+
|
82
112
|
if attributes.key?(:'server_key')
|
83
113
|
self.server_key = attributes[:'server_key']
|
84
114
|
end
|
@@ -104,6 +134,18 @@ module SunshineConversationsClient
|
|
104
134
|
invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
|
105
135
|
end
|
106
136
|
|
137
|
+
if !@project_id.nil? && @project_id.to_s.length < 1
|
138
|
+
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if !@client_email.nil? && @client_email.to_s.length < 1
|
142
|
+
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
143
|
+
end
|
144
|
+
|
145
|
+
if !@private_key.nil? && @private_key.to_s.length < 1
|
146
|
+
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
147
|
+
end
|
148
|
+
|
107
149
|
if !@server_key.nil? && @server_key.to_s.length < 1
|
108
150
|
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
109
151
|
end
|
@@ -120,6 +162,9 @@ module SunshineConversationsClient
|
|
120
162
|
def valid?
|
121
163
|
return false if !@display_name.nil? && @display_name.to_s.length > 100
|
122
164
|
return false if !@display_name.nil? && @display_name.to_s.length < 1
|
165
|
+
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
166
|
+
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
167
|
+
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
123
168
|
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
124
169
|
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
125
170
|
true
|
@@ -139,6 +184,36 @@ module SunshineConversationsClient
|
|
139
184
|
@display_name = display_name
|
140
185
|
end
|
141
186
|
|
187
|
+
# Custom attribute writer method with validation
|
188
|
+
# @param [Object] project_id Value to be assigned
|
189
|
+
def project_id=(project_id)
|
190
|
+
if !project_id.nil? && project_id.to_s.length < 1
|
191
|
+
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
192
|
+
end
|
193
|
+
|
194
|
+
@project_id = project_id
|
195
|
+
end
|
196
|
+
|
197
|
+
# Custom attribute writer method with validation
|
198
|
+
# @param [Object] client_email Value to be assigned
|
199
|
+
def client_email=(client_email)
|
200
|
+
if !client_email.nil? && client_email.to_s.length < 1
|
201
|
+
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
202
|
+
end
|
203
|
+
|
204
|
+
@client_email = client_email
|
205
|
+
end
|
206
|
+
|
207
|
+
# Custom attribute writer method with validation
|
208
|
+
# @param [Object] private_key Value to be assigned
|
209
|
+
def private_key=(private_key)
|
210
|
+
if !private_key.nil? && private_key.to_s.length < 1
|
211
|
+
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
212
|
+
end
|
213
|
+
|
214
|
+
@private_key = private_key
|
215
|
+
end
|
216
|
+
|
142
217
|
# Custom attribute writer method with validation
|
143
218
|
# @param [Object] server_key Value to be assigned
|
144
219
|
def server_key=(server_key)
|
@@ -165,6 +240,9 @@ module SunshineConversationsClient
|
|
165
240
|
return true if self.equal?(o)
|
166
241
|
self.class == o.class &&
|
167
242
|
display_name == o.display_name &&
|
243
|
+
project_id == o.project_id &&
|
244
|
+
client_email == o.client_email &&
|
245
|
+
private_key == o.private_key &&
|
168
246
|
server_key == o.server_key &&
|
169
247
|
sender_id == o.sender_id &&
|
170
248
|
can_user_create_more_conversations == o.can_user_create_more_conversations
|
@@ -179,7 +257,7 @@ module SunshineConversationsClient
|
|
179
257
|
# Calculates hash code according to all attributes.
|
180
258
|
# @return [Integer] Hash code
|
181
259
|
def hash
|
182
|
-
[display_name, server_key, sender_id, can_user_create_more_conversations].hash
|
260
|
+
[display_name, project_id, client_email, private_key, server_key, sender_id, can_user_create_more_conversations].hash
|
183
261
|
end
|
184
262
|
|
185
263
|
# Builds the object from hash
|
@@ -11,6 +11,15 @@ require 'date'
|
|
11
11
|
|
12
12
|
module SunshineConversationsClient
|
13
13
|
class AndroidUpdateAllOf
|
14
|
+
# Your project ID from your generated private key file.
|
15
|
+
attr_accessor :project_id
|
16
|
+
|
17
|
+
# Your client email from your generated private key file.
|
18
|
+
attr_accessor :client_email
|
19
|
+
|
20
|
+
# Your private key from your generated private key file.
|
21
|
+
attr_accessor :private_key
|
22
|
+
|
14
23
|
# Your server key from the fcm console.
|
15
24
|
attr_accessor :server_key
|
16
25
|
|
@@ -23,6 +32,9 @@ module SunshineConversationsClient
|
|
23
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
33
|
def self.attribute_map
|
25
34
|
{
|
35
|
+
:'project_id' => :'projectId',
|
36
|
+
:'client_email' => :'clientEmail',
|
37
|
+
:'private_key' => :'privateKey',
|
26
38
|
:'server_key' => :'serverKey',
|
27
39
|
:'sender_id' => :'senderId',
|
28
40
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations'
|
@@ -32,6 +44,9 @@ module SunshineConversationsClient
|
|
32
44
|
# Attribute type mapping.
|
33
45
|
def self.openapi_types
|
34
46
|
{
|
47
|
+
:'project_id' => :'String',
|
48
|
+
:'client_email' => :'String',
|
49
|
+
:'private_key' => :'String',
|
35
50
|
:'server_key' => :'String',
|
36
51
|
:'sender_id' => :'String',
|
37
52
|
:'can_user_create_more_conversations' => :'Boolean'
|
@@ -41,6 +56,9 @@ module SunshineConversationsClient
|
|
41
56
|
# List of attributes with nullable: true
|
42
57
|
def self.openapi_nullable
|
43
58
|
Set.new([
|
59
|
+
:'project_id',
|
60
|
+
:'client_email',
|
61
|
+
:'private_key',
|
44
62
|
:'server_key',
|
45
63
|
:'sender_id',
|
46
64
|
])
|
@@ -61,6 +79,18 @@ module SunshineConversationsClient
|
|
61
79
|
h[k.to_sym] = v
|
62
80
|
}
|
63
81
|
|
82
|
+
if attributes.key?(:'project_id')
|
83
|
+
self.project_id = attributes[:'project_id']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'client_email')
|
87
|
+
self.client_email = attributes[:'client_email']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'private_key')
|
91
|
+
self.private_key = attributes[:'private_key']
|
92
|
+
end
|
93
|
+
|
64
94
|
if attributes.key?(:'server_key')
|
65
95
|
self.server_key = attributes[:'server_key']
|
66
96
|
end
|
@@ -78,6 +108,18 @@ module SunshineConversationsClient
|
|
78
108
|
# @return Array for valid properties with the reasons
|
79
109
|
def list_invalid_properties
|
80
110
|
invalid_properties = Array.new
|
111
|
+
if !@project_id.nil? && @project_id.to_s.length < 1
|
112
|
+
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
113
|
+
end
|
114
|
+
|
115
|
+
if !@client_email.nil? && @client_email.to_s.length < 1
|
116
|
+
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
117
|
+
end
|
118
|
+
|
119
|
+
if !@private_key.nil? && @private_key.to_s.length < 1
|
120
|
+
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
121
|
+
end
|
122
|
+
|
81
123
|
if !@server_key.nil? && @server_key.to_s.length < 1
|
82
124
|
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
83
125
|
end
|
@@ -92,11 +134,44 @@ module SunshineConversationsClient
|
|
92
134
|
# Check to see if the all the properties in the model are valid
|
93
135
|
# @return true if the model is valid
|
94
136
|
def valid?
|
137
|
+
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
138
|
+
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
139
|
+
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
95
140
|
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
96
141
|
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
97
142
|
true
|
98
143
|
end
|
99
144
|
|
145
|
+
# Custom attribute writer method with validation
|
146
|
+
# @param [Object] project_id Value to be assigned
|
147
|
+
def project_id=(project_id)
|
148
|
+
if !project_id.nil? && project_id.to_s.length < 1
|
149
|
+
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
150
|
+
end
|
151
|
+
|
152
|
+
@project_id = project_id
|
153
|
+
end
|
154
|
+
|
155
|
+
# Custom attribute writer method with validation
|
156
|
+
# @param [Object] client_email Value to be assigned
|
157
|
+
def client_email=(client_email)
|
158
|
+
if !client_email.nil? && client_email.to_s.length < 1
|
159
|
+
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
160
|
+
end
|
161
|
+
|
162
|
+
@client_email = client_email
|
163
|
+
end
|
164
|
+
|
165
|
+
# Custom attribute writer method with validation
|
166
|
+
# @param [Object] private_key Value to be assigned
|
167
|
+
def private_key=(private_key)
|
168
|
+
if !private_key.nil? && private_key.to_s.length < 1
|
169
|
+
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
170
|
+
end
|
171
|
+
|
172
|
+
@private_key = private_key
|
173
|
+
end
|
174
|
+
|
100
175
|
# Custom attribute writer method with validation
|
101
176
|
# @param [Object] server_key Value to be assigned
|
102
177
|
def server_key=(server_key)
|
@@ -122,6 +197,9 @@ module SunshineConversationsClient
|
|
122
197
|
def ==(o)
|
123
198
|
return true if self.equal?(o)
|
124
199
|
self.class == o.class &&
|
200
|
+
project_id == o.project_id &&
|
201
|
+
client_email == o.client_email &&
|
202
|
+
private_key == o.private_key &&
|
125
203
|
server_key == o.server_key &&
|
126
204
|
sender_id == o.sender_id &&
|
127
205
|
can_user_create_more_conversations == o.can_user_create_more_conversations
|
@@ -136,7 +214,7 @@ module SunshineConversationsClient
|
|
136
214
|
# Calculates hash code according to all attributes.
|
137
215
|
# @return [Integer] Hash code
|
138
216
|
def hash
|
139
|
-
[server_key, sender_id, can_user_create_more_conversations].hash
|
217
|
+
[project_id, client_email, private_key, server_key, sender_id, can_user_create_more_conversations].hash
|
140
218
|
end
|
141
219
|
|
142
220
|
# Builds the object from hash
|
@@ -14,6 +14,15 @@ module SunshineConversationsClient
|
|
14
14
|
# A human-friendly name used to identify the integration. `displayName` can be unset by changing it to `null`.
|
15
15
|
attr_accessor :display_name
|
16
16
|
|
17
|
+
# Your project ID from your generated private key file.
|
18
|
+
attr_accessor :project_id
|
19
|
+
|
20
|
+
# Your client email from your generated private key file.
|
21
|
+
attr_accessor :client_email
|
22
|
+
|
23
|
+
# Your private key from your generated private key file.
|
24
|
+
attr_accessor :private_key
|
25
|
+
|
17
26
|
# Your server key from the fcm console.
|
18
27
|
attr_accessor :server_key
|
19
28
|
|
@@ -99,6 +108,9 @@ module SunshineConversationsClient
|
|
99
108
|
def self.attribute_map
|
100
109
|
{
|
101
110
|
:'display_name' => :'displayName',
|
111
|
+
:'project_id' => :'projectId',
|
112
|
+
:'client_email' => :'clientEmail',
|
113
|
+
:'private_key' => :'privateKey',
|
102
114
|
:'server_key' => :'serverKey',
|
103
115
|
:'sender_id' => :'senderId',
|
104
116
|
:'can_user_create_more_conversations' => :'canUserCreateMoreConversations',
|
@@ -133,6 +145,9 @@ module SunshineConversationsClient
|
|
133
145
|
def self.openapi_types
|
134
146
|
{
|
135
147
|
:'display_name' => :'String',
|
148
|
+
:'project_id' => :'String',
|
149
|
+
:'client_email' => :'String',
|
150
|
+
:'private_key' => :'String',
|
136
151
|
:'server_key' => :'String',
|
137
152
|
:'sender_id' => :'String',
|
138
153
|
:'can_user_create_more_conversations' => :'Boolean',
|
@@ -167,6 +182,9 @@ module SunshineConversationsClient
|
|
167
182
|
def self.openapi_nullable
|
168
183
|
Set.new([
|
169
184
|
:'display_name',
|
185
|
+
:'project_id',
|
186
|
+
:'client_email',
|
187
|
+
:'private_key',
|
170
188
|
:'server_key',
|
171
189
|
:'sender_id',
|
172
190
|
:'certificate',
|
@@ -221,6 +239,18 @@ module SunshineConversationsClient
|
|
221
239
|
self.display_name = attributes[:'display_name']
|
222
240
|
end
|
223
241
|
|
242
|
+
if attributes.key?(:'project_id')
|
243
|
+
self.project_id = attributes[:'project_id']
|
244
|
+
end
|
245
|
+
|
246
|
+
if attributes.key?(:'client_email')
|
247
|
+
self.client_email = attributes[:'client_email']
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.key?(:'private_key')
|
251
|
+
self.private_key = attributes[:'private_key']
|
252
|
+
end
|
253
|
+
|
224
254
|
if attributes.key?(:'server_key')
|
225
255
|
self.server_key = attributes[:'server_key']
|
226
256
|
end
|
@@ -356,6 +386,18 @@ module SunshineConversationsClient
|
|
356
386
|
invalid_properties.push('invalid value for "display_name", the character length must be great than or equal to 1.')
|
357
387
|
end
|
358
388
|
|
389
|
+
if !@project_id.nil? && @project_id.to_s.length < 1
|
390
|
+
invalid_properties.push('invalid value for "project_id", the character length must be great than or equal to 1.')
|
391
|
+
end
|
392
|
+
|
393
|
+
if !@client_email.nil? && @client_email.to_s.length < 1
|
394
|
+
invalid_properties.push('invalid value for "client_email", the character length must be great than or equal to 1.')
|
395
|
+
end
|
396
|
+
|
397
|
+
if !@private_key.nil? && @private_key.to_s.length < 1
|
398
|
+
invalid_properties.push('invalid value for "private_key", the character length must be great than or equal to 1.')
|
399
|
+
end
|
400
|
+
|
359
401
|
if !@server_key.nil? && @server_key.to_s.length < 1
|
360
402
|
invalid_properties.push('invalid value for "server_key", the character length must be great than or equal to 1.')
|
361
403
|
end
|
@@ -380,6 +422,9 @@ module SunshineConversationsClient
|
|
380
422
|
def valid?
|
381
423
|
return false if !@display_name.nil? && @display_name.to_s.length > 100
|
382
424
|
return false if !@display_name.nil? && @display_name.to_s.length < 1
|
425
|
+
return false if !@project_id.nil? && @project_id.to_s.length < 1
|
426
|
+
return false if !@client_email.nil? && @client_email.to_s.length < 1
|
427
|
+
return false if !@private_key.nil? && @private_key.to_s.length < 1
|
383
428
|
return false if !@server_key.nil? && @server_key.to_s.length < 1
|
384
429
|
return false if !@sender_id.nil? && @sender_id.to_s.length < 1
|
385
430
|
return false if !@certificate.nil? && @certificate.to_s.length < 1
|
@@ -417,6 +462,36 @@ module SunshineConversationsClient
|
|
417
462
|
@display_name = display_name
|
418
463
|
end
|
419
464
|
|
465
|
+
# Custom attribute writer method with validation
|
466
|
+
# @param [Object] project_id Value to be assigned
|
467
|
+
def project_id=(project_id)
|
468
|
+
if !project_id.nil? && project_id.to_s.length < 1
|
469
|
+
fail ArgumentError, 'invalid value for "project_id", the character length must be great than or equal to 1.'
|
470
|
+
end
|
471
|
+
|
472
|
+
@project_id = project_id
|
473
|
+
end
|
474
|
+
|
475
|
+
# Custom attribute writer method with validation
|
476
|
+
# @param [Object] client_email Value to be assigned
|
477
|
+
def client_email=(client_email)
|
478
|
+
if !client_email.nil? && client_email.to_s.length < 1
|
479
|
+
fail ArgumentError, 'invalid value for "client_email", the character length must be great than or equal to 1.'
|
480
|
+
end
|
481
|
+
|
482
|
+
@client_email = client_email
|
483
|
+
end
|
484
|
+
|
485
|
+
# Custom attribute writer method with validation
|
486
|
+
# @param [Object] private_key Value to be assigned
|
487
|
+
def private_key=(private_key)
|
488
|
+
if !private_key.nil? && private_key.to_s.length < 1
|
489
|
+
fail ArgumentError, 'invalid value for "private_key", the character length must be great than or equal to 1.'
|
490
|
+
end
|
491
|
+
|
492
|
+
@private_key = private_key
|
493
|
+
end
|
494
|
+
|
420
495
|
# Custom attribute writer method with validation
|
421
496
|
# @param [Object] server_key Value to be assigned
|
422
497
|
def server_key=(server_key)
|
@@ -463,6 +538,9 @@ module SunshineConversationsClient
|
|
463
538
|
return true if self.equal?(o)
|
464
539
|
self.class == o.class &&
|
465
540
|
display_name == o.display_name &&
|
541
|
+
project_id == o.project_id &&
|
542
|
+
client_email == o.client_email &&
|
543
|
+
private_key == o.private_key &&
|
466
544
|
server_key == o.server_key &&
|
467
545
|
sender_id == o.sender_id &&
|
468
546
|
can_user_create_more_conversations == o.can_user_create_more_conversations &&
|
@@ -501,7 +579,7 @@ module SunshineConversationsClient
|
|
501
579
|
# Calculates hash code according to all attributes.
|
502
580
|
# @return [Integer] Hash code
|
503
581
|
def hash
|
504
|
-
[display_name, server_key, sender_id, can_user_create_more_conversations, page_access_token, certificate, password, production, auto_update_badge, hide_unsubscribe_link, from_address, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, prechat_capture, hsm_fallback_language, account_id, account_management_access_token].hash
|
582
|
+
[display_name, project_id, client_email, private_key, server_key, sender_id, can_user_create_more_conversations, page_access_token, certificate, password, production, auto_update_badge, hide_unsubscribe_link, from_address, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, prechat_capture, hsm_fallback_language, account_id, account_management_access_token].hash
|
505
583
|
end
|
506
584
|
|
507
585
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunshine-conversations-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunshine Conversations
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|