pulp_npm_client 0.1.0a1.dev01595640515 → 0.1.0a1.dev01595986114

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_npm_client might be problematic. Click here for more details.

Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -32
  3. data/docs/ContentPackagesApi.md +33 -36
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsNpmApi.md +113 -71
  7. data/docs/InlineResponse200.md +3 -3
  8. data/docs/InlineResponse2001.md +3 -3
  9. data/docs/InlineResponse2002.md +3 -3
  10. data/docs/InlineResponse2003.md +3 -3
  11. data/docs/InlineResponse2004.md +3 -3
  12. data/docs/NpmNpmDistribution.md +1 -7
  13. data/docs/NpmNpmDistributionResponse.md +31 -0
  14. data/docs/NpmNpmRemote.md +4 -10
  15. data/docs/NpmNpmRemoteResponse.md +43 -0
  16. data/docs/NpmNpmRepository.md +4 -10
  17. data/docs/NpmNpmRepositoryResponse.md +29 -0
  18. data/docs/NpmPackage.md +5 -5
  19. data/docs/NpmPackageResponse.md +27 -0
  20. data/docs/PatchednpmNpmDistribution.md +25 -0
  21. data/docs/PatchednpmNpmRemote.md +37 -0
  22. data/docs/PatchednpmNpmRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesNpmApi.md +133 -79
  25. data/docs/RepositoriesNpmApi.md +103 -85
  26. data/docs/RepositoriesNpmVersionsApi.md +95 -66
  27. data/docs/RepositoryAddRemoveContent.md +2 -2
  28. data/docs/RepositorySyncURL.md +1 -1
  29. data/docs/RepositoryVersion.md +1 -9
  30. data/docs/RepositoryVersionResponse.md +25 -0
  31. data/lib/pulp_npm_client.rb +12 -2
  32. data/lib/pulp_npm_client/api/content_packages_api.rb +34 -52
  33. data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
  34. data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
  35. data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
  36. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
  37. data/lib/pulp_npm_client/api_client.rb +2 -2
  38. data/lib/pulp_npm_client/api_error.rb +2 -2
  39. data/lib/pulp_npm_client/configuration.rb +3 -3
  40. data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
  41. data/lib/pulp_npm_client/models/content_summary.rb +9 -15
  42. data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
  43. data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
  44. data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
  45. data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
  46. data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
  47. data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
  48. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
  49. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
  50. data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
  51. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
  52. data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
  53. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
  54. data/lib/pulp_npm_client/models/npm_package.rb +24 -79
  55. data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
  56. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
  57. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
  58. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
  59. data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
  60. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
  61. data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
  62. data/lib/pulp_npm_client/models/repository_version.rb +7 -43
  63. data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
  64. data/lib/pulp_npm_client/version.rb +3 -3
  65. data/pulp_npm_client.gemspec +4 -4
  66. data/spec/api/content_packages_api_spec.rb +14 -17
  67. data/spec/api/distributions_npm_api_spec.rb +38 -23
  68. data/spec/api/remotes_npm_api_spec.rb +50 -29
  69. data/spec/api/repositories_npm_api_spec.rb +30 -27
  70. data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
  71. data/spec/api_client_spec.rb +2 -2
  72. data/spec/configuration_spec.rb +2 -2
  73. data/spec/models/async_operation_response_spec.rb +2 -2
  74. data/spec/models/content_summary_response_spec.rb +53 -0
  75. data/spec/models/content_summary_spec.rb +2 -2
  76. data/spec/models/inline_response2001_spec.rb +2 -2
  77. data/spec/models/inline_response2002_spec.rb +2 -2
  78. data/spec/models/inline_response2003_spec.rb +2 -2
  79. data/spec/models/inline_response2004_spec.rb +2 -2
  80. data/spec/models/inline_response200_spec.rb +2 -2
  81. data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
  82. data/spec/models/npm_npm_distribution_spec.rb +2 -20
  83. data/spec/models/npm_npm_remote_response_spec.rb +119 -0
  84. data/spec/models/npm_npm_remote_spec.rb +2 -24
  85. data/spec/models/npm_npm_repository_response_spec.rb +77 -0
  86. data/spec/models/npm_npm_repository_spec.rb +5 -23
  87. data/spec/models/npm_package_response_spec.rb +71 -0
  88. data/spec/models/npm_package_spec.rb +6 -6
  89. data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
  90. data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
  91. data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
  92. data/spec/models/policy_enum_spec.rb +35 -0
  93. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  94. data/spec/models/repository_sync_url_spec.rb +2 -2
  95. data/spec/models/repository_version_response_spec.rb +65 -0
  96. data/spec/models/repository_version_spec.rb +2 -26
  97. data/spec/spec_helper.rb +2 -2
  98. metadata +44 -4
