pulp_npm_client 0.1.0a1.dev01595813316 → 0.1.0a1.dev01596158992

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 +22 -11
  3. data/docs/ContentPackagesApi.md +27 -27
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsNpmApi.md +104 -56
  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 +124 -64
  25. data/docs/RepositoriesNpmApi.md +94 -70
  26. data/docs/RepositoriesNpmVersionsApi.md +90 -58
  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 -46
  33. data/lib/pulp_npm_client/api/distributions_npm_api.rb +131 -68
  34. data/lib/pulp_npm_client/api/remotes_npm_api.rb +165 -84
  35. data/lib/pulp_npm_client/api/repositories_npm_api.rb +121 -94
  36. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -74
  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 -14
  67. data/spec/api/distributions_npm_api_spec.rb +39 -18
  68. data/spec/api/remotes_npm_api_spec.rb +51 -24
  69. data/spec/api/repositories_npm_api_spec.rb +31 -22
  70. data/spec/api/repositories_npm_versions_api_spec.rb +38 -23
  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 +54 -14
@@ -5,7 +5,7 @@ All URIs are relative to *http://pulp*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_repository_version_href} | Delete a repository version
8
- [**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_repository_href}versions/ | List repository versions
8
+ [**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_repository_version_href}versions/ | List repository versions
9
9
  [**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_repository_version_href} | Inspect a repository version
10
10
  [**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_repository_version_href}repair/ |
11
11
 
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  ## delete
15
15
 
16
- > AsyncOperationResponse delete(npm_repository_version_href)
16
+ > AsyncOperationResponse delete(npm_repository_version_href, opts)
17
17
 
18
18
  Delete a repository version
19
19
 
@@ -26,17 +26,34 @@ Trigger an asynchronous task to delete a repositroy version.
26
26
  require 'pulp_npm_client'
27
27
  # setup authorization
28
28
  PulpNpmClient.configure do |config|
29
- # Configure HTTP basic authorization: Basic
29
+ # Configure HTTP basic authorization: basicAuth
30
30
  config.username = 'YOUR USERNAME'
31
31
  config.password = 'YOUR PASSWORD'
32
32
  end
33
33
 
34
34
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
35
- npm_repository_version_href = 'npm_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
35
+ npm_repository_version_href = 'npm_repository_version_href_example' # String |
36
+ opts = {
37
+ content: 'content_example', # String | content
38
+ content__in: 'content__in_example', # String | content__in
39
+ number: 'number_example', # String | number
40
+ number__gt: 'number__gt_example', # String | number__gt
41
+ number__gte: 'number__gte_example', # String | number__gte
42
+ number__lt: 'number__lt_example', # String | number__lt
43
+ number__lte: 'number__lte_example', # String | number__lte
44
+ number__range: 'number__range_example', # String | number__range
45
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
46
+ pulp_created: 'pulp_created_example', # String | pulp_created
47
+ pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
48
+ pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
49
+ pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
50
+ pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
51
+ pulp_created__range: 'pulp_created__range_example' # String | pulp_created__range
52
+ }
36
53
 
37
54
  begin
38
55
  #Delete a repository version
39
- result = api_instance.delete(npm_repository_version_href)
56
+ result = api_instance.delete(npm_repository_version_href, opts)
40
57
  p result
41
58
  rescue PulpNpmClient::ApiError => e
42
59
  puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
@@ -48,7 +65,22 @@ end
48
65
 
49
66
  Name | Type | Description | Notes
50
67
  ------------- | ------------- | ------------- | -------------
51
- **npm_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/ |
68
+ **npm_repository_version_href** | **String**| |
69
+ **content** | **String**| content | [optional]
70
+ **content__in** | **String**| content__in | [optional]
71
+ **number** | **String**| number | [optional]
72
+ **number__gt** | **String**| number__gt | [optional]
73
+ **number__gte** | **String**| number__gte | [optional]
74
+ **number__lt** | **String**| number__lt | [optional]
75
+ **number__lte** | **String**| number__lte | [optional]
76
+ **number__range** | **String**| number__range | [optional]
77
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
78
+ **pulp_created** | **String**| pulp_created | [optional]
79
+ **pulp_created__gt** | **String**| pulp_created__gt | [optional]
80
+ **pulp_created__gte** | **String**| pulp_created__gte | [optional]
81
+ **pulp_created__lt** | **String**| pulp_created__lt | [optional]
82
+ **pulp_created__lte** | **String**| pulp_created__lte | [optional]
83
+ **pulp_created__range** | **String**| pulp_created__range | [optional]
52
84
 
