pulp_rpm_client 3.14.7 → 3.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/ContentAdvisoriesApi.md +1 -1
- data/docs/ContentDistributionTreesApi.md +1 -1
- data/docs/ContentModulemdDefaultsApi.md +1 -1
- data/docs/ContentModulemdsApi.md +1 -1
- data/docs/ContentPackagecategoriesApi.md +1 -1
- data/docs/ContentPackageenvironmentsApi.md +1 -1
- data/docs/ContentPackagegroupsApi.md +1 -1
- data/docs/ContentPackagelangpacksApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentRepoMetadataFilesApi.md +1 -1
- data/docs/DistributionsRpmApi.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +3 -3
- data/docs/PublicationsRpmApi.md +1 -1
- data/docs/RemotesRpmApi.md +1 -1
- data/docs/RemotesUlnApi.md +1 -1
- data/docs/RepositoriesRpmApi.md +1 -1
- data/docs/RepositoriesRpmVersionsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -1
- data/docs/RpmRepositorySyncURL.md +3 -1
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- data/docs/SyncPolicyEnum.md +16 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +17 -16
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +14 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +17 -16
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +17 -16
- data/lib/pulp_rpm_client/models/sync_policy_enum.rb +37 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
- data/spec/models/rpm_repository_sync_url_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +1 -1
- data/spec/models/sync_policy_enum_spec.rb +35 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b4616ebdfc0dd547ec5dbf1487dc815777396c93a3b676364ec9188b945893
|
4
|
+
data.tar.gz: e7618a8288030cd1003dba9b5fdfc39a64108bd80c3869b1d501c328807b61b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac2a79baa4f64807667fcc25b87b74344d5b5e22b87d59cbec9270a5b9b84666717f5a26a7ab01704f2e78ba15aba4f705e9209585d66506a2c6c576d701147
|
7
|
+
data.tar.gz: ff1a44a21d56dc44c83995fc803eb211fddae1b2ebb7d0105318c3f7d7f070180386bb5a91e37050a6ed21426ace6ec4278720b86d5c351af92f3deff7e15856
|
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: 3.
|
10
|
+
- Package version: 3.16.1
|
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_rpm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_rpm_client-3.
|
27
|
+
gem install ./pulp_rpm_client-3.16.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_rpm_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_rpm_client-3.16.1.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_rpm_client', '~> 3.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.16.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -82,7 +82,7 @@ end
|
|
82
82
|
|
83
83
|
## Documentation for API Endpoints
|
84
84
|
|
85
|
-
All URIs are relative to *
|
85
|
+
All URIs are relative to *https://pulp*
|
86
86
|
|
87
87
|
Class | Method | HTTP request | Description
|
88
88
|
------------ | ------------- | ------------- | -------------
|
@@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
|
|
211
211
|
- [PulpRpmClient::RpmUpdateRecord](docs/RpmUpdateRecord.md)
|
212
212
|
- [PulpRpmClient::RpmUpdateRecordResponse](docs/RpmUpdateRecordResponse.md)
|
213
213
|
- [PulpRpmClient::SkipTypesEnum](docs/SkipTypesEnum.md)
|
214
|
+
- [PulpRpmClient::SyncPolicyEnum](docs/SyncPolicyEnum.md)
|
214
215
|
- [PulpRpmClient::VariantResponse](docs/VariantResponse.md)
|
215
216
|
|
216
217
|
|
data/docs/ContentModulemdsApi.md
CHANGED
data/docs/ContentPackagesApi.md
CHANGED
data/docs/DistributionsRpmApi.md
CHANGED
@@ -7,8 +7,8 @@ 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
|
-
**
|
11
|
-
**remote** | **String** |
|
10
|
+
**retain_repo_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]
|
11
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
14
14
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
@@ -26,7 +26,7 @@ require 'PulpRpmClient'
|
|
26
26
|
instance = PulpRpmClient::PatchedrpmRpmRepository.new(pulp_labels: null,
|
27
27
|
name: null,
|
28
28
|
description: null,
|
29
|
-
|
29
|
+
retain_repo_versions: null,
|
30
30
|
remote: null,
|
31
31
|
autopublish: null,
|
32
32
|
metadata_signing_service: null,
|
data/docs/PublicationsRpmApi.md
CHANGED
data/docs/RemotesRpmApi.md
CHANGED
data/docs/RemotesUlnApi.md
CHANGED
data/docs/RepositoriesRpmApi.md
CHANGED
data/docs/RpmCopyApi.md
CHANGED
@@ -5,7 +5,8 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
|
8
|
-
**mirror** | **Boolean** | If ``True``,
|
8
|
+
**mirror** | **Boolean** | DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'. | [optional]
|
9
|
+
**sync_policy** | [**SyncPolicyEnum**](SyncPolicyEnum.md) | Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced. | [optional]
|
9
10
|
**skip_types** | [**Array<SkipTypesEnum>**](SkipTypesEnum.md) | List of content types to skip during sync. | [optional]
|
10
11
|
**optimize** | **Boolean** | Whether or not to optimize sync. | [optional] [default to true]
|
11
12
|
|
@@ -16,6 +17,7 @@ require 'PulpRpmClient'
|
|
16
17
|
|
17
18
|
instance = PulpRpmClient::RpmRepositorySyncURL.new(remote: null,
|
18
19
|
mirror: null,
|
20
|
+
sync_policy: null,
|
19
21
|
skip_types: null,
|
20
22
|
optimize: null)
|
21
23
|
```
|
data/docs/RpmRpmRepository.md
CHANGED
@@ -7,8 +7,8 @@ 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
|
-
**
|
11
|
-
**remote** | **String** |
|
10
|
+
**retain_repo_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]
|
11
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
12
12
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
13
13
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
14
14
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
@@ -26,7 +26,7 @@ require 'PulpRpmClient'
|
|
26
26
|
instance = PulpRpmClient::RpmRpmRepository.new(pulp_labels: null,
|
27
27
|
name: null,
|
28
28
|
description: null,
|
29
|
-
|
29
|
+
retain_repo_versions: null,
|
30
30
|
remote: null,
|
31
31
|
autopublish: null,
|
32
32
|
metadata_signing_service: null,
|
@@ -11,8 +11,8 @@ 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
|
-
**
|
15
|
-
**remote** | **String** |
|
14
|
+
**retain_repo_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]
|
15
|
+
**remote** | **String** | An optional remote to use by default when syncing. | [optional]
|
16
16
|
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
17
17
|
**metadata_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
18
18
|
**retain_package_versions** | **Integer** | The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package. | [optional]
|
@@ -34,7 +34,7 @@ instance = PulpRpmClient::RpmRpmRepositoryResponse.new(pulp_href: null,
|
|
34
34
|
latest_version_href: null,
|
35
35
|
name: null,
|
36
36
|
description: null,
|
37
|
-
|
37
|
+
retain_repo_versions: null,
|
38
38
|
remote: null,
|
39
39
|
autopublish: null,
|
40
40
|
metadata_signing_service: null,
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# PulpRpmClient::SyncPolicyEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'PulpRpmClient'
|
12
|
+
|
13
|
+
instance = PulpRpmClient::SyncPolicyEnum.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
@@ -127,7 +127,7 @@ module PulpRpmClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'https'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -209,7 +209,7 @@ module PulpRpmClient
|
|
209
209
|
def server_settings
|
210
210
|
[
|
211
211
|
{
|
212
|
-
url: "
|
212
|
+
url: "https://pulp/",
|
213
213
|
description: "No description provided",
|
214
214
|
}
|
215
215
|
]
|
@@ -24,8 +24,9 @@ module PulpRpmClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
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 :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -58,7 +59,7 @@ module PulpRpmClient
|
|
58
59
|
:'pulp_labels' => :'pulp_labels',
|
59
60
|
:'name' => :'name',
|
60
61
|
:'description' => :'description',
|
61
|
-
:'
|
62
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
62
63
|
:'remote' => :'remote',
|
63
64
|
:'autopublish' => :'autopublish',
|
64
65
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -77,7 +78,7 @@ module PulpRpmClient
|
|
77
78
|
:'pulp_labels' => :'Object',
|
78
79
|
:'name' => :'String',
|
79
80
|
:'description' => :'String',
|
80
|
-
:'
|
81
|
+
:'retain_repo_versions' => :'Integer',
|
81
82
|
:'remote' => :'String',
|
82
83
|
:'autopublish' => :'Boolean',
|
83
84
|
:'metadata_signing_service' => :'String',
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
def self.openapi_nullable
|
95
96
|
Set.new([
|
96
97
|
:'description',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions',
|
98
99
|
:'remote',
|
99
100
|
:'metadata_signing_service',
|
100
101
|
:'metadata_checksum_type',
|
@@ -129,8 +130,8 @@ module PulpRpmClient
|
|
129
130
|
self.description = attributes[:'description']
|
130
131
|
end
|
131
132
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
133
|
+
if attributes.key?(:'retain_repo_versions')
|
134
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
134
135
|
end
|
135
136
|
|
136
137
|
if attributes.key?(:'remote')
|
@@ -182,8 +183,8 @@ module PulpRpmClient
|
|
182
183
|
# @return Array for valid properties with the reasons
|
183
184
|
def list_invalid_properties
|
184
185
|
invalid_properties = Array.new
|
185
|
-
if !@
|
186
|
-
invalid_properties.push('invalid value for "
|
186
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
187
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
187
188
|
end
|
188
189
|
|
189
190
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -212,7 +213,7 @@ module PulpRpmClient
|
|
212
213
|
# Check to see if the all the properties in the model are valid
|
213
214
|
# @return true if the model is valid
|
214
215
|
def valid?
|
215
|
-
return false if !@
|
216
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
216
217
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
217
218
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
218
219
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -222,13 +223,13 @@ module PulpRpmClient
|
|
222
223
|
end
|
223
224
|
|
224
225
|
# Custom attribute writer method with validation
|
225
|
-
# @param [Object]
|
226
|
-
def
|
227
|
-
if !
|
228
|
-
fail ArgumentError, 'invalid value for "
|
226
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
227
|
+
def retain_repo_versions=(retain_repo_versions)
|
228
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
229
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
229
230
|
end
|
230
231
|
|
231
|
-
@
|
232
|
+
@retain_repo_versions = retain_repo_versions
|
232
233
|
end
|
233
234
|
|
234
235
|
# Custom attribute writer method with validation
|
@@ -277,7 +278,7 @@ module PulpRpmClient
|
|
277
278
|
pulp_labels == o.pulp_labels &&
|
278
279
|
name == o.name &&
|
279
280
|
description == o.description &&
|
280
|
-
|
281
|
+
retain_repo_versions == o.retain_repo_versions &&
|
281
282
|
remote == o.remote &&
|
282
283
|
autopublish == o.autopublish &&
|
283
284
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -298,7 +299,7 @@ module PulpRpmClient
|
|
298
299
|
# Calculates hash code according to all attributes.
|
299
300
|
# @return [Integer] Hash code
|
300
301
|
def hash
|
301
|
-
[pulp_labels, name, description,
|
302
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
302
303
|
end
|
303
304
|
|
304
305
|
# Builds the object from hash
|
@@ -18,9 +18,12 @@ module PulpRpmClient
|
|
18
18
|
# A remote to sync from. This will override a remote set on repository.
|
19
19
|
attr_accessor :remote
|
20
20
|
|
21
|
-
# If ``True``,
|
21
|
+
# DEPRECATED: If ``True``, ``sync_policy`` will default to 'mirror_complete' instead of 'additive'.
|
22
22
|
attr_accessor :mirror
|
23
23
|
|
24
|
+
# Options: 'additive', 'mirror_complete', 'mirror_content_only'. Default: 'additive'. Modifies how the sync is performed. 'mirror_complete' will clone the original metadata and create an automatic publication from it, but comes with some limitations and does not work for certain repositories. 'mirror_content_only' will change the repository contents to match the remote but the metadata will be regenerated and will not be bit-for-bit identical. 'additive' will retain the existing contents of the repository and add the contents of the repository being synced.
|
25
|
+
attr_accessor :sync_policy
|
26
|
+
|
24
27
|
# List of content types to skip during sync.
|
25
28
|
attr_accessor :skip_types
|
26
29
|
|
@@ -32,6 +35,7 @@ module PulpRpmClient
|
|
32
35
|
{
|
33
36
|
:'remote' => :'remote',
|
34
37
|
:'mirror' => :'mirror',
|
38
|
+
:'sync_policy' => :'sync_policy',
|
35
39
|
:'skip_types' => :'skip_types',
|
36
40
|
:'optimize' => :'optimize'
|
37
41
|
}
|
@@ -42,6 +46,7 @@ module PulpRpmClient
|
|
42
46
|
{
|
43
47
|
:'remote' => :'String',
|
44
48
|
:'mirror' => :'Boolean',
|
49
|
+
:'sync_policy' => :'SyncPolicyEnum',
|
45
50
|
:'skip_types' => :'Array<SkipTypesEnum>',
|
46
51
|
:'optimize' => :'Boolean'
|
47
52
|
}
|
@@ -50,6 +55,8 @@ module PulpRpmClient
|
|
50
55
|
# List of attributes with nullable: true
|
51
56
|
def self.openapi_nullable
|
52
57
|
Set.new([
|
58
|
+
:'mirror',
|
59
|
+
:'sync_policy',
|
53
60
|
])
|
54
61
|
end
|
55
62
|
|
@@ -74,8 +81,10 @@ module PulpRpmClient
|
|
74
81
|
|
75
82
|
if attributes.key?(:'mirror')
|
76
83
|
self.mirror = attributes[:'mirror']
|
77
|
-
|
78
|
-
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'sync_policy')
|
87
|
+
self.sync_policy = attributes[:'sync_policy']
|
79
88
|
end
|
80
89
|
|
81
90
|
if attributes.key?(:'skip_types')
|
@@ -111,6 +120,7 @@ module PulpRpmClient
|
|
111
120
|
self.class == o.class &&
|
112
121
|
remote == o.remote &&
|
113
122
|
mirror == o.mirror &&
|
123
|
+
sync_policy == o.sync_policy &&
|
114
124
|
skip_types == o.skip_types &&
|
115
125
|
optimize == o.optimize
|
116
126
|
end
|
@@ -124,7 +134,7 @@ module PulpRpmClient
|
|
124
134
|
# Calculates hash code according to all attributes.
|
125
135
|
# @return [Integer] Hash code
|
126
136
|
def hash
|
127
|
-
[remote, mirror, skip_types, optimize].hash
|
137
|
+
[remote, mirror, sync_policy, skip_types, optimize].hash
|
128
138
|
end
|
129
139
|
|
130
140
|
# Builds the object from hash
|
@@ -24,8 +24,9 @@ module PulpRpmClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
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 :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -58,7 +59,7 @@ module PulpRpmClient
|
|
58
59
|
:'pulp_labels' => :'pulp_labels',
|
59
60
|
:'name' => :'name',
|
60
61
|
:'description' => :'description',
|
61
|
-
:'
|
62
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
62
63
|
:'remote' => :'remote',
|
63
64
|
:'autopublish' => :'autopublish',
|
64
65
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -77,7 +78,7 @@ module PulpRpmClient
|
|
77
78
|
:'pulp_labels' => :'Object',
|
78
79
|
:'name' => :'String',
|
79
80
|
:'description' => :'String',
|
80
|
-
:'
|
81
|
+
:'retain_repo_versions' => :'Integer',
|
81
82
|
:'remote' => :'String',
|
82
83
|
:'autopublish' => :'Boolean',
|
83
84
|
:'metadata_signing_service' => :'String',
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
def self.openapi_nullable
|
95
96
|
Set.new([
|
96
97
|
:'description',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions',
|
98
99
|
:'remote',
|
99
100
|
:'metadata_signing_service',
|
100
101
|
:'metadata_checksum_type',
|
@@ -129,8 +130,8 @@ module PulpRpmClient
|
|
129
130
|
self.description = attributes[:'description']
|
130
131
|
end
|
131
132
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
133
|
+
if attributes.key?(:'retain_repo_versions')
|
134
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
134
135
|
end
|
135
136
|
|
136
137
|
if attributes.key?(:'remote')
|
@@ -186,8 +187,8 @@ module PulpRpmClient
|
|
186
187
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
187
188
|
end
|
188
189
|
|
189
|
-
if !@
|
190
|
-
invalid_properties.push('invalid value for "
|
190
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
191
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
191
192
|
end
|
192
193
|
|
193
194
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -217,7 +218,7 @@ module PulpRpmClient
|
|
217
218
|
# @return true if the model is valid
|
218
219
|
def valid?
|
219
220
|
return false if @name.nil?
|
220
|
-
return false if !@
|
221
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
221
222
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
222
223
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
223
224
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -227,13 +228,13 @@ module PulpRpmClient
|
|
227
228
|
end
|
228
229
|
|
229
230
|
# Custom attribute writer method with validation
|
230
|
-
# @param [Object]
|
231
|
-
def
|
232
|
-
if !
|
233
|
-
fail ArgumentError, 'invalid value for "
|
231
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
232
|
+
def retain_repo_versions=(retain_repo_versions)
|
233
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
234
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
234
235
|
end
|
235
236
|
|
236
|
-
@
|
237
|
+
@retain_repo_versions = retain_repo_versions
|
237
238
|
end
|
238
239
|
|
239
240
|
# Custom attribute writer method with validation
|
@@ -282,7 +283,7 @@ module PulpRpmClient
|
|
282
283
|
pulp_labels == o.pulp_labels &&
|
283
284
|
name == o.name &&
|
284
285
|
description == o.description &&
|
285
|
-
|
286
|
+
retain_repo_versions == o.retain_repo_versions &&
|
286
287
|
remote == o.remote &&
|
287
288
|
autopublish == o.autopublish &&
|
288
289
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -303,7 +304,7 @@ module PulpRpmClient
|
|
303
304
|
# Calculates hash code according to all attributes.
|
304
305
|
# @return [Integer] Hash code
|
305
306
|
def hash
|
306
|
-
[pulp_labels, name, description,
|
307
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
307
308
|
end
|
308
309
|
|
309
310
|
# Builds the object from hash
|
@@ -33,8 +33,9 @@ module PulpRpmClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
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 :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -71,7 +72,7 @@ module PulpRpmClient
|
|
71
72
|
:'latest_version_href' => :'latest_version_href',
|
72
73
|
:'name' => :'name',
|
73
74
|
:'description' => :'description',
|
74
|
-
:'
|
75
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
75
76
|
:'remote' => :'remote',
|
76
77
|
:'autopublish' => :'autopublish',
|
77
78
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
:'latest_version_href' => :'String',
|
95
96
|
:'name' => :'String',
|
96
97
|
:'description' => :'String',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions' => :'Integer',
|
98
99
|
:'remote' => :'String',
|
99
100
|
:'autopublish' => :'Boolean',
|
100
101
|
:'metadata_signing_service' => :'String',
|
@@ -111,7 +112,7 @@ module PulpRpmClient
|
|
111
112
|
def self.openapi_nullable
|
112
113
|
Set.new([
|
113
114
|
:'description',
|
114
|
-
:'
|
115
|
+
:'retain_repo_versions',
|
115
116
|
:'remote',
|
116
117
|
:'metadata_signing_service',
|
117
118
|
:'metadata_checksum_type',
|
@@ -162,8 +163,8 @@ module PulpRpmClient
|
|
162
163
|
self.description = attributes[:'description']
|
163
164
|
end
|
164
165
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
self.
|
166
|
+
if attributes.key?(:'retain_repo_versions')
|
167
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
167
168
|
end
|
168
169
|
|
169
170
|
if attributes.key?(:'remote')
|
@@ -219,8 +220,8 @@ module PulpRpmClient
|
|
219
220
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
220
221
|
end
|
221
222
|
|
222
|
-
if !@
|
223
|
-
invalid_properties.push('invalid value for "
|
223
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
224
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
224
225
|
end
|
225
226
|
|
226
227
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -250,7 +251,7 @@ module PulpRpmClient
|
|
250
251
|
# @return true if the model is valid
|
251
252
|
def valid?
|
252
253
|
return false if @name.nil?
|
253
|
-
return false if !@
|
254
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
254
255
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
255
256
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
256
257
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -260,13 +261,13 @@ module PulpRpmClient
|
|
260
261
|
end
|
261
262
|
|
262
263
|
# Custom attribute writer method with validation
|
263
|
-
# @param [Object]
|
264
|
-
def
|
265
|
-
if !
|
266
|
-
fail ArgumentError, 'invalid value for "
|
264
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
265
|
+
def retain_repo_versions=(retain_repo_versions)
|
266
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
267
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
267
268
|
end
|
268
269
|
|
269
|
-
@
|
270
|
+
@retain_repo_versions = retain_repo_versions
|
270
271
|
end
|
271
272
|
|
272
273
|
# Custom attribute writer method with validation
|
@@ -319,7 +320,7 @@ module PulpRpmClient
|
|
319
320
|
latest_version_href == o.latest_version_href &&
|
320
321
|
name == o.name &&
|
321
322
|
description == o.description &&
|
322
|
-
|
323
|
+
retain_repo_versions == o.retain_repo_versions &&
|
323
324
|
remote == o.remote &&
|
324
325
|
autopublish == o.autopublish &&
|
325
326
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -340,7 +341,7 @@ module PulpRpmClient
|
|
340
341
|
# Calculates hash code according to all attributes.
|
341
342
|
# @return [Integer] Hash code
|
342
343
|
def hash
|
343
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
344
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
344
345
|
end
|
345
346
|
|
346
347
|
# Builds the object from hash
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class SyncPolicyEnum
|
17
|
+
ADDITIVE = "additive".freeze
|
18
|
+
MIRROR_COMPLETE = "mirror_complete".freeze
|
19
|
+
MIRROR_CONTENT_ONLY = "mirror_content_only".freeze
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = SyncPolicyEnum.constants.select { |c| SyncPolicyEnum::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #SyncPolicyEnum" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -79,6 +79,7 @@ require 'pulp_rpm_client/models/rpm_update_collection_response'
|
|
79
79
|
require 'pulp_rpm_client/models/rpm_update_record'
|
80
80
|
require 'pulp_rpm_client/models/rpm_update_record_response'
|
81
81
|
require 'pulp_rpm_client/models/skip_types_enum'
|
82
|
+
require 'pulp_rpm_client/models/sync_policy_enum'
|
82
83
|
require 'pulp_rpm_client/models/variant_response'
|
83
84
|
|
84
85
|
# APIs
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpRpmClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpRpmClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpRpmClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -50,7 +50,7 @@ describe 'PatchedrpmRpmRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -44,6 +44,12 @@ describe 'RpmRepositorySyncURL' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "sync_policy"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "skip_types"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -74,7 +74,7 @@ describe 'RpmRpmRepositoryResponse' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "retain_repo_versions"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
@@ -50,7 +50,7 @@ describe 'RpmRpmRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpRpmClient::SyncPolicyEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SyncPolicyEnum' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpRpmClient::SyncPolicyEnum.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SyncPolicyEnum' do
|
31
|
+
it 'should create an instance of SyncPolicyEnum' do
|
32
|
+
expect(@instance).to be_instance_of(PulpRpmClient::SyncPolicyEnum)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_rpm_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- docs/RpmUpdateRecord.md
|
154
154
|
- docs/RpmUpdateRecordResponse.md
|
155
155
|
- docs/SkipTypesEnum.md
|
156
|
+
- docs/SyncPolicyEnum.md
|
156
157
|
- docs/VariantResponse.md
|
157
158
|
- git_push.sh
|
158
159
|
- lib/pulp_rpm_client.rb
|
@@ -238,6 +239,7 @@ files:
|
|
238
239
|
- lib/pulp_rpm_client/models/rpm_update_record.rb
|
239
240
|
- lib/pulp_rpm_client/models/rpm_update_record_response.rb
|
240
241
|
- lib/pulp_rpm_client/models/skip_types_enum.rb
|
242
|
+
- lib/pulp_rpm_client/models/sync_policy_enum.rb
|
241
243
|
- lib/pulp_rpm_client/models/variant_response.rb
|
242
244
|
- lib/pulp_rpm_client/version.rb
|
243
245
|
- pulp_rpm_client.gemspec
|
@@ -322,6 +324,7 @@ files:
|
|
322
324
|
- spec/models/rpm_update_record_response_spec.rb
|
323
325
|
- spec/models/rpm_update_record_spec.rb
|
324
326
|
- spec/models/skip_types_enum_spec.rb
|
327
|
+
- spec/models/sync_policy_enum_spec.rb
|
325
328
|
- spec/models/variant_response_spec.rb
|
326
329
|
- spec/spec_helper.rb
|
327
330
|
homepage: https://openapi-generator.tech
|
@@ -382,6 +385,7 @@ test_files:
|
|
382
385
|
- spec/models/rpm_rpm_distribution_response_spec.rb
|
383
386
|
- spec/models/rpm_package_environment_response_spec.rb
|
384
387
|
- spec/models/rpm_rpm_repository_spec.rb
|
388
|
+
- spec/models/sync_policy_enum_spec.rb
|
385
389
|
- spec/models/rpm_rpm_remote_response_spec.rb
|
386
390
|
- spec/models/rpm_modulemd_defaults_response_spec.rb
|
387
391
|
- spec/models/async_operation_response_spec.rb
|