@@ -4,24 +4,24 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**create**](RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ | Create a npm repository
8
- [**delete**](RepositoriesNpmApi.md#delete) | **DELETE** {npm_repository_href} | Delete a npm repository
9
- [**list**](RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ | List npm repositorys
7
+ [**create**](RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ |
8
+ [**delete**](RepositoriesNpmApi.md#delete) | **DELETE** {npm_repository_href} |
9
+ [**list**](RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ |
10
10
  [**modify**](RepositoriesNpmApi.md#modify) | **POST** {npm_repository_href}modify/ | Modify Repository Content
11
- [**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_repository_href} | Partially update a npm repository
12
- [**read**](RepositoriesNpmApi.md#read) | **GET** {npm_repository_href} | Inspect a npm repository
11
+ [**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_repository_href} |
12
+ [**read**](RepositoriesNpmApi.md#read) | **GET** {npm_repository_href} |
13
13
  [**sync**](RepositoriesNpmApi.md#sync) | **POST** {npm_repository_href}sync/ | Sync from remote
14
- [**update**](RepositoriesNpmApi.md#update) | **PUT** {npm_repository_href} | Update a npm repository
14
+ [**update**](RepositoriesNpmApi.md#update) | **PUT** {npm_repository_href} |
15
15
 
16
16
 
17
17
 
18
18
  ## create
19
19
 
20
- > NpmNpmRepository create(data)
20
+ > NpmNpmRepositoryResponse create(npm_npm_repository)
21
21
 
22
- Create a npm repository
23
22
 
24
- Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
+
24
+ A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
25
25
 
26
26
  ### Example
27
27
 
@@ -30,17 +30,16 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
30
30
  require 'pulp_npm_client'
31
31
  # setup authorization
32
32
  PulpNpmClient.configure do |config|
33
- # Configure HTTP basic authorization: Basic
33
+ # Configure HTTP basic authorization: basicAuth
34
34
  config.username = 'YOUR USERNAME'
35
35
  config.password = 'YOUR PASSWORD'
36
36
  end
37
37
 
38
38
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
39
- data = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
39
+ npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
40
40
 
41
41
  begin
42
- #Create a npm repository
43
- result = api_instance.create(data)
42
+ result = api_instance.create(npm_npm_repository)
44
43
  p result
45
44
  rescue PulpNpmClient::ApiError => e
46
45
  puts "Exception when calling RepositoriesNpmApi->create: #{e}"
@@ -52,27 +51,27 @@ end
52
51
 
53
52
  Name | Type | Description | Notes
54
53
  ------------- | ------------- | ------------- | -------------
55
- **data** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
54
+ **npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
56
55
 
57
56
  ### Return type
58
57
 
59
- [**NpmNpmRepository**](NpmNpmRepository.md)
58
+ [**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
60
59
 
61
60
  ### Authorization
62
61
 
63
- [Basic](../README.md#Basic)
62
+ [basicAuth](../README.md#basicAuth)
64
63
 
65
64
  ### HTTP request headers
66
65
 
67
- - **Content-Type**: application/json
66
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
68
67
  - **Accept**: application/json
69
68
 
70
69
 
71
70
  ## delete
72
71
 
73
- > AsyncOperationResponse delete(npm_repository_href)
72
+ > AsyncOperationResponse delete(npm_repository_href, opts)
73
+
74
74
 
75
- Delete a npm repository
76
75
 
77
76
  Trigger an asynchronous delete task
78
77
 
@@ -83,17 +82,21 @@ Trigger an asynchronous delete task
83
82
  require 'pulp_npm_client'
84
83
  # setup authorization
85
84
  PulpNpmClient.configure do |config|
86
- # Configure HTTP basic authorization: Basic
85
+ # Configure HTTP basic authorization: basicAuth
87
86
  config.username = 'YOUR USERNAME'
88
87
  config.password = 'YOUR PASSWORD'
89
88
  end
90
89
 
91
90
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
92
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
91
+ npm_repository_href = 'npm_repository_href_example' # String |
92
+ opts = {
93
+ name: 'name_example', # String | name
94
+ name__in: 'name__in_example', # String | name__in
95
+ ordering: 'ordering_example' # String | Which field to use when ordering the results.
96
+ }
93
97
 
94
98
  begin
95
- #Delete a npm repository
96
- result = api_instance.delete(npm_repository_href)
99
+ result = api_instance.delete(npm_repository_href, opts)
97
100
  p result
98
101
  rescue PulpNpmClient::ApiError => e
99
102
  puts "Exception when calling RepositoriesNpmApi->delete: #{e}"
@@ -105,7 +108,10 @@ end
105
108
 
106
109
  Name | Type | Description | Notes
107
110
  ------------- | ------------- | ------------- | -------------
108
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
111
+ **npm_repository_href** | **String**| |
112
+ **name** | **String**| name | [optional]
113
+ **name__in** | **String**| name__in | [optional]
114
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
109
115
 
110
116
  ### Return type
111
117
 
@@ -113,7 +119,7 @@ Name | Type | Description | Notes
113
119
 
114
120
  ### Authorization
115
121
 
116
- [Basic](../README.md#Basic)
122
+ [basicAuth](../README.md#basicAuth)
117
123
 
118
124
  ### HTTP request headers
119
125
 
@@ -125,9 +131,9 @@ Name | Type | Description | Notes
125
131
 
126
132
  > InlineResponse2003 list(opts)
127
133
 
128
- List npm repositorys
129
134
 
130
- Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
135
+
136
+ A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
131
137
 
132
138
  ### Example
133
139
 
@@ -136,24 +142,23 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
136
142
  require 'pulp_npm_client'
137
143
  # setup authorization
138
144
  PulpNpmClient.configure do |config|
139
- # Configure HTTP basic authorization: Basic
145
+ # Configure HTTP basic authorization: basicAuth
140
146
  config.username = 'YOUR USERNAME'
141
147
  config.password = 'YOUR PASSWORD'
142
148
  end
143
149
 
144
150
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
145
151
  opts = {
146
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
147
- name: 'name_example', # String |
148
- name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
149
152
  limit: 56, # Integer | Number of results to return per page.
153
+ name: 'name_example', # String | name
154
+ name__in: 'name__in_example', # String | name__in
150
155
  offset: 56, # Integer | The initial index from which to return the results.
156
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
151
157
  fields: 'fields_example', # String | A list of fields to include in the response.
152
158
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
153
159
  }
154
160
 
155
161
  begin
156
- #List npm repositorys
157
162
  result = api_instance.list(opts)
158
163
  p result
159
164
  rescue PulpNpmClient::ApiError => e
@@ -166,11 +171,11 @@ end
166
171
 
167
172
  Name | Type | Description | Notes
168
173
  ------------- | ------------- | ------------- | -------------
169
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
170
- **name** | **String**| | [optional]
171
- **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
172
174
  **limit** | **Integer**| Number of results to return per page. | [optional]
175
+ **name** | **String**| name | [optional]
176
+ **name__in** | **String**| name__in | [optional]
173
177
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
178
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
174
179
  **fields** | **String**| A list of fields to include in the response. | [optional]
175
180
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
176
181
 
@@ -180,7 +185,7 @@ Name | Type | Description | Notes
180
185
 
181
186
  ### Authorization
182
187
 
183
- [Basic](../README.md#Basic)
188
+ [basicAuth](../README.md#basicAuth)
184
189
 
185
190
  ### HTTP request headers
186
191
 
@@ -190,7 +195,7 @@ Name | Type | Description | Notes
190
195
 
191
196
  ## modify
192
197
 
193
- > AsyncOperationResponse modify(npm_repository_href, data)
198
+ > AsyncOperationResponse modify(npm_repository_href, repository_add_remove_content)
194
199
 
195
200
  Modify Repository Content
196
201
 
@@ -203,18 +208,18 @@ Trigger an asynchronous task to create a new repository version.
203
208
  require 'pulp_npm_client'
204
209
  # setup authorization
205
210
  PulpNpmClient.configure do |config|
206
- # Configure HTTP basic authorization: Basic
211
+ # Configure HTTP basic authorization: basicAuth
207
212
  config.username = 'YOUR USERNAME'
208
213
  config.password = 'YOUR PASSWORD'
209
214
  end
210
215
 
211
216
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
212
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
213
- data = PulpNpmClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
217
+ npm_repository_href = 'npm_repository_href_example' # String |
218
+ repository_add_remove_content = PulpNpmClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
214
219
 
215
220
  begin
216
221
  #Modify Repository Content
217
- result = api_instance.modify(npm_repository_href, data)
222
+ result = api_instance.modify(npm_repository_href, repository_add_remove_content)
218
223
  p result
219
224
  rescue PulpNpmClient::ApiError => e
220
225
  puts "Exception when calling RepositoriesNpmApi->modify: #{e}"
@@ -226,8 +231,8 @@ end
226
231
 
227
232
  Name | Type | Description | Notes
228
233
  ------------- | ------------- | ------------- | -------------
229
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
230
- **data** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
234
+ **npm_repository_href** | **String**| |
235
+ **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
231
236
 
232
237
  ### Return type
233
238
 
@@ -235,19 +240,19 @@ Name | Type | Description | Notes
235
240
 
236
241
  ### Authorization
237
242
 
238
- [Basic](../README.md#Basic)
243
+ [basicAuth](../README.md#basicAuth)
239
244
 
240
245
  ### HTTP request headers
241
246
 
242
- - **Content-Type**: application/json
247
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
243
248
  - **Accept**: application/json
244
249
 
245
250
 
246
251
  ## partial_update
247
252
 
248
- > AsyncOperationResponse partial_update(npm_repository_href, data)
253
+ > AsyncOperationResponse partial_update(npm_repository_href, patchednpm_npm_repository, opts)
254
+
249
255
 
250
- Partially update a npm repository
251
256
 
252
257
  Trigger an asynchronous partial update task
253
258
 
@@ -258,18 +263,22 @@ Trigger an asynchronous partial update task
258
263
  require 'pulp_npm_client'
259
264
  # setup authorization
260
265
  PulpNpmClient.configure do |config|
261
- # Configure HTTP basic authorization: Basic
266
+ # Configure HTTP basic authorization: basicAuth
262
267
  config.username = 'YOUR USERNAME'
263
268
  config.password = 'YOUR PASSWORD'
264
269
  end
265
270
 
266
271
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
267
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
268
- data = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
272
+ npm_repository_href = 'npm_repository_href_example' # String |
273
+ patchednpm_npm_repository = PulpNpmClient::PatchednpmNpmRepository.new # PatchednpmNpmRepository |
274
+ opts = {
275
+ name: 'name_example', # String | name
276
+ name__in: 'name__in_example', # String | name__in
277
+ ordering: 'ordering_example' # String | Which field to use when ordering the results.
278
+ }
269
279
 
270
280
  begin
271
- #Partially update a npm repository
272
- result = api_instance.partial_update(npm_repository_href, data)
281
+ result = api_instance.partial_update(npm_repository_href, patchednpm_npm_repository, opts)
273
282
  p result
274
283
  rescue PulpNpmClient::ApiError => e
275
284
  puts "Exception when calling RepositoriesNpmApi->partial_update: #{e}"
@@ -281,8 +290,11 @@ end
281
290
 
282
291
  Name | Type | Description | Notes
283
292
  ------------- | ------------- | ------------- | -------------
284
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
285
- **data** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
293
+ **npm_repository_href** | **String**| |
294
+ **patchednpm_npm_repository** | [**PatchednpmNpmRepository**](PatchednpmNpmRepository.md)| |
295
+ **name** | **String**| name | [optional]
296
+ **name__in** | **String**| name__in | [optional]
297
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
286
298
 
287
299
  ### Return type
288
300
 
@@ -290,21 +302,21 @@ Name | Type | Description | Notes
290
302
 
291
303
  ### Authorization
292
304
 
293
- [Basic](../README.md#Basic)
305
+ [basicAuth](../README.md#basicAuth)
294
306
 
295
307
  ### HTTP request headers
296
308
 
297
- - **Content-Type**: application/json
309
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
298
310
  - **Accept**: application/json
299
311
 
300
312
 
301
313
  ## read
302
314
 
303
- > NpmNpmRepository read(npm_repository_href, opts)
315
+ > NpmNpmRepositoryResponse read(npm_repository_href, opts)
316
+
304
317
 
305
- Inspect a npm repository
306
318
 
307
- Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
319
+ A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
308
320
 
309
321
  ### Example
310
322
 
@@ -313,20 +325,19 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
313
325
  require 'pulp_npm_client'
314
326
  # setup authorization
315
327
  PulpNpmClient.configure do |config|
316
- # Configure HTTP basic authorization: Basic
328
+ # Configure HTTP basic authorization: basicAuth
317
329
  config.username = 'YOUR USERNAME'
318
330
  config.password = 'YOUR PASSWORD'
319
331
  end
320
332
 
321
333
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
322
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
334
+ npm_repository_href = 'npm_repository_href_example' # String |
323
335
  opts = {
324
336
  fields: 'fields_example', # String | A list of fields to include in the response.
325
337
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
326
338
  }
327
339
 
328
340
  begin
329
- #Inspect a npm repository
330
341
  result = api_instance.read(npm_repository_href, opts)
331
342
  p result
332
343
  rescue PulpNpmClient::ApiError => e
@@ -339,17 +350,17 @@ end
339
350
 
340
351
  Name | Type | Description | Notes
341
352
  ------------- | ------------- | ------------- | -------------
342
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
353
+ **npm_repository_href** | **String**| |
343
354
  **fields** | **String**| A list of fields to include in the response. | [optional]
344
355
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
345
356
 
346
357
  ### Return type
347
358
 
348
- [**NpmNpmRepository**](NpmNpmRepository.md)
359
+ [**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
349
360
 
350
361
  ### Authorization
351
362
 
352
- [Basic](../README.md#Basic)
363
+ [basicAuth](../README.md#basicAuth)
353
364
 
354
365
  ### HTTP request headers
355
366
 
@@ -359,7 +370,7 @@ Name | Type | Description | Notes
359
370
 
360
371
  ## sync
361
372
 
362
- > AsyncOperationResponse sync(npm_repository_href, data)
373
+ > AsyncOperationResponse sync(npm_repository_href, repository_sync_url)
363
374
 
364
375
  Sync from remote
365
376
 
@@ -372,18 +383,18 @@ Trigger an asynchronous task to sync content.
372
383
  require 'pulp_npm_client'
373
384
  # setup authorization
374
385
  PulpNpmClient.configure do |config|
375
- # Configure HTTP basic authorization: Basic
386
+ # Configure HTTP basic authorization: basicAuth
376
387
  config.username = 'YOUR USERNAME'
377
388
  config.password = 'YOUR PASSWORD'
378
389
  end
379
390
 
380
391
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
381
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
382
- data = PulpNpmClient::RepositorySyncURL.new # RepositorySyncURL |
392
+ npm_repository_href = 'npm_repository_href_example' # String |
393
+ repository_sync_url = PulpNpmClient::RepositorySyncURL.new # RepositorySyncURL |
383
394
 
384
395
  begin
385
396
  #Sync from remote
386
- result = api_instance.sync(npm_repository_href, data)
397
+ result = api_instance.sync(npm_repository_href, repository_sync_url)
387
398
  p result
388
399
  rescue PulpNpmClient::ApiError => e
389
400
  puts "Exception when calling RepositoriesNpmApi->sync: #{e}"
@@ -395,8 +406,8 @@ end
395
406
 
396
407
  Name | Type | Description | Notes
397
408
  ------------- | ------------- | ------------- | -------------
398
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
399
- **data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
409
+ **npm_repository_href** | **String**| |
410
+ **repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
400
411
 
401
412
  ### Return type
402
413
 
@@ -404,19 +415,19 @@ Name | Type | Description | Notes
404
415
 
405
416
  ### Authorization
406
417
 
407
- [Basic](../README.md#Basic)
418
+ [basicAuth](../README.md#basicAuth)
408
419
 
409
420
  ### HTTP request headers
410
421
 
411
- - **Content-Type**: application/json
422
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
412
423
  - **Accept**: application/json
413
424
 
414
425
 
415
426
  ## update
416
427
 
417
- > AsyncOperationResponse update(npm_repository_href, data)
428
+ > AsyncOperationResponse update(npm_repository_href, npm_npm_repository, opts)
429
+
418
430
 
419
- Update a npm repository
420
431
 
421
432
  Trigger an asynchronous update task
422
433
 
@@ -427,18 +438,22 @@ Trigger an asynchronous update task
427
438
  require 'pulp_npm_client'
428
439
  # setup authorization
429
440
  PulpNpmClient.configure do |config|
430
- # Configure HTTP basic authorization: Basic
441
+ # Configure HTTP basic authorization: basicAuth
431
442
  config.username = 'YOUR USERNAME'
432
443
  config.password = 'YOUR PASSWORD'
433
444
  end
434
445
 
435
446
  api_instance = PulpNpmClient::RepositoriesNpmApi.new
436
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
437
- data = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
447
+ npm_repository_href = 'npm_repository_href_example' # String |
448
+ npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
449
+ opts = {
450
+ name: 'name_example', # String | name
451
+ name__in: 'name__in_example', # String | name__in
452
+ ordering: 'ordering_example' # String | Which field to use when ordering the results.
453
+ }
438
454
 
439
455
  begin
440
- #Update a npm repository
441
- result = api_instance.update(npm_repository_href, data)
456
+ result = api_instance.update(npm_repository_href, npm_npm_repository, opts)
442
457
  p result
443
458
  rescue PulpNpmClient::ApiError => e
444
459
  puts "Exception when calling RepositoriesNpmApi->update: #{e}"
@@ -450,8 +465,11 @@ end
450
465
 
451
466
  Name | Type | Description | Notes
452
467
  ------------- | ------------- | ------------- | -------------
453
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
454
- **data** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
468
+ **npm_repository_href** | **String**| |
469
+ **npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
470
+ **name** | **String**| name | [optional]
471
+ **name__in** | **String**| name__in | [optional]
472
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
455
473
 
456
474
  ### Return type
457
475
 
@@ -459,10 +477,10 @@ Name | Type | Description | Notes
459
477
 
460
478
  ### Authorization
461
479
 
462
- [Basic](../README.md#Basic)
480
+ [basicAuth](../README.md#basicAuth)
463
481
 
464
482
  ### HTTP request headers
465
483
 
466
- - **Content-Type**: application/json
484
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
467
485
  - **Accept**: application/json
468
486