late-sdk 0.0.77 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc5f73d870ecb3483933e85dc0c827262c8cc9ad600eba39c0fc207af8887603
4
- data.tar.gz: 569e07109206c7bea101d1dcdd1614848e1f0ecc357bf8521fcd99deec48223b
3
+ metadata.gz: ff815966a86d24f2ec031848446029d39d753c2ca4b01b9646790b6f6041b099
4
+ data.tar.gz: 62831db2332de076976fd4db3ef3d1834e2f4025fa614d162034b2af3e8212b6
5
5
  SHA512:
6
- metadata.gz: ff7d7db3460321cdc491ae3b4c47d6c28135b4637a498a8fdf6d029fceed0c2a35f0a97f7da0fd2cf9ef36af77c54620a49596fa2291ac76845764e6c6306ccd
7
- data.tar.gz: 7c9d5381757d7ef169f9b6f5463d9f2391bac65b759fd192d87ae210c31a9d50d47be44fdcbae58213a6261db581fab51d3b6b4ef8ef861f36bf6e173efe8883
6
+ metadata.gz: eab2a9aca3c386f3b93f49c3a83b2d7afcdb399d2cefa29440abab35ba58ec65a93780a367cf615a10e87392da5c01d5e69814b89e3fa79fb84d6330c0856dc2
7
+ data.tar.gz: 5e85eed12bb9f1cfc1f454cdc8f241fc10ed17fea7b383e88f6a1c7c1884f909624e26b02e58ccbcd5db65ff330e2e6f802872bc9aa5c1240f0b0b26d709899b
data/README.md CHANGED
@@ -349,6 +349,8 @@ Class | Method | HTTP request | Description
349
349
  - [Late::CreateAccountGroupRequest](docs/CreateAccountGroupRequest.md)
350
350
  - [Late::CreateApiKey201Response](docs/CreateApiKey201Response.md)
