artikcloud 2.1.0 → 2.1.1

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -11
  3. data/artikcloud.gemspec +1 -1
  4. data/docs/.DS_Store +0 -0
  5. data/docs/DeviceShareInfo.md +1 -1
  6. data/docs/UsersApi.md +1 -1
  7. data/lib/.DS_Store +0 -0
  8. data/lib/artikcloud/.DS_Store +0 -0
  9. data/lib/artikcloud/api/.DS_Store +0 -0
  10. data/lib/artikcloud/api/{devicesshares_api.rb → devices_shares_api.rb} +20 -20
  11. data/lib/artikcloud/api/{devicestatus_api.rb → devices_status_api.rb} +10 -10
  12. data/lib/artikcloud/api/users_api.rb +7 -1
  13. data/lib/artikcloud/models/.DS_Store +0 -0
  14. data/lib/artikcloud/models/device_share_info.rb +7 -7
  15. data/lib/artikcloud/version.rb +1 -5
  16. data/lib/artikcloud.rb +2 -2
  17. data/pom.xml +1 -1
  18. data/spec/.DS_Store +0 -0
  19. data/spec/api/.DS_Store +0 -0
  20. data/spec/api/device_types_api_spec.rb +1 -1
  21. data/spec/api/devices_api_spec.rb +8 -1
  22. data/spec/api/{devicesshares_api_spec.rb → devices_shares_api_spec.rb} +6 -6
  23. data/spec/api/{devicestatus_api_spec.rb → devices_status_api_spec.rb} +6 -6
  24. data/spec/api/export_api_spec.rb +2 -2
  25. data/spec/api/messages_api_spec.rb +20 -10
  26. data/spec/api/registrations_api_spec.rb +1 -1
  27. data/spec/api/rules_api_spec.rb +1 -1
  28. data/spec/api/tags_api_spec.rb +2 -2
  29. data/spec/api/tokens_api_spec.rb +16 -3
  30. data/spec/models/device_share_info_spec.rb +41 -0
  31. data/spec/models/device_sharing_array_spec.rb +41 -0
  32. data/spec/models/device_sharing_envelope_spec.rb +59 -0
  33. data/spec/models/device_sharing_id_spec.rb +41 -0
  34. data/spec/models/device_sharing_spec.rb +59 -0
  35. data/spec/models/device_spec.rb +12 -0
  36. data/spec/models/device_status_batch_spec.rb +59 -0
  37. data/spec/models/device_status_data_spec.rb +65 -0
  38. data/spec/models/device_status_put_data_spec.rb +41 -0
  39. data/spec/models/device_status_put_spec.rb +41 -0
  40. data/spec/models/device_status_spec.rb +47 -0
  41. data/spec/models/notif_message_array_spec.rb +41 -0
  42. data/spec/models/notif_message_spec.rb +83 -0
  43. data/spec/models/notif_messages_response_spec.rb +65 -0
  44. data/spec/models/subscription_array_spec.rb +41 -0
  45. data/spec/models/subscription_envelope_spec.rb +41 -0
  46. data/spec/models/subscription_info_spec.rb +113 -0
  47. data/spec/models/subscription_spec.rb +137 -0
  48. data/spec/models/subscriptions_envelope_spec.rb +59 -0
  49. data/spec/models/task_parameters_spec.rb +12 -0
  50. data/spec/models/update_parameters_spec.rb +41 -0
  51. data/spec/models/validation_callback_info_spec.rb +47 -0
  52. data/spec/spec_helper.rb +79 -6
  53. metadata +57 -13
  54. data/docs/DevicessharesApi.md +0 -235
  55. data/docs/DevicestatusApi.md +0 -183
  56. data/docs/MetadataRequest.md +0 -7
  57. data/lib/artikcloud/models/metadata_request.rb +0 -190
data/spec/spec_helper.rb CHANGED
@@ -19,16 +19,89 @@ RSpec.configure do |config|
19
19
  # some (optional) config here
20
20
  config.include FactoryGirl::Syntax::Methods
21
21
 
