artikcloud 2.0.8 → 2.1.0
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 +4 -4
- data/Gemfile +5 -2
- data/LICENSE +1 -1
- data/README.md +39 -4
- data/Rakefile +8 -0
- data/artikcloud.gemspec +5 -16
- data/docs/Device.md +2 -0
- data/docs/DeviceShareInfo.md +8 -0
- data/docs/DeviceSharing.md +11 -0
- data/docs/DeviceSharingArray.md +8 -0
- data/docs/DeviceSharingEnvelope.md +11 -0
- data/docs/DeviceSharingId.md +8 -0
- data/docs/DeviceStatus.md +9 -0
- data/docs/DeviceStatusBatch.md +11 -0
- data/docs/DeviceStatusData.md +12 -0
- data/docs/DeviceStatusPut.md +8 -0
- data/docs/DeviceStatusPutData.md +8 -0
- data/docs/DevicessharesApi.md +235 -0
- data/docs/DevicestatusApi.md +183 -0
- data/docs/NotifMessage.md +15 -0
- data/docs/NotifMessageArray.md +8 -0
- data/docs/NotifMessagesResponse.md +12 -0
- data/docs/Subscription.md +24 -0
- data/docs/SubscriptionArray.md +8 -0
- data/docs/SubscriptionEnvelope.md +8 -0
- data/docs/SubscriptionInfo.md +20 -0
- data/docs/SubscriptionsApi.md +342 -0
- data/docs/SubscriptionsEnvelope.md +11 -0
- data/docs/TaskParameters.md +2 -0
- data/docs/UpdateParameters.md +8 -0
- data/docs/UsersApi.md +67 -1
- data/docs/ValidationCallbackInfo.md +9 -0
- data/git_push.sh +0 -12
- data/lib/artikcloud.rb +24 -13
- data/lib/artikcloud/api/device_types_api.rb +7 -55
- data/lib/artikcloud/api/devices_api.rb +12 -66
- data/lib/artikcloud/api/devices_management_api.rb +16 -118
- data/lib/artikcloud/api/devicesshares_api.rb +244 -0
- data/lib/artikcloud/api/devicestatus_api.rb +190 -0
- data/lib/artikcloud/api/export_api.rb +5 -41
- data/lib/artikcloud/api/messages_api.rb +10 -76
- data/lib/artikcloud/api/registrations_api.rb +4 -34
- data/lib/artikcloud/api/rules_api.rb +5 -41
- data/lib/artikcloud/api/subscriptions_api.rb +346 -0
- data/lib/artikcloud/api/tags_api.rb +4 -34
- data/lib/artikcloud/api/tokens_api.rb +5 -33
- data/lib/artikcloud/api/users_api.rb +79 -67
- data/lib/artikcloud/api_client.rb +17 -20
- data/lib/artikcloud/api_error.rb +8 -18
- data/lib/artikcloud/configuration.rb +1 -13
- data/lib/artikcloud/models/ack_envelope.rb +4 -16
- data/lib/artikcloud/models/acknowledgement.rb +4 -16
- data/lib/artikcloud/models/action.rb +4 -16
- data/lib/artikcloud/models/action_array.rb +4 -16
- data/lib/artikcloud/models/action_details.rb +4 -16
- data/lib/artikcloud/models/action_details_array.rb +4 -16
- data/lib/artikcloud/models/action_in.rb +4 -16
- data/lib/artikcloud/models/action_out.rb +4 -16
- data/lib/artikcloud/models/actions.rb +4 -16
- data/lib/artikcloud/models/aggregate_data.rb +4 -16
- data/lib/artikcloud/models/aggregates_histogram_data.rb +4 -16
- data/lib/artikcloud/models/aggregates_histogram_response.rb +4 -16
- data/lib/artikcloud/models/aggregates_response.rb +4 -16
- data/lib/artikcloud/models/app_properties.rb +8 -16
- data/lib/artikcloud/models/check_token_message.rb +4 -16
- data/lib/artikcloud/models/check_token_response.rb +4 -16
- data/lib/artikcloud/models/device.rb +28 -20
- data/lib/artikcloud/models/device_array.rb +4 -16
- data/lib/artikcloud/models/device_envelope.rb +8 -16
- data/lib/artikcloud/models/device_reg_complete_request.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_request.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_response.rb +4 -16
- data/lib/artikcloud/models/device_reg_confirm_user_response_envelope.rb +4 -16
- data/lib/artikcloud/models/device_reg_status_response.rb +4 -16
- data/lib/artikcloud/models/device_reg_status_response_envelope.rb +4 -16
- data/lib/artikcloud/models/device_share_info.rb +188 -0
- data/lib/artikcloud/models/device_sharing.rb +218 -0
- data/lib/artikcloud/models/device_sharing_array.rb +189 -0
- data/lib/artikcloud/models/device_sharing_envelope.rb +214 -0
- data/lib/artikcloud/models/device_sharing_id.rb +188 -0
- data/lib/artikcloud/models/device_status.rb +196 -0
- data/lib/artikcloud/models/device_status_batch.rb +216 -0
- data/lib/artikcloud/models/device_status_data.rb +225 -0
- data/lib/artikcloud/models/device_status_put.rb +187 -0
- data/lib/artikcloud/models/device_status_put_data.rb +187 -0
- data/lib/artikcloud/models/device_task.rb +4 -16
- data/lib/artikcloud/models/device_task_update_request.rb +4 -16
- data/lib/artikcloud/models/device_task_update_response.rb +4 -16
- data/lib/artikcloud/models/device_token.rb +20 -16
- data/lib/artikcloud/models/device_token_envelope.rb +8 -16
- data/lib/artikcloud/models/device_type.rb +4 -16
- data/lib/artikcloud/models/device_type_array.rb +4 -16
- data/lib/artikcloud/models/device_type_envelope.rb +8 -16
- data/lib/artikcloud/models/device_type_info.rb +4 -16
- data/lib/artikcloud/models/device_type_info_envelope.rb +4 -16
- data/lib/artikcloud/models/device_types_envelope.rb +16 -16
- data/lib/artikcloud/models/device_types_info.rb +4 -16
- data/lib/artikcloud/models/device_types_info_envelope.rb +4 -16
- data/lib/artikcloud/models/devices_envelope.rb +16 -16
- data/lib/artikcloud/models/error_envelope.rb +4 -16
- data/lib/artikcloud/models/event_feed_data.rb +4 -16
- data/lib/artikcloud/models/export_data.rb +4 -16
- data/lib/artikcloud/models/export_data_array.rb +4 -16
- data/lib/artikcloud/models/export_history_response.rb +4 -16
- data/lib/artikcloud/models/export_normalized_messages_response.rb +4 -16
- data/lib/artikcloud/models/export_request.rb +4 -16
- data/lib/artikcloud/models/export_request_data.rb +4 -16
- data/lib/artikcloud/models/export_request_info.rb +4 -16
- data/lib/artikcloud/models/export_request_response.rb +4 -16
- data/lib/artikcloud/models/export_response.rb +4 -16
- data/lib/artikcloud/models/export_status_response.rb +4 -16
- data/lib/artikcloud/models/field_path.rb +4 -16
- data/lib/artikcloud/models/field_presence.rb +8 -16
- data/lib/artikcloud/models/field_presence_envelope.rb +32 -16
- data/lib/artikcloud/models/fields_actions.rb +4 -16
- data/lib/artikcloud/models/manifest_properties.rb +8 -16
- data/lib/artikcloud/models/manifest_properties_envelope.rb +8 -16
- data/lib/artikcloud/models/manifest_versions.rb +8 -16
- data/lib/artikcloud/models/manifest_versions_envelope.rb +8 -16
- data/lib/artikcloud/models/message.rb +4 -16
- data/lib/artikcloud/models/message_action.rb +4 -16
- data/lib/artikcloud/models/message_id.rb +4 -16
- data/lib/artikcloud/models/message_id_envelope.rb +4 -16
- data/lib/artikcloud/models/message_in.rb +4 -16
- data/lib/artikcloud/models/message_out.rb +4 -16
- data/lib/artikcloud/models/metadata_envelope.rb +4 -16
- data/lib/artikcloud/models/metadata_properties_envelope.rb +4 -16
- data/lib/artikcloud/models/metadata_query_envelope.rb +4 -16
- data/lib/artikcloud/models/non_empty_string.rb +4 -16
- data/lib/artikcloud/models/normalized_action.rb +36 -16
- data/lib/artikcloud/models/normalized_actions_envelope.rb +16 -16
- data/lib/artikcloud/models/normalized_message.rb +36 -16
- data/lib/artikcloud/models/normalized_messages_envelope.rb +16 -16
- data/lib/artikcloud/models/notif_message.rb +252 -0
- data/lib/artikcloud/models/notif_message_array.rb +189 -0
- data/lib/artikcloud/models/notif_messages_response.rb +223 -0
- data/lib/artikcloud/models/output_rule.rb +4 -16
- data/lib/artikcloud/models/presence_envelope.rb +4 -16
- data/lib/artikcloud/models/presence_model.rb +4 -16
- data/lib/artikcloud/models/properties_envelope.rb +8 -16
- data/lib/artikcloud/models/refresh_token_response.rb +4 -16
- data/lib/artikcloud/models/register_message.rb +4 -16
- data/lib/artikcloud/models/rule_array.rb +4 -16
- data/lib/artikcloud/models/rule_creation_info.rb +4 -16
- data/lib/artikcloud/models/rule_envelope.rb +4 -16
- data/lib/artikcloud/models/rule_error.rb +4 -16
- data/lib/artikcloud/models/rule_update_info.rb +4 -16
- data/lib/artikcloud/models/rule_warning_output.rb +4 -16
- data/lib/artikcloud/models/rules_envelope.rb +4 -16
- data/lib/artikcloud/models/snapshot_response.rb +4 -16
- data/lib/artikcloud/models/snapshot_responses.rb +4 -16
- data/lib/artikcloud/models/snapshots_response_envelope.rb +4 -16
- data/lib/artikcloud/models/subscription.rb +348 -0
- data/lib/artikcloud/models/subscription_array.rb +189 -0
- data/lib/artikcloud/models/subscription_envelope.rb +187 -0
- data/lib/artikcloud/models/subscription_info.rb +308 -0
- data/lib/artikcloud/models/subscriptions_envelope.rb +214 -0
- data/lib/artikcloud/models/tag.rb +4 -16
- data/lib/artikcloud/models/tag_array.rb +4 -16
- data/lib/artikcloud/models/tags_envelope.rb +4 -16
- data/lib/artikcloud/models/task.rb +4 -16
- data/lib/artikcloud/models/task_by_did.rb +4 -16
- data/lib/artikcloud/models/task_by_did_list.rb +4 -16
- data/lib/artikcloud/models/task_by_did_list_envelope.rb +4 -16
- data/lib/artikcloud/models/task_envelope.rb +4 -16
- data/lib/artikcloud/models/task_history.rb +4 -16
- data/lib/artikcloud/models/task_history_list.rb +4 -16
- data/lib/artikcloud/models/task_list.rb +4 -16
- data/lib/artikcloud/models/task_list_envelope.rb +4 -16
- data/lib/artikcloud/models/task_parameters.rb +25 -17
- data/lib/artikcloud/models/task_request.rb +4 -16
- data/lib/artikcloud/models/task_status.rb +4 -16
- data/lib/artikcloud/models/task_status_counts.rb +4 -16
- data/lib/artikcloud/models/task_statuses.rb +4 -16
- data/lib/artikcloud/models/task_statuses_envelope.rb +4 -16
- data/lib/artikcloud/models/task_statuses_history_envelope.rb +4 -16
- data/lib/artikcloud/models/task_update_request.rb +4 -16
- data/lib/artikcloud/models/task_update_response.rb +4 -16
- data/lib/artikcloud/models/tasks_status_counts.rb +4 -16
- data/lib/artikcloud/models/token.rb +4 -16
- data/lib/artikcloud/models/token_info.rb +4 -16
- data/lib/artikcloud/models/token_info_success_response.rb +4 -16
- data/lib/artikcloud/models/token_request.rb +4 -16
- data/lib/artikcloud/models/token_response.rb +4 -16
- data/lib/artikcloud/models/unregister_device_response.rb +4 -16
- data/lib/artikcloud/models/unregister_device_response_envelope.rb +4 -16
- data/lib/artikcloud/models/update_parameters.rb +188 -0
- data/lib/artikcloud/models/user.rb +28 -16
- data/lib/artikcloud/models/user_envelope.rb +8 -16
- data/lib/artikcloud/models/validation_callback_info.rb +198 -0
- data/lib/artikcloud/models/web_socket_error.rb +4 -16
- data/lib/artikcloud/version.rb +2 -14
- data/pom.xml +1 -1
- data/spec/api/devicesshares_api_spec.rb +87 -0
- data/spec/api/devicestatus_api_spec.rb +75 -0
- data/spec/api/subscriptions_api_spec.rb +112 -0
- metadata +58 -26
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -133,7 +121,7 @@ module ArtikCloud
|
|
|
133
121
|
def build_from_hash(attributes)
|
|
134
122
|
return nil unless attributes.is_a?(Hash)
|
|
135
123
|
self.class.swagger_types.each_pair do |key, type|
|
|
136
|
-
if type =~
|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
|
137
125
|
# check to ensure the input is an array given that the the attribute
|
|
138
126
|
# is documented as an array but the input is not
|
|
139
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -164,7 +152,7 @@ module ArtikCloud
|
|
|
164
152
|
when :Float
|
|
165
153
|
value.to_f
|
|
166
154
|
when :BOOLEAN
|
|
167
|
-
if value.to_s =~
|
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
156
|
true
|
|
169
157
|
else
|
|
170
158
|
false
|
|
@@ -175,7 +163,7 @@ module ArtikCloud
|
|
|
175
163
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
164
|
inner_type = Regexp.last_match[:inner_type]
|
|
177
165
|
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
-
when /\AHash<(?<k_type
|
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
167
|
k_type = Regexp.last_match[:k_type]
|
|
180
168
|
v_type = Regexp.last_match[:v_type]
|
|
181
169
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -98,7 +86,7 @@ module ArtikCloud
|
|
|
98
86
|
def build_from_hash(attributes)
|
|
99
87
|
return nil unless attributes.is_a?(Hash)
|
|
100
88
|
self.class.swagger_types.each_pair do |key, type|
|
|
101
|
-
if type =~
|
|
89
|
+
if type =~ /\AArray<(.*)>/i
|
|
102
90
|
# check to ensure the input is an array given that the the attribute
|
|
103
91
|
# is documented as an array but the input is not
|
|
104
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -129,7 +117,7 @@ module ArtikCloud
|
|
|
129
117
|
when :Float
|
|
130
118
|
value.to_f
|
|
131
119
|
when :BOOLEAN
|
|
132
|
-
if value.to_s =~
|
|
120
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
133
121
|
true
|
|
134
122
|
else
|
|
135
123
|
false
|
|
@@ -140,7 +128,7 @@ module ArtikCloud
|
|
|
140
128
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
141
129
|
inner_type = Regexp.last_match[:inner_type]
|
|
142
130
|
value.map { |v| _deserialize(inner_type, v) }
|
|
143
|
-
when /\AHash<(?<k_type
|
|
131
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
144
132
|
k_type = Regexp.last_match[:k_type]
|
|
145
133
|
v_type = Regexp.last_match[:v_type]
|
|
146
134
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -61,6 +49,10 @@ module ArtikCloud
|
|
|
61
49
|
# @return Array for valid properies with the reasons
|
|
62
50
|
def list_invalid_properties
|
|
63
51
|
invalid_properties = Array.new
|
|
52
|
+
if @start_date.nil?
|
|
53
|
+
invalid_properties.push("invalid value for 'start_date', start_date cannot be nil.")
|
|
54
|
+
end
|
|
55
|
+
|
|
64
56
|
return invalid_properties
|
|
65
57
|
end
|
|
66
58
|
|
|
@@ -97,7 +89,7 @@ module ArtikCloud
|
|
|
97
89
|
def build_from_hash(attributes)
|
|
98
90
|
return nil unless attributes.is_a?(Hash)
|
|
99
91
|
self.class.swagger_types.each_pair do |key, type|
|
|
100
|
-
if type =~
|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
|
101
93
|
# check to ensure the input is an array given that the the attribute
|
|
102
94
|
# is documented as an array but the input is not
|
|
103
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -128,7 +120,7 @@ module ArtikCloud
|
|
|
128
120
|
when :Float
|
|
129
121
|
value.to_f
|
|
130
122
|
when :BOOLEAN
|
|
131
|
-
if value.to_s =~
|
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
132
124
|
true
|
|
133
125
|
else
|
|
134
126
|
false
|
|
@@ -139,7 +131,7 @@ module ArtikCloud
|
|
|
139
131
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
140
132
|
inner_type = Regexp.last_match[:inner_type]
|
|
141
133
|
value.map { |v| _deserialize(inner_type, v) }
|
|
142
|
-
when /\AHash<(?<k_type
|
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
143
135
|
k_type = Regexp.last_match[:k_type]
|
|
144
136
|
v_type = Regexp.last_match[:v_type]
|
|
145
137
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -111,6 +99,34 @@ module ArtikCloud
|
|
|
111
99
|
# @return Array for valid properies with the reasons
|
|
112
100
|
def list_invalid_properties
|
|
113
101
|
invalid_properties = Array.new
|
|
102
|
+
if @sdid.nil?
|
|
103
|
+
invalid_properties.push("invalid value for 'sdid', sdid cannot be nil.")
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @field_presence.nil?
|
|
107
|
+
invalid_properties.push("invalid value for 'field_presence', field_presence cannot be nil.")
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @start_date.nil?
|
|
111
|
+
invalid_properties.push("invalid value for 'start_date', start_date cannot be nil.")
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if @end_date.nil?
|
|
115
|
+
invalid_properties.push("invalid value for 'end_date', end_date cannot be nil.")
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @interval.nil?
|
|
119
|
+
invalid_properties.push("invalid value for 'interval', interval cannot be nil.")
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @size.nil?
|
|
123
|
+
invalid_properties.push("invalid value for 'size', size cannot be nil.")
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if @data.nil?
|
|
127
|
+
invalid_properties.push("invalid value for 'data', data cannot be nil.")
|
|
128
|
+
end
|
|
129
|
+
|
|
114
130
|
return invalid_properties
|
|
115
131
|
end
|
|
116
132
|
|
|
@@ -159,7 +175,7 @@ module ArtikCloud
|
|
|
159
175
|
def build_from_hash(attributes)
|
|
160
176
|
return nil unless attributes.is_a?(Hash)
|
|
161
177
|
self.class.swagger_types.each_pair do |key, type|
|
|
162
|
-
if type =~
|
|
178
|
+
if type =~ /\AArray<(.*)>/i
|
|
163
179
|
# check to ensure the input is an array given that the the attribute
|
|
164
180
|
# is documented as an array but the input is not
|
|
165
181
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -190,7 +206,7 @@ module ArtikCloud
|
|
|
190
206
|
when :Float
|
|
191
207
|
value.to_f
|
|
192
208
|
when :BOOLEAN
|
|
193
|
-
if value.to_s =~
|
|
209
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
194
210
|
true
|
|
195
211
|
else
|
|
196
212
|
false
|
|
@@ -201,7 +217,7 @@ module ArtikCloud
|
|
|
201
217
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
202
218
|
inner_type = Regexp.last_match[:inner_type]
|
|
203
219
|
value.map { |v| _deserialize(inner_type, v) }
|
|
204
|
-
when /\AHash<(?<k_type
|
|
220
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
205
221
|
k_type = Regexp.last_match[:k_type]
|
|
206
222
|
v_type = Regexp.last_match[:v_type]
|
|
207
223
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -111,7 +99,7 @@ module ArtikCloud
|
|
|
111
99
|
def build_from_hash(attributes)
|
|
112
100
|
return nil unless attributes.is_a?(Hash)
|
|
113
101
|
self.class.swagger_types.each_pair do |key, type|
|
|
114
|
-
if type =~
|
|
102
|
+
if type =~ /\AArray<(.*)>/i
|
|
115
103
|
# check to ensure the input is an array given that the the attribute
|
|
116
104
|
# is documented as an array but the input is not
|
|
117
105
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -142,7 +130,7 @@ module ArtikCloud
|
|
|
142
130
|
when :Float
|
|
143
131
|
value.to_f
|
|
144
132
|
when :BOOLEAN
|
|
145
|
-
if value.to_s =~
|
|
133
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
146
134
|
true
|
|
147
135
|
else
|
|
148
136
|
false
|
|
@@ -153,7 +141,7 @@ module ArtikCloud
|
|
|
153
141
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
154
142
|
inner_type = Regexp.last_match[:inner_type]
|
|
155
143
|
value.map { |v| _deserialize(inner_type, v) }
|
|
156
|
-
when /\AHash<(?<k_type
|
|
144
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
157
145
|
k_type = Regexp.last_match[:k_type]
|
|
158
146
|
v_type = Regexp.last_match[:v_type]
|
|
159
147
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -61,6 +49,10 @@ module ArtikCloud
|
|
|
61
49
|
# @return Array for valid properies with the reasons
|
|
62
50
|
def list_invalid_properties
|
|
63
51
|
invalid_properties = Array.new
|
|
52
|
+
if @properties.nil?
|
|
53
|
+
invalid_properties.push("invalid value for 'properties', properties cannot be nil.")
|
|
54
|
+
end
|
|
55
|
+
|
|
64
56
|
return invalid_properties
|
|
65
57
|
end
|
|
66
58
|
|
|
@@ -97,7 +89,7 @@ module ArtikCloud
|
|
|
97
89
|
def build_from_hash(attributes)
|
|
98
90
|
return nil unless attributes.is_a?(Hash)
|
|
99
91
|
self.class.swagger_types.each_pair do |key, type|
|
|
100
|
-
if type =~
|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
|
101
93
|
# check to ensure the input is an array given that the the attribute
|
|
102
94
|
# is documented as an array but the input is not
|
|
103
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -128,7 +120,7 @@ module ArtikCloud
|
|
|
128
120
|
when :Float
|
|
129
121
|
value.to_f
|
|
130
122
|
when :BOOLEAN
|
|
131
|
-
if value.to_s =~
|
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
132
124
|
true
|
|
133
125
|
else
|
|
134
126
|
false
|
|
@@ -139,7 +131,7 @@ module ArtikCloud
|
|
|
139
131
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
140
132
|
inner_type = Regexp.last_match[:inner_type]
|
|
141
133
|
value.map { |v| _deserialize(inner_type, v) }
|
|
142
|
-
when /\AHash<(?<k_type
|
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
143
135
|
k_type = Regexp.last_match[:k_type]
|
|
144
136
|
v_type = Regexp.last_match[:v_type]
|
|
145
137
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -61,6 +49,10 @@ module ArtikCloud
|
|
|
61
49
|
# @return Array for valid properies with the reasons
|
|
62
50
|
def list_invalid_properties
|
|
63
51
|
invalid_properties = Array.new
|
|
52
|
+
if @data.nil?
|
|
53
|
+
invalid_properties.push("invalid value for 'data', data cannot be nil.")
|
|
54
|
+
end
|
|
55
|
+
|
|
64
56
|
return invalid_properties
|
|
65
57
|
end
|
|
66
58
|
|
|
@@ -97,7 +89,7 @@ module ArtikCloud
|
|
|
97
89
|
def build_from_hash(attributes)
|
|
98
90
|
return nil unless attributes.is_a?(Hash)
|
|
99
91
|
self.class.swagger_types.each_pair do |key, type|
|
|
100
|
-
if type =~
|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
|
101
93
|
# check to ensure the input is an array given that the the attribute
|
|
102
94
|
# is documented as an array but the input is not
|
|
103
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -128,7 +120,7 @@ module ArtikCloud
|
|
|
128
120
|
when :Float
|
|
129
121
|
value.to_f
|
|
130
122
|
when :BOOLEAN
|
|
131
|
-
if value.to_s =~
|
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
132
124
|
true
|
|
133
125
|
else
|
|
134
126
|
false
|
|
@@ -139,7 +131,7 @@ module ArtikCloud
|
|
|
139
131
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
140
132
|
inner_type = Regexp.last_match[:inner_type]
|
|
141
133
|
value.map { |v| _deserialize(inner_type, v) }
|
|
142
|
-
when /\AHash<(?<k_type
|
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
143
135
|
k_type = Regexp.last_match[:k_type]
|
|
144
136
|
v_type = Regexp.last_match[:v_type]
|
|
145
137
|
{}.tap do |hash|
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#ARTIK Cloud API
|
|
3
3
|
|
|
4
|
-
#No
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: 2.0.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
you may not use this file except in compliance with the License.
|
|
12
|
-
You may obtain a copy of the License at
|
|
13
|
-
|
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
See the License for the specific language governing permissions and
|
|
20
|
-
limitations under the License.
|
|
21
|
-
|
|
22
10
|
=end
|
|
23
11
|
|
|
24
12
|
require 'date'
|
|
@@ -63,6 +51,10 @@ module ArtikCloud
|
|
|
63
51
|
# @return Array for valid properies with the reasons
|
|
64
52
|
def list_invalid_properties
|
|
65
53
|
invalid_properties = Array.new
|
|
54
|
+
if @versions.nil?
|
|
55
|
+
invalid_properties.push("invalid value for 'versions', versions cannot be nil.")
|
|
56
|
+
end
|
|
57
|
+
|
|
66
58
|
return invalid_properties
|
|
67
59
|
end
|
|
68
60
|
|
|
@@ -99,7 +91,7 @@ module ArtikCloud
|
|
|
99
91
|
def build_from_hash(attributes)
|
|
100
92
|
return nil unless attributes.is_a?(Hash)
|
|
101
93
|
self.class.swagger_types.each_pair do |key, type|
|
|
102
|
-
if type =~
|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
|
103
95
|
# check to ensure the input is an array given that the the attribute
|
|
104
96
|
# is documented as an array but the input is not
|
|
105
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -130,7 +122,7 @@ module ArtikCloud
|
|
|
130
122
|
when :Float
|
|
131
123
|
value.to_f
|
|
132
124
|
when :BOOLEAN
|
|
133
|
-
if value.to_s =~
|
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
134
126
|
true
|
|
135
127
|
else
|
|
136
128
|
false
|
|
@@ -141,7 +133,7 @@ module ArtikCloud
|
|
|
141
133
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
142
134
|
inner_type = Regexp.last_match[:inner_type]
|
|
143
135
|
value.map { |v| _deserialize(inner_type, v) }
|
|
144
|
-
when /\AHash<(?<k_type
|
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
145
137
|
k_type = Regexp.last_match[:k_type]
|
|
146
138
|
v_type = Regexp.last_match[:v_type]
|
|
147
139
|
{}.tap do |hash|
|