pulp_rpm_client 3.14.9 → 3.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- 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 +1 -3
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- 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 +4 -14
- 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/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +0 -1
- 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 +0 -6
- data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +1 -1
- metadata +63 -67
- data/docs/SyncPolicyEnum.md +0 -16
- data/lib/pulp_rpm_client/models/sync_policy_enum.rb +0 -37
- data/spec/models/sync_policy_enum_spec.rb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a0f868a6b2c23d0234ed3e2a7b4b622cfe1e5ad0040f214a93d4945073f2ff0
|
4
|
+
data.tar.gz: 16e7f0636383a2d7f213fe83f5a7480f1cc0f723f5ab7c6436a7c2e9ac980894
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf23d5cc4185c15f09ab46583c05cafbd41e1656f2b74176493febfde30e3d68ff3eff96042bd022caa5b822eb1a73fe513ee5c9bd386b29162d2203e4f8ceb
|
7
|
+
data.tar.gz: 5eec77db196250c0e167cd6095c2a1c69261f4ad77d05ac6c7dcbe7f71001df79688b5f7a3ba5e9e607a0687d64f839844182037d138e97319d6b2097ef2edfd
|
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.15.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_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.15.0.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.15.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_rpm_client', '~> 3.
|
36
|
+
gem 'pulp_rpm_client', '~> 3.15.0'
|
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,7 +211,6 @@ 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)
|
215
214
|
- [PulpRpmClient::VariantResponse](docs/VariantResponse.md)
|
216
215
|
|
217
216
|
|
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,8 +5,7 @@
|
|
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** |
|
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]
|
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]
|
10
9
|
**skip_types** | [**Array<SkipTypesEnum>**](SkipTypesEnum.md) | List of content types to skip during sync. | [optional]
|
11
10
|
**optimize** | **Boolean** | Whether or not to optimize sync. | [optional] [default to true]
|
12
11
|
|
@@ -17,7 +16,6 @@ require 'PulpRpmClient'
|
|
17
16
|
|
18
17
|
instance = PulpRpmClient::RpmRepositorySyncURL.new(remote: null,
|
19
18
|
mirror: null,
|
20
|
-
sync_policy: null,
|
21
19
|
skip_types: null,
|
22
20
|
optimize: null)
|
23
21
|
```
|
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,
|
@@ -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,12 +18,9 @@ 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
|
-
#
|
21
|
+
# If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
|
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
|
-
|
27
24
|
# List of content types to skip during sync.
|
28
25
|
attr_accessor :skip_types
|
29
26
|
|
@@ -35,7 +32,6 @@ module PulpRpmClient
|
|
35
32
|
{
|
36
33
|
:'remote' => :'remote',
|
37
34
|
:'mirror' => :'mirror',
|
38
|
-
:'sync_policy' => :'sync_policy',
|
39
35
|
:'skip_types' => :'skip_types',
|
40
36
|
:'optimize' => :'optimize'
|
41
37
|
}
|
@@ -46,7 +42,6 @@ module PulpRpmClient
|
|
46
42
|
{
|
47
43
|
:'remote' => :'String',
|
48
44
|
:'mirror' => :'Boolean',
|
49
|
-
:'sync_policy' => :'SyncPolicyEnum',
|
50
45
|
:'skip_types' => :'Array<SkipTypesEnum>',
|
51
46
|
:'optimize' => :'Boolean'
|
52
47
|
}
|
@@ -55,8 +50,6 @@ module PulpRpmClient
|
|
55
50
|
# List of attributes with nullable: true
|
56
51
|
def self.openapi_nullable
|
57
52
|
Set.new([
|
58
|
-
:'mirror',
|
59
|
-
:'sync_policy',
|
60
53
|
])
|
61
54
|
end
|
62
55
|
|
@@ -81,10 +74,8 @@ module PulpRpmClient
|
|
81
74
|
|
82
75
|
if attributes.key?(:'mirror')
|
83
76
|
self.mirror = attributes[:'mirror']
|
84
|
-
|
85
|
-
|
86
|
-
if attributes.key?(:'sync_policy')
|
87
|
-
self.sync_policy = attributes[:'sync_policy']
|
77
|
+
else
|
78
|
+
self.mirror = false
|
88
79
|
end
|
89
80
|
|
90
81
|
if attributes.key?(:'skip_types')
|
@@ -120,7 +111,6 @@ module PulpRpmClient
|
|
120
111
|
self.class == o.class &&
|
121
112
|
remote == o.remote &&
|
122
113
|
mirror == o.mirror &&
|
123
|
-
sync_policy == o.sync_policy &&
|
124
114
|
skip_types == o.skip_types &&
|
125
115
|
optimize == o.optimize
|
126
116
|
end
|
@@ -134,7 +124,7 @@ module PulpRpmClient
|
|
134
124
|
# Calculates hash code according to all attributes.
|
135
125
|
# @return [Integer] Hash code
|
136
126
|
def hash
|
137
|
-
[remote, mirror,
|
127
|
+
[remote, mirror, skip_types, optimize].hash
|
138
128
|
end
|
139
129
|
|
140
130
|
# 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
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -79,7 +79,6 @@ 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'
|
83
82
|
require 'pulp_rpm_client/models/variant_response'
|
84
83
|
|
85
84
|
# 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,12 +44,6 @@ 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
|
-
|
53
47
|
describe 'test attribute "skip_types"' do
|
54
48
|
it 'should work' do
|
55
49
|
# 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
|
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.15.0
|
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-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -153,7 +153,6 @@ files:
|
|
153
153
|
- docs/RpmUpdateRecord.md
|
154
154
|
- docs/RpmUpdateRecordResponse.md
|
155
155
|
- docs/SkipTypesEnum.md
|
156
|
-
- docs/SyncPolicyEnum.md
|
157
156
|
- docs/VariantResponse.md
|
158
157
|
- git_push.sh
|
159
158
|
- lib/pulp_rpm_client.rb
|
@@ -239,7 +238,6 @@ files:
|
|
239
238
|
- lib/pulp_rpm_client/models/rpm_update_record.rb
|
240
239
|
- lib/pulp_rpm_client/models/rpm_update_record_response.rb
|
241
240
|
- lib/pulp_rpm_client/models/skip_types_enum.rb
|
242
|
-
- lib/pulp_rpm_client/models/sync_policy_enum.rb
|
243
241
|
- lib/pulp_rpm_client/models/variant_response.rb
|
244
242
|
- lib/pulp_rpm_client/version.rb
|
245
243
|
- pulp_rpm_client.gemspec
|
@@ -324,7 +322,6 @@ files:
|
|
324
322
|
- spec/models/rpm_update_record_response_spec.rb
|
325
323
|
- spec/models/rpm_update_record_spec.rb
|
326
324
|
- spec/models/skip_types_enum_spec.rb
|
327
|
-
- spec/models/sync_policy_enum_spec.rb
|
328
325
|
- spec/models/variant_response_spec.rb
|
329
326
|
- spec/spec_helper.rb
|
330
327
|
homepage: https://openapi-generator.tech
|
@@ -351,87 +348,86 @@ signing_key:
|
|
351
348
|
specification_version: 4
|
352
349
|
summary: Pulp 3 API Ruby Gem
|
353
350
|
test_files:
|
354
|
-
- spec/api/
|
355
|
-
- spec/api/repositories_rpm_api_spec.rb
|
351
|
+
- spec/api/content_distribution_trees_api_spec.rb
|
356
352
|
- spec/api/publications_rpm_api_spec.rb
|
353
|
+
- spec/api/content_packageenvironments_api_spec.rb
|
357
354
|
- spec/api/content_modulemd_defaults_api_spec.rb
|
358
|
-
- spec/api/
|
355
|
+
- spec/api/content_packagelangpacks_api_spec.rb
|
356
|
+
- spec/api/remotes_uln_api_spec.rb
|
359
357
|
- spec/api/rpm_copy_api_spec.rb
|
358
|
+
- spec/api/content_modulemds_api_spec.rb
|
360
359
|
- spec/api/repositories_rpm_versions_api_spec.rb
|
361
360
|
- spec/api/content_advisories_api_spec.rb
|
362
|
-
- spec/api/
|
363
|
-
- spec/api/
|
364
|
-
- spec/api/content_distribution_trees_api_spec.rb
|
365
|
-
- spec/api/content_modulemds_api_spec.rb
|
366
|
-
- spec/api/remotes_rpm_api_spec.rb
|
367
|
-
- spec/api/content_packagelangpacks_api_spec.rb
|
361
|
+
- spec/api/content_packagegroups_api_spec.rb
|
362
|
+
- spec/api/repositories_rpm_api_spec.rb
|
368
363
|
- spec/api/content_packagecategories_api_spec.rb
|
369
|
-
- spec/api/
|
364
|
+
- spec/api/content_packages_api_spec.rb
|
365
|
+
- spec/api/content_repo_metadata_files_api_spec.rb
|
370
366
|
- spec/api/distributions_rpm_api_spec.rb
|
367
|
+
- spec/api/remotes_rpm_api_spec.rb
|
371
368
|
- spec/api_client_spec.rb
|
372
369
|
- spec/configuration_spec.rb
|
373
|
-
- spec/models/
|
374
|
-
- spec/models/
|
370
|
+
- spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
|
371
|
+
- spec/models/rpm_repository_sync_url_spec.rb
|
372
|
+
- spec/models/rpm_modulemd_defaults_spec.rb
|
373
|
+
- spec/models/variant_response_spec.rb
|
375
374
|
- spec/models/rpm_package_response_spec.rb
|
376
|
-
- spec/models/
|
375
|
+
- spec/models/rpm_rpm_remote_response_spec.rb
|
376
|
+
- spec/models/copy_spec.rb
|
377
|
+
- spec/models/rpm_distribution_tree_response_spec.rb
|
377
378
|
- spec/models/rpm_package_group_response_spec.rb
|
378
|
-
- spec/models/
|
379
|
-
- spec/models/
|
380
|
-
- spec/models/
|
381
|
-
- spec/models/
|
382
|
-
- spec/models/
|
383
|
-
- spec/models/
|
379
|
+
- spec/models/paginatedrpm_package_response_list_spec.rb
|
380
|
+
- spec/models/rpm_rpm_publication_response_spec.rb
|
381
|
+
- spec/models/skip_types_enum_spec.rb
|
382
|
+
- spec/models/package_checksum_type_enum_spec.rb
|
383
|
+
- spec/models/rpm_rpm_repository_spec.rb
|
384
|
+
- spec/models/rpm_uln_remote_response_spec.rb
|
385
|
+
- spec/models/paginatedrpm_package_environment_response_list_spec.rb
|
384
386
|
- spec/models/paginatedrpm_uln_remote_response_list_spec.rb
|
385
|
-
- spec/models/
|
386
|
-
- spec/models/
|
387
|
-
- spec/models/
|
388
|
-
- spec/models/
|
389
|
-
- spec/models/rpm_update_collection_spec.rb
|
387
|
+
- spec/models/metadata_checksum_type_enum_spec.rb
|
388
|
+
- spec/models/repository_version_spec.rb
|
389
|
+
- spec/models/image_response_spec.rb
|
390
|
+
- spec/models/rpm_uln_remote_spec.rb
|
390
391
|
- spec/models/policy_enum_spec.rb
|
392
|
+
- spec/models/repository_version_response_spec.rb
|
391
393
|
- spec/models/rpm_update_record_spec.rb
|
392
|
-
- spec/models/
|
393
|
-
- spec/models/
|
394
|
-
- spec/models/
|
394
|
+
- spec/models/paginatedrpm_package_group_response_list_spec.rb
|
395
|
+
- spec/models/rpm_package_environment_response_spec.rb
|
396
|
+
- spec/models/addon_response_spec.rb
|
397
|
+
- spec/models/rpm_repo_metadata_file_response_spec.rb
|
398
|
+
- spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
|
399
|
+
- spec/models/rpm_package_langpacks_response_spec.rb
|
400
|
+
- spec/models/content_summary_response_spec.rb
|
401
|
+
- spec/models/async_operation_response_spec.rb
|
402
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
403
|
+
- spec/models/patchedrpm_rpm_remote_spec.rb
|
404
|
+
- spec/models/patchedrpm_rpm_distribution_spec.rb
|
395
405
|
- spec/models/rpm_package_spec.rb
|
396
|
-
- spec/models/
|
397
|
-
- spec/models/
|
398
|
-
- spec/models/
|
406
|
+
- spec/models/rpm_update_collection_spec.rb
|
407
|
+
- spec/models/paginatedrpm_repo_metadata_file_response_list_spec.rb
|
408
|
+
- spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
|
409
|
+
- spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
|
399
410
|
- spec/models/artifact_response_spec.rb
|
400
|
-
- spec/models/
|
401
|
-
- spec/models/
|
402
|
-
- spec/models/
|
411
|
+
- spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
|
412
|
+
- spec/models/patchedrpm_rpm_repository_spec.rb
|
413
|
+
- spec/models/patchedrpm_uln_remote_spec.rb
|
414
|
+
- spec/models/rpm_modulemd_defaults_response_spec.rb
|
415
|
+
- spec/models/paginatedrpm_modulemd_response_list_spec.rb
|
416
|
+
- spec/models/content_summary_spec.rb
|
403
417
|
- spec/models/rpm_package_category_response_spec.rb
|
404
|
-
- spec/models/
|
405
|
-
- spec/models/rpm_modulemd_defaults_spec.rb
|
418
|
+
- spec/models/rpm_rpm_repository_response_spec.rb
|
406
419
|
- spec/models/paginatedrpm_rpm_publication_response_list_spec.rb
|
420
|
+
- spec/models/paginatedrpm_rpm_repository_response_list_spec.rb
|
421
|
+
- spec/models/rpm_update_collection_response_spec.rb
|
422
|
+
- spec/models/rpm_modulemd_response_spec.rb
|
423
|
+
- spec/models/rpm_rpm_distribution_response_spec.rb
|
424
|
+
- spec/models/paginatedrpm_package_category_response_list_spec.rb
|
425
|
+
- spec/models/paginatedrpm_update_record_response_list_spec.rb
|
426
|
+
- spec/models/rpm_rpm_remote_spec.rb
|
427
|
+
- spec/models/repository_add_remove_content_spec.rb
|
428
|
+
- spec/models/rpm_rpm_distribution_spec.rb
|
407
429
|
- spec/models/rpm_modulemd_spec.rb
|
430
|
+
- spec/models/checksum_response_spec.rb
|
408
431
|
- spec/models/rpm_update_record_response_spec.rb
|
409
|
-
- spec/models/content_summary_spec.rb
|
410
432
|
- spec/models/rpm_rpm_publication_spec.rb
|
411
|
-
- spec/models/paginatedrpm_distribution_tree_response_list_spec.rb
|
412
|
-
- spec/models/paginatedrpm_modulemd_defaults_response_list_spec.rb
|
413
|
-
- spec/models/repository_version_spec.rb
|
414
|
-
- spec/models/image_response_spec.rb
|
415
|
-
- spec/models/async_operation_response_spec.rb
|
416
|
-
- spec/models/rpm_package_langpacks_response_spec.rb
|
417
|
-
- spec/models/rpm_uln_remote_response_spec.rb
|
418
|
-
- spec/models/addon_response_spec.rb
|
419
|
-
- spec/models/paginatedrpm_rpm_distribution_response_list_spec.rb
|
420
|
-
- spec/models/metadata_checksum_type_enum_spec.rb
|
421
|
-
- spec/models/paginatedrpm_update_record_response_list_spec.rb
|
422
|
-
- spec/models/paginatedrpm_package_group_response_list_spec.rb
|
423
|
-
- spec/models/rpm_distribution_tree_response_spec.rb
|
424
|
-
- spec/models/paginatedrpm_package_langpacks_response_list_spec.rb
|
425
|
-
- spec/models/paginatedrpm_package_response_list_spec.rb
|
426
|
-
- spec/models/paginatedrpm_rpm_remote_response_list_spec.rb
|
427
|
-
- spec/models/patchedrpm_uln_remote_spec.rb
|
428
|
-
- spec/models/package_checksum_type_enum_spec.rb
|
429
|
-
- spec/models/rpm_rpm_repository_spec.rb
|
430
|
-
- spec/models/paginatedrpm_package_category_response_list_spec.rb
|
431
|
-
- spec/models/skip_types_enum_spec.rb
|
432
|
-
- spec/models/rpm_uln_remote_spec.rb
|
433
|
-
- spec/models/patchedrpm_rpm_distribution_spec.rb
|
434
|
-
- spec/models/rpm_repo_metadata_file_response_spec.rb
|
435
|
-
- spec/models/rpm_rpm_publication_response_spec.rb
|
436
|
-
- spec/models/paginatedrpm_package_environment_response_list_spec.rb
|
437
433
|
- spec/spec_helper.rb
|
data/docs/SyncPolicyEnum.md
DELETED
@@ -1,16 +0,0 @@
|
|
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
|
-
|
@@ -1,37 +0,0 @@
|
|
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
|
@@ -1,35 +0,0 @@
|
|
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
|