pulp_file_client 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -21
  3. data/docs/FileFileRepository.md +2 -0
  4. data/docs/FileFileRepositoryResponse.md +2 -0
  5. data/docs/PatchedfileFileRepository.md +2 -0
  6. data/docs/PublicationsFileApi.md +4 -0
  7. data/docs/RepositoryVersionResponse.md +2 -0
  8. data/lib/pulp_file_client/api/publications_file_api.rb +6 -0
  9. data/lib/pulp_file_client/models/file_file_repository.rb +27 -1
  10. data/lib/pulp_file_client/models/file_file_repository_response.rb +27 -1
  11. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +27 -1
  12. data/lib/pulp_file_client/models/repository_version_response.rb +10 -1
  13. data/lib/pulp_file_client/version.rb +1 -1
  14. data/lib/pulp_file_client.rb +0 -9
  15. data/spec/api/publications_file_api_spec.rb +2 -0
  16. data/spec/models/file_file_repository_response_spec.rb +6 -0
  17. data/spec/models/file_file_repository_spec.rb +6 -0
  18. data/spec/models/patchedfile_file_repository_spec.rb +6 -0
  19. data/spec/models/repository_version_response_spec.rb +6 -0
  20. metadata +21 -57
  21. data/docs/ExportResponse.md +0 -25
  22. data/docs/ExportersFileExportsApi.md +0 -243
  23. data/docs/ExportersFilesystemApi.md +0 -362
  24. data/docs/FileFileFilesystemExporter.md +0 -19
  25. data/docs/FileFileFilesystemExporterResponse.md +0 -23
  26. data/docs/PaginatedExportResponseList.md +0 -23
  27. data/docs/PaginatedfileFileFilesystemExporterResponseList.md +0 -23
  28. data/docs/PatchedfileFileFilesystemExporter.md +0 -19
  29. data/docs/PublicationExport.md +0 -17
  30. data/lib/pulp_file_client/api/exporters_file_exports_api.rb +0 -297
  31. data/lib/pulp_file_client/api/exporters_filesystem_api.rb +0 -442
  32. data/lib/pulp_file_client/models/export_response.rb +0 -250
  33. data/lib/pulp_file_client/models/file_file_filesystem_exporter.rb +0 -228
  34. data/lib/pulp_file_client/models/file_file_filesystem_exporter_response.rb +0 -247
  35. data/lib/pulp_file_client/models/paginated_export_response_list.rb +0 -237
  36. data/lib/pulp_file_client/models/paginatedfile_file_filesystem_exporter_response_list.rb +0 -237
  37. data/lib/pulp_file_client/models/patchedfile_file_filesystem_exporter.rb +0 -218
  38. data/lib/pulp_file_client/models/publication_export.rb +0 -213
  39. data/spec/api/exporters_file_exports_api_spec.rb +0 -91
  40. data/spec/api/exporters_filesystem_api_spec.rb +0 -120
  41. data/spec/models/export_response_spec.rb +0 -65
  42. data/spec/models/file_file_filesystem_exporter_response_spec.rb +0 -59
  43. data/spec/models/file_file_filesystem_exporter_spec.rb +0 -47
  44. data/spec/models/paginated_export_response_list_spec.rb +0 -59
  45. data/spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb +0 -59
  46. data/spec/models/patchedfile_file_filesystem_exporter_spec.rb +0 -47
  47. data/spec/models/publication_export_spec.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22376a5b7ad02b4b3b4dc484ac29ac840f7ac1ef323eeb0b53f078b91be86e83
4
- data.tar.gz: 0af01828894d8bbdff21149fb62db9bca8f98a465fc3952f55bab0c7d636a059
3
+ metadata.gz: eb997742837a9803528e554ad048077023abd15a15ca8a2e985795f00f6dd0c1
4
+ data.tar.gz: 3eca196950310a37563b40a3360c4b8689e2d03ceb4f427db74b8a06fcfe20ae
5
5
  SHA512:
6
- metadata.gz: d367665aaad140018cd5fe4b2cc910df4e04d626c6213bdbdf035999a27895405482d088ccb5a417142c0c0579abde84ec2d15a7743ea6290bb677371b5ab1c4
7
- data.tar.gz: 4c7052ea39a52990bcedec0773c266a32623e5f00dc512e486ca73cbc77cdddf50f55dc05d22400d6555b6ce2da640f2212419cc010c20286133629e940e1a4d
6
+ metadata.gz: 715258dbb070f522edb73cf34d879ea706d7b9e48c1a80614d25730e5b9129ee1f68d426ed3f02788bd57c65b4de19cec97875e94c2da0f1bb91027a35c4f58a
7
+ data.tar.gz: 6057c769f6ba03bf7d07df11872f42160acf0c8116d8683be49e9f54d85950122962402d9006a86532c36be82eeed9d386cc2322159b6b7be04260251e505901
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 1.7.0
10
+ - Package version: 1.8.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_file_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_file_client-1.7.0.gem
27
+ gem install ./pulp_file_client-1.8.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_file_client-1.7.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_file_client-1.8.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_file_client', '~> 1.7.0'
36
+ gem 'pulp_file_client', '~> 1.8.0'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -97,16 +97,6 @@ Class | Method | HTTP request | Description
97
97
  *PulpFileClient::DistributionsFileApi* | [**partial_update**](docs/DistributionsFileApi.md#partial_update) | **PATCH** {file_file_distribution_href} | Update a file distribution
98
98
  *PulpFileClient::DistributionsFileApi* | [**read**](docs/DistributionsFileApi.md#read) | **GET** {file_file_distribution_href} | Inspect a file distribution
99
99
  *PulpFileClient::DistributionsFileApi* | [**update**](docs/DistributionsFileApi.md#update) | **PUT** {file_file_distribution_href} | Update a file distribution
100
- *PulpFileClient::ExportersFileExportsApi* | [**create**](docs/ExportersFileExportsApi.md#create) | **POST** {file_file_filesystem_exporter_href}exports/ | Create an export
101
- *PulpFileClient::ExportersFileExportsApi* | [**delete**](docs/ExportersFileExportsApi.md#delete) | **DELETE** {file_filesystem_export_href} | Delete an export
102
- *PulpFileClient::ExportersFileExportsApi* | [**list**](docs/ExportersFileExportsApi.md#list) | **GET** {file_file_filesystem_exporter_href}exports/ | List exports
103
- *PulpFileClient::ExportersFileExportsApi* | [**read**](docs/ExportersFileExportsApi.md#read) | **GET** {file_filesystem_export_href} | Inspect an export
104
- *PulpFileClient::ExportersFilesystemApi* | [**create**](docs/ExportersFilesystemApi.md#create) | **POST** /pulp/api/v3/exporters/file/filesystem/ | Create a file filesystem exporter
105
- *PulpFileClient::ExportersFilesystemApi* | [**delete**](docs/ExportersFilesystemApi.md#delete) | **DELETE** {file_file_filesystem_exporter_href} | Delete a file filesystem exporter
106
- *PulpFileClient::ExportersFilesystemApi* | [**list**](docs/ExportersFilesystemApi.md#list) | **GET** /pulp/api/v3/exporters/file/filesystem/ | List file filesystem exporters
107
- *PulpFileClient::ExportersFilesystemApi* | [**partial_update**](docs/ExportersFilesystemApi.md#partial_update) | **PATCH** {file_file_filesystem_exporter_href} | Update a file filesystem exporter
108
- *PulpFileClient::ExportersFilesystemApi* | [**read**](docs/ExportersFilesystemApi.md#read) | **GET** {file_file_filesystem_exporter_href} | Inspect a file filesystem exporter
109
- *PulpFileClient::ExportersFilesystemApi* | [**update**](docs/ExportersFilesystemApi.md#update) | **PUT** {file_file_filesystem_exporter_href} | Update a file filesystem exporter
110
100
  *PulpFileClient::PublicationsFileApi* | [**create**](docs/PublicationsFileApi.md#create) | **POST** /pulp/api/v3/publications/file/file/ | Create a file publication
111
101
  *PulpFileClient::PublicationsFileApi* | [**delete**](docs/PublicationsFileApi.md#delete) | **DELETE** {file_file_publication_href} | Delete a file publication
112
102
  *PulpFileClient::PublicationsFileApi* | [**list**](docs/PublicationsFileApi.md#list) | **GET** /pulp/api/v3/publications/file/file/ | List file publications
@@ -136,33 +126,26 @@ Class | Method | HTTP request | Description
136
126
  - [PulpFileClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
137
127
  - [PulpFileClient::ContentSummary](docs/ContentSummary.md)
138
128
  - [PulpFileClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
139
- - [PulpFileClient::ExportResponse](docs/ExportResponse.md)
140
129
  - [PulpFileClient::FileFileContent](docs/FileFileContent.md)
141
130
  - [PulpFileClient::FileFileContentResponse](docs/FileFileContentResponse.md)
142
131
  - [PulpFileClient::FileFileDistribution](docs/FileFileDistribution.md)
143
132
  - [PulpFileClient::FileFileDistributionResponse](docs/FileFileDistributionResponse.md)
144
- - [PulpFileClient::FileFileFilesystemExporter](docs/FileFileFilesystemExporter.md)
145
- - [PulpFileClient::FileFileFilesystemExporterResponse](docs/FileFileFilesystemExporterResponse.md)
146
133
  - [PulpFileClient::FileFilePublication](docs/FileFilePublication.md)
147
134
  - [PulpFileClient::FileFilePublicationResponse](docs/FileFilePublicationResponse.md)
148
135
  - [PulpFileClient::FileFileRemote](docs/FileFileRemote.md)
149
136
  - [PulpFileClient::FileFileRemoteResponse](docs/FileFileRemoteResponse.md)
150
137
  - [PulpFileClient::FileFileRepository](docs/FileFileRepository.md)
151
138
  - [PulpFileClient::FileFileRepositoryResponse](docs/FileFileRepositoryResponse.md)
152
- - [PulpFileClient::PaginatedExportResponseList](docs/PaginatedExportResponseList.md)
153
139
  - [PulpFileClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
154
140
  - [PulpFileClient::PaginatedfileFileContentResponseList](docs/PaginatedfileFileContentResponseList.md)
155
141
  - [PulpFileClient::PaginatedfileFileDistributionResponseList](docs/PaginatedfileFileDistributionResponseList.md)
156
- - [PulpFileClient::PaginatedfileFileFilesystemExporterResponseList](docs/PaginatedfileFileFilesystemExporterResponseList.md)
157
142
  - [PulpFileClient::PaginatedfileFilePublicationResponseList](docs/PaginatedfileFilePublicationResponseList.md)
158
143
  - [PulpFileClient::PaginatedfileFileRemoteResponseList](docs/PaginatedfileFileRemoteResponseList.md)
159
144
  - [PulpFileClient::PaginatedfileFileRepositoryResponseList](docs/PaginatedfileFileRepositoryResponseList.md)
160
145
  - [PulpFileClient::PatchedfileFileDistribution](docs/PatchedfileFileDistribution.md)
161
- - [PulpFileClient::PatchedfileFileFilesystemExporter](docs/PatchedfileFileFilesystemExporter.md)
162
146
  - [PulpFileClient::PatchedfileFileRemote](docs/PatchedfileFileRemote.md)
163
147
  - [PulpFileClient::PatchedfileFileRepository](docs/PatchedfileFileRepository.md)
164
148
  - [PulpFileClient::PolicyEnum](docs/PolicyEnum.md)
165
- - [PulpFileClient::PublicationExport](docs/PublicationExport.md)
166
149
  - [PulpFileClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
167
150
  - [PulpFileClient::RepositorySyncURL](docs/RepositorySyncURL.md)
168
151
  - [PulpFileClient::RepositoryVersion](docs/RepositoryVersion.md)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
10
11
  **remote** | **String** | | [optional]
11
12
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
12
13
  **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
@@ -19,6 +20,7 @@ require 'PulpFileClient'
19
20
  instance = PulpFileClient::FileFileRepository.new(pulp_labels: null,
20
21
  name: null,
21
22
  description: null,
23
+ retained_versions: null,
22
24
  remote: null,
23
25
  autopublish: null,
24
26
  manifest: null)
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
14
15
  **remote** | **String** | | [optional]
15
16
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
16
17
  **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
@@ -27,6 +28,7 @@ instance = PulpFileClient::FileFileRepositoryResponse.new(pulp_href: null,
27
28
  latest_version_href: null,
28
29
  name: null,
29
30
  description: null,
31
+ retained_versions: null,
30
32
  remote: null,
31
33
  autopublish: null,
32
34
  manifest: null)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
10
11
  **remote** | **String** | | [optional]
11
12
  **autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
12
13
  **manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
@@ -19,6 +20,7 @@ require 'PulpFileClient'
19
20
  instance = PulpFileClient::PatchedfileFileRepository.new(pulp_labels: null,
20
21
  name: null,
21
22
  description: null,
23
+ retained_versions: null,
22
24
  remote: null,
23
25
  autopublish: null,
24
26
  manifest: null)
@@ -138,6 +138,8 @@ end
138
138
 
139
139
  api_instance = PulpFileClient::PublicationsFileApi.new
140
140
  opts = {
141
+ content: 'content_example', # String | Content Unit referenced by HREF
142
+ content__in: 'content__in_example', # String | Content Unit referenced by HREF
141
143
  limit: 56, # Integer | Number of results to return per page.
142
144
  offset: 56, # Integer | The initial index from which to return the results.
143
145
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
@@ -166,6 +168,8 @@ end
166
168
 
167
169
  Name | Type | Description | Notes
168
170
  ------------- | ------------- | ------------- | -------------
171
+ **content** | **String**| Content Unit referenced by HREF | [optional]
172
+ **content__in** | **String**| Content Unit referenced by HREF | [optional]
169
173
  **limit** | **Integer**| Number of results to return per page. | [optional]
170
174
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
171
175
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **number** | **Integer** | | [optional] [readonly]
10
+ **repository** | **String** | | [optional] [readonly]
10
11
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
12
  **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
12
13
 
@@ -18,6 +19,7 @@ require 'PulpFileClient'
18
19
  instance = PulpFileClient::RepositoryVersionResponse.new(pulp_href: null,
19
20
  pulp_created: null,
20
21
  number: null,
22
+ repository: null,
21
23
  base_version: null,
22
24
  content_summary: null)
23
25
  ```
@@ -146,6 +146,8 @@ module PulpFileClient
146
146
  # List file publications
147
147
  # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
148
148
  # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :content Content Unit referenced by HREF
150
+ # @option opts [String] :content__in Content Unit referenced by HREF
149
151
  # @option opts [Integer] :limit Number of results to return per page.
150
152
  # @option opts [Integer] :offset The initial index from which to return the results.
151
153
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -167,6 +169,8 @@ module PulpFileClient
167
169
  # List file publications
168
170
  # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
169
171
  # @param [Hash] opts the optional parameters
172
+ # @option opts [String] :content Content Unit referenced by HREF
173
+ # @option opts [String] :content__in Content Unit referenced by HREF
170
174
  # @option opts [Integer] :limit Number of results to return per page.
171
175
  # @option opts [Integer] :offset The initial index from which to return the results.
172
176
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -189,6 +193,8 @@ module PulpFileClient
189
193
 
190
194
  # query parameters
191
195
  query_params = opts[:query_params] || {}
196
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
197
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
192
198
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
193
199
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
194
200
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -23,6 +23,9 @@ module PulpFileClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retained_versions
28
+
26
29
  attr_accessor :remote
27
30
 
28
31
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -37,6 +40,7 @@ module PulpFileClient
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
39
42
  :'description' => :'description',
43
+ :'retained_versions' => :'retained_versions',
40
44
  :'remote' => :'remote',
41
45
  :'autopublish' => :'autopublish',
42
46
  :'manifest' => :'manifest'
@@ -49,6 +53,7 @@ module PulpFileClient
49
53
  :'pulp_labels' => :'Object',
50
54
  :'name' => :'String',
51
55
  :'description' => :'String',
56
+ :'retained_versions' => :'Integer',
52
57
  :'remote' => :'String',
53
58
  :'autopublish' => :'Boolean',
54
59
  :'manifest' => :'String'
@@ -59,6 +64,7 @@ module PulpFileClient
59
64
  def self.openapi_nullable
60
65
  Set.new([
61
66
  :'description',
67
+ :'retained_versions',
62
68
  :'remote',
63
69
  ])
64
70
  end
@@ -90,6 +96,10 @@ module PulpFileClient
90
96
  self.description = attributes[:'description']
91
97
  end
92
98
 
99
+ if attributes.key?(:'retained_versions')
100
+ self.retained_versions = attributes[:'retained_versions']
101
+ end
102
+
93
103
  if attributes.key?(:'remote')
94
104
  self.remote = attributes[:'remote']
95
105
  end
@@ -115,6 +125,10 @@ module PulpFileClient
115
125
  invalid_properties.push('invalid value for "name", name cannot be nil.')
116
126
  end
117
127
 
128
+ if !@retained_versions.nil? && @retained_versions < 1
129
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
130
+ end
131
+
118
132
  invalid_properties
119
133
  end
120
134
 
@@ -122,9 +136,20 @@ module PulpFileClient
122
136
  # @return true if the model is valid
123
137
  def valid?
124
138
  return false if @name.nil?
139
+ return false if !@retained_versions.nil? && @retained_versions < 1
125
140
  true
126
141
  end
127
142
 
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] retained_versions Value to be assigned
145
+ def retained_versions=(retained_versions)
146
+ if !retained_versions.nil? && retained_versions < 1
147
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
148
+ end
149
+
150
+ @retained_versions = retained_versions
151
+ end
152
+
128
153
  # Checks equality by comparing each attribute.
129
154
  # @param [Object] Object to be compared
130
155
  def ==(o)
@@ -133,6 +158,7 @@ module PulpFileClient
133
158
  pulp_labels == o.pulp_labels &&
134
159
  name == o.name &&
135
160
  description == o.description &&
161
+ retained_versions == o.retained_versions &&
136
162
  remote == o.remote &&
137
163
  autopublish == o.autopublish &&
138
164
  manifest == o.manifest
@@ -147,7 +173,7 @@ module PulpFileClient
147
173
  # Calculates hash code according to all attributes.
148
174
  # @return [Integer] Hash code
149
175
  def hash
150
- [pulp_labels, name, description, remote, autopublish, manifest].hash
176
+ [pulp_labels, name, description, retained_versions, remote, autopublish, manifest].hash
151
177
  end
152
178
 
153
179
  # Builds the object from hash
@@ -32,6 +32,9 @@ module PulpFileClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
+ attr_accessor :retained_versions
37
+
35
38
  attr_accessor :remote
36
39
 
37
40
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -50,6 +53,7 @@ module PulpFileClient
50
53
  :'latest_version_href' => :'latest_version_href',
51
54
  :'name' => :'name',
52
55
  :'description' => :'description',
56
+ :'retained_versions' => :'retained_versions',
53
57
  :'remote' => :'remote',
54
58
  :'autopublish' => :'autopublish',
55
59
  :'manifest' => :'manifest'
@@ -66,6 +70,7 @@ module PulpFileClient
66
70
  :'latest_version_href' => :'String',
67
71
  :'name' => :'String',
68
72
  :'description' => :'String',
73
+ :'retained_versions' => :'Integer',
69
74
  :'remote' => :'String',
70
75
  :'autopublish' => :'Boolean',
71
76
  :'manifest' => :'String'
@@ -76,6 +81,7 @@ module PulpFileClient
76
81
  def self.openapi_nullable
77
82
  Set.new([
78
83
  :'description',
84
+ :'retained_versions',
79
85
  :'remote',
80
86
  ])
81
87
  end
@@ -123,6 +129,10 @@ module PulpFileClient
123
129
  self.description = attributes[:'description']
124
130
  end
125
131
 
132
+ if attributes.key?(:'retained_versions')
133
+ self.retained_versions = attributes[:'retained_versions']
134
+ end
135
+
126
136
  if attributes.key?(:'remote')
127
137
  self.remote = attributes[:'remote']
128
138
  end
@@ -148,6 +158,10 @@ module PulpFileClient
148
158
  invalid_properties.push('invalid value for "name", name cannot be nil.')
149
159
  end
150
160
 
161
+ if !@retained_versions.nil? && @retained_versions < 1
162
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
163
+ end
164
+
151
165
  invalid_properties
152
166
  end
153
167
 
@@ -155,9 +169,20 @@ module PulpFileClient
155
169
  # @return true if the model is valid
156
170
  def valid?
157
171
  return false if @name.nil?
172
+ return false if !@retained_versions.nil? && @retained_versions < 1
158
173
  true
159
174
  end
160
175
 
176
+ # Custom attribute writer method with validation
177
+ # @param [Object] retained_versions Value to be assigned
178
+ def retained_versions=(retained_versions)
179
+ if !retained_versions.nil? && retained_versions < 1
180
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
181
+ end
182
+
183
+ @retained_versions = retained_versions
184
+ end
185
+
161
186
  # Checks equality by comparing each attribute.
162
187
  # @param [Object] Object to be compared
163
188
  def ==(o)
@@ -170,6 +195,7 @@ module PulpFileClient
170
195
  latest_version_href == o.latest_version_href &&
171
196
  name == o.name &&
172
197
  description == o.description &&
198
+ retained_versions == o.retained_versions &&
173
199
  remote == o.remote &&
174
200
  autopublish == o.autopublish &&
175
201
  manifest == o.manifest
@@ -184,7 +210,7 @@ module PulpFileClient
184
210
  # Calculates hash code according to all attributes.
185
211
  # @return [Integer] Hash code
186
212
  def hash
187
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote, autopublish, manifest].hash
213
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote, autopublish, manifest].hash
188
214
  end
189
215
 
190
216
  # Builds the object from hash
@@ -23,6 +23,9 @@ module PulpFileClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retained_versions
28
+
26
29
  attr_accessor :remote
27
30
 
28
31
  # Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
@@ -37,6 +40,7 @@ module PulpFileClient
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
39
42
  :'description' => :'description',
43
+ :'retained_versions' => :'retained_versions',
40
44
  :'remote' => :'remote',
41
45
  :'autopublish' => :'autopublish',
42
46
  :'manifest' => :'manifest'
@@ -49,6 +53,7 @@ module PulpFileClient
49
53
  :'pulp_labels' => :'Object',
50
54
  :'name' => :'String',
51
55
  :'description' => :'String',
56
+ :'retained_versions' => :'Integer',
52
57
  :'remote' => :'String',
53
58
  :'autopublish' => :'Boolean',
54
59
  :'manifest' => :'String'
@@ -59,6 +64,7 @@ module PulpFileClient
59
64
  def self.openapi_nullable
60
65
  Set.new([
61
66
  :'description',
67
+ :'retained_versions',
62
68
  :'remote',
63
69
  ])
64
70
  end
@@ -90,6 +96,10 @@ module PulpFileClient
90
96
  self.description = attributes[:'description']
91
97
  end
92
98
 
99
+ if attributes.key?(:'retained_versions')
100
+ self.retained_versions = attributes[:'retained_versions']
101
+ end
102
+
93
103
  if attributes.key?(:'remote')
94
104
  self.remote = attributes[:'remote']
95
105
  end
@@ -111,15 +121,30 @@ module PulpFileClient
111
121
  # @return Array for valid properties with the reasons
112
122
  def list_invalid_properties
113
123
  invalid_properties = Array.new
124
+ if !@retained_versions.nil? && @retained_versions < 1
125
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
126
+ end
127
+
114
128
  invalid_properties
115
129
  end
116
130
 
117
131
  # Check to see if the all the properties in the model are valid
118
132
  # @return true if the model is valid
119
133
  def valid?
134
+ return false if !@retained_versions.nil? && @retained_versions < 1
120
135
  true
121
136
  end
122
137
 
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] retained_versions Value to be assigned
140
+ def retained_versions=(retained_versions)
141
+ if !retained_versions.nil? && retained_versions < 1
142
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
143
+ end
144
+
145
+ @retained_versions = retained_versions
146
+ end
147
+
123
148
  # Checks equality by comparing each attribute.
124
149
  # @param [Object] Object to be compared
125
150
  def ==(o)
@@ -128,6 +153,7 @@ module PulpFileClient
128
153
  pulp_labels == o.pulp_labels &&
129
154
  name == o.name &&
130
155
  description == o.description &&
156
+ retained_versions == o.retained_versions &&
131
157
  remote == o.remote &&
132
158
  autopublish == o.autopublish &&
133
159
  manifest == o.manifest
@@ -142,7 +168,7 @@ module PulpFileClient
142
168
  # Calculates hash code according to all attributes.
143
169
  # @return [Integer] Hash code
144
170
  def hash
145
- [pulp_labels, name, description, remote, autopublish, manifest].hash
171
+ [pulp_labels, name, description, retained_versions, remote, autopublish, manifest].hash
146
172
  end
147
173
 
148
174
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpFileClient
22
22
 
23
23
  attr_accessor :number
24
24
 
25
+ attr_accessor :repository
26
+
25
27
  # A repository version whose content was used as the initial set of content for this repository version
26
28
  attr_accessor :base_version
27
29
 
@@ -34,6 +36,7 @@ module PulpFileClient
34
36
  :'pulp_href' => :'pulp_href',
35
37
  :'pulp_created' => :'pulp_created',
36
38
  :'number' => :'number',
39
+ :'repository' => :'repository',
37
40
  :'base_version' => :'base_version',
38
41
  :'content_summary' => :'content_summary'
39
42
  }
@@ -45,6 +48,7 @@ module PulpFileClient
45
48
  :'pulp_href' => :'String',
46
49
  :'pulp_created' => :'DateTime',
47
50
  :'number' => :'Integer',
51
+ :'repository' => :'String',
48
52
  :'base_version' => :'String',
49
53
  :'content_summary' => :'ContentSummaryResponse'
50
54
  }
@@ -83,6 +87,10 @@ module PulpFileClient
83
87
  self.number = attributes[:'number']
84
88
  end
85
89
 
90
+ if attributes.key?(:'repository')
91
+ self.repository = attributes[:'repository']
92
+ end
93
+
86
94
  if attributes.key?(:'base_version')
87
95
  self.base_version = attributes[:'base_version']
88
96
  end
@@ -113,6 +121,7 @@ module PulpFileClient
113
121
  pulp_href == o.pulp_href &&
114
122
  pulp_created == o.pulp_created &&
115
123
  number == o.number &&
124
+ repository == o.repository &&
116
125
  base_version == o.base_version &&
117
126
  content_summary == o.content_summary
118
127
  end
@@ -126,7 +135,7 @@ module PulpFileClient
126
135
  # Calculates hash code according to all attributes.
127
136
  # @return [Integer] Hash code
128
137
  def hash
129
- [pulp_href, pulp_created, number, base_version, content_summary].hash
138
+ [pulp_href, pulp_created, number, repository, base_version, content_summary].hash
130
139
  end
131
140
 
132
141
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpFileClient
14
- VERSION = '1.7.0'
14
+ VERSION = '1.8.0'
15
15
  end
@@ -20,33 +20,26 @@ require 'pulp_file_client/configuration'
20
20
  require 'pulp_file_client/models/async_operation_response'
21
21
  require 'pulp_file_client/models/content_summary'
22
22
  require 'pulp_file_client/models/content_summary_response'
23
- require 'pulp_file_client/models/export_response'
24
23
  require 'pulp_file_client/models/file_file_content'
25
24
  require 'pulp_file_client/models/file_file_content_response'
26
25
  require 'pulp_file_client/models/file_file_distribution'
27
26
  require 'pulp_file_client/models/file_file_distribution_response'
28
- require 'pulp_file_client/models/file_file_filesystem_exporter'
29
- require 'pulp_file_client/models/file_file_filesystem_exporter_response'
30
27
  require 'pulp_file_client/models/file_file_publication'
31
28
  require 'pulp_file_client/models/file_file_publication_response'
32
29
  require 'pulp_file_client/models/file_file_remote'
33
30
  require 'pulp_file_client/models/file_file_remote_response'
34
31
  require 'pulp_file_client/models/file_file_repository'
35
32
  require 'pulp_file_client/models/file_file_repository_response'
36
- require 'pulp_file_client/models/paginated_export_response_list'
37
33
  require 'pulp_file_client/models/paginated_repository_version_response_list'
38
34
  require 'pulp_file_client/models/paginatedfile_file_content_response_list'
39
35
  require 'pulp_file_client/models/paginatedfile_file_distribution_response_list'
40
- require 'pulp_file_client/models/paginatedfile_file_filesystem_exporter_response_list'
41
36
  require 'pulp_file_client/models/paginatedfile_file_publication_response_list'
42
37
  require 'pulp_file_client/models/paginatedfile_file_remote_response_list'
43
38
  require 'pulp_file_client/models/paginatedfile_file_repository_response_list'
44
39
  require 'pulp_file_client/models/patchedfile_file_distribution'
45
- require 'pulp_file_client/models/patchedfile_file_filesystem_exporter'
46
40
  require 'pulp_file_client/models/patchedfile_file_remote'
47
41
  require 'pulp_file_client/models/patchedfile_file_repository'
48
42
  require 'pulp_file_client/models/policy_enum'
49
- require 'pulp_file_client/models/publication_export'
50
43
  require 'pulp_file_client/models/repository_add_remove_content'
51
44
  require 'pulp_file_client/models/repository_sync_url'
52
45
  require 'pulp_file_client/models/repository_version'
@@ -55,8 +48,6 @@ require 'pulp_file_client/models/repository_version_response'
55
48
  # APIs
56
49
  require 'pulp_file_client/api/content_files_api'
57
50
  require 'pulp_file_client/api/distributions_file_api'
58
- require 'pulp_file_client/api/exporters_file_exports_api'
59
- require 'pulp_file_client/api/exporters_filesystem_api'
60
51
  require 'pulp_file_client/api/publications_file_api'
61
52
  require 'pulp_file_client/api/remotes_file_api'
62
53
  require 'pulp_file_client/api/repositories_file_api'
@@ -60,6 +60,8 @@ describe 'PublicationsFileApi' do
60
60
  # List file publications
61
61
  # A FilePublication contains metadata about all the File Content in a particular File Repository Version. Once a FilePublication has been created, it can be hosted using the File Distribution API.
62
62
  # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :content Content Unit referenced by HREF
64
+ # @option opts [String] :content__in Content Unit referenced by HREF
63
65
  # @option opts [Integer] :limit Number of results to return per page.
64
66
  # @option opts [Integer] :offset The initial index from which to return the results.
65
67
  # @option opts [String] :ordering Which field to use when ordering the results.
@@ -74,6 +74,12 @@ describe 'FileFileRepositoryResponse' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "retained_versions"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
77
83
  describe 'test attribute "remote"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'FileFileRepository' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "retained_versions"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "remote"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'PatchedfileFileRepository' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "retained_versions"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "remote"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'RepositoryVersionResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "repository"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "base_version"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers