pulp_file_client 1.1.0 → 1.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 (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
@@ -4,16 +4,16 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**delete**](RepositoriesFileVersionsApi.md#delete) | **DELETE** {file_repository_version_href} | Delete a repository version
8
- [**list**](RepositoriesFileVersionsApi.md#list) | **GET** {file_repository_href}versions/ | List repository versions
9
- [**read**](RepositoriesFileVersionsApi.md#read) | **GET** {file_repository_version_href} | Inspect a repository version
10
- [**repair**](RepositoriesFileVersionsApi.md#repair) | **POST** {file_repository_version_href}repair/ |
7
+ [**delete**](RepositoriesFileVersionsApi.md#delete) | **DELETE** {file_file_repository_version_href} | Delete a repository version
8
+ [**list**](RepositoriesFileVersionsApi.md#list) | **GET** {file_file_repository_href}versions/ | List repository versions
9
+ [**read**](RepositoriesFileVersionsApi.md#read) | **GET** {file_file_repository_version_href} | Inspect a repository version
10
+ [**repair**](RepositoriesFileVersionsApi.md#repair) | **POST** {file_file_repository_version_href}repair/ |
11
11
 
12
12
 
13
13
 
14
14
  ## delete
15
15
 
16
- > AsyncOperationResponse delete(file_repository_version_href)
16
+ > AsyncOperationResponse delete(file_file_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_file_client'
27
27
  # setup authorization
28
28
  PulpFileClient.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 = PulpFileClient::RepositoriesFileVersionsApi.new
35
- file_repository_version_href = 'file_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
35
+ file_file_repository_version_href = 'file_file_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(file_repository_version_href)
56
+ result = api_instance.delete(file_file_repository_version_href, opts)
40
57
  p result
41
58
  rescue PulpFileClient::ApiError => e
42
59
  puts "Exception when calling RepositoriesFileVersionsApi->delete: #{e}"
@@ -48,7 +65,22 @@ end
48
65
 
49
66
  Name | Type | Description | Notes
50
67
  ------------- | ------------- | ------------- | -------------
51
- **file_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/ |
68
+ **file_file_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
- > InlineResponse2007 list(file_repository_href, opts)
101
+ > InlineResponse2007 list(file_file_repository_href, opts)
70
102
 
71
103
  List repository versions
72
104
 
@@ -79,38 +111,38 @@ List repository versions
79
111
  require 'pulp_file_client'
80
112
  # setup authorization
81
113
  PulpFileClient.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 = PulpFileClient::RepositoriesFileVersionsApi.new
88
- file_repository_href = 'file_repository_href_example' # String | URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/1/
120
+ file_file_repository_href = 'file_file_repository_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(file_repository_href, opts)
145
+ result = api_instance.list(file_file_repository_href, opts)
114
146
  p result
115
147
  rescue PulpFileClient::ApiError => e
116
148
  puts "Exception when calling RepositoriesFileVersionsApi->list: #{e}"
@@ -122,24 +154,24 @@ end
122
154
 
123
155
  Name | Type | Description | Notes
124
156
  ------------- | ------------- | ------------- | -------------
125
- **file_repository_href** | **String**| URI of File Repository. e.g.: /pulp/api/v3/repositories/file/file/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
+ **file_file_repository_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(file_repository_version_href, opts)
194
+ > RepositoryVersionResponse read(file_file_repository_version_href, opts)
163
195
 
164
196
  Inspect a repository version
165
197
 
@@ -172,13 +204,13 @@ Inspect a repository version
172
204
  require 'pulp_file_client'
173
205
  # setup authorization
174
206
  PulpFileClient.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 = PulpFileClient::RepositoriesFileVersionsApi.new
181
- file_repository_version_href = 'file_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
213
+ file_file_repository_version_href = 'file_file_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.
@@ -186,7 +218,7 @@ opts = {
186
218
 
187
219
  begin
188
220
  #Inspect a repository version
189
- result = api_instance.read(file_repository_version_href, opts)
221
+ result = api_instance.read(file_file_repository_version_href, opts)
190
222
  p result
191
223
  rescue PulpFileClient::ApiError => e
192
224
  puts "Exception when calling RepositoriesFileVersionsApi->read: #{e}"
@@ -198,17 +230,17 @@ end
198
230
 
199
231
  Name | Type | Description | Notes
200
232
  ------------- | ------------- | ------------- | -------------
201
- **file_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/ |
233
+ **file_file_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(file_repository_version_href, data)
253
+ > AsyncOperationResponse repair(file_file_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_file_client'
232
264
  # setup authorization
233
265
  PulpFileClient.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 = PulpFileClient::RepositoriesFileVersionsApi.new
240
- file_repository_version_href = 'file_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/
241
- data = PulpFileClient::RepositoryVersion.new # RepositoryVersion |
272
+ file_file_repository_version_href = 'file_file_repository_version_href_example' # String |
273
+ repository_version = PulpFileClient::RepositoryVersion.new # RepositoryVersion |
242
274
 
243
275
  begin
244
- result = api_instance.repair(file_repository_version_href, data)
276
+ result = api_instance.repair(file_file_repository_version_href, repository_version)
245
277
  p result
246
278
  rescue PulpFileClient::ApiError => e
247
279
  puts "Exception when calling RepositoriesFileVersionsApi->repair: #{e}"
@@ -253,8 +285,8 @@ end
253
285
 
254
286
  Name | Type | Description | Notes
255
287
  ------------- | ------------- | ------------- | -------------
256
- **file_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/file/file/1/versions/1/ |
257
- **data** | [**RepositoryVersion**](RepositoryVersion.md)| |
288
+ **file_file_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 'PulpFileClient'
17
13
 
18
- instance = PulpFileClient::RepositoryVersion.new(pulp_href: null,
19
- pulp_created: null,
20
- number: null,
21
- base_version: null,
22
- content_summary: null)
14
+ instance = PulpFileClient::RepositoryVersion.new(base_version: null)
23
15
  ```
24
16
 
25
17
 
@@ -0,0 +1,25 @@
1
+ # PulpFileClient::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 'PulpFileClient'
17
+
18
+ instance = PulpFileClient::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
 
@@ -48,10 +48,6 @@ module PulpFileClient
48
48
  if @api_client.config.client_side_validation && relative_path.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentFilesApi.create"
50
50
  end
51
- if @api_client.config.client_side_validation && relative_path.to_s.length < 1
52
- fail ArgumentError, 'invalid value for "relative_path" when calling ContentFilesApi.create, the character length must be great than or equal to 1.'
53
- end
54
-
55
51
  # resource path
56
52
  local_var_path = '/pulp/api/v3/content/file/files/'
57
53
 
@@ -79,7 +75,7 @@ module PulpFileClient
79
75
  return_type = opts[:return_type] || 'AsyncOperationResponse'
80
76
 
81
77
  # auth_names
82
- auth_names = opts[:auth_names] || ['Basic']
78
+ auth_names = opts[:auth_names] || ['basicAuth']
83
79
 
84
80
  new_options = opts.merge(
85
81
  :header_params => header_params,
@@ -100,14 +96,14 @@ module PulpFileClient
100
96
  # List file contents
101
97
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
102
98
  # @param [Hash] opts the optional parameters
103
- # @option opts [String] :ordering Which field to use when ordering the results.
104
- # @option opts [String] :relative_path Filter results where relative_path matches value
105
- # @option opts [String] :sha256
106
- # @option opts [String] :repository_version Repository Version referenced by HREF
107
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
108
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
109
99
  # @option opts [Integer] :limit Number of results to return per page.
110
100
  # @option opts [Integer] :offset The initial index from which to return the results.
101
+ # @option opts [String] :ordering Which field to use when ordering the results.
102
+ # @option opts [String] :relative_path relative_path
103
+ # @option opts [String] :repository_version repository_version
104
+ # @option opts [String] :repository_version_added repository_version_added
105
+ # @option opts [String] :repository_version_removed repository_version_removed
106
+ # @option opts [String] :sha256 sha256
111
107
  # @option opts [String] :fields A list of fields to include in the response.
112
108
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
113
109
  # @return [InlineResponse200]
@@ -119,14 +115,14 @@ module PulpFileClient
119
115
  # List file contents
120
116
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
121
117
  # @param [Hash] opts the optional parameters
122
- # @option opts [String] :ordering Which field to use when ordering the results.
123
- # @option opts [String] :relative_path Filter results where relative_path matches value
124
- # @option opts [String] :sha256
125
- # @option opts [String] :repository_version Repository Version referenced by HREF
126
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
127
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
128
118
  # @option opts [Integer] :limit Number of results to return per page.
129
119
  # @option opts [Integer] :offset The initial index from which to return the results.
120
+ # @option opts [String] :ordering Which field to use when ordering the results.
121
+ # @option opts [String] :relative_path relative_path
122
+ # @option opts [String] :repository_version repository_version
123
+ # @option opts [String] :repository_version_added repository_version_added
124
+ # @option opts [String] :repository_version_removed repository_version_removed
125
+ # @option opts [String] :sha256 sha256
130
126
  # @option opts [String] :fields A list of fields to include in the response.
131
127
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
128
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
@@ -139,14 +135,14 @@ module PulpFileClient
139
135
 
140
136
  # query parameters
141
137
  query_params = opts[:query_params] || {}
138
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
139
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
142
140
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
143
141
  query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
144
- query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
145
142
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
146
143
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
147
144
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
148
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
149
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
145
+ query_params[:'sha256'] = opts[:'sha256'] if !opts[:'sha256'].nil?
150
146
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
151
147
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
152
148
 
@@ -165,7 +161,7 @@ module PulpFileClient
165
161
  return_type = opts[:return_type] || 'InlineResponse200'
166
162
 
167
163
  # auth_names
168
- auth_names = opts[:auth_names] || ['Basic']
164
+ auth_names = opts[:auth_names] || ['basicAuth']
169
165
 
170
166
  new_options = opts.merge(
171
167
  :header_params => header_params,
@@ -185,33 +181,33 @@ module PulpFileClient
185
181
 
186
182
  # Inspect a file content
187
183
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
188
- # @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
184
+ # @param file_file_content_href [String]
189
185
  # @param [Hash] opts the optional parameters
190
186
  # @option opts [String] :fields A list of fields to include in the response.
191
187
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
192
- # @return [FileFileContent]
193
- def read(file_content_href, opts = {})
194
- data, _status_code, _headers = read_with_http_info(file_content_href, opts)
188
+ # @return [FileFileContentResponse]
189
+ def read(file_file_content_href, opts = {})
190
+ data, _status_code, _headers = read_with_http_info(file_file_content_href, opts)
195
191
  data
196
192
  end
197
193
 
198
194
  # Inspect a file content
199
195
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
200
- # @param file_content_href [String] URI of File Content. e.g.: /pulp/api/v3/content/file/files/1/
196
+ # @param file_file_content_href [String]
201
197
  # @param [Hash] opts the optional parameters
202
198
  # @option opts [String] :fields A list of fields to include in the response.
203
199
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
204
- # @return [Array<(FileFileContent, Integer, Hash)>] FileFileContent data, response status code and response headers
205
- def read_with_http_info(file_content_href, opts = {})
200
+ # @return [Array<(FileFileContentResponse, Integer, Hash)>] FileFileContentResponse data, response status code and response headers
201
+ def read_with_http_info(file_file_content_href, opts = {})
206
202
  if @api_client.config.debugging
207
203
  @api_client.config.logger.debug 'Calling API: ContentFilesApi.read ...'
208
204
  end
209
- # verify the required parameter 'file_content_href' is set
210
- if @api_client.config.client_side_validation && file_content_href.nil?
211
- fail ArgumentError, "Missing the required parameter 'file_content_href' when calling ContentFilesApi.read"
205
+ # verify the required parameter 'file_file_content_href' is set
206
+ if @api_client.config.client_side_validation && file_file_content_href.nil?
207
+ fail ArgumentError, "Missing the required parameter 'file_file_content_href' when calling ContentFilesApi.read"
212
208
  end
213
209
  # resource path
214
- local_var_path = '{file_content_href}'.sub('{' + 'file_content_href' + '}', CGI.escape(file_content_href.to_s).gsub('%2F', '/'))
210
+ local_var_path = '{file_file_content_href}'.sub('{' + 'file_file_content_href' + '}', CGI.escape(file_file_content_href.to_s).gsub('%2F', '/'))
215
211
 
216
212
  # query parameters
217
213
  query_params = opts[:query_params] || {}
@@ -230,10 +226,10 @@ module PulpFileClient
230
226
  post_body = opts[:body]
231
227
 
232
228
  # return_type
233
- return_type = opts[:return_type] || 'FileFileContent'
229
+ return_type = opts[:return_type] || 'FileFileContentResponse'
234
230
 
235
231
  # auth_names
236
- auth_names = opts[:auth_names] || ['Basic']
232
+ auth_names = opts[:auth_names] || ['basicAuth']
237
233
 
238
234
  new_options = opts.merge(
239
235
  :header_params => header_params,