losant_rest 1.23.2 → 2.0.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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +2 -2
  3. data/.ruby-version +1 -1
  4. data/LICENSE +1 -1
  5. data/README.md +1 -1
  6. data/docs/_schemas.md +1809 -381
  7. data/docs/applicationKeys.md +2 -2
  8. data/docs/events.md +3 -1
  9. data/lib/platform_rest/application.rb +1 -1
  10. data/lib/platform_rest/application_api_token.rb +1 -1
  11. data/lib/platform_rest/application_api_tokens.rb +1 -1
  12. data/lib/platform_rest/application_certificate.rb +1 -1
  13. data/lib/platform_rest/application_certificate_authorities.rb +1 -1
  14. data/lib/platform_rest/application_certificate_authority.rb +1 -1
  15. data/lib/platform_rest/application_certificates.rb +1 -1
  16. data/lib/platform_rest/application_dashboard.rb +1 -1
  17. data/lib/platform_rest/application_dashboards.rb +1 -1
  18. data/lib/platform_rest/application_job_log.rb +1 -1
  19. data/lib/platform_rest/application_job_logs.rb +1 -1
  20. data/lib/platform_rest/application_key.rb +1 -1
  21. data/lib/platform_rest/application_keys.rb +3 -3
  22. data/lib/platform_rest/application_template.rb +1 -1
  23. data/lib/platform_rest/application_templates.rb +1 -1
  24. data/lib/platform_rest/applications.rb +1 -1
  25. data/lib/platform_rest/audit_log.rb +1 -1
  26. data/lib/platform_rest/audit_logs.rb +1 -1
  27. data/lib/platform_rest/auth.rb +1 -1
  28. data/lib/platform_rest/client.rb +3 -3
  29. data/lib/platform_rest/credential.rb +1 -1
  30. data/lib/platform_rest/credentials.rb +1 -1
  31. data/lib/platform_rest/dashboard.rb +1 -1
  32. data/lib/platform_rest/dashboards.rb +1 -1
  33. data/lib/platform_rest/data.rb +1 -1
  34. data/lib/platform_rest/data_table.rb +1 -1
  35. data/lib/platform_rest/data_table_row.rb +1 -1
  36. data/lib/platform_rest/data_table_rows.rb +1 -1
  37. data/lib/platform_rest/data_tables.rb +1 -1
  38. data/lib/platform_rest/device.rb +1 -1
  39. data/lib/platform_rest/device_attribute.rb +1 -1
  40. data/lib/platform_rest/device_attributes.rb +1 -1
  41. data/lib/platform_rest/device_recipe.rb +1 -1
  42. data/lib/platform_rest/device_recipes.rb +1 -1
  43. data/lib/platform_rest/devices.rb +1 -1
  44. data/lib/platform_rest/edge_deployment.rb +1 -1
  45. data/lib/platform_rest/edge_deployments.rb +1 -1
  46. data/lib/platform_rest/embedded_deployment.rb +1 -1
  47. data/lib/platform_rest/embedded_deployments.rb +1 -1
  48. data/lib/platform_rest/error.rb +1 -1
  49. data/lib/platform_rest/event.rb +1 -1
  50. data/lib/platform_rest/events.rb +6 -2
  51. data/lib/platform_rest/experience.rb +1 -1
  52. data/lib/platform_rest/experience_domain.rb +1 -1
  53. data/lib/platform_rest/experience_domains.rb +1 -1
  54. data/lib/platform_rest/experience_endpoint.rb +1 -1
  55. data/lib/platform_rest/experience_endpoints.rb +1 -1
  56. data/lib/platform_rest/experience_group.rb +1 -1
  57. data/lib/platform_rest/experience_groups.rb +1 -1
  58. data/lib/platform_rest/experience_slug.rb +1 -1
  59. data/lib/platform_rest/experience_slugs.rb +1 -1
  60. data/lib/platform_rest/experience_user.rb +1 -1
  61. data/lib/platform_rest/experience_users.rb +1 -1
  62. data/lib/platform_rest/experience_version.rb +1 -1
  63. data/lib/platform_rest/experience_versions.rb +1 -1
  64. data/lib/platform_rest/experience_view.rb +1 -1
  65. data/lib/platform_rest/experience_views.rb +1 -1
  66. data/lib/platform_rest/file.rb +1 -1
  67. data/lib/platform_rest/files.rb +1 -1
  68. data/lib/platform_rest/flow.rb +1 -1
  69. data/lib/platform_rest/flow_version.rb +1 -1
  70. data/lib/platform_rest/flow_versions.rb +1 -1
  71. data/lib/platform_rest/flows.rb +1 -1
  72. data/lib/platform_rest/instance.rb +1 -1
  73. data/lib/platform_rest/instance_api_token.rb +1 -1
  74. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  75. data/lib/platform_rest/instance_audit_log.rb +1 -1
  76. data/lib/platform_rest/instance_audit_logs.rb +1 -1
  77. data/lib/platform_rest/instance_custom_node.rb +1 -1
  78. data/lib/platform_rest/instance_custom_nodes.rb +1 -1
  79. data/lib/platform_rest/instance_member.rb +1 -1
  80. data/lib/platform_rest/instance_members.rb +1 -1
  81. data/lib/platform_rest/instance_notification_rule.rb +1 -1
  82. data/lib/platform_rest/instance_notification_rules.rb +1 -1
  83. data/lib/platform_rest/instance_org.rb +1 -1
  84. data/lib/platform_rest/instance_org_invite.rb +1 -1
  85. data/lib/platform_rest/instance_org_invites.rb +1 -1
  86. data/lib/platform_rest/instance_org_member.rb +1 -1
  87. data/lib/platform_rest/instance_org_members.rb +1 -1
  88. data/lib/platform_rest/instance_orgs.rb +1 -1
  89. data/lib/platform_rest/instance_sandbox.rb +1 -1
  90. data/lib/platform_rest/instance_sandboxes.rb +1 -1
  91. data/lib/platform_rest/instances.rb +1 -1
  92. data/lib/platform_rest/integration.rb +1 -1
  93. data/lib/platform_rest/integrations.rb +1 -1
  94. data/lib/platform_rest/me.rb +1 -1
  95. data/lib/platform_rest/notebook.rb +1 -1
  96. data/lib/platform_rest/notebooks.rb +1 -1
  97. data/lib/platform_rest/org.rb +1 -1
  98. data/lib/platform_rest/org_invites.rb +1 -1
  99. data/lib/platform_rest/orgs.rb +1 -1
  100. data/lib/platform_rest/private_file.rb +1 -1
  101. data/lib/platform_rest/private_files.rb +1 -1
  102. data/lib/platform_rest/resource_job.rb +1 -1
  103. data/lib/platform_rest/resource_jobs.rb +1 -1
  104. data/lib/platform_rest/user_api_token.rb +1 -1
  105. data/lib/platform_rest/user_api_tokens.rb +1 -1
  106. data/lib/platform_rest/utils.rb +1 -1
  107. data/lib/platform_rest/version.rb +2 -2
  108. data/lib/platform_rest/webhook.rb +1 -1
  109. data/lib/platform_rest/webhooks.rb +1 -1
  110. data/lib/platform_rest.rb +1 -1
  111. data/losant_rest.gemspec +6 -5
  112. data/schemas/advancedApplicationKeyQuery.json +345 -0
  113. data/schemas/advancedDeviceQuery.json +36 -0
  114. data/schemas/advancedEventQuery.json +36 -0
  115. data/schemas/advancedExperienceGroupQuery.json +36 -0
  116. data/schemas/advancedExperienceUserQuery.json +36 -0
  117. data/schemas/advancedInstanceOrgQuery.json +36 -0
  118. data/schemas/apiTokenPost.json +0 -1
  119. data/schemas/applicationCertificate.json +5 -0
  120. data/schemas/applicationCertificates.json +5 -0
  121. data/schemas/applicationKey.json +45 -0
  122. data/schemas/applicationKeyPatch.json +28 -0
  123. data/schemas/applicationKeyPost.json +21 -0
  124. data/schemas/applicationKeyPostResponse.json +45 -0
  125. data/schemas/applicationKeys.json +45 -0
  126. data/schemas/credential.json +57 -2
  127. data/schemas/credentialPatch.json +29 -0
  128. data/schemas/credentialPost.json +39 -1
  129. data/schemas/credentials.json +57 -2
  130. data/schemas/devicesDataExport.json +36 -0
  131. data/schemas/devicesDeleteOrRestorePost.json +36 -0
  132. data/schemas/devicesExportPayloadCountPost.json +36 -0
  133. data/schemas/devicesExportPost.json +36 -0
  134. data/schemas/devicesPatch.json +36 -0
  135. data/schemas/devicesRemoveDataPost.json +36 -0
  136. data/schemas/event.json +4 -0
  137. data/schemas/eventPlusNewCount.json +4 -0
  138. data/schemas/eventPost.json +4 -0
  139. data/schemas/events.json +4 -0
  140. data/schemas/eventsExport.json +40 -0
  141. data/schemas/githubLogin.json +0 -1
  142. data/schemas/lastValueQuery.json +36 -0
  143. data/schemas/multiDeviceCommand.json +36 -0
  144. data/schemas/notebook.json +39 -0
  145. data/schemas/notebookPatch.json +39 -0
  146. data/schemas/notebookPost.json +39 -0
  147. data/schemas/notebooks.json +39 -0
  148. data/schemas/samlResponse.json +0 -1
  149. data/schemas/timeSeriesQuery.json +36 -0
  150. data/schemas/userCredentials.json +0 -1
  151. data/schemas/userPost.json +0 -1
  152. data/test/basic_test.rb +1 -1
  153. data/test/test_helper.rb +2 -1
  154. metadata +26 -15
