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
@@ -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,20 +19,48 @@ module PulpNpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete a repository version
23
22
  # Trigger an asynchronous task to delete a repositroy version.
24
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
23
+ # @param npm_repository_version_href [String]
25
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :content content
26
+ # @option opts [String] :content__in content__in
27
+ # @option opts [String] :number number
28
+ # @option opts [String] :number__gt number__gt
29
+ # @option opts [String] :number__gte number__gte
30
+ # @option opts [String] :number__lt number__lt
31
+ # @option opts [String] :number__lte number__lte
32
+ # @option opts [String] :number__range number__range
33
+ # @option opts [String] :ordering Which field to use when ordering the results.
34
+ # @option opts [String] :pulp_created pulp_created
35
+ # @option opts [String] :pulp_created__gt pulp_created__gt
36
+ # @option opts [String] :pulp_created__gte pulp_created__gte
37
+ # @option opts [String] :pulp_created__lt pulp_created__lt
38
+ # @option opts [String] :pulp_created__lte pulp_created__lte
39
+ # @option opts [String] :pulp_created__range pulp_created__range
26
40
  # @return [AsyncOperationResponse]
27
41
  def delete(npm_repository_version_href, opts = {})
28
42
  data, _status_code, _headers = delete_with_http_info(npm_repository_version_href, opts)
29
43
  data
30
44
  end
31
45
 
32
- # Delete a repository version
33
46
  # Trigger an asynchronous task to delete a repositroy version.
34
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
47
+ # @param npm_repository_version_href [String]
35
48
  # @param [Hash] opts the optional parameters
49
+ # @option opts [String] :content content
50
+ # @option opts [String] :content__in content__in
51
+ # @option opts [String] :number number
52
+ # @option opts [String] :number__gt number__gt
53
+ # @option opts [String] :number__gte number__gte
54
+ # @option opts [String] :number__lt number__lt
55
+ # @option opts [String] :number__lte number__lte
56
+ # @option opts [String] :number__range number__range
57
+ # @option opts [String] :ordering Which field to use when ordering the results.
58
+ # @option opts [String] :pulp_created pulp_created
59
+ # @option opts [String] :pulp_created__gt pulp_created__gt
60
+ # @option opts [String] :pulp_created__gte pulp_created__gte
61
+ # @option opts [String] :pulp_created__lt pulp_created__lt
62
+ # @option opts [String] :pulp_created__lte pulp_created__lte
63
+ # @option opts [String] :pulp_created__range pulp_created__range
36
64
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
65
  def delete_with_http_info(npm_repository_version_href, opts = {})
38
66
  if @api_client.config.debugging
@@ -47,6 +75,21 @@ module PulpNpmClient
47
75
 
48
76
  # query parameters
49
77
  query_params = opts[:query_params] || {}
78
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
79
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
80
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
81
+ query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
82
+ query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
83
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
84
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
85
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
86
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
87
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
88
+ query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
89
+ query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
90
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
91
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
92
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
50
93
 
51
94
  # header parameters
52
95
  header_params = opts[:header_params] || {}
@@ -63,7 +106,7 @@ module PulpNpmClient
63
106
  return_type = opts[:return_type] || 'AsyncOperationResponse'
64
107
 
65
108
  # auth_names
66
- auth_names = opts[:auth_names] || ['Basic']
109
+ auth_names = opts[:auth_names] || ['basicAuth']
67
110
 
68
111
  new_options = opts.merge(
69
112
  :header_params => header_params,
@@ -81,89 +124,87 @@ module PulpNpmClient
81
124
  return data, status_code, headers
82
125
  end
83
126
 
84
- # List repository versions
85
127
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
86
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
128
+ # @param npm_repository_version_href [String]
87
129
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :ordering Which field to use when ordering the results.
89
- # @option opts [Float] :number
90
- # @option opts [Float] :number__lt Filter results where number is less than value
91
- # @option opts [Float] :number__lte Filter results where number is less than or equal to value
92
- # @option opts [Float] :number__gt Filter results where number is greater than value
93
- # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
94
- # @option opts [Float] :number__range Filter results where number is between two comma separated values
95
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
96
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
97
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
98
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
99
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
100
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
101
- # @option opts [String] :content Content Unit referenced by HREF
102
- # @option opts [String] :content__in Content Unit referenced by HREF
130
+ # @option opts [String] :content content
131
+ # @option opts [String] :content__in content__in
103
132
  # @option opts [Integer] :limit Number of results to return per page.
133
+ # @option opts [String] :number number
134
+ # @option opts [String] :number__gt number__gt
135
+ # @option opts [String] :number__gte number__gte
136
+ # @option opts [String] :number__lt number__lt
137
+ # @option opts [String] :number__lte number__lte
138
+ # @option opts [String] :number__range number__range
104
139
  # @option opts [Integer] :offset The initial index from which to return the results.
140
+ # @option opts [String] :ordering Which field to use when ordering the results.
141
+ # @option opts [String] :pulp_created pulp_created
142
+ # @option opts [String] :pulp_created__gt pulp_created__gt
143
+ # @option opts [String] :pulp_created__gte pulp_created__gte
144
+ # @option opts [String] :pulp_created__lt pulp_created__lt
145
+ # @option opts [String] :pulp_created__lte pulp_created__lte
146
+ # @option opts [String] :pulp_created__range pulp_created__range
105
147
  # @option opts [String] :fields A list of fields to include in the response.
106
148
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
149
  # @return [InlineResponse2004]
108
- def list(npm_repository_href, opts = {})
109
- data, _status_code, _headers = list_with_http_info(npm_repository_href, opts)
150
+ def list(npm_repository_version_href, opts = {})
151
+ data, _status_code, _headers = list_with_http_info(npm_repository_version_href, opts)
110
152
  data
111
153
  end
112
154
 
113
- # List repository versions
114
155
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
115
- # @param npm_repository_href [String] URI of Npm Repository. e.g.: /pulp/api/v3/repositories/npm/npm/1/
156
+ # @param npm_repository_version_href [String]
116
157
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :ordering Which field to use when ordering the results.
118
- # @option opts [Float] :number
119
- # @option opts [Float] :number__lt Filter results where number is less than value
120
- # @option opts [Float] :number__lte Filter results where number is less than or equal to value
121
- # @option opts [Float] :number__gt Filter results where number is greater than value
122
- # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
123
- # @option opts [Float] :number__range Filter results where number is between two comma separated values
124
- # @option opts [String] :pulp_created__lt Filter results where pulp_created is less than value
125
- # @option opts [String] :pulp_created__lte Filter results where pulp_created is less than or equal to value
126
- # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
127
- # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
128
- # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
129
- # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
130
- # @option opts [String] :content Content Unit referenced by HREF
131
- # @option opts [String] :content__in Content Unit referenced by HREF
158
+ # @option opts [String] :content content
159
+ # @option opts [String] :content__in content__in
132
160
  # @option opts [Integer] :limit Number of results to return per page.
161
+ # @option opts [String] :number number
162
+ # @option opts [String] :number__gt number__gt
163
+ # @option opts [String] :number__gte number__gte
164
+ # @option opts [String] :number__lt number__lt
165
+ # @option opts [String] :number__lte number__lte
166
+ # @option opts [String] :number__range number__range
133
167
  # @option opts [Integer] :offset The initial index from which to return the results.
168
+ # @option opts [String] :ordering Which field to use when ordering the results.
169
+ # @option opts [String] :pulp_created pulp_created
170
+ # @option opts [String] :pulp_created__gt pulp_created__gt
171
+ # @option opts [String] :pulp_created__gte pulp_created__gte
172
+ # @option opts [String] :pulp_created__lt pulp_created__lt
173
+ # @option opts [String] :pulp_created__lte pulp_created__lte
174
+ # @option opts [String] :pulp_created__range pulp_created__range
134
175
  # @option opts [String] :fields A list of fields to include in the response.
135
176
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
177
  # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
137
- def list_with_http_info(npm_repository_href, opts = {})
178
+ def list_with_http_info(npm_repository_version_href, opts = {})
138
179
  if @api_client.config.debugging
139
180
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.list ...'
140
181
  end
141
- # verify the required parameter 'npm_repository_href' is set
142
- if @api_client.config.client_side_validation && npm_repository_href.nil?
143
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
182
+ # verify the required parameter 'npm_repository_version_href' is set
183
+ if @api_client.config.client_side_validation && npm_repository_version_href.nil?
184
+ fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.list"
144
185
  end
145
186
  # resource path
146
- local_var_path = '{npm_repository_href}versions/'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
187
+ local_var_path = '{npm_repository_version_href}versions/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
147
188
 
148
189
  # query parameters
149
190
  query_params = opts[:query_params] || {}
150
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
191
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
192
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
193
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
151
194
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
152
- query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
153
- query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
154
195
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
155
196
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
197
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
198
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
156
199
  query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
157
- query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
158
- query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
200
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
201
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
202
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
159
203
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
160
204
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
205
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
206
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
161
207
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
162
- query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
163
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
164
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
165
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
166
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
167
208
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
209
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
210
 
@@ -182,7 +223,7 @@ module PulpNpmClient
182
223
  return_type = opts[:return_type] || 'InlineResponse2004'
183
224
 
184
225
  # auth_names
185
- auth_names = opts[:auth_names] || ['Basic']
226
+ auth_names = opts[:auth_names] || ['basicAuth']
186
227
 
187
228
  new_options = opts.merge(
188
229
  :header_params => header_params,
@@ -200,25 +241,23 @@ module PulpNpmClient
200
241
  return data, status_code, headers
201
242
  end
202
243
 
203
- # Inspect a repository version
204
244
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
205
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
245
+ # @param npm_repository_version_href [String]
206
246
  # @param [Hash] opts the optional parameters
207
247
  # @option opts [String] :fields A list of fields to include in the response.
208
248
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
209
- # @return [RepositoryVersion]
249
+ # @return [RepositoryVersionResponse]
210
250
  def read(npm_repository_version_href, opts = {})
211
251
  data, _status_code, _headers = read_with_http_info(npm_repository_version_href, opts)
212
252
  data
213
253
  end
214
254
 
215
- # Inspect a repository version
216
255
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
217
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
256
+ # @param npm_repository_version_href [String]
218
257
  # @param [Hash] opts the optional parameters
219
258
  # @option opts [String] :fields A list of fields to include in the response.
220
259
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
221
- # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
260
+ # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
222
261
  def read_with_http_info(npm_repository_version_href, opts = {})
223
262
  if @api_client.config.debugging
224
263
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.read ...'
@@ -247,10 +286,10 @@ module PulpNpmClient
247
286
  post_body = opts[:body]
248
287
 
249
288
  # return_type
250
- return_type = opts[:return_type] || 'RepositoryVersion'
289
+ return_type = opts[:return_type] || 'RepositoryVersionResponse'
251
290
 
252
291
  # auth_names
253
- auth_names = opts[:auth_names] || ['Basic']
292
+ auth_names = opts[:auth_names] || ['basicAuth']
254
293
 
255
294
  new_options = opts.merge(
256
295
  :header_params => header_params,
@@ -269,21 +308,21 @@ module PulpNpmClient
269
308
  end
270
309
 
271
310
  # Trigger an asynchronous task to repair a repositroy version.
272
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
273
- # @param data [RepositoryVersion]
311
+ # @param npm_repository_version_href [String]
312
+ # @param repository_version [RepositoryVersion]
274
313
  # @param [Hash] opts the optional parameters
275
314
  # @return [AsyncOperationResponse]
276
- def repair(npm_repository_version_href, data, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(npm_repository_version_href, data, opts)
315
+ def repair(npm_repository_version_href, repository_version, opts = {})
316
+ data, _status_code, _headers = repair_with_http_info(npm_repository_version_href, repository_version, opts)
278
317
  data
279
318
  end
280
319
 
281
320
  # Trigger an asynchronous task to repair a repositroy version.
282
- # @param npm_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/npm/npm/1/versions/1/
283
- # @param data [RepositoryVersion]
321
+ # @param npm_repository_version_href [String]
322
+ # @param repository_version [RepositoryVersion]
284
323
  # @param [Hash] opts the optional parameters
285
324
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(npm_repository_version_href, data, opts = {})
325
+ def repair_with_http_info(npm_repository_version_href, repository_version, opts = {})
287
326
  if @api_client.config.debugging
288
327
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.repair ...'
289
328
  end
@@ -291,9 +330,9 @@ module PulpNpmClient
291
330
  if @api_client.config.client_side_validation && npm_repository_version_href.nil?
292
331
  fail ArgumentError, "Missing the required parameter 'npm_repository_version_href' when calling RepositoriesNpmVersionsApi.repair"
293
332
  end
294
- # verify the required parameter 'data' is set
295
- if @api_client.config.client_side_validation && data.nil?
296
- fail ArgumentError, "Missing the required parameter 'data' when calling RepositoriesNpmVersionsApi.repair"
333
+ # verify the required parameter 'repository_version' is set
334
+ if @api_client.config.client_side_validation && repository_version.nil?
335
+ fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesNpmVersionsApi.repair"
297
336
  end
298
337
  # resource path
299
338
  local_var_path = '{npm_repository_version_href}repair/'.sub('{' + 'npm_repository_version_href' + '}', CGI.escape(npm_repository_version_href.to_s).gsub('%2F', '/'))
@@ -306,19 +345,19 @@ module PulpNpmClient
306
345
  # HTTP header 'Accept' (if needed)
307
346
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
347
  # HTTP header 'Content-Type'
309
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
348
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
310
349
 
311
350
  # form parameters
312
351
  form_params = opts[:form_params] || {}
313
352
 
314
353
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(data)
354
+ post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
316
355
 
317
356
  # return_type
318
357
  return_type = opts[:return_type] || 'AsyncOperationResponse'
319
358
 
320
359
  # auth_names
321
- auth_names = opts[:auth_names] || ['Basic']
360
+ auth_names = opts[:auth_names] || ['basicAuth']
322
361
 
323
362
  new_options = opts.merge(
324
363
  :header_params => header_params,
@@ -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
 
@@ -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
 
@@ -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
 
@@ -188,7 +188,7 @@ module PulpNpmClient
188
188
  # Returns Auth Settings hash for api client.
189
189
  def auth_settings
190
190
  {
191
- 'Basic' =>
191
+ 'basicAuth' =>
192
192
  {
193
193
  type: 'basic',
194
194
  in: 'header',
@@ -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
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpNpmClient
16
+ # Serializer for asynchronous operations.
16
17
  class AsyncOperationResponse
17
18
  # The href of the task.
18
19
  attr_accessor :task
@@ -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
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpNpmClient
16
- # Various count summaries of the content in the version and the HREF to view them.
16
+ # Serializer for the RepositoryVersion content summary
17
17
  class ContentSummary
18
18
  attr_accessor :added
19
19
 
@@ -33,9 +33,9 @@ module PulpNpmClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Hash<String, Hash<String, String>>',
37
- :'removed' => :'Hash<String, Hash<String, String>>',
38
- :'present' => :'Hash<String, Hash<String, String>>'
36
+ :'added' => :'Object',
37
+ :'removed' => :'Object',
38
+ :'present' => :'Object'
39
39
  }
40
40
  end
41
41
 
@@ -61,21 +61,15 @@ module PulpNpmClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- if (value = attributes[:'added']).is_a?(Hash)
65
- self.added = value
66
- end
64
+ self.added = attributes[:'added']
67
65
  end
68
66
 
69
67
  if attributes.key?(:'removed')
70
- if (value = attributes[:'removed']).is_a?(Hash)
71
- self.removed = value
72
- end
68
+ self.removed = attributes[:'removed']
73
69
  end
74
70
 
75
71
  if attributes.key?(:'present')
76
- if (value = attributes[:'present']).is_a?(Hash)
77
- self.present = value
78
- end
72
+ self.present = attributes[:'present']
79
73
  end
80
74
  end
81
75