351
351
  - [Late::CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
352
+ - [Late::CreateBroadcast200Response](docs/CreateBroadcast200Response.md)
353
+ - [Late::CreateBroadcast200ResponseBroadcast](docs/CreateBroadcast200ResponseBroadcast.md)
352
354
  - [Late::CreateBroadcastRequest](docs/CreateBroadcastRequest.md)
353
355
  - [Late::CreateBroadcastRequestMessage](docs/CreateBroadcastRequestMessage.md)
354
356
  - [Late::CreateBroadcastRequestMessageAttachmentsInner](docs/CreateBroadcastRequestMessageAttachmentsInner.md)
@@ -373,6 +375,8 @@ Class | Method | HTTP request | Description
373
375
  - [Late::CreateProfileRequest](docs/CreateProfileRequest.md)
374
376
  - [Late::CreateQueueSlot201Response](docs/CreateQueueSlot201Response.md)
375
377
  - [Late::CreateQueueSlotRequest](docs/CreateQueueSlotRequest.md)
378
+ - [Late::CreateSequence200Response](docs/CreateSequence200Response.md)
379
+ - [Late::CreateSequence200ResponseSequence](docs/CreateSequence200ResponseSequence.md)
376
380
  - [Late::CreateSequenceRequest](docs/CreateSequenceRequest.md)
377
381
  - [Late::CreateSequenceRequestStepsInner](docs/CreateSequenceRequestStepsInner.md)
378
382
  - [Late::CreateSequenceRequestStepsInnerTemplate](docs/CreateSequenceRequestStepsInnerTemplate.md)
@@ -154,7 +154,7 @@ end
154
154
 
155
155
  ## create_broadcast
156
156
 
157
- > create_broadcast(create_broadcast_request)
157
+ > <CreateBroadcast200Response> create_broadcast(create_broadcast_request)
158
158
 
159
159
  Create a broadcast draft
160
160
 
@@ -174,7 +174,8 @@ create_broadcast_request = Late::CreateBroadcastRequest.new({profile_id: 'profil
174
174
 
175
175
  begin
176
176
  # Create a broadcast draft
177
- api_instance.create_broadcast(create_broadcast_request)
177
+ result = api_instance.create_broadcast(create_broadcast_request)
178
+ p result
178
179
  rescue Late::ApiError => e
179
180
  puts "Error when calling BroadcastsApi->create_broadcast: #{e}"
180
181
  end
@@ -182,9 +183,9 @@ end
182
183
 
183
184
  #### Using the create_broadcast_with_http_info variant
184
185
 
185
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
186
+ This returns an Array which contains the response data, status code and headers.
186
187
 
187
- > <Array(nil, Integer, Hash)> create_broadcast_with_http_info(create_broadcast_request)
188
+ > <Array(<CreateBroadcast200Response>, Integer, Hash)> create_broadcast_with_http_info(create_broadcast_request)
188
189
 
189
190
  ```ruby
190
191
  begin
@@ -192,7 +193,7 @@ begin
192
193
  data, status_code, headers = api_instance.create_broadcast_with_http_info(create_broadcast_request)
193
194
  p status_code # => 2xx
194
195
  p headers # => { ... }
195
- p data # => nil
196
+ p data # => <CreateBroadcast200Response>
196
197
  rescue Late::ApiError => e
197
198
  puts "Error when calling BroadcastsApi->create_broadcast_with_http_info: #{e}"
198
199
  end
@@ -206,7 +207,7 @@ end
206
207
 
207
208
  ### Return type
208
209
 
209
- nil (empty response body)
210
+ [**CreateBroadcast200Response**](CreateBroadcast200Response.md)
210
211
 
211
212
  ### Authorization
212
213
 
@@ -0,0 +1,20 @@
1
+ # Late::CreateBroadcast200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **broadcast** | [**CreateBroadcast200ResponseBroadcast**](CreateBroadcast200ResponseBroadcast.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'late-sdk'
14
+
15
+ instance = Late::CreateBroadcast200Response.new(
16
+ success: null,
17
+ broadcast: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,30 @@
1
+ # Late::CreateBroadcast200ResponseBroadcast
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
11
+ | **account_id** | **String** | | [optional] |
12
+ | **status** | **String** | | [optional] |
13
+ | **created_at** | **Time** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'late-sdk'
19
+
20
+ instance = Late::CreateBroadcast200ResponseBroadcast.new(
21
+ id: null,
22
+ name: null,
23
+ description: null,
24
+ platform: null,
25
+ account_id: null,
26
+ status: null,
27
+ created_at: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,20 @@
1
+ # Late::CreateSequence200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **sequence** | [**CreateSequence200ResponseSequence**](CreateSequence200ResponseSequence.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'late-sdk'
14
+
15
+ instance = Late::CreateSequence200Response.new(
16
+ success: null,
17
+ sequence: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,30 @@
1
+ # Late::CreateSequence200ResponseSequence
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
11
+ | **status** | **String** | | [optional] |
12
+ | **steps_count** | **Integer** | | [optional] |
13
+ | **created_at** | **Time** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'late-sdk'
19
+
20
+ instance = Late::CreateSequence200ResponseSequence.new(
21
+ id: null,
22
+ name: null,
23
+ description: null,
24
+ platform: null,
25
+ status: null,
26
+ steps_count: null,
27
+ created_at: null
28
+ )
29
+ ```
30
+
data/docs/SequencesApi.md CHANGED
@@ -85,7 +85,7 @@ end
85
85
 
86
86
  ## create_sequence
87
87
 
88
- > create_sequence(create_sequence_request)
88
+ > <CreateSequence200Response> create_sequence(create_sequence_request)
89
89
 
90
90
  Create a sequence
91
91
 
@@ -105,7 +105,8 @@ create_sequence_request = Late::CreateSequenceRequest.new({profile_id: 'profile_
105
105
 
106
106
  begin
107
107
  # Create a sequence
108
- api_instance.create_sequence(create_sequence_request)
108
+ result = api_instance.create_sequence(create_sequence_request)
109
+ p result
109
110
  rescue Late::ApiError => e
110
111
  puts "Error when calling SequencesApi->create_sequence: #{e}"
111
112
  end
@@ -113,9 +114,9 @@ end
113
114
 
114
115
  #### Using the create_sequence_with_http_info variant
115
116
 
116
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
117
+ This returns an Array which contains the response data, status code and headers.
117
118
 
118
- > <Array(nil, Integer, Hash)> create_sequence_with_http_info(create_sequence_request)
119
+ > <Array(<CreateSequence200Response>, Integer, Hash)> create_sequence_with_http_info(create_sequence_request)
119
120
 
120
121
  ```ruby
121
122
  begin
@@ -123,7 +124,7 @@ begin
123
124
  data, status_code, headers = api_instance.create_sequence_with_http_info(create_sequence_request)
124
125
  p status_code # => 2xx
125
126
  p headers # => { ... }
126
- p data # => nil
127
+ p data # => <CreateSequence200Response>
127
128
  rescue Late::ApiError => e
128
129
  puts "Error when calling SequencesApi->create_sequence_with_http_info: #{e}"
129
130
  end
@@ -137,7 +138,7 @@ end
137
138
 
138
139
  ### Return type
139
140
 
140
- nil (empty response body)
141
+ [**CreateSequence200Response**](CreateSequence200Response.md)
141
142
 
142
143
  ### Authorization
143
144
 
@@ -155,16 +155,16 @@ module Late
155
155
  # Create a broadcast draft
156
156
  # @param create_broadcast_request [CreateBroadcastRequest]
157
157
  # @param [Hash] opts the optional parameters
158
- # @return [nil]
158
+ # @return [CreateBroadcast200Response]
159
159
  def create_broadcast(create_broadcast_request, opts = {})
160
- create_broadcast_with_http_info(create_broadcast_request, opts)
161
- nil
160
+ data, _status_code, _headers = create_broadcast_with_http_info(create_broadcast_request, opts)
161
+ data
162
162
  end
163
163
 
164
164
  # Create a broadcast draft
165
165
  # @param create_broadcast_request [CreateBroadcastRequest]
166
166
  # @param [Hash] opts the optional parameters
167
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
167
+ # @return [Array<(CreateBroadcast200Response, Integer, Hash)>] CreateBroadcast200Response data, response status code and response headers
168
168
  def create_broadcast_with_http_info(create_broadcast_request, opts = {})
169
169
  if @api_client.config.debugging
170
170
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.create_broadcast ...'
@@ -196,7 +196,7 @@ module Late
196
196
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_broadcast_request)
197
197
 
198
198
  # return_type
199
- return_type = opts[:debug_return_type]
199
+ return_type = opts[:debug_return_type] || 'CreateBroadcast200Response'
200
200
 
201
201
  # auth_names
202
202
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -83,16 +83,16 @@ module Late
83
83
  # Create a sequence
84
84
  # @param create_sequence_request [CreateSequenceRequest]
85
85
  # @param [Hash] opts the optional parameters
86
- # @return [nil]
86
+ # @return [CreateSequence200Response]
87
87
  def create_sequence(create_sequence_request, opts = {})
88
- create_sequence_with_http_info(create_sequence_request, opts)
89
- nil
88
+ data, _status_code, _headers = create_sequence_with_http_info(create_sequence_request, opts)
89
+ data
90
90
  end
91
91
 
92
92
  # Create a sequence
93
93
  # @param create_sequence_request [CreateSequenceRequest]
94
94
  # @param [Hash] opts the optional parameters
95
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
95
+ # @return [Array<(CreateSequence200Response, Integer, Hash)>] CreateSequence200Response data, response status code and response headers
96
96
  def create_sequence_with_http_info(create_sequence_request, opts = {})
97
97
  if @api_client.config.debugging
98
98
  @api_client.config.logger.debug 'Calling API: SequencesApi.create_sequence ...'
@@ -124,7 +124,7 @@ module Late
124
124
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sequence_request)
125
125
 
126
126
  # return_type
127
- return_type = opts[:debug_return_type]
127
+ return_type = opts[:debug_return_type] || 'CreateSequence200Response'
128
128
 
129
129
  # auth_names
130
130
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -0,0 +1,156 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.1
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Late
17
+ class CreateBroadcast200Response < ApiModelBase
18
+ attr_accessor :success
19
+
20
+ attr_accessor :broadcast
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'success' => :'success',
26
+ :'broadcast' => :'broadcast'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'success' => :'Boolean',
44
+ :'broadcast' => :'CreateBroadcast200ResponseBroadcast'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::CreateBroadcast200Response` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::CreateBroadcast200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.key?(:'broadcast')
75
+ self.broadcast = attributes[:'broadcast']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ success == o.success &&
100
+ broadcast == o.broadcast
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [success, broadcast].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
121
+ transformed_hash = {}
122
+ openapi_types.each_pair do |key, type|
123
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
+ transformed_hash["#{key}"] = nil
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[attribute_map[key]].is_a?(Array)
129
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
+ end
131
+ elsif !attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
+ end
134
+ end
135
+ new(transformed_hash)
136
+ end
137
+
138
+ # Returns the object in the form of hash
139
+ # @return [Hash] Returns the object in the form of hash
140
+ def to_hash
141
+ hash = {}
142
+ self.class.attribute_map.each_pair do |attr, param|
143
+ value = self.send(attr)
144
+ if value.nil?
145
+ is_nullable = self.class.openapi_nullable.include?(attr)
146
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
+ end
148
+
149
+ hash[param] = _to_hash(value)
150
+ end
151
+ hash
152
+ end
153
+
154
+ end
155
+
156
+ end
@@ -0,0 +1,201 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5
+
6
+ The version of the OpenAPI document: 1.0.1
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Late
17
+ class CreateBroadcast200ResponseBroadcast < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ attr_accessor :description
23
+
24
+ attr_accessor :platform
25
+
26
+ attr_accessor :account_id
27
+
28
+ attr_accessor :status
29
+
30
+ attr_accessor :created_at
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'id' => :'id',
36
+ :'name' => :'name',
37
+ :'description' => :'description',
38
+ :'platform' => :'platform',
39
+ :'account_id' => :'accountId',
40
+ :'status' => :'status',
41
+ :'created_at' => :'createdAt'
42
+ }
43
+ end
44
+
45
+ # Returns attribute mapping this model knows about
46
+ def self.acceptable_attribute_map
47
+ attribute_map
48
+ end
49
+
50
+ # Returns all the JSON keys this model knows about
51
+ def self.acceptable_attributes
52
+ acceptable_attribute_map.values
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'id' => :'String',
59
+ :'name' => :'String',
60
+ :'description' => :'String',
61
+ :'platform' => :'String',
62
+ :'account_id' => :'String',
63
+ :'status' => :'String',
64
+ :'created_at' => :'Time'
65
+ }
66
+ end
67
+
68
+ # List of attributes with nullable: true
69
+ def self.openapi_nullable
70
+ Set.new([
71
+ ])
72
+ end
73
+
74
+ # Initializes the object
75
+ # @param [Hash] attributes Model attributes in the form of hash
76
+ def initialize(attributes = {})
77
+ if (!attributes.is_a?(Hash))
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::CreateBroadcast200ResponseBroadcast` initialize method"
79
+ end
80
+
81
+ # check to see if the attribute exists and convert string to symbol for hash key
82
+ acceptable_attribute_map = self.class.acceptable_attribute_map
83
+ attributes = attributes.each_with_object({}) { |(k, v), h|
84
+ if (!acceptable_attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::CreateBroadcast200ResponseBroadcast`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
+ end
87
+ h[k.to_sym] = v
88
+ }
89
+
90
+ if attributes.key?(:'id')
91
+ self.id = attributes[:'id']
92
+ end
93
+
94
+ if attributes.key?(:'name')
95
+ self.name = attributes[:'name']
96
+ end
97
+
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
100
+ end
101
+
102
+ if attributes.key?(:'platform')
103
+ self.platform = attributes[:'platform']
104
+ end
105
+
106
+ if attributes.key?(:'account_id')
107
+ self.account_id = attributes[:'account_id']
108
+ end
109
+
110
+ if attributes.key?(:'status')
111
+ self.status = attributes[:'status']
112
+ end
113
+
114
+ if attributes.key?(:'created_at')
115
+ self.created_at = attributes[:'created_at']
116
+ end
117
+ end
118
+
119
+ # Show invalid properties with the reasons. Usually used together with valid?
120
+ # @return Array for valid properties with the reasons
121
+ def list_invalid_properties
122
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
123
+ invalid_properties = Array.new
124
+ invalid_properties
125
+ end
126
+
127
+ # Check to see if the all the properties in the model are valid
128
+ # @return true if the model is valid
129
+ def valid?
130
+ warn '[DEPRECATED] the `valid?` method is obsolete'
131
+ true
132
+ end
133
+
134
+ # Checks equality by comparing each attribute.
135
+ # @param [Object] Object to be compared
136
+ def ==(o)
137
+ return true if self.equal?(o)
138
+ self.class == o.class &&
139
+ id == o.id &&
140
+ name == o.name &&
141
+ description == o.description &&
142
+ platform == o.platform &&
143
+ account_id == o.account_id &&
144
+ status == o.status &&
145
+ created_at == o.created_at
146
+ end
147
+
148
+ # @see the `==` method
149
+ # @param [Object] Object to be compared
150
+ def eql?(o)
151
+ self == o
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Integer] Hash code
156
+ def hash
157
+ [id, name, description, platform, account_id, status, created_at].hash
158
+ end
159
+
160
+ # Builds the object from hash
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ # @return [Object] Returns the model itself
163
+ def self.build_from_hash(attributes)
164
+ return nil unless attributes.is_a?(Hash)
165
+ attributes = attributes.transform_keys(&:to_sym)
166
+ transformed_hash = {}
167
+ openapi_types.each_pair do |key, type|
168
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
169
+ transformed_hash["#{key}"] = nil
170
+ elsif type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[attribute_map[key]].is_a?(Array)
174
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
175
+ end
176
+ elsif !attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
178
+ end
179
+ end
180
+ new(transformed_hash)
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ if value.nil?
190
+ is_nullable = self.class.openapi_nullable.include?(attr)
191
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
192
+ end
193
+
194
+ hash[param] = _to_hash(value)
195
+ end
196
+ hash
197
+ end
198
+
199
+ end
200
+
201
+ end