22
- config.expect_with :rspec do |c|
23
- c.syntax = :expect
22
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
23
+
24
+ =end
25
+
26
+ # load the gem
27
+ require 'artikcloud'
28
+
29
+ # The following was generated by the `rspec --init` command. Conventionally, all
30
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
31
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
32
+ # this file to always be loaded, without a need to explicitly require it in any
33
+ # files.
34
+ #
35
+ # Given that it is always loaded, you are encouraged to keep this file as
36
+ # light-weight as possible. Requiring heavyweight dependencies from this file
37
+ # will add to the boot time of your test suite on EVERY test run, even for an
38
+ # individual file that may not need all of that loaded. Instead, consider making
39
+ # a separate helper file that requires the additional dependencies and performs
40
+ # the additional setup, and require it from the spec files that actually need
41
+ # it.
42
+ #
43
+ # The `.rspec` file also contains a few flags that are not defaults but that
44
+ # users commonly want.
45
+ #
46
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
47
+ RSpec.configure do |config|
48
+ # rspec-expectations config goes here. You can use an alternate
49
+ # assertion/expectation library such as wrong or the stdlib/minitest
50
+ # assertions if you prefer.
51
+ config.expect_with :rspec do |expectations|
52
+ # This option will default to `true` in RSpec 4. It makes the `description`
53
+ # and `failure_message` of custom matchers include text for helper methods
54
+ # defined using `chain`, e.g.:
55
+ # be_bigger_than(2).and_smaller_than(4).description
56
+ # # => "be bigger than 2 and smaller than 4"
57
+ # ...rather than:
58
+ # # => "be bigger than 2"
59
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
24
60
  end
25
61
 
26
- config.mock_with :rspec do |c|
27
- c.syntax = :expect
62
+ # rspec-mocks config goes here. You can use an alternate test double
63
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
64
+ config.mock_with :rspec do |mocks|
65
+ # Prevents you from mocking or stubbing a method that does not exist on
66
+ # a real object. This is generally recommended, and will default to
67
+ # `true` in RSpec 4.
68
+ mocks.verify_partial_doubles = true
28
69
  end
29
70
 
30
- config.before(:suite) do
31
- FactoryGirl.find_definitions
71
+ # The settings below are suggested to provide a good initial experience
72
+ # with RSpec, but feel free to customize to your heart's content.
73
+ =begin
74
+ # These two settings work together to allow you to limit a spec run
75
+ # to individual examples or groups you care about by tagging them with
76
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
77
+ # get run.
78
+ config.filter_run :focus
79
+ config.run_all_when_everything_filtered = true
80
+
81
+ # Allows RSpec to persist some state between runs in order to support
82
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
83
+ # you configure your source control system to ignore this file.
84
+ config.example_status_persistence_file_path = "spec/examples.txt"
85
+
86
+ # Limits the available syntax to the non-monkey patched syntax that is
87
+ # recommended. For more details, see:
88
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
89
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
90
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
91
+ config.disable_monkey_patching!
92
+
93
+ # This setting enables warnings. It's recommended, but in some cases may
94
+ # be too noisy due to issues in dependencies.
95
+ config.warnings = true
96
+
97
+ # Many RSpec users commonly either run the entire suite or an individual
98
+ # file, and it's useful to allow more verbose output when running an
99
+ # individual spec file.
100
+ if config.files_to_run.one?
101
+ # Use the documentation formatter for detailed output,
102
+ # unless a formatter has already been configured
103
+ # (e.g. via a command-line flag).
104
+ config.default_formatter = 'doc'
32
105
  end
33
106
  end
34
107
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artikcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Swagger-Codegen
7
+ - ARTIK Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-13 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -203,6 +203,7 @@ files:
203
203
  - README.md
204
204
  - Rakefile
205
205
  - artikcloud.gemspec
206
+ - docs/.DS_Store
206
207
  - docs/AckEnvelope.md
207
208
  - docs/Acknowledgement.md
208
209
  - docs/Action.md
@@ -255,8 +256,6 @@ files:
255
256
  - docs/DevicesApi.md
256
257
  - docs/DevicesEnvelope.md
257
258
  - docs/DevicesManagementApi.md
258
- - docs/DevicessharesApi.md
259
- - docs/DevicestatusApi.md
260
259
  - docs/ErrorEnvelope.md
261
260
  - docs/EventFeedData.md
262
261
  - docs/ExportApi.md
@@ -288,7 +287,6 @@ files:
288
287
  - docs/MetadataEnvelope.md
289
288
  - docs/MetadataPropertiesEnvelope.md
290
289
  - docs/MetadataQueryEnvelope.md
291
- - docs/MetadataRequest.md
292
290
  - docs/NonEmptyString.md
293
291
  - docs/NormalizedAction.md
294
292
  - docs/NormalizedActionsEnvelope.md
@@ -359,12 +357,15 @@ files:
359
357
  - docs/ValidationCallbackInfo.md
360
358
  - docs/WebSocketError.md
361
359
  - git_push.sh
360
+ - lib/.DS_Store
362
361
  - lib/artikcloud.rb
362
+ - lib/artikcloud/.DS_Store
363
+ - lib/artikcloud/api/.DS_Store
363
364
  - lib/artikcloud/api/device_types_api.rb
364
365
  - lib/artikcloud/api/devices_api.rb
365
366
  - lib/artikcloud/api/devices_management_api.rb
366
- - lib/artikcloud/api/devicesshares_api.rb
367
- - lib/artikcloud/api/devicestatus_api.rb
367
+ - lib/artikcloud/api/devices_shares_api.rb
368
+ - lib/artikcloud/api/devices_status_api.rb
368
369
  - lib/artikcloud/api/export_api.rb
369
370
  - lib/artikcloud/api/messages_api.rb
370
371
  - lib/artikcloud/api/registrations_api.rb
@@ -376,6 +377,7 @@ files:
376
377
  - lib/artikcloud/api_client.rb
377
378
  - lib/artikcloud/api_error.rb
378
379
  - lib/artikcloud/configuration.rb
380
+ - lib/artikcloud/models/.DS_Store
379
381
  - lib/artikcloud/models/ack_envelope.rb
380
382
  - lib/artikcloud/models/acknowledgement.rb
381
383
  - lib/artikcloud/models/action.rb
@@ -454,7 +456,6 @@ files:
454
456
  - lib/artikcloud/models/metadata_envelope.rb
455
457
  - lib/artikcloud/models/metadata_properties_envelope.rb
456
458
  - lib/artikcloud/models/metadata_query_envelope.rb
457
- - lib/artikcloud/models/metadata_request.rb
458
459
  - lib/artikcloud/models/non_empty_string.rb
459
460
  - lib/artikcloud/models/normalized_action.rb
460
461
  - lib/artikcloud/models/normalized_actions_envelope.rb
@@ -520,11 +521,13 @@ files:
520
521
  - lib/artikcloud/models/web_socket_error.rb
521
522
  - lib/artikcloud/version.rb
522
523
  - pom.xml
524
+ - spec/.DS_Store
525
+ - spec/api/.DS_Store
523
526
  - spec/api/device_types_api_spec.rb
524
527
  - spec/api/devices_api_spec.rb
525
528
  - spec/api/devices_management_api_spec.rb
526
- - spec/api/devicesshares_api_spec.rb
527
- - spec/api/devicestatus_api_spec.rb
529
+ - spec/api/devices_shares_api_spec.rb
530
+ - spec/api/devices_status_api_spec.rb
528
531
  - spec/api/export_api_spec.rb
529
532
  - spec/api/messages_api_spec.rb
530
533
  - spec/api/registrations_api_spec.rb
@@ -572,7 +575,17 @@ files:
572
575
  - spec/models/device_reg_confirm_user_response_spec.rb
573
576
  - spec/models/device_reg_status_response_envelope_spec.rb
574
577
  - spec/models/device_reg_status_response_spec.rb
578
+ - spec/models/device_share_info_spec.rb
579
+ - spec/models/device_sharing_array_spec.rb
580
+ - spec/models/device_sharing_envelope_spec.rb
581
+ - spec/models/device_sharing_id_spec.rb
582
+ - spec/models/device_sharing_spec.rb
575
583
  - spec/models/device_spec.rb
584
+ - spec/models/device_status_batch_spec.rb
585
+ - spec/models/device_status_data_spec.rb
586
+ - spec/models/device_status_put_data_spec.rb
587
+ - spec/models/device_status_put_spec.rb
588
+ - spec/models/device_status_spec.rb
576
589
  - spec/models/device_task_spec.rb
577
590
  - spec/models/device_task_update_request_spec.rb
578
591
  - spec/models/device_task_update_response_spec.rb
@@ -621,6 +634,9 @@ files:
621
634
  - spec/models/normalized_actions_envelope_spec.rb
622
635
  - spec/models/normalized_message_spec.rb
623
636
  - spec/models/normalized_messages_envelope_spec.rb
637
+ - spec/models/notif_message_array_spec.rb
638
+ - spec/models/notif_message_spec.rb
639
+ - spec/models/notif_messages_response_spec.rb
624
640
  - spec/models/output_rule_spec.rb
