pulp_maven_client 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -31
  3. data/docs/ContentArtifactApi.md +37 -35
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsMavenApi.md +63 -61
  7. data/docs/MavenMavenArtifact.md +3 -13
  8. data/docs/MavenMavenArtifactResponse.md +29 -0
  9. data/docs/MavenMavenDistribution.md +1 -7
  10. data/docs/MavenMavenDistributionResponse.md +29 -0
  11. data/docs/MavenMavenRemote.md +18 -12
  12. data/docs/MavenMavenRemoteResponse.md +51 -0
  13. data/docs/MavenMavenRepository.md +4 -10
  14. data/docs/MavenMavenRepositoryResponse.md +29 -0
  15. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  16. data/docs/PaginatedmavenMavenArtifactResponseList.md +23 -0
  17. data/docs/PaginatedmavenMavenDistributionResponseList.md +23 -0
  18. data/docs/PaginatedmavenMavenRemoteResponseList.md +23 -0
  19. data/docs/PaginatedmavenMavenRepositoryResponseList.md +23 -0
  20. data/docs/PatchedmavenMavenDistribution.md +23 -0
  21. data/docs/PatchedmavenMavenRemote.md +45 -0
  22. data/docs/PatchedmavenMavenRepository.md +21 -0
  23. data/docs/PolicyEnum.md +16 -0
  24. data/docs/RemotesMavenApi.md +68 -66
  25. data/docs/RepositoriesMavenApi.md +60 -58
  26. data/docs/RepositoriesMavenVersionsApi.md +110 -53
  27. data/docs/RepositoryVersion.md +1 -9
  28. data/docs/RepositoryVersionResponse.md +25 -0
  29. data/lib/pulp_maven_client/api/content_artifact_api.rb +55 -52
  30. data/lib/pulp_maven_client/api/distributions_maven_api.rb +94 -91
  31. data/lib/pulp_maven_client/api/remotes_maven_api.rb +104 -101
  32. data/lib/pulp_maven_client/api/repositories_maven_api.rb +97 -94
  33. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +149 -78
  34. data/lib/pulp_maven_client/api_client.rb +3 -3
  35. data/lib/pulp_maven_client/api_error.rb +3 -3
  36. data/lib/pulp_maven_client/configuration.rb +6 -6
  37. data/lib/pulp_maven_client/models/async_operation_response.rb +4 -3
  38. data/lib/pulp_maven_client/models/content_summary.rb +10 -16
  39. data/lib/pulp_maven_client/models/content_summary_response.rb +240 -0
  40. data/lib/pulp_maven_client/models/maven_maven_artifact.rb +15 -118
  41. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +272 -0
  42. data/lib/pulp_maven_client/models/maven_maven_distribution.rb +5 -86
  43. data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +279 -0
  44. data/lib/pulp_maven_client/models/maven_maven_remote.rb +111 -147
  45. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +472 -0
  46. data/lib/pulp_maven_client/models/maven_maven_repository.rb +19 -79
  47. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +271 -0
  48. data/lib/pulp_maven_client/models/{inline_response200.rb → paginated_repository_version_response_list.rb} +7 -17
  49. data/lib/pulp_maven_client/models/{inline_response2002.rb → paginatedmaven_maven_artifact_response_list.rb} +7 -17
  50. data/lib/pulp_maven_client/models/{inline_response2004.rb → paginatedmaven_maven_distribution_response_list.rb} +7 -17
  51. data/lib/pulp_maven_client/models/{inline_response2003.rb → paginatedmaven_maven_remote_response_list.rb} +7 -17
  52. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +237 -0
  53. data/lib/pulp_maven_client/models/{inline_response2001.rb → patchedmaven_maven_distribution.rb} +38 -45
  54. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +433 -0
  55. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +229 -0
  56. data/lib/pulp_maven_client/models/policy_enum.rb +36 -0
  57. data/lib/pulp_maven_client/models/repository_version.rb +8 -44
  58. data/lib/pulp_maven_client/models/repository_version_response.rb +246 -0
  59. data/lib/pulp_maven_client/version.rb +4 -4
  60. data/lib/pulp_maven_client.rb +18 -8
  61. data/pulp_maven_client.gemspec +5 -5
  62. data/spec/api/content_artifact_api_spec.rb +16 -15
  63. data/spec/api/distributions_maven_api_spec.rb +20 -19
  64. data/spec/api/remotes_maven_api_spec.rb +23 -22
  65. data/spec/api/repositories_maven_api_spec.rb +21 -20
  66. data/spec/api/repositories_maven_versions_api_spec.rb +36 -23
  67. data/spec/api_client_spec.rb +3 -3
  68. data/spec/configuration_spec.rb +6 -6
  69. data/spec/models/async_operation_response_spec.rb +3 -3
  70. data/spec/models/content_summary_response_spec.rb +53 -0
  71. data/spec/models/content_summary_spec.rb +3 -3
  72. data/spec/models/maven_maven_artifact_response_spec.rb +77 -0
  73. data/spec/models/maven_maven_artifact_spec.rb +4 -34
  74. data/spec/models/maven_maven_distribution_response_spec.rb +77 -0
  75. data/spec/models/maven_maven_distribution_spec.rb +3 -21
  76. data/spec/models/maven_maven_remote_response_spec.rb +143 -0
  77. data/spec/models/maven_maven_remote_spec.rb +33 -19
  78. data/spec/models/maven_maven_repository_response_spec.rb +77 -0
  79. data/spec/models/maven_maven_repository_spec.rb +6 -24
  80. data/spec/models/{inline_response2002_spec.rb → paginated_repository_version_response_list_spec.rb} +9 -9
  81. data/spec/models/{inline_response2003_spec.rb → paginatedmaven_maven_artifact_response_list_spec.rb} +9 -9
  82. data/spec/models/paginatedmaven_maven_distribution_response_list_spec.rb +59 -0
  83. data/spec/models/{inline_response2001_spec.rb → paginatedmaven_maven_remote_response_list_spec.rb} +9 -9
  84. data/spec/models/{inline_response2004_spec.rb → paginatedmaven_maven_repository_response_list_spec.rb} +9 -9
  85. data/spec/models/patchedmaven_maven_distribution_spec.rb +59 -0
  86. data/spec/models/patchedmaven_maven_remote_spec.rb +125 -0
  87. data/spec/models/{inline_response200_spec.rb → patchedmaven_maven_repository_spec.rb} +12 -18
  88. data/spec/models/policy_enum_spec.rb +35 -0
  89. data/spec/models/repository_version_response_spec.rb +65 -0
  90. data/spec/models/repository_version_spec.rb +3 -27
  91. data/spec/spec_helper.rb +3 -3
  92. metadata +70 -30
  93. data/docs/InlineResponse200.md +0 -23
  94. data/docs/InlineResponse2001.md +0 -23
  95. data/docs/InlineResponse2002.md +0 -23
  96. data/docs/InlineResponse2003.md +0 -23
  97. data/docs/InlineResponse2004.md +0 -23
@@ -0,0 +1,25 @@
1
+ # PulpMavenClient::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 'PulpMavenClient'
17
+
18
+ instance = PulpMavenClient::RepositoryVersionResponse.new(pulp_href: null,
19
+ pulp_created: null,
20
+ number: null,
21
+ base_version: null,
22
+ content_summary: null)
23
+ ```
24
+
25
+
@@ -1,12 +1,12 @@
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
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -21,26 +21,26 @@ module PulpMavenClient
21
21
  end
22
22
  # Create a maven artifact
23
23
  # A ViewSet for MavenArtifact.
24
- # @param data [MavenMavenArtifact]
24
+ # @param maven_maven_artifact [MavenMavenArtifact]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [MavenMavenArtifact]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [MavenMavenArtifactResponse]
27
+ def create(maven_maven_artifact, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(maven_maven_artifact, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a maven artifact
33
33
  # A ViewSet for MavenArtifact.
34
- # @param data [MavenMavenArtifact]
34
+ # @param maven_maven_artifact [MavenMavenArtifact]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(MavenMavenArtifact, Integer, Hash)>] MavenMavenArtifact data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
37
+ def create_with_http_info(maven_maven_artifact, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentArtifactApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentArtifactApi.create"
41
+ # verify the required parameter 'maven_maven_artifact' is set
42
+ if @api_client.config.client_side_validation && maven_maven_artifact.nil?
43
+ fail ArgumentError, "Missing the required parameter 'maven_maven_artifact' when calling ContentArtifactApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/content/maven/artifact/'
@@ -53,19 +53,19 @@ module PulpMavenClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(maven_maven_artifact)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'MavenMavenArtifact'
65
+ return_type = opts[:return_type] || 'MavenMavenArtifactResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -86,18 +86,19 @@ module PulpMavenClient
86
86
  # List maven artifacts
87
87
  # A ViewSet for MavenArtifact.
88
88
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :group_id Filter results where group_id matches value
90
- # @option opts [String] :artifact_id Filter results where artifact_id matches value
91
- # @option opts [String] :version Filter results where version matches value
92
- # @option opts [String] :filename Filter results where filename matches value
93
- # @option opts [String] :repository_version Repository Version referenced by HREF
94
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
95
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
89
+ # @option opts [String] :artifact_id artifact_id
90
+ # @option opts [String] :filename filename
91
+ # @option opts [String] :group_id group_id
96
92
  # @option opts [Integer] :limit Number of results to return per page.
97
93
  # @option opts [Integer] :offset The initial index from which to return the results.
94
+ # @option opts [String] :ordering Which field to use when ordering the results.
95
+ # @option opts [String] :repository_version repository_version
96
+ # @option opts [String] :repository_version_added repository_version_added
97
+ # @option opts [String] :repository_version_removed repository_version_removed
98
+ # @option opts [String] :version version
98
99
  # @option opts [String] :fields A list of fields to include in the response.
99
100
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
100
- # @return [InlineResponse200]
101
+ # @return [PaginatedmavenMavenArtifactResponseList]
101
102
  def list(opts = {})
102
103
  data, _status_code, _headers = list_with_http_info(opts)
103
104
  data
@@ -106,18 +107,19 @@ module PulpMavenClient
106
107
  # List maven artifacts
107
108
  # A ViewSet for MavenArtifact.
108
109
  # @param [Hash] opts the optional parameters
109
- # @option opts [String] :group_id Filter results where group_id matches value
110
- # @option opts [String] :artifact_id Filter results where artifact_id matches value
111
- # @option opts [String] :version Filter results where version matches value
112
- # @option opts [String] :filename Filter results where filename matches value
113
- # @option opts [String] :repository_version Repository Version referenced by HREF
114
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
115
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
110
+ # @option opts [String] :artifact_id artifact_id
111
+ # @option opts [String] :filename filename
112
+ # @option opts [String] :group_id group_id
116
113
  # @option opts [Integer] :limit Number of results to return per page.
117
114
  # @option opts [Integer] :offset The initial index from which to return the results.
115
+ # @option opts [String] :ordering Which field to use when ordering the results.
116
+ # @option opts [String] :repository_version repository_version
117
+ # @option opts [String] :repository_version_added repository_version_added
118
+ # @option opts [String] :repository_version_removed repository_version_removed
119
+ # @option opts [String] :version version
118
120
  # @option opts [String] :fields A list of fields to include in the response.
119
121
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
- # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
122
+ # @return [Array<(PaginatedmavenMavenArtifactResponseList, Integer, Hash)>] PaginatedmavenMavenArtifactResponseList data, response status code and response headers
121
123
  def list_with_http_info(opts = {})
122
124
  if @api_client.config.debugging
123
125
  @api_client.config.logger.debug 'Calling API: ContentArtifactApi.list ...'
@@ -127,15 +129,16 @@ module PulpMavenClient
127
129
 
128
130
  # query parameters
129
131
  query_params = opts[:query_params] || {}
130
- query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
131
132
  query_params[:'artifact_id'] = opts[:'artifact_id'] if !opts[:'artifact_id'].nil?
132
- query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
133
133
  query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
134
+ query_params[:'group_id'] = opts[:'group_id'] if !opts[:'group_id'].nil?
135
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
136
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
137
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
134
138
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
135
139
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
136
140
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
137
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
138
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
141
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
139
142
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
140
143
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
141
144
 
@@ -151,10 +154,10 @@ module PulpMavenClient
151
154
  post_body = opts[:body]
152
155
 
153
156
  # return_type
154
- return_type = opts[:return_type] || 'InlineResponse200'
157
+ return_type = opts[:return_type] || 'PaginatedmavenMavenArtifactResponseList'
155
158
 
156
159
  # auth_names
157
- auth_names = opts[:auth_names] || ['Basic']
160
+ auth_names = opts[:auth_names] || ['basicAuth']
158
161
 
159
162
  new_options = opts.merge(
160
163
  :header_params => header_params,
@@ -174,33 +177,33 @@ module PulpMavenClient
174
177
 
175
178
  # Inspect a maven artifact
176
179
  # A ViewSet for MavenArtifact.
177
- # @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
180
+ # @param maven_maven_artifact_href [String]
178
181
  # @param [Hash] opts the optional parameters
179
182
  # @option opts [String] :fields A list of fields to include in the response.
180
183
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
181
- # @return [MavenMavenArtifact]
182
- def read(maven_artifact_href, opts = {})
183
- data, _status_code, _headers = read_with_http_info(maven_artifact_href, opts)
184
+ # @return [MavenMavenArtifactResponse]
185
+ def read(maven_maven_artifact_href, opts = {})
186
+ data, _status_code, _headers = read_with_http_info(maven_maven_artifact_href, opts)
184
187
  data
185
188
  end
186
189
 
187
190
  # Inspect a maven artifact
188
191
  # A ViewSet for MavenArtifact.
189
- # @param maven_artifact_href [String] URI of Maven Artifact. e.g.: /pulp/api/v3/content/maven/artifact/1/
192
+ # @param maven_maven_artifact_href [String]
190
193
  # @param [Hash] opts the optional parameters
191
194
  # @option opts [String] :fields A list of fields to include in the response.
192
195
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
193
- # @return [Array<(MavenMavenArtifact, Integer, Hash)>] MavenMavenArtifact data, response status code and response headers
194
- def read_with_http_info(maven_artifact_href, opts = {})
196
+ # @return [Array<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
197
+ def read_with_http_info(maven_maven_artifact_href, opts = {})
195
198
  if @api_client.config.debugging
196
199
  @api_client.config.logger.debug 'Calling API: ContentArtifactApi.read ...'
197
200
  end
198
- # verify the required parameter 'maven_artifact_href' is set
199
- if @api_client.config.client_side_validation && maven_artifact_href.nil?
200
- fail ArgumentError, "Missing the required parameter 'maven_artifact_href' when calling ContentArtifactApi.read"
201
+ # verify the required parameter 'maven_maven_artifact_href' is set
202
+ if @api_client.config.client_side_validation && maven_maven_artifact_href.nil?
203
+ fail ArgumentError, "Missing the required parameter 'maven_maven_artifact_href' when calling ContentArtifactApi.read"
201
204
  end
202
205
  # resource path
203
- local_var_path = '{maven_artifact_href}'.sub('{' + 'maven_artifact_href' + '}', CGI.escape(maven_artifact_href.to_s).gsub('%2F', '/'))
206
+ local_var_path = '{maven_maven_artifact_href}'.sub('{' + 'maven_maven_artifact_href' + '}', CGI.escape(maven_maven_artifact_href.to_s).gsub('%2F', '/'))
204
207
 
205
208
  # query parameters
206
209
  query_params = opts[:query_params] || {}
@@ -219,10 +222,10 @@ module PulpMavenClient
219
222
  post_body = opts[:body]
220
223
 
221
224
  # return_type
222
- return_type = opts[:return_type] || 'MavenMavenArtifact'
225
+ return_type = opts[:return_type] || 'MavenMavenArtifactResponse'
223
226
 
224
227
  # auth_names
225
- auth_names = opts[:auth_names] || ['Basic']
228
+ auth_names = opts[:auth_names] || ['basicAuth']
226
229
 
227
230
  new_options = opts.merge(
228
231
  :header_params => header_params,