pulp_file_client 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -37
  3. data/docs/ContentFilesApi.md +24 -24
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +21 -0
  6. data/docs/DistributionsFileApi.md +108 -60
  7. data/docs/{Export.md → ExportResponse.md} +2 -2
  8. data/docs/ExportersFileExportsApi.md +34 -34
  9. data/docs/ExportersFilesystemApi.md +61 -61
  10. data/docs/FileFileContent.md +5 -17
  11. data/docs/FileFileContentResponse.md +35 -0
  12. data/docs/FileFileDistribution.md +1 -7
  13. data/docs/FileFileDistributionResponse.md +29 -0
  14. data/docs/FileFileFilesystemExporter.md +1 -5
  15. data/docs/FileFileFilesystemExporterResponse.md +23 -0
  16. data/docs/FileFilePublication.md +1 -7
  17. data/docs/FileFilePublicationResponse.md +27 -0
  18. data/docs/FileFileRemote.md +4 -10
  19. data/docs/FileFileRemoteResponse.md +43 -0
  20. data/docs/FileFileRepository.md +4 -10
  21. data/docs/FileFileRepositoryResponse.md +29 -0
  22. data/docs/InlineResponse200.md +3 -3
  23. data/docs/InlineResponse2001.md +3 -3
  24. data/docs/InlineResponse2002.md +3 -3
  25. data/docs/InlineResponse2003.md +3 -3
  26. data/docs/InlineResponse2004.md +3 -3
  27. data/docs/InlineResponse2005.md +3 -3
  28. data/docs/InlineResponse2006.md +3 -3
  29. data/docs/InlineResponse2007.md +3 -3
  30. data/docs/PatchedfileFileDistribution.md +23 -0
  31. data/docs/PatchedfileFileFilesystemExporter.md +19 -0
  32. data/docs/PatchedfileFileRemote.md +37 -0
  33. data/docs/PatchedfileFileRepository.md +21 -0
  34. data/docs/PolicyEnum.md +16 -0
  35. data/docs/PublicationsFileApi.md +40 -40
  36. data/docs/RemotesFileApi.md +125 -65
  37. data/docs/RepositoriesFileApi.md +97 -73
  38. data/docs/RepositoriesFileVersionsApi.md +94 -62
  39. data/docs/RepositoryAddRemoveContent.md +2 -2
  40. data/docs/RepositorySyncURL.md +1 -1
  41. data/docs/RepositoryVersion.md +1 -9
  42. data/docs/RepositoryVersionResponse.md +25 -0
  43. data/lib/pulp_file_client/api/content_files_api.rb +32 -36
  44. data/lib/pulp_file_client/api/distributions_file_api.rb +153 -90
  45. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +55 -55
  46. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +102 -102
  47. data/lib/pulp_file_client/api/publications_file_api.rb +59 -59
  48. data/lib/pulp_file_client/api/remotes_file_api.rb +181 -100
  49. data/lib/pulp_file_client/api/repositories_file_api.rb +145 -118
  50. data/lib/pulp_file_client/api/repositories_file_versions_api.rb +137 -92
  51. data/lib/pulp_file_client/api_client.rb +2 -2
  52. data/lib/pulp_file_client/api_error.rb +2 -2
  53. data/lib/pulp_file_client/configuration.rb +3 -3
  54. data/lib/pulp_file_client/models/async_operation_response.rb +3 -2
  55. data/lib/pulp_file_client/models/content_summary.rb +9 -15
  56. data/lib/pulp_file_client/models/content_summary_response.rb +240 -0
  57. data/lib/pulp_file_client/models/{export.rb → export_response.rb} +6 -5
  58. data/lib/pulp_file_client/models/file_file_content.rb +18 -185
  59. data/lib/pulp_file_client/models/file_file_content_response.rb +302 -0
  60. data/lib/pulp_file_client/models/file_file_distribution.rb +4 -85
  61. data/lib/pulp_file_client/models/file_file_distribution_response.rb +279 -0
  62. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +4 -60
  63. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +247 -0
  64. data/lib/pulp_file_client/models/file_file_publication.rb +4 -49
  65. data/lib/pulp_file_client/models/file_file_publication_response.rb +260 -0
  66. data/lib/pulp_file_client/models/file_file_remote.rb +7 -199
  67. data/lib/pulp_file_client/models/file_file_remote_response.rb +368 -0
  68. data/lib/pulp_file_client/models/file_file_repository.rb +18 -78
  69. data/lib/pulp_file_client/models/file_file_repository_response.rb +271 -0
  70. data/lib/pulp_file_client/models/inline_response200.rb +3 -13
  71. data/lib/pulp_file_client/models/inline_response2001.rb +3 -13
  72. data/lib/pulp_file_client/models/inline_response2002.rb +3 -13
  73. data/lib/pulp_file_client/models/inline_response2003.rb +3 -13
  74. data/lib/pulp_file_client/models/inline_response2004.rb +3 -13
  75. data/lib/pulp_file_client/models/inline_response2005.rb +3 -13
  76. data/lib/pulp_file_client/models/inline_response2006.rb +3 -13
  77. data/lib/pulp_file_client/models/inline_response2007.rb +3 -13
  78. data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +240 -0
  79. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +218 -0
  80. data/lib/pulp_file_client/models/patchedfile_file_remote.rb +329 -0
  81. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +229 -0
  82. data/lib/pulp_file_client/models/policy_enum.rb +37 -0
  83. data/lib/pulp_file_client/models/publication_export.rb +3 -2
  84. data/lib/pulp_file_client/models/repository_add_remove_content.rb +5 -4
  85. data/lib/pulp_file_client/models/repository_sync_url.rb +3 -8
  86. data/lib/pulp_file_client/models/repository_version.rb +7 -43
  87. data/lib/pulp_file_client/models/repository_version_response.rb +246 -0
  88. data/lib/pulp_file_client/version.rb +3 -3
  89. data/lib/pulp_file_client.rb +16 -3
  90. data/pulp_file_client.gemspec +4 -4
  91. data/spec/api/content_files_api_spec.rb +10 -10
  92. data/spec/api/distributions_file_api_spec.rb +39 -18
  93. data/spec/api/exporters_file_exports_api_spec.rb +9 -9
  94. data/spec/api/exporters_filesystem_api_spec.rb +23 -23
  95. data/spec/api/publications_file_api_spec.rb +14 -14
  96. data/spec/api/remotes_file_api_spec.rb +48 -21
  97. data/spec/api/repositories_file_api_spec.rb +28 -19
  98. data/spec/api/repositories_file_versions_api_spec.rb +38 -23
  99. data/spec/api_client_spec.rb +2 -2
  100. data/spec/configuration_spec.rb +2 -2
  101. data/spec/models/async_operation_response_spec.rb +2 -2
  102. data/spec/models/content_summary_response_spec.rb +53 -0
  103. data/spec/models/content_summary_spec.rb +2 -2
  104. data/spec/models/{export_spec.rb → export_response_spec.rb} +8 -8
  105. data/spec/models/file_file_content_response_spec.rb +95 -0
  106. data/spec/models/file_file_content_spec.rb +4 -40
  107. data/spec/models/file_file_distribution_response_spec.rb +77 -0
  108. data/spec/models/file_file_distribution_spec.rb +2 -20
  109. data/spec/models/file_file_filesystem_exporter_response_spec.rb +59 -0
  110. data/spec/models/file_file_filesystem_exporter_spec.rb +2 -14
  111. data/spec/models/file_file_publication_response_spec.rb +71 -0
  112. data/spec/models/file_file_publication_spec.rb +2 -20
  113. data/spec/models/file_file_remote_response_spec.rb +119 -0
  114. data/spec/models/file_file_remote_spec.rb +2 -24
  115. data/spec/models/file_file_repository_response_spec.rb +77 -0
  116. data/spec/models/file_file_repository_spec.rb +5 -23
  117. data/spec/models/inline_response2001_spec.rb +2 -2
  118. data/spec/models/inline_response2002_spec.rb +2 -2
  119. data/spec/models/inline_response2003_spec.rb +2 -2
  120. data/spec/models/inline_response2004_spec.rb +2 -2
  121. data/spec/models/inline_response2005_spec.rb +2 -2
  122. data/spec/models/inline_response2006_spec.rb +2 -2
  123. data/spec/models/inline_response2007_spec.rb +2 -2
  124. data/spec/models/inline_response200_spec.rb +2 -2
  125. data/spec/models/patchedfile_file_distribution_spec.rb +59 -0
  126. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +47 -0
  127. data/spec/models/patchedfile_file_remote_spec.rb +101 -0
  128. data/spec/models/patchedfile_file_repository_spec.rb +53 -0
  129. data/spec/models/policy_enum_spec.rb +35 -0
  130. data/spec/models/publication_export_spec.rb +2 -2
  131. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  132. data/spec/models/repository_sync_url_spec.rb +2 -2
  133. data/spec/models/repository_version_response_spec.rb +65 -0
  134. data/spec/models/repository_version_spec.rb +2 -26
  135. data/spec/spec_helper.rb +2 -2
  136. metadata +76 -24
@@ -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
 
@@ -21,32 +21,77 @@ module PulpFileClient
21
21
  end
22
22
  # Delete a repository version
23
23
  # Trigger an asynchronous task to delete a repositroy version.
24
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
24
+ # @param file_file_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :content content
27
+ # @option opts [String] :content__in content__in
28
+ # @option opts [String] :number number
29
+ # @option opts [String] :number__gt number__gt
30
+ # @option opts [String] :number__gte number__gte
31
+ # @option opts [String] :number__lt number__lt
32
+ # @option opts [String] :number__lte number__lte
33
+ # @option opts [String] :number__range number__range
34
+ # @option opts [String] :ordering Which field to use when ordering the results.
35
+ # @option opts [String] :pulp_created pulp_created
36
+ # @option opts [String] :pulp_created__gt pulp_created__gt
37
+ # @option opts [String] :pulp_created__gte pulp_created__gte
38
+ # @option opts [String] :pulp_created__lt pulp_created__lt
39
+ # @option opts [String] :pulp_created__lte pulp_created__lte
40
+ # @option opts [String] :pulp_created__range pulp_created__range
26
41
  # @return [AsyncOperationResponse]
27
- def delete(file_repository_version_href, opts = {})
28
- data, _status_code, _headers = delete_with_http_info(file_repository_version_href, opts)
42
+ def delete(file_file_repository_version_href, opts = {})
43
+ data, _status_code, _headers = delete_with_http_info(file_file_repository_version_href, opts)
29
44
  data
30
45
  end
31
46
 
32
47
  # Delete a repository version
33
48
  # Trigger an asynchronous task to delete a repositroy version.
34
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
49
+ # @param file_file_repository_version_href [String]
35
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :content content
52
+ # @option opts [String] :content__in content__in
53
+ # @option opts [String] :number number
54
+ # @option opts [String] :number__gt number__gt
55
+ # @option opts [String] :number__gte number__gte
56
+ # @option opts [String] :number__lt number__lt
57
+ # @option opts [String] :number__lte number__lte
58
+ # @option opts [String] :number__range number__range
59
+ # @option opts [String] :ordering Which field to use when ordering the results.
60
+ # @option opts [String] :pulp_created pulp_created
61
+ # @option opts [String] :pulp_created__gt pulp_created__gt
62
+ # @option opts [String] :pulp_created__gte pulp_created__gte
63
+ # @option opts [String] :pulp_created__lt pulp_created__lt
64
+ # @option opts [String] :pulp_created__lte pulp_created__lte
65
+ # @option opts [String] :pulp_created__range pulp_created__range
36
66
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
- def delete_with_http_info(file_repository_version_href, opts = {})
67
+ def delete_with_http_info(file_file_repository_version_href, opts = {})
38
68
  if @api_client.config.debugging
39
69
  @api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.delete ...'
40
70
  end
41
- # verify the required parameter 'file_repository_version_href' is set
42
- if @api_client.config.client_side_validation && file_repository_version_href.nil?
43
- fail ArgumentError, "Missing the required parameter 'file_repository_version_href' when calling RepositoriesFileVersionsApi.delete"
71
+ # verify the required parameter 'file_file_repository_version_href' is set
72
+ if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
73
+ fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.delete"
44
74
  end
45
75
  # resource path
46
- local_var_path = '{file_repository_version_href}'.sub('{' + 'file_repository_version_href' + '}', CGI.escape(file_repository_version_href.to_s).gsub('%2F', '/'))
76
+ local_var_path = '{file_file_repository_version_href}'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
47
77
 
48
78
  # query parameters
49
79
  query_params = opts[:query_params] || {}
80
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
81
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
82
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
83
+ query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
84
+ query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
85
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
86
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
87
+ query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
88
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
89
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
90
+ query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
91
+ query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
92
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
93
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
94
+ query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
50
95
 
51
96
  # header parameters
52
97
  header_params = opts[:header_params] || {}
@@ -63,7 +108,7 @@ module PulpFileClient
63
108
  return_type = opts[:return_type] || 'AsyncOperationResponse'
64
109
 
65
110
  # auth_names
66
- auth_names = opts[:auth_names] || ['Basic']
111
+ auth_names = opts[:auth_names] || ['basicAuth']
67
112
 
68
113
  new_options = opts.merge(
69
114
  :header_params => header_params,
@@ -83,87 +128,87 @@ module PulpFileClient
83
128
 
84
129
  # List repository versions
85
130
  # FileRepositoryVersion represents a single file repository version.
86
- # @param file_repository_href [String] URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
131
+ # @param file_file_repository_href [String]
87
132
  # @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
133
+ # @option opts [String] :content content
134
+ # @option opts [String] :content__in content__in
103
135
  # @option opts [Integer] :limit Number of results to return per page.
136
+ # @option opts [String] :number number
137
+ # @option opts [String] :number__gt number__gt
138
+ # @option opts [String] :number__gte number__gte
139
+ # @option opts [String] :number__lt number__lt
140
+ # @option opts [String] :number__lte number__lte
141
+ # @option opts [String] :number__range number__range
104
142
  # @option opts [Integer] :offset The initial index from which to return the results.
143
+ # @option opts [String] :ordering Which field to use when ordering the results.
144
+ # @option opts [String] :pulp_created pulp_created
145
+ # @option opts [String] :pulp_created__gt pulp_created__gt
146
+ # @option opts [String] :pulp_created__gte pulp_created__gte
147
+ # @option opts [String] :pulp_created__lt pulp_created__lt
148
+ # @option opts [String] :pulp_created__lte pulp_created__lte
149
+ # @option opts [String] :pulp_created__range pulp_created__range
105
150
  # @option opts [String] :fields A list of fields to include in the response.
106
151
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
152
  # @return [InlineResponse2007]
108
- def list(file_repository_href, opts = {})
109
- data, _status_code, _headers = list_with_http_info(file_repository_href, opts)
153
+ def list(file_file_repository_href, opts = {})
154
+ data, _status_code, _headers = list_with_http_info(file_file_repository_href, opts)
110
155
  data
111
156
  end
112
157
 
113
158
  # List repository versions
114
159
  # FileRepositoryVersion represents a single file repository version.
115
- # @param file_repository_href [String] URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
160
+ # @param file_file_repository_href [String]
116
161
  # @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
162
+ # @option opts [String] :content content
163
+ # @option opts [String] :content__in content__in
132
164
  # @option opts [Integer] :limit Number of results to return per page.
165
+ # @option opts [String] :number number
166
+ # @option opts [String] :number__gt number__gt
167
+ # @option opts [String] :number__gte number__gte
168
+ # @option opts [String] :number__lt number__lt
169
+ # @option opts [String] :number__lte number__lte
170
+ # @option opts [String] :number__range number__range
133
171
  # @option opts [Integer] :offset The initial index from which to return the results.
172
+ # @option opts [String] :ordering Which field to use when ordering the results.
173
+ # @option opts [String] :pulp_created pulp_created
174
+ # @option opts [String] :pulp_created__gt pulp_created__gt
175
+ # @option opts [String] :pulp_created__gte pulp_created__gte
176
+ # @option opts [String] :pulp_created__lt pulp_created__lt
177
+ # @option opts [String] :pulp_created__lte pulp_created__lte
178
+ # @option opts [String] :pulp_created__range pulp_created__range
134
179
  # @option opts [String] :fields A list of fields to include in the response.
135
180
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
181
  # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
137
- def list_with_http_info(file_repository_href, opts = {})
182
+ def list_with_http_info(file_file_repository_href, opts = {})
138
183
  if @api_client.config.debugging
139
184
  @api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.list ...'
140
185
  end
141
- # verify the required parameter 'file_repository_href' is set
142
- if @api_client.config.client_side_validation && file_repository_href.nil?
143
- fail ArgumentError, "Missing the required parameter 'file_repository_href' when calling RepositoriesFileVersionsApi.list"
186
+ # verify the required parameter 'file_file_repository_href' is set
187
+ if @api_client.config.client_side_validation && file_file_repository_href.nil?
188
+ fail ArgumentError, "Missing the required parameter 'file_file_repository_href' when calling RepositoriesFileVersionsApi.list"
144
189
  end
145
190
  # resource path
146
- local_var_path = '{file_repository_href}versions/'.sub('{' + 'file_repository_href' + '}', CGI.escape(file_repository_href.to_s).gsub('%2F', '/'))
191
+ local_var_path = '{file_file_repository_href}versions/'.sub('{' + 'file_file_repository_href' + '}', CGI.escape(file_file_repository_href.to_s).gsub('%2F', '/'))
147
192
 
148
193
  # query parameters
149
194
  query_params = opts[:query_params] || {}
150
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
195
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
196
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
197
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
151
198
  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
199
  query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
155
200
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
201
+ query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
202
+ query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
156
203
  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?
204
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
205
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
206
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
159
207
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
160
208
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
209
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
210
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
161
211
  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
212
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
213
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
214
 
@@ -182,7 +227,7 @@ module PulpFileClient
182
227
  return_type = opts[:return_type] || 'InlineResponse2007'
183
228
 
184
229
  # auth_names
185
- auth_names = opts[:auth_names] || ['Basic']
230
+ auth_names = opts[:auth_names] || ['basicAuth']
186
231
 
187
232
  new_options = opts.merge(
188
233
  :header_params => header_params,
@@ -202,33 +247,33 @@ module PulpFileClient
202
247
 
203
248
  # Inspect a repository version
204
249
  # FileRepositoryVersion represents a single file repository version.
205
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
250
+ # @param file_file_repository_version_href [String]
206
251
  # @param [Hash] opts the optional parameters
207
252
  # @option opts [String] :fields A list of fields to include in the response.
208
253
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
209
- # @return [RepositoryVersion]
210
- def read(file_repository_version_href, opts = {})
211
- data, _status_code, _headers = read_with_http_info(file_repository_version_href, opts)
254
+ # @return [RepositoryVersionResponse]
255
+ def read(file_file_repository_version_href, opts = {})
256
+ data, _status_code, _headers = read_with_http_info(file_file_repository_version_href, opts)
212
257
  data
213
258
  end
214
259
 
215
260
  # Inspect a repository version
216
261
  # FileRepositoryVersion represents a single file repository version.
217
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
262
+ # @param file_file_repository_version_href [String]
218
263
  # @param [Hash] opts the optional parameters
219
264
  # @option opts [String] :fields A list of fields to include in the response.
220
265
  # @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
222
- def read_with_http_info(file_repository_version_href, opts = {})
266
+ # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
267
+ def read_with_http_info(file_file_repository_version_href, opts = {})
223
268
  if @api_client.config.debugging
224
269
  @api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.read ...'
225
270
  end
226
- # verify the required parameter 'file_repository_version_href' is set
227
- if @api_client.config.client_side_validation && file_repository_version_href.nil?
228
- fail ArgumentError, "Missing the required parameter 'file_repository_version_href' when calling RepositoriesFileVersionsApi.read"
271
+ # verify the required parameter 'file_file_repository_version_href' is set
272
+ if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
273
+ fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.read"
229
274
  end
230
275
  # resource path
231
- local_var_path = '{file_repository_version_href}'.sub('{' + 'file_repository_version_href' + '}', CGI.escape(file_repository_version_href.to_s).gsub('%2F', '/'))
276
+ local_var_path = '{file_file_repository_version_href}'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
232
277
 
233
278
  # query parameters
234
279
  query_params = opts[:query_params] || {}
@@ -247,10 +292,10 @@ module PulpFileClient
247
292
  post_body = opts[:body]
248
293
 
249
294
  # return_type
250
- return_type = opts[:return_type] || 'RepositoryVersion'
295
+ return_type = opts[:return_type] || 'RepositoryVersionResponse'
251
296
 
252
297
  # auth_names
253
- auth_names = opts[:auth_names] || ['Basic']
298
+ auth_names = opts[:auth_names] || ['basicAuth']
254
299
 
255
300
  new_options = opts.merge(
256
301
  :header_params => header_params,
@@ -269,34 +314,34 @@ module PulpFileClient
269
314
  end
270
315
 
271
316
  # Trigger an asynchronous task to repair a repositroy version.
272
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
273
- # @param data [RepositoryVersion]
317
+ # @param file_file_repository_version_href [String]
318
+ # @param repository_version [RepositoryVersion]
274
319
  # @param [Hash] opts the optional parameters
275
320
  # @return [AsyncOperationResponse]
276
- def repair(file_repository_version_href, data, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(file_repository_version_href, data, opts)
321
+ def repair(file_file_repository_version_href, repository_version, opts = {})
322
+ data, _status_code, _headers = repair_with_http_info(file_file_repository_version_href, repository_version, opts)
278
323
  data
279
324
  end
280
325
 
281
326
  # Trigger an asynchronous task to repair a repositroy version.
282
- # @param file_repository_version_href [String] URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
283
- # @param data [RepositoryVersion]
327
+ # @param file_file_repository_version_href [String]
328
+ # @param repository_version [RepositoryVersion]
284
329
  # @param [Hash] opts the optional parameters
285
330
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(file_repository_version_href, data, opts = {})
331
+ def repair_with_http_info(file_file_repository_version_href, repository_version, opts = {})
287
332
  if @api_client.config.debugging
288
333
  @api_client.config.logger.debug 'Calling API: RepositoriesFileVersionsApi.repair ...'
289
334
  end
290
- # verify the required parameter 'file_repository_version_href' is set
291
- if @api_client.config.client_side_validation && file_repository_version_href.nil?
292
- fail ArgumentError, "Missing the required parameter 'file_repository_version_href' when calling RepositoriesFileVersionsApi.repair"
335
+ # verify the required parameter 'file_file_repository_version_href' is set
336
+ if @api_client.config.client_side_validation && file_file_repository_version_href.nil?
337
+ fail ArgumentError, "Missing the required parameter 'file_file_repository_version_href' when calling RepositoriesFileVersionsApi.repair"
293
338
  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 RepositoriesFileVersionsApi.repair"
339
+ # verify the required parameter 'repository_version' is set
340
+ if @api_client.config.client_side_validation && repository_version.nil?
341
+ fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesFileVersionsApi.repair"
297
342
  end
298
343
  # resource path
299
- local_var_path = '{file_repository_version_href}repair/'.sub('{' + 'file_repository_version_href' + '}', CGI.escape(file_repository_version_href.to_s).gsub('%2F', '/'))
344
+ local_var_path = '{file_file_repository_version_href}repair/'.sub('{' + 'file_file_repository_version_href' + '}', CGI.escape(file_file_repository_version_href.to_s).gsub('%2F', '/'))
300
345
 
301
346
  # query parameters
302
347
  query_params = opts[:query_params] || {}
@@ -306,19 +351,19 @@ module PulpFileClient
306
351
  # HTTP header 'Accept' (if needed)
307
352
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
353
  # HTTP header 'Content-Type'
309
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
310
355
 
311
356
  # form parameters
312
357
  form_params = opts[:form_params] || {}
313
358
 
314
359
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(data)
360
+ post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
316
361
 
317
362
  # return_type
318
363
  return_type = opts[:return_type] || 'AsyncOperationResponse'
319
364
 
320
365
  # auth_names
321
- auth_names = opts[:auth_names] || ['Basic']
366
+ auth_names = opts[:auth_names] || ['basicAuth']
322
367
 
323
368
  new_options = opts.merge(
324
369
  :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 PulpFileClient
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 PulpFileClient
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 PulpFileClient
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 PulpFileClient
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 PulpFileClient
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