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'
|
|
@@ -141,7 +129,7 @@ module ArtikCloud
|
|
|
141
129
|
def build_from_hash(attributes)
|
|
142
130
|
return nil unless attributes.is_a?(Hash)
|
|
143
131
|
self.class.swagger_types.each_pair do |key, type|
|
|
144
|
-
if type =~
|
|
132
|
+
if type =~ /\AArray<(.*)>/i
|
|
145
133
|
# check to ensure the input is an array given that the the attribute
|
|
146
134
|
# is documented as an array but the input is not
|
|
147
135
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -172,7 +160,7 @@ module ArtikCloud
|
|
|
172
160
|
when :Float
|
|
173
161
|
value.to_f
|
|
174
162
|
when :BOOLEAN
|
|
175
|
-
if value.to_s =~
|
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
176
164
|
true
|
|
177
165
|
else
|
|
178
166
|
false
|
|
@@ -183,7 +171,7 @@ module ArtikCloud
|
|
|
183
171
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
184
172
|
inner_type = Regexp.last_match[:inner_type]
|
|
185
173
|
value.map { |v| _deserialize(inner_type, v) }
|
|
186
|
-
when /\AHash<(?<k_type
|
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
187
175
|
k_type = Regexp.last_match[:k_type]
|
|
188
176
|
v_type = Regexp.last_match[:v_type]
|
|
189
177
|
{}.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'
|
|
@@ -150,7 +138,7 @@ module ArtikCloud
|
|
|
150
138
|
def build_from_hash(attributes)
|
|
151
139
|
return nil unless attributes.is_a?(Hash)
|
|
152
140
|
self.class.swagger_types.each_pair do |key, type|
|
|
153
|
-
if type =~
|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
|
154
142
|
# check to ensure the input is an array given that the the attribute
|
|
155
143
|
# is documented as an array but the input is not
|
|
156
144
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -181,7 +169,7 @@ module ArtikCloud
|
|
|
181
169
|
when :Float
|
|
182
170
|
value.to_f
|
|
183
171
|
when :BOOLEAN
|
|
184
|
-
if value.to_s =~
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
185
173
|
true
|
|
186
174
|
else
|
|
187
175
|
false
|
|
@@ -192,7 +180,7 @@ module ArtikCloud
|
|
|
192
180
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
193
181
|
inner_type = Regexp.last_match[:inner_type]
|
|
194
182
|
value.map { |v| _deserialize(inner_type, v) }
|
|
195
|
-
when /\AHash<(?<k_type
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
196
184
|
k_type = Regexp.last_match[:k_type]
|
|
197
185
|
v_type = Regexp.last_match[:v_type]
|
|
198
186
|
{}.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'
|
|
@@ -152,7 +140,7 @@ module ArtikCloud
|
|
|
152
140
|
def build_from_hash(attributes)
|
|
153
141
|
return nil unless attributes.is_a?(Hash)
|
|
154
142
|
self.class.swagger_types.each_pair do |key, type|
|
|
155
|
-
if type =~
|
|
143
|
+
if type =~ /\AArray<(.*)>/i
|
|
156
144
|
# check to ensure the input is an array given that the the attribute
|
|
157
145
|
# is documented as an array but the input is not
|
|
158
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -183,7 +171,7 @@ module ArtikCloud
|
|
|
183
171
|
when :Float
|
|
184
172
|
value.to_f
|
|
185
173
|
when :BOOLEAN
|
|
186
|
-
if value.to_s =~
|
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
187
175
|
true
|
|
188
176
|
else
|
|
189
177
|
false
|
|
@@ -194,7 +182,7 @@ module ArtikCloud
|
|
|
194
182
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
195
183
|
inner_type = Regexp.last_match[:inner_type]
|
|
196
184
|
value.map { |v| _deserialize(inner_type, v) }
|
|
197
|
-
when /\AHash<(?<k_type
|
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
198
186
|
k_type = Regexp.last_match[:k_type]
|
|
199
187
|
v_type = Regexp.last_match[:v_type]
|
|
200
188
|
{}.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'
|
|
@@ -143,7 +131,7 @@ module ArtikCloud
|
|
|
143
131
|
def build_from_hash(attributes)
|
|
144
132
|
return nil unless attributes.is_a?(Hash)
|
|
145
133
|
self.class.swagger_types.each_pair do |key, type|
|
|
146
|
-
if type =~
|
|
134
|
+
if type =~ /\AArray<(.*)>/i
|
|
147
135
|
# check to ensure the input is an array given that the the attribute
|
|
148
136
|
# is documented as an array but the input is not
|
|
149
137
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -174,7 +162,7 @@ module ArtikCloud
|
|
|
174
162
|
when :Float
|
|
175
163
|
value.to_f
|
|
176
164
|
when :BOOLEAN
|
|
177
|
-
if value.to_s =~
|
|
165
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
178
166
|
true
|
|
179
167
|
else
|
|
180
168
|
false
|
|
@@ -185,7 +173,7 @@ module ArtikCloud
|
|
|
185
173
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
186
174
|
inner_type = Regexp.last_match[:inner_type]
|
|
187
175
|
value.map { |v| _deserialize(inner_type, v) }
|
|
188
|
-
when /\AHash<(?<k_type
|
|
176
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
189
177
|
k_type = Regexp.last_match[:k_type]
|
|
190
178
|
v_type = Regexp.last_match[:v_type]
|
|
191
179
|
{}.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'
|
|
@@ -77,6 +65,10 @@ module ArtikCloud
|
|
|
77
65
|
# @return Array for valid properies with the reasons
|
|
78
66
|
def list_invalid_properties
|
|
79
67
|
invalid_properties = Array.new
|
|
68
|
+
if @properties.nil?
|
|
69
|
+
invalid_properties.push("invalid value for 'properties', properties cannot be nil.")
|
|
70
|
+
end
|
|
71
|
+
|
|
80
72
|
return invalid_properties
|
|
81
73
|
end
|
|
82
74
|
|
|
@@ -115,7 +107,7 @@ module ArtikCloud
|
|
|
115
107
|
def build_from_hash(attributes)
|
|
116
108
|
return nil unless attributes.is_a?(Hash)
|
|
117
109
|
self.class.swagger_types.each_pair do |key, type|
|
|
118
|
-
if type =~
|
|
110
|
+
if type =~ /\AArray<(.*)>/i
|
|
119
111
|
# check to ensure the input is an array given that the the attribute
|
|
120
112
|
# is documented as an array but the input is not
|
|
121
113
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -146,7 +138,7 @@ module ArtikCloud
|
|
|
146
138
|
when :Float
|
|
147
139
|
value.to_f
|
|
148
140
|
when :BOOLEAN
|
|
149
|
-
if value.to_s =~
|
|
141
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
150
142
|
true
|
|
151
143
|
else
|
|
152
144
|
false
|
|
@@ -157,7 +149,7 @@ module ArtikCloud
|
|
|
157
149
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
158
150
|
inner_type = Regexp.last_match[:inner_type]
|
|
159
151
|
value.map { |v| _deserialize(inner_type, v) }
|
|
160
|
-
when /\AHash<(?<k_type
|
|
152
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
161
153
|
k_type = Regexp.last_match[:k_type]
|
|
162
154
|
v_type = Regexp.last_match[:v_type]
|
|
163
155
|
{}.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'
|
|
@@ -96,7 +84,7 @@ module ArtikCloud
|
|
|
96
84
|
def build_from_hash(attributes)
|
|
97
85
|
return nil unless attributes.is_a?(Hash)
|
|
98
86
|
self.class.swagger_types.each_pair do |key, type|
|
|
99
|
-
if type =~
|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
|
100
88
|
# check to ensure the input is an array given that the the attribute
|
|
101
89
|
# is documented as an array but the input is not
|
|
102
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -127,7 +115,7 @@ module ArtikCloud
|
|
|
127
115
|
when :Float
|
|
128
116
|
value.to_f
|
|
129
117
|
when :BOOLEAN
|
|
130
|
-
if value.to_s =~
|
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
131
119
|
true
|
|
132
120
|
else
|
|
133
121
|
false
|
|
@@ -138,7 +126,7 @@ module ArtikCloud
|
|
|
138
126
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
139
127
|
inner_type = Regexp.last_match[:inner_type]
|
|
140
128
|
value.map { |v| _deserialize(inner_type, v) }
|
|
141
|
-
when /\AHash<(?<k_type
|
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
142
130
|
k_type = Regexp.last_match[:k_type]
|
|
143
131
|
v_type = Regexp.last_match[:v_type]
|
|
144
132
|
{}.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'
|
|
@@ -96,7 +84,7 @@ module ArtikCloud
|
|
|
96
84
|
def build_from_hash(attributes)
|
|
97
85
|
return nil unless attributes.is_a?(Hash)
|
|
98
86
|
self.class.swagger_types.each_pair do |key, type|
|
|
99
|
-
if type =~
|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
|
100
88
|
# check to ensure the input is an array given that the the attribute
|
|
101
89
|
# is documented as an array but the input is not
|
|
102
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -127,7 +115,7 @@ module ArtikCloud
|
|
|
127
115
|
when :Float
|
|
128
116
|
value.to_f
|
|
129
117
|
when :BOOLEAN
|
|
130
|
-
if value.to_s =~
|
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
131
119
|
true
|
|
132
120
|
else
|
|
133
121
|
false
|
|
@@ -138,7 +126,7 @@ module ArtikCloud
|
|
|
138
126
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
139
127
|
inner_type = Regexp.last_match[:inner_type]
|
|
140
128
|
value.map { |v| _deserialize(inner_type, v) }
|
|
141
|
-
when /\AHash<(?<k_type
|
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
142
130
|
k_type = Regexp.last_match[:k_type]
|
|
143
131
|
v_type = Regexp.last_match[:v_type]
|
|
144
132
|
{}.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'
|
|
@@ -66,6 +54,12 @@ module ArtikCloud
|
|
|
66
54
|
|
|
67
55
|
attr_accessor :provider_credentials
|
|
68
56
|
|
|
57
|
+
# Is shared with other users
|
|
58
|
+
attr_accessor :shared_with_others
|
|
59
|
+
|
|
60
|
+
# Share id (if shared with me)
|
|
61
|
+
attr_accessor :shared_with_me
|
|
62
|
+
|
|
69
63
|
|
|
70
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
71
65
|
def self.attribute_map
|
|
@@ -83,7 +77,9 @@ module ArtikCloud
|
|
|
83
77
|
:'certificate_info' => :'certificateInfo',
|
|
84
78
|
:'certificate_signature' => :'certificateSignature',
|
|
85
79
|
:'eid' => :'eid',
|
|
86
|
-
:'provider_credentials' => :'providerCredentials'
|
|
80
|
+
:'provider_credentials' => :'providerCredentials',
|
|
81
|
+
:'shared_with_others' => :'sharedWithOthers',
|
|
82
|
+
:'shared_with_me' => :'sharedWithMe'
|
|
87
83
|
}
|
|
88
84
|
end
|
|
89
85
|
|
|
@@ -103,7 +99,9 @@ module ArtikCloud
|
|
|
103
99
|
:'certificate_info' => :'String',
|
|
104
100
|
:'certificate_signature' => :'String',
|
|
105
101
|
:'eid' => :'String',
|
|
106
|
-
:'provider_credentials' => :'Hash<String, Object>'
|
|
102
|
+
:'provider_credentials' => :'Hash<String, Object>',
|
|
103
|
+
:'shared_with_others' => :'BOOLEAN',
|
|
104
|
+
:'shared_with_me' => :'String'
|
|
107
105
|
}
|
|
108
106
|
end
|
|
109
107
|
|
|
@@ -175,6 +173,14 @@ module ArtikCloud
|
|
|
175
173
|
end
|
|
176
174
|
end
|
|
177
175
|
|
|
176
|
+
if attributes.has_key?(:'sharedWithOthers')
|
|
177
|
+
self.shared_with_others = attributes[:'sharedWithOthers']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.has_key?(:'sharedWithMe')
|
|
181
|
+
self.shared_with_me = attributes[:'sharedWithMe']
|
|
182
|
+
end
|
|
183
|
+
|
|
178
184
|
end
|
|
179
185
|
|
|
180
186
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -208,7 +214,9 @@ module ArtikCloud
|
|
|
208
214
|
certificate_info == o.certificate_info &&
|
|
209
215
|
certificate_signature == o.certificate_signature &&
|
|
210
216
|
eid == o.eid &&
|
|
211
|
-
provider_credentials == o.provider_credentials
|
|
217
|
+
provider_credentials == o.provider_credentials &&
|
|
218
|
+
shared_with_others == o.shared_with_others &&
|
|
219
|
+
shared_with_me == o.shared_with_me
|
|
212
220
|
end
|
|
213
221
|
|
|
214
222
|
# @see the `==` method
|
|
@@ -220,7 +228,7 @@ module ArtikCloud
|
|
|
220
228
|
# Calculates hash code according to all attributes.
|
|
221
229
|
# @return [Fixnum] Hash code
|
|
222
230
|
def hash
|
|
223
|
-
[id, uid, dtid, name, manifest_version, manifest_version_policy, need_provider_auth, properties, created_on, connected, certificate_info, certificate_signature, eid, provider_credentials].hash
|
|
231
|
+
[id, uid, dtid, name, manifest_version, manifest_version_policy, need_provider_auth, properties, created_on, connected, certificate_info, certificate_signature, eid, provider_credentials, shared_with_others, shared_with_me].hash
|
|
224
232
|
end
|
|
225
233
|
|
|
226
234
|
# Builds the object from hash
|
|
@@ -229,7 +237,7 @@ module ArtikCloud
|
|
|
229
237
|
def build_from_hash(attributes)
|
|
230
238
|
return nil unless attributes.is_a?(Hash)
|
|
231
239
|
self.class.swagger_types.each_pair do |key, type|
|
|
232
|
-
if type =~
|
|
240
|
+
if type =~ /\AArray<(.*)>/i
|
|
233
241
|
# check to ensure the input is an array given that the the attribute
|
|
234
242
|
# is documented as an array but the input is not
|
|
235
243
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -260,7 +268,7 @@ module ArtikCloud
|
|
|
260
268
|
when :Float
|
|
261
269
|
value.to_f
|
|
262
270
|
when :BOOLEAN
|
|
263
|
-
if value.to_s =~
|
|
271
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
264
272
|
true
|
|
265
273
|
else
|
|
266
274
|
false
|
|
@@ -271,7 +279,7 @@ module ArtikCloud
|
|
|
271
279
|
when /\AArray<(?<inner_type>.+)>\z/
|
|
272
280
|
inner_type = Regexp.last_match[:inner_type]
|
|
273
281
|
value.map { |v| _deserialize(inner_type, v) }
|
|
274
|
-
when /\AHash<(?<k_type
|
|
282
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
275
283
|
k_type = Regexp.last_match[:k_type]
|
|
276
284
|
v_type = Regexp.last_match[:v_type]
|
|
277
285
|
{}.tap do |hash|
|