@@ -31,11 +31,11 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
31
31
  | Name | Type | Required | Description | Default | Example |
32
32
  | ---- | ---- | -------- | ----------- | ------- | ------- |
33
33
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
34
- | sortField | string | N | Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated | creationDate | creationDate |
34
+ | sortField | string | N | Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated, name | creationDate | creationDate |
35
35
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
36
36
  | page | string | N | Which page of results to return | 0 | 0 |
37
37
  | perPage | string | N | How many items to return per page | 100 | 10 |
38
- | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: key, status | | key |
38
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: key, status, name | | key |
39
39
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | the*key |
40
40
  | query | [Advanced Application Key Query](_schemas.md#advanced-application-key-query) | N | Application key filter JSON object which overrides the filterField and filter parameters. | | [Advanced Application Key Query Example](_schemas.md#advanced-application-key-query-example) |
41
41
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
data/docs/events.md CHANGED
@@ -203,7 +203,9 @@ all.Application, all.Organization, all.User, events.*, or events.patch.
203
203
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | abnormal power to * |
204
204
  | state | string | N | If provided, act on events only in the given state. Accepted values are: new, acknowledged, resolved | | new |
205
205
  | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overrides the filterField, filter, and state parameters. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
206
- | updates | [Event Patch](_schemas.md#event-patch) | Y | Object containing updated information for the events | | [Event Patch Example](_schemas.md#event-patch-example) |
206
+ | email | string | N | Email address to send a notification with update job results. Defaults to current user's email. | | email@example.com |
207
+ | callbackUrl | string | N | Callback URL to call with update results from a job. | | https://example.com/cburl |
208
+ | updates | [Event Patch](_schemas.md#event-patch) | Y | Object containing updated information for the events. | | [Event Patch Example](_schemas.md#event-patch-example) |
207
209
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
208
210
 
209
211
  #### Successful Responses
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -41,11 +41,11 @@ module PlatformRest
41
41
  #
42
42
  # Parameters:
43
43
  # * {string} applicationId - ID associated with the application
44
- # * {string} sortField - Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated
44
+ # * {string} sortField - Field to sort the results by. Accepted values are: key, status, id, creationDate, lastUpdated, name
45
45
  # * {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
46
46
  # * {string} page - Which page of results to return
47
47
  # * {string} perPage - How many items to return per page
48
- # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: key, status
48
+ # * {string} filterField - Field to filter the results by. Blank or not provided means no filtering. Accepted values are: key, status, name
49
49
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
50
50
  # * {hash} query - Application key filter JSON object which overrides the filterField and filter parameters. (https://api.losant.com/#/definitions/advancedApplicationKeyQuery)
51
51
  # * {string} losantdomain - Domain scope of request (rarely needed)
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,7 @@ module PlatformRest
27
27
  #
28
28
  # User API for accessing platform data
29
29
  #
30
- # Built For Version 1.29.2
30
+ # Built For Version 1.29.4
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -430,7 +430,7 @@ module PlatformRest
430
430
 
431
431
  headers["Accept"] = "application/json"
432
432
  headers["Content-Type"] = "application/json"
433
- headers["Accept-Version"] = "^1.29.2"
433
+ headers["Accept-Version"] = "^1.29.4"
434
434
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
435
435
  path = self.url + options.fetch(:path, "")
436
436
 
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -251,7 +251,9 @@ module PlatformRest
251
251
  # * {string} filter - Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering.
252
252
  # * {string} state - If provided, act on events only in the given state. Accepted values are: new, acknowledged, resolved
253
253
  # * {hash} query - Event filter JSON object which overrides the filterField, filter, and state parameters. (https://api.losant.com/#/definitions/advancedEventQuery)
254
- # * {hash} updates - Object containing updated information for the events (https://api.losant.com/#/definitions/eventPatch)
254
+ # * {string} email - Email address to send a notification with update job results. Defaults to current user's email.
255
+ # * {string} callbackUrl - Callback URL to call with update results from a job.
256
+ # * {hash} updates - Object containing updated information for the events. (https://api.losant.com/#/definitions/eventPatch)
255
257
  # * {string} losantdomain - Domain scope of request (rarely needed)
256
258
  # * {boolean} _actions - Return resource actions in response
257
259
  # * {boolean} _links - Return resource link in response
@@ -278,6 +280,8 @@ module PlatformRest
278
280
  query_params[:state] = params[:state] if params.has_key?(:state)
279
281
  query_params[:query] = params[:query] if params.has_key?(:query)
280
282
  query_params[:query] = JSON.dump(query_params[:query]) if query_params.has_key?(:query)
283
+ query_params[:email] = params[:email] if params.has_key?(:email)
284
+ query_params[:callbackUrl] = params[:callbackUrl] if params.has_key?(:callbackUrl)
281
285
  body = params[:updates] if params.has_key?(:updates)
282
286
  headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
283
287
  query_params[:_actions] = params[:_actions] if params.has_key?(:_actions)
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2024 Losant IoT, Inc.
3
+ # Copyright (c) 2026 SUSE
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal