pescheck 0.0.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 (143) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +193 -0
  4. data/Rakefile +10 -0
  5. data/docs/AuthenticationApi.md +217 -0
  6. data/docs/ChecksApi.md +147 -0
  7. data/docs/CustomTokenObtainPair.md +20 -0
  8. data/docs/DivisionReadOnly.md +46 -0
  9. data/docs/DivisionWrite.md +40 -0
  10. data/docs/DivisionsApi.md +369 -0
  11. data/docs/JWTGeneration.md +24 -0
  12. data/docs/JWTResponse.md +28 -0
  13. data/docs/OAuthApi.md +213 -0
  14. data/docs/OAuthApplication.md +26 -0
  15. data/docs/OAuthApplicationResponse.md +32 -0
  16. data/docs/PaginatedDivisionReadOnlyList.md +24 -0
  17. data/docs/PaginatedV2ProfileListItemList.md +24 -0
  18. data/docs/PaginatedV2ScreeningListItemList.md +24 -0
  19. data/docs/PatchedDivisionWrite.md +40 -0
  20. data/docs/PatchedV2ProfilePartialUpdate.md +20 -0
  21. data/docs/ProfilesApi.md +438 -0
  22. data/docs/ScreeningsApi.md +293 -0
  23. data/docs/TokenRefresh.md +20 -0
  24. data/docs/V2Candidate.md +36 -0
  25. data/docs/V2CheckField.md +26 -0
  26. data/docs/V2CheckInfo.md +40 -0
  27. data/docs/V2Document.md +28 -0
  28. data/docs/V2DocumentContent.md +20 -0
  29. data/docs/V2Money.md +20 -0
  30. data/docs/V2ProfileCheck.md +20 -0
  31. data/docs/V2ProfileCheckEntry.md +30 -0
  32. data/docs/V2ProfileCreate.md +22 -0
  33. data/docs/V2ProfileDetail.md +38 -0
  34. data/docs/V2ProfileListItem.md +30 -0
  35. data/docs/V2ProfileUpdate.md +22 -0
  36. data/docs/V2ProfileUpdateCheck.md +22 -0
  37. data/docs/V2ScreeningCheck.md +24 -0
  38. data/docs/V2ScreeningCheckEntry.md +34 -0
  39. data/docs/V2ScreeningCheckListItem.md +22 -0
  40. data/docs/V2ScreeningCreate.md +22 -0
  41. data/docs/V2ScreeningDetail.md +34 -0
  42. data/docs/V2ScreeningDetailProfile.md +20 -0
  43. data/docs/V2ScreeningListItem.md +34 -0
  44. data/docs/VerifyWebhook.md +18 -0
  45. data/docs/Webhook.md +26 -0
  46. data/docs/WebhookResponse.md +36 -0
  47. data/docs/WebhooksApi.md +290 -0
  48. data/git_push.sh +57 -0
  49. data/lib/pescheck/api/authentication_api.rb +220 -0
  50. data/lib/pescheck/api/checks_api.rb +144 -0
  51. data/lib/pescheck/api/divisions_api.rb +365 -0
  52. data/lib/pescheck/api/o_auth_api.rb +202 -0
  53. data/lib/pescheck/api/profiles_api.rb +432 -0
  54. data/lib/pescheck/api/screenings_api.rb +288 -0
  55. data/lib/pescheck/api/webhooks_api.rb +278 -0
  56. data/lib/pescheck/api_client.rb +441 -0
  57. data/lib/pescheck/api_error.rb +58 -0
  58. data/lib/pescheck/api_model_base.rb +88 -0
  59. data/lib/pescheck/configuration.rb +429 -0
  60. data/lib/pescheck/models/custom_token_obtain_pair.rb +191 -0
  61. data/lib/pescheck/models/division_read_only.rb +469 -0
  62. data/lib/pescheck/models/division_write.rb +436 -0
  63. data/lib/pescheck/models/jwt_generation.rb +213 -0
  64. data/lib/pescheck/models/jwt_response.rb +285 -0
  65. data/lib/pescheck/models/o_auth_application.rb +265 -0
  66. data/lib/pescheck/models/o_auth_application_response.rb +379 -0
  67. data/lib/pescheck/models/paginated_division_read_only_list.rb +216 -0
  68. data/lib/pescheck/models/paginated_v2_profile_list_item_list.rb +216 -0
  69. data/lib/pescheck/models/paginated_v2_screening_list_item_list.rb +216 -0
  70. data/lib/pescheck/models/patched_division_write.rb +360 -0
  71. data/lib/pescheck/models/patched_v2_profile_partial_update.rb +176 -0
  72. data/lib/pescheck/models/token_refresh.rb +173 -0
  73. data/lib/pescheck/models/v2_candidate.rb +390 -0
  74. data/lib/pescheck/models/v2_check_field.rb +246 -0
  75. data/lib/pescheck/models/v2_check_info.rb +438 -0
  76. data/lib/pescheck/models/v2_document.rb +308 -0
  77. data/lib/pescheck/models/v2_document_content.rb +175 -0
  78. data/lib/pescheck/models/v2_money.rb +210 -0
  79. data/lib/pescheck/models/v2_profile_check.rb +201 -0
  80. data/lib/pescheck/models/v2_profile_check_entry.rb +349 -0
  81. data/lib/pescheck/models/v2_profile_create.rb +212 -0
  82. data/lib/pescheck/models/v2_profile_detail.rb +401 -0
  83. data/lib/pescheck/models/v2_profile_list_item.rb +291 -0
  84. data/lib/pescheck/models/v2_profile_update.rb +213 -0
  85. data/lib/pescheck/models/v2_profile_update_check.rb +210 -0
  86. data/lib/pescheck/models/v2_screening_check.rb +221 -0
  87. data/lib/pescheck/models/v2_screening_check_entry.rb +376 -0
  88. data/lib/pescheck/models/v2_screening_check_list_item.rb +242 -0
  89. data/lib/pescheck/models/v2_screening_create.rb +201 -0
  90. data/lib/pescheck/models/v2_screening_detail.rb +348 -0
  91. data/lib/pescheck/models/v2_screening_detail_profile.rb +156 -0
  92. data/lib/pescheck/models/v2_screening_list_item.rb +330 -0
  93. data/lib/pescheck/models/verify_webhook.rb +166 -0
  94. data/lib/pescheck/models/webhook.rb +265 -0
  95. data/lib/pescheck/models/webhook_response.rb +353 -0
  96. data/lib/pescheck/version.rb +15 -0
  97. data/lib/pescheck.rb +83 -0
  98. data/pescheck.gemspec +41 -0
  99. data/spec/api/authentication_api_spec.rb +68 -0
  100. data/spec/api/checks_api_spec.rb +56 -0
  101. data/spec/api/divisions_api_spec.rb +94 -0
  102. data/spec/api/o_auth_api_spec.rb +67 -0
  103. data/spec/api/profiles_api_spec.rb +105 -0
  104. data/spec/api/screenings_api_spec.rb +81 -0
  105. data/spec/api/webhooks_api_spec.rb +81 -0
  106. data/spec/models/custom_token_obtain_pair_spec.rb +42 -0
  107. data/spec/models/division_read_only_spec.rb +120 -0
  108. data/spec/models/division_write_spec.rb +102 -0
  109. data/spec/models/jwt_generation_spec.rb +54 -0
  110. data/spec/models/jwt_response_spec.rb +66 -0
  111. data/spec/models/o_auth_application_response_spec.rb +86 -0
  112. data/spec/models/o_auth_application_spec.rb +68 -0
  113. data/spec/models/paginated_division_read_only_list_spec.rb +54 -0
  114. data/spec/models/paginated_v2_profile_list_item_list_spec.rb +54 -0
  115. data/spec/models/paginated_v2_screening_list_item_list_spec.rb +54 -0
  116. data/spec/models/patched_division_write_spec.rb +102 -0
  117. data/spec/models/patched_v2_profile_partial_update_spec.rb +42 -0
  118. data/spec/models/token_refresh_spec.rb +42 -0
  119. data/spec/models/v2_candidate_spec.rb +94 -0
  120. data/spec/models/v2_check_field_spec.rb +60 -0
  121. data/spec/models/v2_check_info_spec.rb +102 -0
  122. data/spec/models/v2_document_content_spec.rb +42 -0
  123. data/spec/models/v2_document_spec.rb +70 -0
  124. data/spec/models/v2_money_spec.rb +42 -0
  125. data/spec/models/v2_profile_check_entry_spec.rb +76 -0
  126. data/spec/models/v2_profile_check_spec.rb +46 -0
  127. data/spec/models/v2_profile_create_spec.rb +48 -0
  128. data/spec/models/v2_profile_detail_spec.rb +96 -0
  129. data/spec/models/v2_profile_list_item_spec.rb +72 -0
  130. data/spec/models/v2_profile_update_check_spec.rb +52 -0
  131. data/spec/models/v2_profile_update_spec.rb +48 -0
  132. data/spec/models/v2_screening_check_entry_spec.rb +88 -0
  133. data/spec/models/v2_screening_check_list_item_spec.rb +52 -0
  134. data/spec/models/v2_screening_check_spec.rb +58 -0
  135. data/spec/models/v2_screening_create_spec.rb +48 -0
  136. data/spec/models/v2_screening_detail_profile_spec.rb +42 -0
  137. data/spec/models/v2_screening_detail_spec.rb +84 -0
  138. data/spec/models/v2_screening_list_item_spec.rb +84 -0
  139. data/spec/models/verify_webhook_spec.rb +36 -0
  140. data/spec/models/webhook_response_spec.rb +90 -0
  141. data/spec/models/webhook_spec.rb +64 -0
  142. data/spec/spec_helper.rb +111 -0
  143. metadata +302 -0
