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'
|
|
@@ -99,7 +87,7 @@ module ArtikCloud
|
|
|
99
87
|
def build_from_hash(attributes)
|
|
100
88
|
return nil unless attributes.is_a?(Hash)
|
|
101
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
102
|
-
if type =~
|
|
90
|
+
if type =~ /\AArray<(.*)>/i
|
|
103
91
|
# check to ensure the input is an array given that the the attribute
|
|
104
92
|
# is documented as an array but the input is not
|
|
105
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -130,7 +118,7 @@ module ArtikCloud
|
|
|
130
118
|
when :Float
|
|
131
119
|
value.to_f
|
|
132
120
|
when :BOOLEAN
|
|
133
|
-
if value.to_s =~
|
|
121
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
134
122
|
true
|
|
135
123
|
else
|
|
136
124
|
false
|
|
@@ -141,7 +129,7 @@ module ArtikCloud
|
|
|
141
129
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
142
130
|
inner_type = Regexp.last_match[:inner_type]
|
|
143
131
|
value.map { |v| _deserialize(inner_type, v) }
|
|
144
|
-
when /\AHash<(?<k_type
|
|
132
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
145
133
|
k_type = Regexp.last_match[:k_type]
|
|
146
134
|
v_type = Regexp.last_match[:v_type]
|
|
147
135
|
{}.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'
|
|
@@ -127,7 +115,7 @@ module ArtikCloud
|
|
|
127
115
|
def build_from_hash(attributes)
|
|
128
116
|
return nil unless attributes.is_a?(Hash)
|
|
129
117
|
self.class.swagger_types.each_pair do |key, type|
|
|
130
|
-
if type =~
|
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
|
131
119
|
# check to ensure the input is an array given that the the attribute
|
|
132
120
|
# is documented as an array but the input is not
|
|
133
121
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -158,7 +146,7 @@ module ArtikCloud
|
|
|
158
146
|
when :Float
|
|
159
147
|
value.to_f
|
|
160
148
|
when :BOOLEAN
|
|
161
|
-
if value.to_s =~
|
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
162
150
|
true
|
|
163
151
|
else
|
|
164
152
|
false
|
|
@@ -169,7 +157,7 @@ module ArtikCloud
|
|
|
169
157
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
170
158
|
inner_type = Regexp.last_match[:inner_type]
|
|
171
159
|
value.map { |v| _deserialize(inner_type, v) }
|
|
172
|
-
when /\AHash<(?<k_type
|
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
173
161
|
k_type = Regexp.last_match[:k_type]
|
|
174
162
|
v_type = Regexp.last_match[:v_type]
|
|
175
163
|
{}.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'
|
|
@@ -97,7 +85,7 @@ module ArtikCloud
|
|
|
97
85
|
def build_from_hash(attributes)
|
|
98
86
|
return nil unless attributes.is_a?(Hash)
|
|
99
87
|
self.class.swagger_types.each_pair do |key, type|
|
|
100
|
-
if type =~
|
|
88
|
+
if type =~ /\AArray<(.*)>/i
|
|
101
89
|
# check to ensure the input is an array given that the the attribute
|
|
102
90
|
# is documented as an array but the input is not
|
|
103
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -128,7 +116,7 @@ module ArtikCloud
|
|
|
128
116
|
when :Float
|
|
129
117
|
value.to_f
|
|
130
118
|
when :BOOLEAN
|
|
131
|
-
if value.to_s =~
|
|
119
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
132
120
|
true
|
|
133
121
|
else
|
|
134
122
|
false
|
|
@@ -139,7 +127,7 @@ module ArtikCloud
|
|
|
139
127
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
140
128
|
inner_type = Regexp.last_match[:inner_type]
|
|
141
129
|
value.map { |v| _deserialize(inner_type, v) }
|
|
142
|
-
when /\AHash<(?<k_type
|
|
130
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
143
131
|
k_type = Regexp.last_match[:k_type]
|
|
144
132
|
v_type = Regexp.last_match[:v_type]
|
|
145
133
|
{}.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'
|
|
@@ -147,7 +135,7 @@ module ArtikCloud
|
|
|
147
135
|
def build_from_hash(attributes)
|
|
148
136
|
return nil unless attributes.is_a?(Hash)
|
|
149
137
|
self.class.swagger_types.each_pair do |key, type|
|
|
150
|
-
if type =~
|
|
138
|
+
if type =~ /\AArray<(.*)>/i
|
|
151
139
|
# check to ensure the input is an array given that the the attribute
|
|
152
140
|
# is documented as an array but the input is not
|
|
153
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -178,7 +166,7 @@ module ArtikCloud
|
|
|
178
166
|
when :Float
|
|
179
167
|
value.to_f
|
|
180
168
|
when :BOOLEAN
|
|
181
|
-
if value.to_s =~
|
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
182
170
|
true
|
|
183
171
|
else
|
|
184
172
|
false
|
|
@@ -189,7 +177,7 @@ module ArtikCloud
|
|
|
189
177
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
190
178
|
inner_type = Regexp.last_match[:inner_type]
|
|
191
179
|
value.map { |v| _deserialize(inner_type, v) }
|
|
192
|
-
when /\AHash<(?<k_type
|
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
193
181
|
k_type = Regexp.last_match[:k_type]
|
|
194
182
|
v_type = Regexp.last_match[:v_type]
|
|
195
183
|
{}.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'
|
|
@@ -99,7 +87,7 @@ module ArtikCloud
|
|
|
99
87
|
def build_from_hash(attributes)
|
|
100
88
|
return nil unless attributes.is_a?(Hash)
|
|
101
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
102
|
-
if type =~
|
|
90
|
+
if type =~ /\AArray<(.*)>/i
|
|
103
91
|
# check to ensure the input is an array given that the the attribute
|
|
104
92
|
# is documented as an array but the input is not
|
|
105
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -130,7 +118,7 @@ module ArtikCloud
|
|
|
130
118
|
when :Float
|
|
131
119
|
value.to_f
|
|
132
120
|
when :BOOLEAN
|
|
133
|
-
if value.to_s =~
|
|
121
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
134
122
|
true
|
|
135
123
|
else
|
|
136
124
|
false
|
|
@@ -141,7 +129,7 @@ module ArtikCloud
|
|
|
141
129
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
142
130
|
inner_type = Regexp.last_match[:inner_type]
|
|
143
131
|
value.map { |v| _deserialize(inner_type, v) }
|
|
144
|
-
when /\AHash<(?<k_type
|
|
132
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
145
133
|
k_type = Regexp.last_match[:k_type]
|
|
146
134
|
v_type = Regexp.last_match[:v_type]
|
|
147
135
|
{}.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'
|
|
@@ -99,7 +87,7 @@ module ArtikCloud
|
|
|
99
87
|
def build_from_hash(attributes)
|
|
100
88
|
return nil unless attributes.is_a?(Hash)
|
|
101
89
|
self.class.swagger_types.each_pair do |key, type|
|
|
102
|
-
if type =~
|
|
90
|
+
if type =~ /\AArray<(.*)>/i
|
|
103
91
|
# check to ensure the input is an array given that the the attribute
|
|
104
92
|
# is documented as an array but the input is not
|
|
105
93
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -130,7 +118,7 @@ module ArtikCloud
|
|
|
130
118
|
when :Float
|
|
131
119
|
value.to_f
|
|
132
120
|
when :BOOLEAN
|
|
133
|
-
if value.to_s =~
|
|
121
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
134
122
|
true
|
|
135
123
|
else
|
|
136
124
|
false
|
|
@@ -141,7 +129,7 @@ module ArtikCloud
|
|
|
141
129
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
142
130
|
inner_type = Regexp.last_match[:inner_type]
|
|
143
131
|
value.map { |v| _deserialize(inner_type, v) }
|
|
144
|
-
when /\AHash<(?<k_type
|
|
132
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
145
133
|
k_type = Regexp.last_match[:k_type]
|
|
146
134
|
v_type = Regexp.last_match[:v_type]
|
|
147
135
|
{}.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'
|
|
@@ -137,7 +125,7 @@ module ArtikCloud
|
|
|
137
125
|
def build_from_hash(attributes)
|
|
138
126
|
return nil unless attributes.is_a?(Hash)
|
|
139
127
|
self.class.swagger_types.each_pair do |key, type|
|
|
140
|
-
if type =~
|
|
128
|
+
if type =~ /\AArray<(.*)>/i
|
|
141
129
|
# check to ensure the input is an array given that the the attribute
|
|
142
130
|
# is documented as an array but the input is not
|
|
143
131
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -168,7 +156,7 @@ module ArtikCloud
|
|
|
168
156
|
when :Float
|
|
169
157
|
value.to_f
|
|
170
158
|
when :BOOLEAN
|
|
171
|
-
if value.to_s =~
|
|
159
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
172
160
|
true
|
|
173
161
|
else
|
|
174
162
|
false
|
|
@@ -179,7 +167,7 @@ module ArtikCloud
|
|
|
179
167
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
180
168
|
inner_type = Regexp.last_match[:inner_type]
|
|
181
169
|
value.map { |v| _deserialize(inner_type, v) }
|
|
182
|
-
when /\AHash<(?<k_type
|
|
170
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
183
171
|
k_type = Regexp.last_match[:k_type]
|
|
184
172
|
v_type = Regexp.last_match[:v_type]
|
|
185
173
|
{}.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'
|
|
@@ -29,6 +17,12 @@ module ArtikCloud
|
|
|
29
17
|
# Expire time in seconds
|
|
30
18
|
attr_accessor :expires_after
|
|
31
19
|
|
|
20
|
+
# Future scheduled time
|
|
21
|
+
attr_accessor :scheduled_on
|
|
22
|
+
|
|
23
|
+
# Update parameters
|
|
24
|
+
attr_accessor :update
|
|
25
|
+
|
|
32
26
|
# Value to write
|
|
33
27
|
attr_accessor :value
|
|
34
28
|
|
|
@@ -37,6 +31,8 @@ module ArtikCloud
|
|
|
37
31
|
def self.attribute_map
|
|
38
32
|
{
|
|
39
33
|
:'expires_after' => :'expiresAfter',
|
|
34
|
+
:'scheduled_on' => :'scheduledOn',
|
|
35
|
+
:'update' => :'update',
|
|
40
36
|
:'value' => :'value'
|
|
41
37
|
}
|
|
42
38
|
end
|
|
@@ -45,6 +41,8 @@ module ArtikCloud
|
|
|
45
41
|
def self.swagger_types
|
|
46
42
|
{
|
|
47
43
|
:'expires_after' => :'Integer',
|
|
44
|
+
:'scheduled_on' => :'Integer',
|
|
45
|
+
:'update' => :'UpdateParameters',
|
|
48
46
|
:'value' => :'String'
|
|
49
47
|
}
|
|
50
48
|
end
|
|
@@ -61,6 +59,14 @@ module ArtikCloud
|
|
|
61
59
|
self.expires_after = attributes[:'expiresAfter']
|
|
62
60
|
end
|
|
63
61
|
|
|
62
|
+
if attributes.has_key?(:'scheduledOn')
|
|
63
|
+
self.scheduled_on = attributes[:'scheduledOn']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'update')
|
|
67
|
+
self.update = attributes[:'update']
|
|
68
|
+
end
|
|
69
|
+
|
|
64
70
|
if attributes.has_key?(:'value')
|
|
65
71
|
self.value = attributes[:'value']
|
|
66
72
|
end
|
|
@@ -86,6 +92,8 @@ module ArtikCloud
|
|
|
86
92
|
return true if self.equal?(o)
|
|
87
93
|
self.class == o.class &&
|
|
88
94
|
expires_after == o.expires_after &&
|
|
95
|
+
scheduled_on == o.scheduled_on &&
|
|
96
|
+
update == o.update &&
|
|
89
97
|
value == o.value
|
|
90
98
|
end
|
|
91
99
|
|
|
@@ -98,7 +106,7 @@ module ArtikCloud
|
|
|
98
106
|
# Calculates hash code according to all attributes.
|
|
99
107
|
# @return [Fixnum] Hash code
|
|
100
108
|
def hash
|
|
101
|
-
[expires_after, value].hash
|
|
109
|
+
[expires_after, scheduled_on, update, value].hash
|
|
102
110
|
end
|
|
103
111
|
|
|
104
112
|
# Builds the object from hash
|
|
@@ -107,7 +115,7 @@ module ArtikCloud
|
|
|
107
115
|
def build_from_hash(attributes)
|
|
108
116
|
return nil unless attributes.is_a?(Hash)
|
|
109
117
|
self.class.swagger_types.each_pair do |key, type|
|
|
110
|
-
if type =~
|
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
|
111
119
|
# check to ensure the input is an array given that the the attribute
|
|
112
120
|
# is documented as an array but the input is not
|
|
113
121
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -138,7 +146,7 @@ module ArtikCloud
|
|
|
138
146
|
when :Float
|
|
139
147
|
value.to_f
|
|
140
148
|
when :BOOLEAN
|
|
141
|
-
if value.to_s =~
|
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
142
150
|
true
|
|
143
151
|
else
|
|
144
152
|
false
|
|
@@ -149,7 +157,7 @@ module ArtikCloud
|
|
|
149
157
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
150
158
|
inner_type = Regexp.last_match[:inner_type]
|
|
151
159
|
value.map { |v| _deserialize(inner_type, v) }
|
|
152
|
-
when /\AHash<(?<k_type
|
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
153
161
|
k_type = Regexp.last_match[:k_type]
|
|
154
162
|
v_type = Regexp.last_match[:v_type]
|
|
155
163
|
{}.tap do |hash|
|