pulp_deb_client 2.12.0 → 2.12.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 +4 -4
- data/docs/DebAptRepository.md +0 -2
- data/docs/DebAptRepositoryResponse.md +0 -2
- data/docs/PatcheddebAptRepository.md +0 -2
- data/docs/PublicationsAptApi.md +0 -4
- data/docs/PublicationsVerbatimApi.md +0 -4
- data/docs/RepositoryVersionResponse.md +0 -2
- data/lib/pulp_deb_client/api/publications_apt_api.rb +0 -6
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +0 -6
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +1 -27
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +1 -27
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +1 -27
- data/lib/pulp_deb_client/models/repository_version_response.rb +1 -10
- data/lib/pulp_deb_client/version.rb +1 -1
- data/spec/api/publications_apt_api_spec.rb +0 -2
- data/spec/api/publications_verbatim_api_spec.rb +0 -2
- data/spec/models/deb_apt_repository_response_spec.rb +0 -6
- data/spec/models/deb_apt_repository_spec.rb +0 -6
- data/spec/models/patcheddeb_apt_repository_spec.rb +0 -6
- data/spec/models/repository_version_response_spec.rb +0 -6
- metadata +57 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b328e9f3606dd17e397c544111d9297bd6ad0cab2f455b53ba6965f55968dfe
|
4
|
+
data.tar.gz: f9a9aa3876f0f3ef4cb26f37992863f5d5bdbccd73a1ee66568fba90a0fadc0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e665252b905a1144da333bb962512c4b09c5cd1b23c84b7995dd6e1d0720f5e0ab1dd4d23e43af96a0078a7cf5eff09f3555816268b2e19392e2e735b03a4d
|
7
|
+
data.tar.gz: 904337af78cbc8d66e41ab75ac5719a5b144b97ec4d3294e32c822e8f7a0c99450e2339c22d4124369c372f2fccfa962015706aa5c991db01c266dbdf768bc15
|
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: 2.12.
|
10
|
+
- Package version: 2.12.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_deb_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_deb_client-2.12.
|
27
|
+
gem install ./pulp_deb_client-2.12.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_deb_client-2.12.
|
30
|
+
(for development, run `gem install --dev ./pulp_deb_client-2.12.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_deb_client', '~> 2.12.
|
36
|
+
gem 'pulp_deb_client', '~> 2.12.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/DebAptRepository.md
CHANGED
@@ -7,7 +7,6 @@ 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]
|
11
10
|
**remote** | **String** | | [optional]
|
12
11
|
|
13
12
|
## Code Sample
|
@@ -18,7 +17,6 @@ require 'PulpDebClient'
|
|
18
17
|
instance = PulpDebClient::DebAptRepository.new(pulp_labels: null,
|
19
18
|
name: null,
|
20
19
|
description: null,
|
21
|
-
retained_versions: null,
|
22
20
|
remote: null)
|
23
21
|
```
|
24
22
|
|
@@ -11,7 +11,6 @@ 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]
|
15
14
|
**remote** | **String** | | [optional]
|
16
15
|
|
17
16
|
## Code Sample
|
@@ -26,7 +25,6 @@ instance = PulpDebClient::DebAptRepositoryResponse.new(pulp_href: null,
|
|
26
25
|
latest_version_href: null,
|
27
26
|
name: null,
|
28
27
|
description: null,
|
29
|
-
retained_versions: null,
|
30
28
|
remote: null)
|
31
29
|
```
|
32
30
|
|
@@ -7,7 +7,6 @@ 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]
|
11
10
|
**remote** | **String** | | [optional]
|
12
11
|
|
13
12
|
## Code Sample
|
@@ -18,7 +17,6 @@ require 'PulpDebClient'
|
|
18
17
|
instance = PulpDebClient::PatcheddebAptRepository.new(pulp_labels: null,
|
19
18
|
name: null,
|
20
19
|
description: null,
|
21
|
-
retained_versions: null,
|
22
20
|
remote: null)
|
23
21
|
```
|
24
22
|
|
data/docs/PublicationsAptApi.md
CHANGED
@@ -138,8 +138,6 @@ end
|
|
138
138
|
|
139
139
|
api_instance = PulpDebClient::PublicationsAptApi.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
|
143
141
|
limit: 56, # Integer | Number of results to return per page.
|
144
142
|
offset: 56, # Integer | The initial index from which to return the results.
|
145
143
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
@@ -168,8 +166,6 @@ end
|
|
168
166
|
|
169
167
|
Name | Type | Description | Notes
|
170
168
|
------------- | ------------- | ------------- | -------------
|
171
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
172
|
-
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
173
169
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
174
170
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
175
171
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
@@ -138,8 +138,6 @@ end
|
|
138
138
|
|
139
139
|
api_instance = PulpDebClient::PublicationsVerbatimApi.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
|
143
141
|
limit: 56, # Integer | Number of results to return per page.
|
144
142
|
offset: 56, # Integer | The initial index from which to return the results.
|
145
143
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
@@ -168,8 +166,6 @@ end
|
|
168
166
|
|
169
167
|
Name | Type | Description | Notes
|
170
168
|
------------- | ------------- | ------------- | -------------
|
171
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
172
|
-
**content__in** | **String**| Content Unit referenced by HREF | [optional]
|
173
169
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
174
170
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
175
171
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
@@ -7,7 +7,6 @@ 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]
|
11
10
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
12
11
|
**content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
|
13
12
|
|
@@ -19,7 +18,6 @@ require 'PulpDebClient'
|
|
19
18
|
instance = PulpDebClient::RepositoryVersionResponse.new(pulp_href: null,
|
20
19
|
pulp_created: null,
|
21
20
|
number: null,
|
22
|
-
repository: null,
|
23
21
|
base_version: null,
|
24
22
|
content_summary: null)
|
25
23
|
```
|
@@ -146,8 +146,6 @@ module PulpDebClient
|
|
146
146
|
# List apt publications
|
147
147
|
# An AptPublication is the ready to serve Pulp-internal representation of an AptRepositoryVersion. When creating an APT publication, users must use simple or structured mode (or both). If the publication should include '.deb' packages that were manually uploaded to the relevant AptRepository, users must use 'simple=true'. Conversely, 'structured=true' is only useful for publishing content obtained via synchronization. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
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
|
151
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
150
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
151
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -169,8 +167,6 @@ module PulpDebClient
|
|
169
167
|
# List apt publications
|
170
168
|
# An AptPublication is the ready to serve Pulp-internal representation of an AptRepositoryVersion. When creating an APT publication, users must use simple or structured mode (or both). If the publication should include '.deb' packages that were manually uploaded to the relevant AptRepository, users must use 'simple=true'. Conversely, 'structured=true' is only useful for publishing content obtained via synchronization. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
171
169
|
# @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
|
174
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
175
171
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
172
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -193,8 +189,6 @@ module PulpDebClient
|
|
193
189
|
|
194
190
|
# query parameters
|
195
191
|
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?
|
198
192
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
193
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
194
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
@@ -146,8 +146,6 @@ module PulpDebClient
|
|
146
146
|
# List verbatim publications
|
147
147
|
# An VerbatimPublication is the Pulp-internal representation of a \"mirrored\" AptRepositoryVersion. In other words, the verbatim publisher will recreate the synced subset of some a APT repository using the exact same metadata files and signatures as used by the upstream original. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
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
|
151
149
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
150
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
151
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -169,8 +167,6 @@ module PulpDebClient
|
|
169
167
|
# List verbatim publications
|
170
168
|
# An VerbatimPublication is the Pulp-internal representation of a \"mirrored\" AptRepositoryVersion. In other words, the verbatim publisher will recreate the synced subset of some a APT repository using the exact same metadata files and signatures as used by the upstream original. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
171
169
|
# @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
|
174
170
|
# @option opts [Integer] :limit Number of results to return per page.
|
175
171
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
172
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -193,8 +189,6 @@ module PulpDebClient
|
|
193
189
|
|
194
190
|
# query parameters
|
195
191
|
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?
|
198
192
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
193
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
194
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
@@ -23,9 +23,6 @@ module PulpDebClient
|
|
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
|
-
|
29
26
|
attr_accessor :remote
|
30
27
|
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +31,6 @@ module PulpDebClient
|
|
34
31
|
:'pulp_labels' => :'pulp_labels',
|
35
32
|
:'name' => :'name',
|
36
33
|
:'description' => :'description',
|
37
|
-
:'retained_versions' => :'retained_versions',
|
38
34
|
:'remote' => :'remote'
|
39
35
|
}
|
40
36
|
end
|
@@ -45,7 +41,6 @@ module PulpDebClient
|
|
45
41
|
:'pulp_labels' => :'Object',
|
46
42
|
:'name' => :'String',
|
47
43
|
:'description' => :'String',
|
48
|
-
:'retained_versions' => :'Integer',
|
49
44
|
:'remote' => :'String'
|
50
45
|
}
|
51
46
|
end
|
@@ -54,7 +49,6 @@ module PulpDebClient
|
|
54
49
|
def self.openapi_nullable
|
55
50
|
Set.new([
|
56
51
|
:'description',
|
57
|
-
:'retained_versions',
|
58
52
|
:'remote'
|
59
53
|
])
|
60
54
|
end
|
@@ -86,10 +80,6 @@ module PulpDebClient
|
|
86
80
|
self.description = attributes[:'description']
|
87
81
|
end
|
88
82
|
|
89
|
-
if attributes.key?(:'retained_versions')
|
90
|
-
self.retained_versions = attributes[:'retained_versions']
|
91
|
-
end
|
92
|
-
|
93
83
|
if attributes.key?(:'remote')
|
94
84
|
self.remote = attributes[:'remote']
|
95
85
|
end
|
@@ -103,10 +93,6 @@ module PulpDebClient
|
|
103
93
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
104
94
|
end
|
105
95
|
|
106
|
-
if !@retained_versions.nil? && @retained_versions < 1
|
107
|
-
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
108
|
-
end
|
109
|
-
|
110
96
|
invalid_properties
|
111
97
|
end
|
112
98
|
|
@@ -114,20 +100,9 @@ module PulpDebClient
|
|
114
100
|
# @return true if the model is valid
|
115
101
|
def valid?
|
116
102
|
return false if @name.nil?
|
117
|
-
return false if !@retained_versions.nil? && @retained_versions < 1
|
118
103
|
true
|
119
104
|
end
|
120
105
|
|
121
|
-
# Custom attribute writer method with validation
|
122
|
-
# @param [Object] retained_versions Value to be assigned
|
123
|
-
def retained_versions=(retained_versions)
|
124
|
-
if !retained_versions.nil? && retained_versions < 1
|
125
|
-
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
126
|
-
end
|
127
|
-
|
128
|
-
@retained_versions = retained_versions
|
129
|
-
end
|
130
|
-
|
131
106
|
# Checks equality by comparing each attribute.
|
132
107
|
# @param [Object] Object to be compared
|
133
108
|
def ==(o)
|
@@ -136,7 +111,6 @@ module PulpDebClient
|
|
136
111
|
pulp_labels == o.pulp_labels &&
|
137
112
|
name == o.name &&
|
138
113
|
description == o.description &&
|
139
|
-
retained_versions == o.retained_versions &&
|
140
114
|
remote == o.remote
|
141
115
|
end
|
142
116
|
|
@@ -149,7 +123,7 @@ module PulpDebClient
|
|
149
123
|
# Calculates hash code according to all attributes.
|
150
124
|
# @return [Integer] Hash code
|
151
125
|
def hash
|
152
|
-
[pulp_labels, name, description,
|
126
|
+
[pulp_labels, name, description, remote].hash
|
153
127
|
end
|
154
128
|
|
155
129
|
# Builds the object from hash
|
@@ -32,9 +32,6 @@ module PulpDebClient
|
|
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
|
-
|
38
35
|
attr_accessor :remote
|
39
36
|
|
40
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -47,7 +44,6 @@ module PulpDebClient
|
|
47
44
|
:'latest_version_href' => :'latest_version_href',
|
48
45
|
:'name' => :'name',
|
49
46
|
:'description' => :'description',
|
50
|
-
:'retained_versions' => :'retained_versions',
|
51
47
|
:'remote' => :'remote'
|
52
48
|
}
|
53
49
|
end
|
@@ -62,7 +58,6 @@ module PulpDebClient
|
|
62
58
|
:'latest_version_href' => :'String',
|
63
59
|
:'name' => :'String',
|
64
60
|
:'description' => :'String',
|
65
|
-
:'retained_versions' => :'Integer',
|
66
61
|
:'remote' => :'String'
|
67
62
|
}
|
68
63
|
end
|
@@ -71,7 +66,6 @@ module PulpDebClient
|
|
71
66
|
def self.openapi_nullable
|
72
67
|
Set.new([
|
73
68
|
:'description',
|
74
|
-
:'retained_versions',
|
75
69
|
:'remote'
|
76
70
|
])
|
77
71
|
end
|
@@ -119,10 +113,6 @@ module PulpDebClient
|
|
119
113
|
self.description = attributes[:'description']
|
120
114
|
end
|
121
115
|
|
122
|
-
if attributes.key?(:'retained_versions')
|
123
|
-
self.retained_versions = attributes[:'retained_versions']
|
124
|
-
end
|
125
|
-
|
126
116
|
if attributes.key?(:'remote')
|
127
117
|
self.remote = attributes[:'remote']
|
128
118
|
end
|
@@ -136,10 +126,6 @@ module PulpDebClient
|
|
136
126
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
127
|
end
|
138
128
|
|
139
|
-
if !@retained_versions.nil? && @retained_versions < 1
|
140
|
-
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
141
|
-
end
|
142
|
-
|
143
129
|
invalid_properties
|
144
130
|
end
|
145
131
|
|
@@ -147,20 +133,9 @@ module PulpDebClient
|
|
147
133
|
# @return true if the model is valid
|
148
134
|
def valid?
|
149
135
|
return false if @name.nil?
|
150
|
-
return false if !@retained_versions.nil? && @retained_versions < 1
|
151
136
|
true
|
152
137
|
end
|
153
138
|
|
154
|
-
# Custom attribute writer method with validation
|
155
|
-
# @param [Object] retained_versions Value to be assigned
|
156
|
-
def retained_versions=(retained_versions)
|
157
|
-
if !retained_versions.nil? && retained_versions < 1
|
158
|
-
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
159
|
-
end
|
160
|
-
|
161
|
-
@retained_versions = retained_versions
|
162
|
-
end
|
163
|
-
|
164
139
|
# Checks equality by comparing each attribute.
|
165
140
|
# @param [Object] Object to be compared
|
166
141
|
def ==(o)
|
@@ -173,7 +148,6 @@ module PulpDebClient
|
|
173
148
|
latest_version_href == o.latest_version_href &&
|
174
149
|
name == o.name &&
|
175
150
|
description == o.description &&
|
176
|
-
retained_versions == o.retained_versions &&
|
177
151
|
remote == o.remote
|
178
152
|
end
|
179
153
|
|
@@ -186,7 +160,7 @@ module PulpDebClient
|
|
186
160
|
# Calculates hash code according to all attributes.
|
187
161
|
# @return [Integer] Hash code
|
188
162
|
def hash
|
189
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
163
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
190
164
|
end
|
191
165
|
|
192
166
|
# Builds the object from hash
|
@@ -23,9 +23,6 @@ module PulpDebClient
|
|
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
|
-
|
29
26
|
attr_accessor :remote
|
30
27
|
|
31
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,7 +31,6 @@ module PulpDebClient
|
|
34
31
|
:'pulp_labels' => :'pulp_labels',
|
35
32
|
:'name' => :'name',
|
36
33
|
:'description' => :'description',
|
37
|
-
:'retained_versions' => :'retained_versions',
|
38
34
|
:'remote' => :'remote'
|
39
35
|
}
|
40
36
|
end
|
@@ -45,7 +41,6 @@ module PulpDebClient
|
|
45
41
|
:'pulp_labels' => :'Object',
|
46
42
|
:'name' => :'String',
|
47
43
|
:'description' => :'String',
|
48
|
-
:'retained_versions' => :'Integer',
|
49
44
|
:'remote' => :'String'
|
50
45
|
}
|
51
46
|
end
|
@@ -54,7 +49,6 @@ module PulpDebClient
|
|
54
49
|
def self.openapi_nullable
|
55
50
|
Set.new([
|
56
51
|
:'description',
|
57
|
-
:'retained_versions',
|
58
52
|
:'remote'
|
59
53
|
])
|
60
54
|
end
|
@@ -86,10 +80,6 @@ module PulpDebClient
|
|
86
80
|
self.description = attributes[:'description']
|
87
81
|
end
|
88
82
|
|
89
|
-
if attributes.key?(:'retained_versions')
|
90
|
-
self.retained_versions = attributes[:'retained_versions']
|
91
|
-
end
|
92
|
-
|
93
83
|
if attributes.key?(:'remote')
|
94
84
|
self.remote = attributes[:'remote']
|
95
85
|
end
|
@@ -99,30 +89,15 @@ module PulpDebClient
|
|
99
89
|
# @return Array for valid properties with the reasons
|
100
90
|
def list_invalid_properties
|
101
91
|
invalid_properties = Array.new
|
102
|
-
if !@retained_versions.nil? && @retained_versions < 1
|
103
|
-
invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
|
104
|
-
end
|
105
|
-
|
106
92
|
invalid_properties
|
107
93
|
end
|
108
94
|
|
109
95
|
# Check to see if the all the properties in the model are valid
|
110
96
|
# @return true if the model is valid
|
111
97
|
def valid?
|
112
|
-
return false if !@retained_versions.nil? && @retained_versions < 1
|
113
98
|
true
|
114
99
|
end
|
115
100
|
|
116
|
-
# Custom attribute writer method with validation
|
117
|
-
# @param [Object] retained_versions Value to be assigned
|
118
|
-
def retained_versions=(retained_versions)
|
119
|
-
if !retained_versions.nil? && retained_versions < 1
|
120
|
-
fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
|
121
|
-
end
|
122
|
-
|
123
|
-
@retained_versions = retained_versions
|
124
|
-
end
|
125
|
-
|
126
101
|
# Checks equality by comparing each attribute.
|
127
102
|
# @param [Object] Object to be compared
|
128
103
|
def ==(o)
|
@@ -131,7 +106,6 @@ module PulpDebClient
|
|
131
106
|
pulp_labels == o.pulp_labels &&
|
132
107
|
name == o.name &&
|
133
108
|
description == o.description &&
|
134
|
-
retained_versions == o.retained_versions &&
|
135
109
|
remote == o.remote
|
136
110
|
end
|
137
111
|
|
@@ -144,7 +118,7 @@ module PulpDebClient
|
|
144
118
|
# Calculates hash code according to all attributes.
|
145
119
|
# @return [Integer] Hash code
|
146
120
|
def hash
|
147
|
-
[pulp_labels, name, description,
|
121
|
+
[pulp_labels, name, description, remote].hash
|
148
122
|
end
|
149
123
|
|
150
124
|
# Builds the object from hash
|
@@ -22,8 +22,6 @@ module PulpDebClient
|
|
22
22
|
|
23
23
|
attr_accessor :number
|
24
24
|
|
25
|
-
attr_accessor :repository
|
26
|
-
|
27
25
|
# A repository version whose content was used as the initial set of content for this repository version
|
28
26
|
attr_accessor :base_version
|
29
27
|
|
@@ -36,7 +34,6 @@ module PulpDebClient
|
|
36
34
|
:'pulp_href' => :'pulp_href',
|
37
35
|
:'pulp_created' => :'pulp_created',
|
38
36
|
:'number' => :'number',
|
39
|
-
:'repository' => :'repository',
|
40
37
|
:'base_version' => :'base_version',
|
41
38
|
:'content_summary' => :'content_summary'
|
42
39
|
}
|
@@ -48,7 +45,6 @@ module PulpDebClient
|
|
48
45
|
:'pulp_href' => :'String',
|
49
46
|
:'pulp_created' => :'DateTime',
|
50
47
|
:'number' => :'Integer',
|
51
|
-
:'repository' => :'String',
|
52
48
|
:'base_version' => :'String',
|
53
49
|
:'content_summary' => :'ContentSummaryResponse'
|
54
50
|
}
|
@@ -87,10 +83,6 @@ module PulpDebClient
|
|
87
83
|
self.number = attributes[:'number']
|
88
84
|
end
|
89
85
|
|
90
|
-
if attributes.key?(:'repository')
|
91
|
-
self.repository = attributes[:'repository']
|
92
|
-
end
|
93
|
-
|
94
86
|
if attributes.key?(:'base_version')
|
95
87
|
self.base_version = attributes[:'base_version']
|
96
88
|
end
|
@@ -121,7 +113,6 @@ module PulpDebClient
|
|
121
113
|
pulp_href == o.pulp_href &&
|
122
114
|
pulp_created == o.pulp_created &&
|
123
115
|
number == o.number &&
|
124
|
-
repository == o.repository &&
|
125
116
|
base_version == o.base_version &&
|
126
117
|
content_summary == o.content_summary
|
127
118
|
end
|
@@ -135,7 +126,7 @@ module PulpDebClient
|
|
135
126
|
# Calculates hash code according to all attributes.
|
136
127
|
# @return [Integer] Hash code
|
137
128
|
def hash
|
138
|
-
[pulp_href, pulp_created, number,
|
129
|
+
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
139
130
|
end
|
140
131
|
|
141
132
|
# Builds the object from hash
|
@@ -60,8 +60,6 @@ describe 'PublicationsAptApi' do
|
|
60
60
|
# List apt publications
|
61
61
|
# An AptPublication is the ready to serve Pulp-internal representation of an AptRepositoryVersion. When creating an APT publication, users must use simple or structured mode (or both). If the publication should include '.deb' packages that were manually uploaded to the relevant AptRepository, users must use 'simple=true'. Conversely, 'structured=true' is only useful for publishing content obtained via synchronization. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
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
|
65
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
66
64
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
65
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -60,8 +60,6 @@ describe 'PublicationsVerbatimApi' do
|
|
60
60
|
# List verbatim publications
|
61
61
|
# An VerbatimPublication is the Pulp-internal representation of a \"mirrored\" AptRepositoryVersion. In other words, the verbatim publisher will recreate the synced subset of some a APT repository using the exact same metadata files and signatures as used by the upstream original. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
|
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
|
65
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
66
64
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
65
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
@@ -74,12 +74,6 @@ describe 'DebAptRepositoryResponse' 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
|
-
|
83
77
|
describe 'test attribute "remote"' do
|
84
78
|
it 'should work' do
|
85
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,12 +50,6 @@ describe 'DebAptRepository' 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
|
-
|
59
53
|
describe 'test attribute "remote"' do
|
60
54
|
it 'should work' do
|
61
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,12 +50,6 @@ describe 'PatcheddebAptRepository' 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
|
-
|
59
53
|
describe 'test attribute "remote"' do
|
60
54
|
it 'should work' do
|
61
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,12 +50,6 @@ 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
|
-
|
59
53
|
describe 'test attribute "base_version"' do
|
60
54
|
it 'should work' do
|
61
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_deb_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.
|
4
|
+
version: 2.12.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-05-
|
11
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -318,76 +318,76 @@ signing_key:
|
|
318
318
|
specification_version: 4
|
319
319
|
summary: Pulp 3 API Ruby Gem
|
320
320
|
test_files:
|
321
|
-
- spec/api/
|
322
|
-
- spec/api/content_package_indices_api_spec.rb
|
323
|
-
- spec/api/content_releases_api_spec.rb
|
321
|
+
- spec/api/content_release_files_api_spec.rb
|
324
322
|
- spec/api/publications_verbatim_api_spec.rb
|
325
|
-
- spec/api/
|
326
|
-
- spec/api/content_generic_contents_api_spec.rb
|
327
|
-
- spec/api/publications_apt_api_spec.rb
|
328
|
-
- spec/api/remotes_apt_api_spec.rb
|
323
|
+
- spec/api/content_package_release_components_api_spec.rb
|
329
324
|
- spec/api/content_installer_file_indices_api_spec.rb
|
330
|
-
- spec/api/content_release_files_api_spec.rb
|
331
|
-
- spec/api/content_release_components_api_spec.rb
|
332
|
-
- spec/api/content_release_architectures_api_spec.rb
|
333
|
-
- spec/api/repositories_deb_versions_api_spec.rb
|
334
325
|
- spec/api/content_installer_packages_api_spec.rb
|
335
326
|
- spec/api/distributions_apt_api_spec.rb
|
336
|
-
- spec/api/
|
327
|
+
- spec/api/content_release_architectures_api_spec.rb
|
328
|
+
- spec/api/content_packages_api_spec.rb
|
329
|
+
- spec/api/remotes_apt_api_spec.rb
|
330
|
+
- spec/api/repositories_deb_versions_api_spec.rb
|
331
|
+
- spec/api/content_release_components_api_spec.rb
|
332
|
+
- spec/api/publications_apt_api_spec.rb
|
333
|
+
- spec/api/repositories_apt_api_spec.rb
|
334
|
+
- spec/api/content_package_indices_api_spec.rb
|
335
|
+
- spec/api/content_releases_api_spec.rb
|
336
|
+
- spec/api/content_generic_contents_api_spec.rb
|
337
337
|
- spec/api_client_spec.rb
|
338
338
|
- spec/configuration_spec.rb
|
339
|
-
- spec/models/
|
340
|
-
- spec/models/
|
339
|
+
- spec/models/deb_package_release_component_spec.rb
|
340
|
+
- spec/models/deb_apt_distribution_response_spec.rb
|
341
|
+
- spec/models/deb_apt_repository_response_spec.rb
|
341
342
|
- spec/models/deb_release_file_spec.rb
|
342
|
-
- spec/models/
|
343
|
-
- spec/models/
|
344
|
-
- spec/models/
|
345
|
-
- spec/models/repository_version_spec.rb
|
346
|
-
- spec/models/deb_verbatim_publication_response_spec.rb
|
347
|
-
- spec/models/paginateddeb_apt_publication_response_list_spec.rb
|
348
|
-
- spec/models/deb_release_architecture_response_spec.rb
|
349
|
-
- spec/models/deb_verbatim_publication_spec.rb
|
343
|
+
- spec/models/repository_version_response_spec.rb
|
344
|
+
- spec/models/paginateddeb_apt_repository_response_list_spec.rb
|
345
|
+
- spec/models/deb_base_package_spec.rb
|
350
346
|
- spec/models/deb_generic_content_response_spec.rb
|
351
|
-
- spec/models/
|
352
|
-
- spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
|
353
|
-
- spec/models/deb_apt_distribution_spec.rb
|
354
|
-
- spec/models/deb_apt_publication_response_spec.rb
|
355
|
-
- spec/models/patcheddeb_apt_repository_spec.rb
|
347
|
+
- spec/models/deb_release_response_spec.rb
|
356
348
|
- spec/models/policy_enum_spec.rb
|
357
|
-
- spec/models/
|
358
|
-
- spec/models/
|
359
|
-
- spec/models/paginateddeb_release_component_response_list_spec.rb
|
360
|
-
- spec/models/deb_release_file_response_spec.rb
|
361
|
-
- spec/models/paginateddeb_package_release_component_response_list_spec.rb
|
362
|
-
- spec/models/deb_package_release_component_spec.rb
|
349
|
+
- spec/models/deb_package_index_spec.rb
|
350
|
+
- spec/models/paginateddeb_installer_file_index_response_list_spec.rb
|
363
351
|
- spec/models/paginateddeb_release_file_response_list_spec.rb
|
364
|
-
- spec/models/
|
365
|
-
- spec/models/
|
366
|
-
- spec/models/
|
352
|
+
- spec/models/deb_installer_file_index_spec.rb
|
353
|
+
- spec/models/deb_verbatim_publication_spec.rb
|
354
|
+
- spec/models/deb_installer_file_index_response_spec.rb
|
355
|
+
- spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
|
356
|
+
- spec/models/deb_apt_distribution_spec.rb
|
357
|
+
- spec/models/paginateddeb_apt_distribution_response_list_spec.rb
|
358
|
+
- spec/models/deb_base_package_response_spec.rb
|
359
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
367
360
|
- spec/models/repository_add_remove_content_spec.rb
|
368
|
-
- spec/models/
|
369
|
-
- spec/models/
|
370
|
-
- spec/models/
|
371
|
-
- spec/models/
|
361
|
+
- spec/models/deb_release_spec.rb
|
362
|
+
- spec/models/patcheddeb_apt_remote_spec.rb
|
363
|
+
- spec/models/paginateddeb_generic_content_response_list_spec.rb
|
364
|
+
- spec/models/paginateddeb_apt_publication_response_list_spec.rb
|
372
365
|
- spec/models/content_summary_response_spec.rb
|
373
|
-
- spec/models/
|
374
|
-
- spec/models/
|
375
|
-
- spec/models/deb_apt_remote_response_spec.rb
|
376
|
-
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
366
|
+
- spec/models/deb_verbatim_publication_response_spec.rb
|
367
|
+
- spec/models/paginateddeb_package_index_response_list_spec.rb
|
377
368
|
- spec/models/patcheddeb_apt_distribution_spec.rb
|
369
|
+
- spec/models/paginateddeb_package_release_component_response_list_spec.rb
|
370
|
+
- spec/models/repository_version_spec.rb
|
371
|
+
- spec/models/paginateddeb_release_component_response_list_spec.rb
|
372
|
+
- spec/models/deb_apt_remote_response_spec.rb
|
378
373
|
- spec/models/deb_apt_publication_spec.rb
|
379
|
-
- spec/models/
|
380
|
-
- spec/models/
|
381
|
-
- spec/models/
|
382
|
-
- spec/models/
|
383
|
-
- spec/models/patcheddeb_apt_remote_spec.rb
|
384
|
-
- spec/models/deb_base_package_spec.rb
|
385
|
-
- spec/models/deb_release_architecture_spec.rb
|
374
|
+
- spec/models/deb_package_release_component_response_spec.rb
|
375
|
+
- spec/models/deb_package_index_response_spec.rb
|
376
|
+
- spec/models/paginateddeb_release_response_list_spec.rb
|
377
|
+
- spec/models/deb_generic_content_spec.rb
|
386
378
|
- spec/models/repository_sync_url_spec.rb
|
387
|
-
- spec/models/
|
388
|
-
- spec/models/
|
389
|
-
- spec/models/deb_installer_file_index_spec.rb
|
379
|
+
- spec/models/content_summary_spec.rb
|
380
|
+
- spec/models/deb_apt_publication_response_spec.rb
|
390
381
|
- spec/models/deb_release_component_spec.rb
|
382
|
+
- spec/models/deb_release_file_response_spec.rb
|
383
|
+
- spec/models/deb_release_architecture_spec.rb
|
384
|
+
- spec/models/deb_release_component_response_spec.rb
|
385
|
+
- spec/models/patcheddeb_apt_repository_spec.rb
|
386
|
+
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
391
387
|
- spec/models/deb_apt_repository_spec.rb
|
392
|
-
- spec/models/
|
388
|
+
- spec/models/deb_apt_remote_spec.rb
|
389
|
+
- spec/models/paginateddeb_base_package_response_list_spec.rb
|
390
|
+
- spec/models/async_operation_response_spec.rb
|
391
|
+
- spec/models/deb_release_architecture_response_spec.rb
|
392
|
+
- spec/models/paginateddeb_release_architecture_response_list_spec.rb
|
393
393
|
- spec/spec_helper.rb
|