@@ -0,0 +1,24 @@
1
+ # Pescheck::PaginatedDivisionReadOnlyList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **count** | **Integer** | | |
8
+ | **_next** | **String** | | |
9
+ | **previous** | **String** | | |
10
+ | **results** | [**Array<DivisionReadOnly>**](DivisionReadOnly.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pescheck'
16
+
17
+ instance = Pescheck::PaginatedDivisionReadOnlyList.new(
18
+ count: 1,
19
+ _next: null,
20
+ previous: null,
21
+ results: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # Pescheck::PaginatedV2ProfileListItemList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **count** | **Integer** | | |
8
+ | **_next** | **String** | | |
9
+ | **previous** | **String** | | |
10
+ | **results** | [**Array<V2ProfileListItem>**](V2ProfileListItem.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pescheck'
16
+
17
+ instance = Pescheck::PaginatedV2ProfileListItemList.new(
18
+ count: 1,
19
+ _next: null,
20
+ previous: null,
21
+ results: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # Pescheck::PaginatedV2ScreeningListItemList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **count** | **Integer** | | |
8
+ | **_next** | **String** | | |
9
+ | **previous** | **String** | | |
10
+ | **results** | [**Array<V2ScreeningListItem>**](V2ScreeningListItem.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pescheck'
16
+
17
+ instance = Pescheck::PaginatedV2ScreeningListItemList.new(
18
+ count: 1,
19
+ _next: null,
20
+ previous: null,
21
+ results: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,40 @@
1
+ # Pescheck::PatchedDivisionWrite
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional][readonly] |
8
+ | **name** | **String** | | [optional] |
9
+ | **city** | **String** | | [optional] |
10
+ | **address** | **String** | | [optional] |
11
+ | **postal** | **String** | | [optional] |
12
+ | **phone** | **String** | | [optional] |
13
+ | **contact_name** | **String** | | [optional] |
14
+ | **contact_email** | **String** | | [optional] |
15
+ | **invoice_email** | **String** | | [optional] |
16
+ | **use_parent_on_email** | **Boolean** | | [optional] |
17
+ | **use_parent_on_billing** | **Boolean** | | [optional] |
18
+ | **use_parent_on_report** | **Boolean** | | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'pescheck'
24
+
25
+ instance = Pescheck::PatchedDivisionWrite.new(
26
+ id: null,
27
+ name: null,
28
+ city: null,
29
+ address: null,
30
+ postal: null,
31
+ phone: null,
32
+ contact_name: null,
33
+ contact_email: null,
34
+ invoice_email: null,
35
+ use_parent_on_email: null,
36
+ use_parent_on_billing: null,
37
+ use_parent_on_report: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,20 @@
1
+ # Pescheck::PatchedV2ProfilePartialUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **description** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pescheck'
14
+
15
+ instance = Pescheck::PatchedV2ProfilePartialUpdate.new(
16
+ name: null,
17
+ description: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,438 @@
1
+ # Pescheck::ProfilesApi
2
+
3
+ All URIs are relative to *https://api.pescheck.io*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**v2_profiles_create**](ProfilesApi.md#v2_profiles_create) | **POST** /api/v2/profiles/ | |
8
+ | [**v2_profiles_destroy**](ProfilesApi.md#v2_profiles_destroy) | **DELETE** /api/v2/profiles/{id}/ | |
9
+ | [**v2_profiles_list**](ProfilesApi.md#v2_profiles_list) | **GET** /api/v2/profiles/ | |
10
+ | [**v2_profiles_partial_update**](ProfilesApi.md#v2_profiles_partial_update) | **PATCH** /api/v2/profiles/{id}/ | |
11
+ | [**v2_profiles_retrieve**](ProfilesApi.md#v2_profiles_retrieve) | **GET** /api/v2/profiles/{id}/ | |
12
+ | [**v2_profiles_update**](ProfilesApi.md#v2_profiles_update) | **PUT** /api/v2/profiles/{id}/ | |
13
+
14
+
15
+ ## v2_profiles_create
16
+
17
+ > <V2ProfileDetail> v2_profiles_create(v2_profile_create)
18
+
19
+
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'pescheck'
26
+ # setup authorization
27
+ Pescheck.configure do |config|
28
+ # Configure OAuth2 access token for authorization: oauth2
29
+ config.access_token = 'YOUR ACCESS TOKEN'
30
+ end
31
+
32
+ api_instance = Pescheck::ProfilesApi.new
33
+ v2_profile_create = Pescheck::V2ProfileCreate.new({name: 'name_example', checks: [Pescheck::V2ProfileCheck.new({check_type: 'addresscheck'})]}) # V2ProfileCreate |
34
+
35
+ begin
36
+
37
+ result = api_instance.v2_profiles_create(v2_profile_create)
38
+ p result
39
+ rescue Pescheck::ApiError => e
40
+ puts "Error when calling ProfilesApi->v2_profiles_create: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the v2_profiles_create_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<V2ProfileDetail>, Integer, Hash)> v2_profiles_create_with_http_info(v2_profile_create)
49
+
50
+ ```ruby
51
+ begin
52
+
53
+ data, status_code, headers = api_instance.v2_profiles_create_with_http_info(v2_profile_create)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <V2ProfileDetail>
57
+ rescue Pescheck::ApiError => e
58
+ puts "Error when calling ProfilesApi->v2_profiles_create_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **v2_profile_create** | [**V2ProfileCreate**](V2ProfileCreate.md) | | |
67
+
68
+ ### Return type
69
+
70
+ [**V2ProfileDetail**](V2ProfileDetail.md)
71
+
72
+ ### Authorization
73
+
74
+ [oauth2](../README.md#oauth2)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json, multipart/form-data
79
+ - **Accept**: application/json
80
+
81
+
82
+ ## v2_profiles_destroy
83
+
84
+ > v2_profiles_destroy(id)
85
+
86
+
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'pescheck'
93
+ # setup authorization
94
+ Pescheck.configure do |config|
95
+ # Configure OAuth2 access token for authorization: oauth2
96
+ config.access_token = 'YOUR ACCESS TOKEN'
97
+ end
98
+
99
+ api_instance = Pescheck::ProfilesApi.new
100
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | A UUID string identifying this profile.
101
+
102
+ begin
103
+
104
+ api_instance.v2_profiles_destroy(id)
105
+ rescue Pescheck::ApiError => e
106
+ puts "Error when calling ProfilesApi->v2_profiles_destroy: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the v2_profiles_destroy_with_http_info variant
111
+
112
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
113
+
114
+ > <Array(nil, Integer, Hash)> v2_profiles_destroy_with_http_info(id)
115
+
116
+ ```ruby
117
+ begin
118
+
119
+ data, status_code, headers = api_instance.v2_profiles_destroy_with_http_info(id)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => nil
123
+ rescue Pescheck::ApiError => e
124
+ puts "Error when calling ProfilesApi->v2_profiles_destroy_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **id** | **String** | A UUID string identifying this profile. | |
133
+
134
+ ### Return type
135
+
136
+ nil (empty response body)
137
+
138
+ ### Authorization
139
+
140
+ [oauth2](../README.md#oauth2)
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: Not defined
145
+ - **Accept**: Not defined
146
+
147
+
148
+ ## v2_profiles_list
149
+
150
+ > <PaginatedV2ProfileListItemList> v2_profiles_list(opts)
151
+
152
+
153
+
154
+ ### Examples
155
+
156
+ ```ruby
157
+ require 'time'
158
+ require 'pescheck'
159
+ # setup authorization
160
+ Pescheck.configure do |config|
161
+ # Configure OAuth2 access token for authorization: oauth2
162
+ config.access_token = 'YOUR ACCESS TOKEN'
163
+ end
164
+
165
+ api_instance = Pescheck::ProfilesApi.new
166
+ opts = {
167
+ check_type: 'addresscheck', # String | Restrict to profiles containing at least one check of this type.
168
+ is_custom: true, # Boolean | Restrict to custom (true) or system (false) profiles.
169
+ name: 'name_example', # String | Restrict to profiles whose name contains this value (case-insensitive).
170
+ page: 1, # Integer | A page number within the paginated result set.
171
+ page_size: 50, # Integer | Number of results to return per page.
172
+ paginate: true, # Boolean | Enable/disable pagination. When false, max 500 records returned.
173
+ sort: 'sort_example' # String | Which field to use when ordering the results.
174
+ }
175
+
176
+ begin
177
+
178
+ result = api_instance.v2_profiles_list(opts)
179
+ p result
180
+ rescue Pescheck::ApiError => e
181
+ puts "Error when calling ProfilesApi->v2_profiles_list: #{e}"
182
+ end
183
+ ```
184
+
185
+ #### Using the v2_profiles_list_with_http_info variant
186
+
187
+ This returns an Array which contains the response data, status code and headers.
188
+
189
+ > <Array(<PaginatedV2ProfileListItemList>, Integer, Hash)> v2_profiles_list_with_http_info(opts)
190
+
191
+ ```ruby
192
+ begin
193
+
194
+ data, status_code, headers = api_instance.v2_profiles_list_with_http_info(opts)
195
+ p status_code # => 2xx
196
+ p headers # => { ... }
197
+ p data # => <PaginatedV2ProfileListItemList>
198
+ rescue Pescheck::ApiError => e
199
+ puts "Error when calling ProfilesApi->v2_profiles_list_with_http_info: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ | Name | Type | Description | Notes |
206
+ | ---- | ---- | ----------- | ----- |
207
+ | **check_type** | **String** | Restrict to profiles containing at least one check of this type. | [optional] |
208
+ | **is_custom** | **Boolean** | Restrict to custom (true) or system (false) profiles. | [optional] |
209
+ | **name** | **String** | Restrict to profiles whose name contains this value (case-insensitive). | [optional] |
210
+ | **page** | **Integer** | A page number within the paginated result set. | [optional][default to 1] |
211
+ | **page_size** | **Integer** | Number of results to return per page. | [optional][default to 50] |
212
+ | **paginate** | **Boolean** | Enable/disable pagination. When false, max 500 records returned. | [optional][default to true] |
213
+ | **sort** | **String** | Which field to use when ordering the results. | [optional] |
214
+
215
+ ### Return type
216
+
217
+ [**PaginatedV2ProfileListItemList**](PaginatedV2ProfileListItemList.md)
218
+
219
+ ### Authorization
220
+
221
+ [oauth2](../README.md#oauth2)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+ ## v2_profiles_partial_update
230
+
231
+ > <V2ProfileDetail> v2_profiles_partial_update(id, opts)
232
+
233
+
234
+
235
+ Update name and/or description only. Use PUT to change the check list.
236
+
237
+ ### Examples
238
+
239
+ ```ruby
240
+ require 'time'
241
+ require 'pescheck'
242
+ # setup authorization
243
+ Pescheck.configure do |config|
244
+ # Configure OAuth2 access token for authorization: oauth2
245
+ config.access_token = 'YOUR ACCESS TOKEN'
246
+ end
247
+
248
+ api_instance = Pescheck::ProfilesApi.new
249
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | A UUID string identifying this profile.
250
+ opts = {
251
+ patched_v2_profile_partial_update: Pescheck::PatchedV2ProfilePartialUpdate.new # PatchedV2ProfilePartialUpdate |
252
+ }
253
+
254
+ begin
255
+
256
+ result = api_instance.v2_profiles_partial_update(id, opts)
257
+ p result
258
+ rescue Pescheck::ApiError => e
259
+ puts "Error when calling ProfilesApi->v2_profiles_partial_update: #{e}"
260
+ end
261
+ ```
262
+
263
+ #### Using the v2_profiles_partial_update_with_http_info variant
264
+
265
+ This returns an Array which contains the response data, status code and headers.
266
+
267
+ > <Array(<V2ProfileDetail>, Integer, Hash)> v2_profiles_partial_update_with_http_info(id, opts)
268
+
269
+ ```ruby
270
+ begin
271
+
272
+ data, status_code, headers = api_instance.v2_profiles_partial_update_with_http_info(id, opts)
273
+ p status_code # => 2xx
274
+ p headers # => { ... }
275
+ p data # => <V2ProfileDetail>
276
+ rescue Pescheck::ApiError => e
277
+ puts "Error when calling ProfilesApi->v2_profiles_partial_update_with_http_info: #{e}"
278
+ end
279
+ ```
280
+
281
+ ### Parameters
282
+
283
+ | Name | Type | Description | Notes |
284
+ | ---- | ---- | ----------- | ----- |
285
+ | **id** | **String** | A UUID string identifying this profile. | |
286
+ | **patched_v2_profile_partial_update** | [**PatchedV2ProfilePartialUpdate**](PatchedV2ProfilePartialUpdate.md) | | [optional] |
287
+
288
+ ### Return type
289
+
290
+ [**V2ProfileDetail**](V2ProfileDetail.md)
291
+
292
+ ### Authorization
293
+
294
+ [oauth2](../README.md#oauth2)
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: application/json, multipart/form-data
299
+ - **Accept**: application/json
300
+
301
+
302
+ ## v2_profiles_retrieve
303
+
304
+ > <V2ProfileDetail> v2_profiles_retrieve(id)
305
+
306
+
307
+
308
+ ### Examples
309
+
310
+ ```ruby
311
+ require 'time'
312
+ require 'pescheck'
313
+ # setup authorization
314
+ Pescheck.configure do |config|
315
+ # Configure OAuth2 access token for authorization: oauth2
316
+ config.access_token = 'YOUR ACCESS TOKEN'
317
+ end
318
+
319
+ api_instance = Pescheck::ProfilesApi.new
320
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | A UUID string identifying this profile.
321
+
322
+ begin
323
+
324
+ result = api_instance.v2_profiles_retrieve(id)
325
+ p result
326
+ rescue Pescheck::ApiError => e
327
+ puts "Error when calling ProfilesApi->v2_profiles_retrieve: #{e}"
328
+ end
329
+ ```
330
+
331
+ #### Using the v2_profiles_retrieve_with_http_info variant
332
+
333
+ This returns an Array which contains the response data, status code and headers.
334
+
335
+ > <Array(<V2ProfileDetail>, Integer, Hash)> v2_profiles_retrieve_with_http_info(id)
336
+
337
+ ```ruby
338
+ begin
339
+
340
+ data, status_code, headers = api_instance.v2_profiles_retrieve_with_http_info(id)
341
+ p status_code # => 2xx
342
+ p headers # => { ... }
343
+ p data # => <V2ProfileDetail>
344
+ rescue Pescheck::ApiError => e
345
+ puts "Error when calling ProfilesApi->v2_profiles_retrieve_with_http_info: #{e}"
346
+ end
347
+ ```
348
+
349
+ ### Parameters
350
+
351
+ | Name | Type | Description | Notes |
352
+ | ---- | ---- | ----------- | ----- |
353
+ | **id** | **String** | A UUID string identifying this profile. | |
354
+
355
+ ### Return type
356
+
357
+ [**V2ProfileDetail**](V2ProfileDetail.md)
358
+
359
+ ### Authorization
360
+
361
+ [oauth2](../README.md#oauth2)
362
+
363
+ ### HTTP request headers
364
+
365
+ - **Content-Type**: Not defined
366
+ - **Accept**: application/json
367
+
368
+
369
+ ## v2_profiles_update
370
+
371
+ > <V2ProfileDetail> v2_profiles_update(id, v2_profile_update)
372
+
373
+
374
+
375
+ Replace the profile. Checks matched by profile_check_id are updated in place; entries without one are added; existing checks not referenced in the request are removed.
376
+
377
+ ### Examples
378
+
379
+ ```ruby
380
+ require 'time'
381
+ require 'pescheck'
382
+ # setup authorization
383
+ Pescheck.configure do |config|
384
+ # Configure OAuth2 access token for authorization: oauth2
385
+ config.access_token = 'YOUR ACCESS TOKEN'
386
+ end
387
+
388
+ api_instance = Pescheck::ProfilesApi.new
389
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | A UUID string identifying this profile.
390
+ v2_profile_update = Pescheck::V2ProfileUpdate.new({name: 'name_example', checks: [Pescheck::V2ProfileUpdateCheck.new({check_type: 'addresscheck'})]}) # V2ProfileUpdate |
391
+
392
+ begin
393
+
394
+ result = api_instance.v2_profiles_update(id, v2_profile_update)
395
+ p result
396
+ rescue Pescheck::ApiError => e
397
+ puts "Error when calling ProfilesApi->v2_profiles_update: #{e}"
398
+ end
399
+ ```
400
+
401
+ #### Using the v2_profiles_update_with_http_info variant
402
+
403
+ This returns an Array which contains the response data, status code and headers.
404
+
405
+ > <Array(<V2ProfileDetail>, Integer, Hash)> v2_profiles_update_with_http_info(id, v2_profile_update)
406
+
407
+ ```ruby
408
+ begin
409
+
410
+ data, status_code, headers = api_instance.v2_profiles_update_with_http_info(id, v2_profile_update)
411
+ p status_code # => 2xx
412
+ p headers # => { ... }
413
+ p data # => <V2ProfileDetail>
414
+ rescue Pescheck::ApiError => e
415
+ puts "Error when calling ProfilesApi->v2_profiles_update_with_http_info: #{e}"
416
+ end
417
+ ```
418
+
419
+ ### Parameters
420
+
421
+ | Name | Type | Description | Notes |
422
+ | ---- | ---- | ----------- | ----- |
423
+ | **id** | **String** | A UUID string identifying this profile. | |
424
+ | **v2_profile_update** | [**V2ProfileUpdate**](V2ProfileUpdate.md) | | |
425
+
426
+ ### Return type
427
+
428
+ [**V2ProfileDetail**](V2ProfileDetail.md)
429
+
430
+ ### Authorization
431
+
432
+ [oauth2](../README.md#oauth2)
433
+
434
+ ### HTTP request headers
435
+
436
+ - **Content-Type**: application/json, multipart/form-data
437
+ - **Accept**: application/json
438
+