53
85
  ### Return type
54
86
 
@@ -56,7 +88,7 @@ Name | Type | Description | Notes
56
88
 
57
89
  ### Authorization
58
90
 
59
- [Basic](../README.md#Basic)
91
+ [basicAuth](../README.md#basicAuth)
60
92
 
61
93
  ### HTTP request headers
62
94
 
@@ -66,7 +98,7 @@ Name | Type | Description | Notes
66
98
 
67
99
  ## list
68
100
 
69
- > InlineResponse2004 list(npm_repository_href, opts)
101
+ > InlineResponse2004 list(npm_repository_version_href, opts)
70
102
 
71
103
  List repository versions
72
104
 
@@ -79,38 +111,38 @@ A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
79
111
  require 'pulp_npm_client'
80
112
  # setup authorization
81
113
  PulpNpmClient.configure do |config|
82
- # Configure HTTP basic authorization: Basic
114
+ # Configure HTTP basic authorization: basicAuth
83
115
  config.username = 'YOUR USERNAME'
84
116
  config.password = 'YOUR PASSWORD'
85
117
  end
86
118
 
87
119
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
88
- npm_repository_href = 'npm_repository_href_example' # String | URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
120
+ npm_repository_version_href = 'npm_repository_version_href_example' # String |
89
121
  opts = {
90
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
91
- number: 3.4, # Float |
92
- number__lt: 3.4, # Float | Filter results where number is less than value
93
- number__lte: 3.4, # Float | Filter results where number is less than or equal to value
94
- number__gt: 3.4, # Float | Filter results where number is greater than value
95
- number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
96
- number__range: 3.4, # Float | Filter results where number is between two comma separated values
97
- pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
98
- pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
99
- pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
100
- pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
101
- pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
102
- pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
103
- content: 'content_example', # String | Content Unit referenced by HREF
104
- content__in: 'content__in_example', # String | Content Unit referenced by HREF
122
+ content: 'content_example', # String | content
123
+ content__in: 'content__in_example', # String | content__in
105
124
  limit: 56, # Integer | Number of results to return per page.
125
+ number: 'number_example', # String | number
126
+ number__gt: 'number__gt_example', # String | number__gt
127
+ number__gte: 'number__gte_example', # String | number__gte
128
+ number__lt: 'number__lt_example', # String | number__lt
129
+ number__lte: 'number__lte_example', # String | number__lte
130
+ number__range: 'number__range_example', # String | number__range
106
131
  offset: 56, # Integer | The initial index from which to return the results.
132
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
133
+ pulp_created: 'pulp_created_example', # String | pulp_created
134
+ pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
135
+ pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
136
+ pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
137
+ pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
138
+ pulp_created__range: 'pulp_created__range_example', # String | pulp_created__range
107
139
  fields: 'fields_example', # String | A list of fields to include in the response.
108
140
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
109
141
  }
110
142
 
111
143
  begin
112
144
  #List repository versions
113
- result = api_instance.list(npm_repository_href, opts)
145
+ result = api_instance.list(npm_repository_version_href, opts)
114
146
  p result
115
147
  rescue PulpNpmClient::ApiError => e
116
148
  puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
@@ -122,24 +154,24 @@ end
122
154
 
123
155
  Name | Type | Description | Notes
124
156
  ------------- | ------------- | ------------- | -------------
125
- **npm_repository_href** | **String**| URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/ |
126
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
127
- **number** | **Float**| | [optional]
128
- **number__lt** | **Float**| Filter results where number is less than value | [optional]
129
- **number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
130
- **number__gt** | **Float**| Filter results where number is greater than value | [optional]
131
- **number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
132
- **number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
133
- **pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
134
- **pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
135
- **pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
136
- **pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
137
- **pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
138
- **pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
139
- **content** | **String**| Content Unit referenced by HREF | [optional]
140
- **content__in** | **String**| Content Unit referenced by HREF | [optional]
157
+ **npm_repository_version_href** | **String**| |
158
+ **content** | **String**| content | [optional]
159
+ **content__in** | **String**| content__in | [optional]
141
160
  **limit** | **Integer**| Number of results to return per page. | [optional]
161
+ **number** | **String**| number | [optional]
162
+ **number__gt** | **String**| number__gt | [optional]
163
+ **number__gte** | **String**| number__gte | [optional]
164
+ **number__lt** | **String**| number__lt | [optional]
165
+ **number__lte** | **String**| number__lte | [optional]
166
+ **number__range** | **String**| number__range | [optional]
142
167
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
168
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
169
+ **pulp_created** | **String**| pulp_created | [optional]
170
+ **pulp_created__gt** | **String**| pulp_created__gt | [optional]
171
+ **pulp_created__gte** | **String**| pulp_created__gte | [optional]
172
+ **pulp_created__lt** | **String**| pulp_created__lt | [optional]
173
+ **pulp_created__lte** | **String**| pulp_created__lte | [optional]
174
+ **pulp_created__range** | **String**| pulp_created__range | [optional]
143
175
  **fields** | **String**| A list of fields to include in the response. | [optional]
144
176
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
145
177
 
@@ -149,7 +181,7 @@ Name | Type | Description | Notes
149
181
 
150
182
  ### Authorization
151
183
 
152
- [Basic](../README.md#Basic)
184
+ [basicAuth](../README.md#basicAuth)
153
185
 
154
186
  ### HTTP request headers
155
187
 
@@ -159,7 +191,7 @@ Name | Type | Description | Notes
159
191
 
160
192
  ## read
161
193
 
162
- > RepositoryVersion read(npm_repository_version_href, opts)
194
+ > RepositoryVersionResponse read(npm_repository_version_href, opts)
163
195
 
164
196
  Inspect a repository version
165
197
 
@@ -172,13 +204,13 @@ A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
172
204
  require 'pulp_npm_client'
173
205
  # setup authorization
174
206
  PulpNpmClient.configure do |config|
175
- # Configure HTTP basic authorization: Basic
207
+ # Configure HTTP basic authorization: basicAuth
176
208
  config.username = 'YOUR USERNAME'
177
209
  config.password = 'YOUR PASSWORD'
178
210
  end
179
211
 
180
212
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
181
- npm_repository_version_href = 'npm_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
213
+ npm_repository_version_href = 'npm_repository_version_href_example' # String |
182
214
  opts = {
183
215
  fields: 'fields_example', # String | A list of fields to include in the response.
184
216
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
@@ -198,17 +230,17 @@ end
198
230
 
199
231
  Name | Type | Description | Notes
200
232
  ------------- | ------------- | ------------- | -------------
201
- **npm_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/ |
233
+ **npm_repository_version_href** | **String**| |
202
234
  **fields** | **String**| A list of fields to include in the response. | [optional]
203
235
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
204
236
 
205
237
  ### Return type
206
238
 
207
- [**RepositoryVersion**](RepositoryVersion.md)
239
+ [**RepositoryVersionResponse**](RepositoryVersionResponse.md)
208
240
 
209
241
  ### Authorization
210
242
 
211
- [Basic](../README.md#Basic)
243
+ [basicAuth](../README.md#basicAuth)
212
244
 
213
245
  ### HTTP request headers
214
246
 
@@ -218,7 +250,7 @@ Name | Type | Description | Notes
218
250
 
219
251
  ## repair
220
252
 
221
- > AsyncOperationResponse repair(npm_repository_version_href, data)
253
+ > AsyncOperationResponse repair(npm_repository_version_href, repository_version)
222
254
 
223
255
 
224
256
 
@@ -231,17 +263,17 @@ Trigger an asynchronous task to repair a repositroy version.
231
263
  require 'pulp_npm_client'
232
264
  # setup authorization
233
265
  PulpNpmClient.configure do |config|
234
- # Configure HTTP basic authorization: Basic
266
+ # Configure HTTP basic authorization: basicAuth
235
267
  config.username = 'YOUR USERNAME'
236
268
  config.password = 'YOUR PASSWORD'
237
269
  end
238
270
 
239
271
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
240
- npm_repository_version_href = 'npm_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
241
- data = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
272
+ npm_repository_version_href = 'npm_repository_version_href_example' # String |
273
+ repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
242
274
 
243
275
  begin
244
- result = api_instance.repair(npm_repository_version_href, data)
276
+ result = api_instance.repair(npm_repository_version_href, repository_version)
245
277
  p result
246
278
  rescue PulpNpmClient::ApiError => e
247
279
  puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
@@ -253,8 +285,8 @@ end
253
285
 
254
286
  Name | Type | Description | Notes
255
287
  ------------- | ------------- | ------------- | -------------
256
- **npm_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/ |
257
- **data** | [**RepositoryVersion**](RepositoryVersion.md)| |
288
+ **npm_repository_version_href** | **String**| |
289
+ **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
258
290
 
259
291
  ### Return type
260
292
 
@@ -262,10 +294,10 @@ Name | Type | Description | Notes
262
294
 
263
295
  ### Authorization
264
296
 
265
- [Basic](../README.md#Basic)
297
+ [basicAuth](../README.md#basicAuth)
266
298
 
267
299
  ### HTTP request headers
268
300
 
269
- - **Content-Type**: application/json
301
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
270
302
  - **Accept**: application/json
271
303
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
8
- **remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
7
+ **add_content_units** | **Array<Object>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
8
+ **remove_content_units** | **Array<Object>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
9
9
  **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
10
10
 
11
11
  ## Code Sample
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **remote** | **String** | A URI of the repository to be synchronized. |
7
+ **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
8
  **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
9
9
 
10
10
  ## Code Sample
@@ -4,22 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **String** | | [optional] [readonly]
8
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
- **number** | **Integer** | | [optional] [readonly]
10
7
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
- **content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
12
8
 
13
9
  ## Code Sample
14
10
 
15
11
  ```ruby
16
12
  require 'PulpNpmClient'
17
13
 
18
- instance = PulpNpmClient::RepositoryVersion.new(pulp_href: null,
19
- pulp_created: null,
20
- number: null,
21
- base_version: null,
22
- content_summary: null)
14
+ instance = PulpNpmClient::RepositoryVersion.new(base_version: null)
23
15
  ```
24
16
 
25
17
 
@@ -0,0 +1,25 @@
1
+ # PulpNpmClient::RepositoryVersionResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **number** | **Integer** | | [optional] [readonly]
10
+ **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
+ **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpNpmClient'
17
+
18
+ instance = PulpNpmClient::RepositoryVersionResponse.new(pulp_href: null,
19
+ pulp_created: null,
20
+ number: null,
21
+ base_version: null,
22
+ content_summary: null)
23
+ ```
24
+
25
+
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -19,18 +19,28 @@ require 'pulp_npm_client/configuration'
19
19
  # Models
20
20
  require 'pulp_npm_client/models/async_operation_response'
21
21
  require 'pulp_npm_client/models/content_summary'
22
+ require 'pulp_npm_client/models/content_summary_response'
22
23
  require 'pulp_npm_client/models/inline_response200'
23
24
  require 'pulp_npm_client/models/inline_response2001'
24
25
  require 'pulp_npm_client/models/inline_response2002'
25
26
  require 'pulp_npm_client/models/inline_response2003'
26
27
  require 'pulp_npm_client/models/inline_response2004'
27
28
  require 'pulp_npm_client/models/npm_npm_distribution'
29
+ require 'pulp_npm_client/models/npm_npm_distribution_response'
28
30
  require 'pulp_npm_client/models/npm_npm_remote'
31
+ require 'pulp_npm_client/models/npm_npm_remote_response'
29
32
  require 'pulp_npm_client/models/npm_npm_repository'
33
+ require 'pulp_npm_client/models/npm_npm_repository_response'
30
34
  require 'pulp_npm_client/models/npm_package'
35
+ require 'pulp_npm_client/models/npm_package_response'
36
+ require 'pulp_npm_client/models/patchednpm_npm_distribution'
37
+ require 'pulp_npm_client/models/patchednpm_npm_remote'
38
+ require 'pulp_npm_client/models/patchednpm_npm_repository'
39
+ require 'pulp_npm_client/models/policy_enum'
31
40
  require 'pulp_npm_client/models/repository_add_remove_content'
32
41
  require 'pulp_npm_client/models/repository_sync_url'
33
42
  require 'pulp_npm_client/models/repository_version'
43
+ require 'pulp_npm_client/models/repository_version_response'
34
44
 
35
45
  # APIs
36
46
  require 'pulp_npm_client/api/content_packages_api'
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -20,7 +20,7 @@ module PulpNpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a package
23
- # \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
23
+ # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
24
24
  # @param relative_path [String]
25
25
  # @param name [String]
26
26
  # @param version [String]
@@ -28,14 +28,14 @@ module PulpNpmClient
28
28
  # @option opts [String] :artifact Artifact file representing the physical content
29
29
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
30
30
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
31
- # @return [NpmPackage]
31
+ # @return [NpmPackageResponse]
32
32
  def create(relative_path, name, version, opts = {})
33
33
  data, _status_code, _headers = create_with_http_info(relative_path, name, version, opts)
34
34
  data
35
35
  end
36
36
 
37
37
  # Create a package
38
- # \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
38
+ # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
39
39
  # @param relative_path [String]
40
40
  # @param name [String]
41
41
  # @param version [String]
@@ -43,7 +43,7 @@ module PulpNpmClient
43
43
  # @option opts [String] :artifact Artifact file representing the physical content
44
44
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
45
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
46
- # @return [Array<(NpmPackage, Integer, Hash)>] NpmPackage data, response status code and response headers
46
+ # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
47
47
  def create_with_http_info(relative_path, name, version, opts = {})
48
48
  if @api_client.config.debugging
49
49
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
@@ -52,26 +52,14 @@ module PulpNpmClient
52
52
  if @api_client.config.client_side_validation && relative_path.nil?
53
53
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentPackagesApi.create"
54
54
  end
55
- if @api_client.config.client_side_validation && relative_path.to_s.length < 1
56
- fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
57
- end
58
-
59
55
  # verify the required parameter 'name' is set
60
56
  if @api_client.config.client_side_validation && name.nil?
61
57
  fail ArgumentError, "Missing the required parameter 'name' when calling ContentPackagesApi.create"
62
58
  end
63
- if @api_client.config.client_side_validation && name.to_s.length < 1
64
- fail ArgumentError, 'invalid value for "name" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
65
- end
66
-
67
59
  # verify the required parameter 'version' is set
68
60
  if @api_client.config.client_side_validation && version.nil?
69
61
  fail ArgumentError, "Missing the required parameter 'version' when calling ContentPackagesApi.create"
70
62
  end
71
- if @api_client.config.client_side_validation && version.to_s.length < 1
72
- fail ArgumentError, 'invalid value for "version" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
73
- end
74
-
75
63
  # resource path
76
64
  local_var_path = '/pulp/api/v3/content/npm/packages/'
77
65
 
@@ -98,10 +86,10 @@ module PulpNpmClient
98
86
  post_body = opts[:body]
99
87
 
100
88
  # return_type
101
- return_type = opts[:return_type] || 'NpmPackage'
89
+ return_type = opts[:return_type] || 'NpmPackageResponse'
102
90
 
103
91
  # auth_names
104
- auth_names = opts[:auth_names] || ['Basic']
92
+ auth_names = opts[:auth_names] || ['basicAuth']
105
93
 
106
94
  new_options = opts.merge(
107
95
  :header_params => header_params,
@@ -120,16 +108,16 @@ module PulpNpmClient
120
108
  end
121
109
 
122
110
  # List packages
123
- # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
111
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
124
112
  # @param [Hash] opts the optional parameters
125
- # @option opts [String] :ordering Which field to use when ordering the results.
126
- # @option opts [String] :name Filter results where name matches value
127
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
128
- # @option opts [String] :repository_version Repository Version referenced by HREF
129
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
130
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
131
113
  # @option opts [Integer] :limit Number of results to return per page.
114
+ # @option opts [String] :name name
115
+ # @option opts [String] :name__in name__in
132
116
  # @option opts [Integer] :offset The initial index from which to return the results.
117
+ # @option opts [String] :ordering Which field to use when ordering the results.
118
+ # @option opts [String] :repository_version repository_version
119
+ # @option opts [String] :repository_version_added repository_version_added
120
+ # @option opts [String] :repository_version_removed repository_version_removed
133
121
  # @option opts [String] :fields A list of fields to include in the response.
134
122
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
135
123
  # @return [InlineResponse200]
@@ -139,16 +127,16 @@ module PulpNpmClient
139
127
  end
140
128
 
141
129
  # List packages
142
- # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
130
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
143
131
  # @param [Hash] opts the optional parameters
144
- # @option opts [String] :ordering Which field to use when ordering the results.
145
- # @option opts [String] :name Filter results where name matches value
146
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
147
- # @option opts [String] :repository_version Repository Version referenced by HREF
148
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
149
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
150
132
  # @option opts [Integer] :limit Number of results to return per page.
133
+ # @option opts [String] :name name
134
+ # @option opts [String] :name__in name__in
151
135
  # @option opts [Integer] :offset The initial index from which to return the results.
136
+ # @option opts [String] :ordering Which field to use when ordering the results.
137
+ # @option opts [String] :repository_version repository_version
138
+ # @option opts [String] :repository_version_added repository_version_added
139
+ # @option opts [String] :repository_version_removed repository_version_removed
152
140
  # @option opts [String] :fields A list of fields to include in the response.
153
141
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
154
142
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
@@ -161,14 +149,14 @@ module PulpNpmClient
161
149
 
162
150
  # query parameters
163
151
  query_params = opts[:query_params] || {}
164
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
152
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
165
153
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
166
154
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
155
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
156
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
167
157
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
168
158
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
169
159
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
170
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
171
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
172
160
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
173
161
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
174
162
 
@@ -187,7 +175,7 @@ module PulpNpmClient
187
175
  return_type = opts[:return_type] || 'InlineResponse200'
188
176
 
189
177
  # auth_names
190
- auth_names = opts[:auth_names] || ['Basic']
178
+ auth_names = opts[:auth_names] || ['basicAuth']
191
179
 
192
180
  new_options = opts.merge(
193
181
  :header_params => header_params,
@@ -206,24 +194,24 @@ module PulpNpmClient
206
194
  end
207
195
 
208
196
  # Inspect a package
209
- # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
210
- # @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/npm/packages/1/
197
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
198
+ # @param package_href [String]
211
199
  # @param [Hash] opts the optional parameters
212
200
  # @option opts [String] :fields A list of fields to include in the response.
213
201
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
214
- # @return [NpmPackage]
202
+ # @return [NpmPackageResponse]
215
203
  def read(package_href, opts = {})
216
204
  data, _status_code, _headers = read_with_http_info(package_href, opts)
217
205
  data
218
206
  end
219
207
 
220
208
  # Inspect a package
221
- # Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
222
- # @param package_href [String] URI of Package. e.g.: /pulp/api/v3/content/npm/packages/1/
209
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
210
+ # @param package_href [String]
223
211
  # @param [Hash] opts the optional parameters
224
212
  # @option opts [String] :fields A list of fields to include in the response.
225
213
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
226
- # @return [Array<(NpmPackage, Integer, Hash)>] NpmPackage data, response status code and response headers
214
+ # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
227
215
  def read_with_http_info(package_href, opts = {})
228
216
  if @api_client.config.debugging
229
217
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
@@ -252,10 +240,10 @@ module PulpNpmClient
252
240
  post_body = opts[:body]
253
241
 
254
242
  # return_type
255
- return_type = opts[:return_type] || 'NpmPackage'
243
+ return_type = opts[:return_type] || 'NpmPackageResponse'
256
244
 
257
245
  # auth_names
258
- auth_names = opts[:auth_names] || ['Basic']
246
+ auth_names = opts[:auth_names] || ['basicAuth']
259
247
 
260
248
  new_options = opts.merge(
261
249
  :header_params => header_params,