625
641
  - spec/models/presence_envelope_spec.rb
626
642
  - spec/models/presence_model_spec.rb
@@ -637,6 +653,11 @@ files:
637
653
  - spec/models/snapshot_response_spec.rb
638
654
  - spec/models/snapshot_responses_spec.rb
639
655
  - spec/models/snapshots_response_envelope_spec.rb
656
+ - spec/models/subscription_array_spec.rb
657
+ - spec/models/subscription_envelope_spec.rb
658
+ - spec/models/subscription_info_spec.rb
659
+ - spec/models/subscription_spec.rb
660
+ - spec/models/subscriptions_envelope_spec.rb
640
661
  - spec/models/tag_array_spec.rb
641
662
  - spec/models/tag_spec.rb
642
663
  - spec/models/tags_envelope_spec.rb
@@ -666,8 +687,10 @@ files:
666
687
  - spec/models/token_spec.rb
667
688
  - spec/models/unregister_device_response_envelope_spec.rb
668
689
  - spec/models/unregister_device_response_spec.rb
690
+ - spec/models/update_parameters_spec.rb
669
691
  - spec/models/user_envelope_spec.rb
670
692
  - spec/models/user_spec.rb
693
+ - spec/models/validation_callback_info_spec.rb
671
694
  - spec/models/web_socket_error_spec.rb
672
695
  - spec/spec.opts
673
696
  - spec/spec_helper.rb
@@ -695,11 +718,12 @@ signing_key:
695
718
  specification_version: 4
696
719
  summary: ArtikCloud Ruby SDK
697
720
  test_files:
721
+ - spec/api/.DS_Store
698
722
  - spec/api/device_types_api_spec.rb
699
723
  - spec/api/devices_api_spec.rb
700
724
  - spec/api/devices_management_api_spec.rb
701
- - spec/api/devicesshares_api_spec.rb
702
- - spec/api/devicestatus_api_spec.rb
725
+ - spec/api/devices_shares_api_spec.rb
726
+ - spec/api/devices_status_api_spec.rb
703
727
  - spec/api/export_api_spec.rb
704
728
  - spec/api/messages_api_spec.rb
705
729
  - spec/api/registrations_api_spec.rb
@@ -747,7 +771,17 @@ test_files:
747
771
  - spec/models/device_reg_confirm_user_response_spec.rb
748
772
  - spec/models/device_reg_status_response_envelope_spec.rb
749
773
  - spec/models/device_reg_status_response_spec.rb
774
+ - spec/models/device_share_info_spec.rb
775
+ - spec/models/device_sharing_array_spec.rb
776
+ - spec/models/device_sharing_envelope_spec.rb
777
+ - spec/models/device_sharing_id_spec.rb
778
+ - spec/models/device_sharing_spec.rb
750
779
  - spec/models/device_spec.rb
780
+ - spec/models/device_status_batch_spec.rb
781
+ - spec/models/device_status_data_spec.rb
782
+ - spec/models/device_status_put_data_spec.rb
783
+ - spec/models/device_status_put_spec.rb
784
+ - spec/models/device_status_spec.rb
751
785
  - spec/models/device_task_spec.rb
752
786
  - spec/models/device_task_update_request_spec.rb
753
787
  - spec/models/device_task_update_response_spec.rb
@@ -796,6 +830,9 @@ test_files:
796
830
  - spec/models/normalized_actions_envelope_spec.rb
797
831
  - spec/models/normalized_message_spec.rb
798
832
  - spec/models/normalized_messages_envelope_spec.rb
833
+ - spec/models/notif_message_array_spec.rb
834
+ - spec/models/notif_message_spec.rb
835
+ - spec/models/notif_messages_response_spec.rb
799
836
  - spec/models/output_rule_spec.rb
800
837
  - spec/models/presence_envelope_spec.rb
801
838
  - spec/models/presence_model_spec.rb
@@ -812,6 +849,11 @@ test_files:
812
849
  - spec/models/snapshot_response_spec.rb
813
850
  - spec/models/snapshot_responses_spec.rb
814
851
  - spec/models/snapshots_response_envelope_spec.rb
852
+ - spec/models/subscription_array_spec.rb
853
+ - spec/models/subscription_envelope_spec.rb
854
+ - spec/models/subscription_info_spec.rb
855
+ - spec/models/subscription_spec.rb
856
+ - spec/models/subscriptions_envelope_spec.rb
815
857
  - spec/models/tag_array_spec.rb
816
858
  - spec/models/tag_spec.rb
817
859
  - spec/models/tags_envelope_spec.rb
@@ -841,8 +883,10 @@ test_files:
841
883
  - spec/models/token_spec.rb
842
884
  - spec/models/unregister_device_response_envelope_spec.rb
843
885
  - spec/models/unregister_device_response_spec.rb
886
+ - spec/models/update_parameters_spec.rb
844
887
  - spec/models/user_envelope_spec.rb
845
888
  - spec/models/user_spec.rb
889
+ - spec/models/validation_callback_info_spec.rb
846
890
  - spec/models/web_socket_error_spec.rb
847
891
  - spec/spec.opts
848
892
  - spec/spec_helper.rb
@@ -1,235 +0,0 @@
1
- # ArtikCloud::DevicessharesApi
2
-
3
- All URIs are relative to *https://api.artik.cloud/v1.1*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_share_for_device**](DevicessharesApi.md#create_share_for_device) | **POST** in/api/devices/{deviceId}/shares | Share a device
8
- [**delete_sharing_for_device**](DevicessharesApi.md#delete_sharing_for_device) | **DELETE** in/api/devices/{deviceId}/shares/{shareId} | Delete specific share of the given device id
9
- [**get_all_shares_for_device**](DevicessharesApi.md#get_all_shares_for_device) | **GET** in/api/devices/{deviceId}/shares | List all shares for the given device id
10
- [**get_sharing_for_device**](DevicessharesApi.md#get_sharing_for_device) | **GET** in/api/devices/{deviceId}/shares/{shareId} | Get specific share of the given device id
11
-
12
-
13
- # **create_share_for_device**
14
- > DeviceSharingId create_share_for_device(device_id, device_share_info)
15
-
16
- Share a device
17
-
18
- Share a device
19
-
20
- ### Example
21
- ```ruby
22
- # load the gem
23
- require 'artikcloud'
24
- # setup authorization
25
- ArtikCloud.configure do |config|
26
- # Configure OAuth2 access token for authorization: artikcloud_oauth
27
- config.access_token = 'YOUR ACCESS TOKEN'
28
- end
29
-
30
- api_instance = ArtikCloud::DevicessharesApi.new
31
-
32
- device_id = "device_id_example" # String | Device ID.
33
-
34
- device_share_info = ArtikCloud::DeviceShareInfo.new # DeviceShareInfo | Device object that needs to be added
35
-
36
-
37
- begin
38
- #Share a device
39
- result = api_instance.create_share_for_device(device_id, device_share_info)
40
- p result
41
- rescue ArtikCloud::ApiError => e
42
- puts "Exception when calling DevicessharesApi->create_share_for_device: #{e}"
43
- end
44
- ```
45
-
46
- ### Parameters
47
-
48
- Name | Type | Description | Notes
49
- ------------- | ------------- | ------------- | -------------
50
- **device_id** | **String**| Device ID. |
51
- **device_share_info** | [**DeviceShareInfo**](DeviceShareInfo.md)| Device object that needs to be added |
52
-
53
- ### Return type
54
-
55
- [**DeviceSharingId**](DeviceSharingId.md)
56
-
57
- ### Authorization
58
-
59
- [artikcloud_oauth](../README.md#artikcloud_oauth)
60
-
61
- ### HTTP request headers
62
-
63
- - **Content-Type**: Not defined
64
- - **Accept**: application/json
65
-
66
-
67
-
68
- # **delete_sharing_for_device**
69
- > DeviceSharingId delete_sharing_for_device(device_id, share_id)
70
-
71
- Delete specific share of the given device id
72
-
73
- Delete specific share of the given device id
74
-
75
- ### Example
76
- ```ruby
77
- # load the gem
78
- require 'artikcloud'
79
- # setup authorization
80
- ArtikCloud.configure do |config|
81
- # Configure OAuth2 access token for authorization: artikcloud_oauth
82
- config.access_token = 'YOUR ACCESS TOKEN'
83
- end
84
-
85
- api_instance = ArtikCloud::DevicessharesApi.new
86
-
87
- device_id = "device_id_example" # String | Device ID.
88
-
89
- share_id = "share_id_example" # String | Share ID.
90
-
91
-
92
- begin
93
- #Delete specific share of the given device id
94
- result = api_instance.delete_sharing_for_device(device_id, share_id)
95
- p result
96
- rescue ArtikCloud::ApiError => e
97
- puts "Exception when calling DevicessharesApi->delete_sharing_for_device: #{e}"
98
- end
99
- ```
100
-
101
- ### Parameters
102
-
103
- Name | Type | Description | Notes
104
- ------------- | ------------- | ------------- | -------------
105
- **device_id** | **String**| Device ID. |
106
- **share_id** | **String**| Share ID. |
107
-
108
- ### Return type
109
-
110
- [**DeviceSharingId**](DeviceSharingId.md)
111
-
112
- ### Authorization
113
-
114
- [artikcloud_oauth](../README.md#artikcloud_oauth)
115
-
116
- ### HTTP request headers
117
-
118
- - **Content-Type**: Not defined
119
- - **Accept**: application/json
120
-
121
-
122
-
123
- # **get_all_shares_for_device**
124
- > DeviceSharingEnvelope get_all_shares_for_device(device_id, opts)
125
-
126
- List all shares for the given device id
127
-
128
- List all shares for the given device id
129
-
130
- ### Example
131
- ```ruby
132
- # load the gem
133
- require 'artikcloud'
134
- # setup authorization
135
- ArtikCloud.configure do |config|
136
- # Configure OAuth2 access token for authorization: artikcloud_oauth
137
- config.access_token = 'YOUR ACCESS TOKEN'
138
- end
139
-
140
- api_instance = ArtikCloud::DevicessharesApi.new
141
-
142
- device_id = "device_id_example" # String | Device ID.
143
-
144
- opts = {
145
- count: 56, # Integer | Desired count of items in the result set.
146
- offset: 56 # Integer | Offset for pagination.
147
- }
148
-
149
- begin
150
- #List all shares for the given device id
151
- result = api_instance.get_all_shares_for_device(device_id, opts)
152
- p result
153
- rescue ArtikCloud::ApiError => e
154
- puts "Exception when calling DevicessharesApi->get_all_shares_for_device: #{e}"
155
- end
156
- ```
157
-
158
- ### Parameters
159
-
160
- Name | Type | Description | Notes
161
- ------------- | ------------- | ------------- | -------------
162
- **device_id** | **String**| Device ID. |
163
- **count** | **Integer**| Desired count of items in the result set. | [optional]
164
- **offset** | **Integer**| Offset for pagination. | [optional]
165
-
166
- ### Return type
167
-
168
- [**DeviceSharingEnvelope**](DeviceSharingEnvelope.md)
169
-
170
- ### Authorization
171
-
172
- [artikcloud_oauth](../README.md#artikcloud_oauth)
173
-
174
- ### HTTP request headers
175
-
176
- - **Content-Type**: Not defined
177
- - **Accept**: application/json
178
-
179
-
180
-
181
- # **get_sharing_for_device**
182
- > DeviceSharing get_sharing_for_device(device_id, share_id)
183
-
184
- Get specific share of the given device id
185
-
186
- Get specific share of the given device id
187
-
188
- ### Example
189
- ```ruby
190
- # load the gem
191
- require 'artikcloud'
192
- # setup authorization
193
- ArtikCloud.configure do |config|
194
- # Configure OAuth2 access token for authorization: artikcloud_oauth
195
- config.access_token = 'YOUR ACCESS TOKEN'
196
- end
197
-
198
- api_instance = ArtikCloud::DevicessharesApi.new
199
-
200
- device_id = "device_id_example" # String | Device ID.
201
-
202
- share_id = "share_id_example" # String | Share ID.
203
-
204
-
205
- begin
206
- #Get specific share of the given device id
207
- result = api_instance.get_sharing_for_device(device_id, share_id)
208
- p result
209
- rescue ArtikCloud::ApiError => e
210
- puts "Exception when calling DevicessharesApi->get_sharing_for_device: #{e}"
211
- end
212
- ```
213
-
214
- ### Parameters
215
-
216
- Name | Type | Description | Notes
217
- ------------- | ------------- | ------------- | -------------
218
- **device_id** | **String**| Device ID. |
219
- **share_id** | **String**| Share ID. |
220
-
221
- ### Return type
222
-
223
- [**DeviceSharing**](DeviceSharing.md)
224
-
225
- ### Authorization
226
-
227
- [artikcloud_oauth](../README.md#artikcloud_oauth)
228
-
229
- ### HTTP request headers
230
-
231
- - **Content-Type**: Not defined
232
- - **Accept**: application/json
233
-
234
-
235
-