pulp_container_client 2.15.2 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +38 -25
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/ContentBlobsApi.md +3 -1
- data/docs/ContentManifestsApi.md +3 -1
- data/docs/ContentSignaturesApi.md +7 -1
- data/docs/ContentTagsApi.md +3 -1
- data/docs/DistributionsContainerApi.md +132 -10
- data/docs/IndexDynamicApi.md +50 -0
- data/docs/IndexStaticApi.md +50 -0
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- data/docs/PulpContainerNamespacesApi.md +19 -9
- data/docs/RemotesContainerApi.md +131 -9
- data/docs/RepositoriesContainerApi.md +133 -11
- data/docs/RepositoriesContainerPushApi.md +20 -10
- data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
- data/docs/RepositoriesContainerVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TokenApi.md +1 -1
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +9 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +157 -0
- data/lib/pulp_container_client/api/index_dynamic_api.rb +74 -0
- data/lib/pulp_container_client/api/index_static_api.rb +74 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +17 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +157 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +159 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +17 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -48
- data/lib/pulp_container_client/models/container_container_push_repository.rb +11 -11
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +11 -11
- data/lib/pulp_container_client/models/set_label.rb +252 -0
- data/lib/pulp_container_client/models/set_label_response.rb +243 -0
- data/lib/pulp_container_client/models/unset_label.rb +242 -0
- data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +6 -0
- data/spec/api/content_blobs_api_spec.rb +1 -0
- data/spec/api/content_manifests_api_spec.rb +1 -0
- data/spec/api/content_signatures_api_spec.rb +3 -0
- data/spec/api/content_tags_api_spec.rb +1 -0
- data/spec/api/distributions_container_api_spec.rb +33 -0
- data/spec/api/index_dynamic_api_spec.rb +45 -0
- data/spec/api/index_static_api_spec.rb +45 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +7 -0
- data/spec/api/remotes_container_api_spec.rb +33 -0
- data/spec/api/repositories_container_api_spec.rb +34 -1
- data/spec/api/repositories_container_push_api_spec.rb +7 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
- data/spec/api/repositories_container_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +67 -43
|
@@ -0,0 +1,242 @@
|
|
|
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 PulpContainerClient
|
|
16
|
+
# Serializer for synchronously setting a label.
|
|
17
|
+
class UnsetLabelResponse
|
|
18
|
+
attr_accessor :key
|
|
19
|
+
|
|
20
|
+
attr_accessor :value
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'key' => :'key',
|
|
26
|
+
:'value' => :'value'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Attribute type mapping.
|
|
31
|
+
def self.openapi_types
|
|
32
|
+
{
|
|
33
|
+
:'key' => :'String',
|
|
34
|
+
:'value' => :'String'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# List of attributes with nullable: true
|
|
39
|
+
def self.openapi_nullable
|
|
40
|
+
Set.new([
|
|
41
|
+
])
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::UnsetLabelResponse` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::UnsetLabelResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
55
|
+
end
|
|
56
|
+
h[k.to_sym] = v
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if attributes.key?(:'key')
|
|
60
|
+
self.key = attributes[:'key']
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'value')
|
|
64
|
+
self.value = attributes[:'value']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
69
|
+
# @return Array for valid properties with the reasons
|
|
70
|
+
def list_invalid_properties
|
|
71
|
+
invalid_properties = Array.new
|
|
72
|
+
if @key.nil?
|
|
73
|
+
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
77
|
+
if @key !~ pattern
|
|
78
|
+
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
invalid_properties
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Check to see if the all the properties in the model are valid
|
|
85
|
+
# @return true if the model is valid
|
|
86
|
+
def valid?
|
|
87
|
+
return false if @key.nil?
|
|
88
|
+
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Custom attribute writer method with validation
|
|
93
|
+
# @param [Object] key Value to be assigned
|
|
94
|
+
def key=(key)
|
|
95
|
+
if key.nil?
|
|
96
|
+
fail ArgumentError, 'key cannot be nil'
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
100
|
+
if key !~ pattern
|
|
101
|
+
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
@key = key
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
key == o.key &&
|
|
113
|
+
value == o.value
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @see the `==` method
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def eql?(o)
|
|
119
|
+
self == o
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
def hash
|
|
125
|
+
[key, value].hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def self.build_from_hash(attributes)
|
|
132
|
+
new.build_from_hash(attributes)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
149
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
self
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def _deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :DateTime
|
|
162
|
+
DateTime.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
PulpContainerClient.const_get(type).build_from_hash(value)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Returns the string representation of the object
|
|
197
|
+
# @return [String] String presentation of the object
|
|
198
|
+
def to_s
|
|
199
|
+
to_hash.to_s
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_body
|
|
205
|
+
to_hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Returns the object in the form of hash
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_hash
|
|
211
|
+
hash = {}
|
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
213
|
+
value = self.send(attr)
|
|
214
|
+
if value.nil?
|
|
215
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
216
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
hash[param] = _to_hash(value)
|
|
220
|
+
end
|
|
221
|
+
hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Outputs non-array value in the form of hash
|
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
226
|
+
# @param [Object] value Any valid value
|
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
|
228
|
+
def _to_hash(value)
|
|
229
|
+
if value.is_a?(Array)
|
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
|
231
|
+
elsif value.is_a?(Hash)
|
|
232
|
+
{}.tap do |hash|
|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
234
|
+
end
|
|
235
|
+
elsif value.respond_to? :to_hash
|
|
236
|
+
value.to_hash
|
|
237
|
+
else
|
|
238
|
+
value
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
@@ -64,9 +64,13 @@ require 'pulp_container_client/models/remove_signatures_response'
|
|
|
64
64
|
require 'pulp_container_client/models/repair'
|
|
65
65
|
require 'pulp_container_client/models/repository_sign'
|
|
66
66
|
require 'pulp_container_client/models/repository_version_response'
|
|
67
|
+
require 'pulp_container_client/models/set_label'
|
|
68
|
+
require 'pulp_container_client/models/set_label_response'
|
|
67
69
|
require 'pulp_container_client/models/tag_copy'
|
|
68
70
|
require 'pulp_container_client/models/tag_image'
|
|
69
71
|
require 'pulp_container_client/models/un_tag_image'
|
|
72
|
+
require 'pulp_container_client/models/unset_label'
|
|
73
|
+
require 'pulp_container_client/models/unset_label_response'
|
|
70
74
|
|
|
71
75
|
# APIs
|
|
72
76
|
require 'pulp_container_client/api/content_blobs_api'
|
|
@@ -74,6 +78,8 @@ require 'pulp_container_client/api/content_manifests_api'
|
|
|
74
78
|
require 'pulp_container_client/api/content_signatures_api'
|
|
75
79
|
require 'pulp_container_client/api/content_tags_api'
|
|
76
80
|
require 'pulp_container_client/api/distributions_container_api'
|
|
81
|
+
require 'pulp_container_client/api/index_dynamic_api'
|
|
82
|
+
require 'pulp_container_client/api/index_static_api'
|
|
77
83
|
require 'pulp_container_client/api/pulp_container_namespaces_api'
|
|
78
84
|
require 'pulp_container_client/api/remotes_container_api'
|
|
79
85
|
require 'pulp_container_client/api/repositories_container_api'
|
|
@@ -43,6 +43,7 @@ describe 'ContentBlobsApi' do
|
|
|
43
43
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
44
44
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
45
45
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
46
|
+
# @option opts [String] :q
|
|
46
47
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
47
48
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
48
49
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -44,6 +44,7 @@ describe 'ContentManifestsApi' do
|
|
|
44
44
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `digest` - Digest * `-digest` - Digest (descending) * `schema_version` - Schema version * `-schema_version` - Schema version (descending) * `media_type` - Media type * `-media_type` - Media type (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
45
45
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
46
46
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
|
+
# @option opts [String] :q
|
|
47
48
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
48
49
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
49
50
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -45,12 +45,15 @@ describe 'ContentSignaturesApi' do
|
|
|
45
45
|
# @option opts [String] :name Filter results where name matches value
|
|
46
46
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
47
47
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
48
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
48
49
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
50
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
49
51
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
50
52
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
51
53
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
52
54
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
53
55
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
56
|
+
# @option opts [String] :q
|
|
54
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
55
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
56
59
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -45,6 +45,7 @@ describe 'ContentTagsApi' do
|
|
|
45
45
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
46
46
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
47
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
48
|
+
# @option opts [String] :q
|
|
48
49
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
49
50
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
50
51
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
@@ -33,6 +33,7 @@ describe 'DistributionsContainerApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
36
37
|
# Add a role for this object to users/groups.
|
|
37
38
|
# @param container_container_distribution_href
|
|
38
39
|
# @param nested_role
|
|
@@ -80,7 +81,9 @@ describe 'DistributionsContainerApi' do
|
|
|
80
81
|
# @option opts [String] :name Filter results where name matches value
|
|
81
82
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
82
83
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
84
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
83
85
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
86
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
84
87
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
85
88
|
# @option opts [String] :namespace__name
|
|
86
89
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
@@ -88,6 +91,7 @@ describe 'DistributionsContainerApi' do
|
|
|
88
91
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
89
92
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
90
93
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
94
|
+
# @option opts [String] :q
|
|
91
95
|
# @option opts [String] :repository Filter results where repository matches value
|
|
92
96
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
93
97
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -101,6 +105,7 @@ describe 'DistributionsContainerApi' do
|
|
|
101
105
|
end
|
|
102
106
|
|
|
103
107
|
# unit tests for list_roles
|
|
108
|
+
# List roles
|
|
104
109
|
# List roles assigned to this object.
|
|
105
110
|
# @param container_container_distribution_href
|
|
106
111
|
# @param [Hash] opts the optional parameters
|
|
@@ -114,6 +119,7 @@ describe 'DistributionsContainerApi' do
|
|
|
114
119
|
end
|
|
115
120
|
|
|
116
121
|
# unit tests for my_permissions
|
|
122
|
+
# List user permissions
|
|
117
123
|
# List permissions available to the current user on this object.
|
|
118
124
|
# @param container_container_distribution_href
|
|
119
125
|
# @param [Hash] opts the optional parameters
|
|
@@ -154,6 +160,7 @@ describe 'DistributionsContainerApi' do
|
|
|
154
160
|
end
|
|
155
161
|
|
|
156
162
|
# unit tests for remove_role
|
|
163
|
+
# Remove a role
|
|
157
164
|
# Remove a role for this object from users/groups.
|
|
158
165
|
# @param container_container_distribution_href
|
|
159
166
|
# @param nested_role
|
|
@@ -165,6 +172,32 @@ describe 'DistributionsContainerApi' do
|
|
|
165
172
|
end
|
|
166
173
|
end
|
|
167
174
|
|
|
175
|
+
# unit tests for set_label
|
|
176
|
+
# Set a label
|
|
177
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
178
|
+
# @param container_container_distribution_href
|
|
179
|
+
# @param set_label
|
|
180
|
+
# @param [Hash] opts the optional parameters
|
|
181
|
+
# @return [SetLabelResponse]
|
|
182
|
+
describe 'set_label test' do
|
|
183
|
+
it 'should work' do
|
|
184
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# unit tests for unset_label
|
|
189
|
+
# Unset a label
|
|
190
|
+
# Unset a single pulp_label on the object.
|
|
191
|
+
# @param container_container_distribution_href
|
|
192
|
+
# @param unset_label
|
|
193
|
+
# @param [Hash] opts the optional parameters
|
|
194
|
+
# @return [UnsetLabelResponse]
|
|
195
|
+
describe 'unset_label test' do
|
|
196
|
+
it 'should work' do
|
|
197
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
168
201
|
# unit tests for update
|
|
169
202
|
# Update a container distribution
|
|
170
203
|
# Trigger an asynchronous update task
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
16
|
+
# Unit tests for PulpContainerClient::IndexDynamicApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'IndexDynamicApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpContainerClient::IndexDynamicApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of IndexDynamicApi' do
|
|
30
|
+
it 'should create an instance of IndexDynamicApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpContainerClient::IndexDynamicApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get
|
|
36
|
+
# Handles requests to the /index/dynamic endpoint
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [nil]
|
|
39
|
+
describe 'get test' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
16
|
+
# Unit tests for PulpContainerClient::IndexStaticApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'IndexStaticApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpContainerClient::IndexStaticApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of IndexStaticApi' do
|
|
30
|
+
it 'should create an instance of IndexStaticApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpContainerClient::IndexStaticApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get
|
|
36
|
+
# Handles requests to the /index/static endpoint
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [nil]
|
|
39
|
+
describe 'get test' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
@@ -33,6 +33,7 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
36
37
|
# Add a role for this object to users/groups.
|
|
37
38
|
# @param container_container_namespace_href
|
|
38
39
|
# @param nested_role
|
|
@@ -76,12 +77,15 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
76
77
|
# @option opts [String] :name Filter results where name matches value
|
|
77
78
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
78
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
80
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
79
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
82
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
80
83
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
81
84
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
82
85
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
83
86
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
84
87
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
88
|
+
# @option opts [String] :q
|
|
85
89
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
86
90
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
87
91
|
# @return [PaginatedcontainerContainerNamespaceResponseList]
|
|
@@ -92,6 +96,7 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
92
96
|
end
|
|
93
97
|
|
|
94
98
|
# unit tests for list_roles
|
|
99
|
+
# List roles
|
|
95
100
|
# List roles assigned to this object.
|
|
96
101
|
# @param container_container_namespace_href
|
|
97
102
|
# @param [Hash] opts the optional parameters
|
|
@@ -105,6 +110,7 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
105
110
|
end
|
|
106
111
|
|
|
107
112
|
# unit tests for my_permissions
|
|
113
|
+
# List user permissions
|
|
108
114
|
# List permissions available to the current user on this object.
|
|
109
115
|
# @param container_container_namespace_href
|
|
110
116
|
# @param [Hash] opts the optional parameters
|
|
@@ -132,6 +138,7 @@ describe 'PulpContainerNamespacesApi' do
|
|
|
132
138
|
end
|
|
133
139
|
|
|
134
140
|
# unit tests for remove_role
|
|
141
|
+
# Remove a role
|
|
135
142
|
# Remove a role for this object from users/groups.
|
|
136
143
|
# @param container_container_namespace_href
|
|
137
144
|
# @param nested_role
|
|
@@ -33,6 +33,7 @@ describe 'RemotesContainerApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
36
37
|
# Add a role for this object to users/groups.
|
|
37
38
|
# @param container_container_remote_href
|
|
38
39
|
# @param nested_role
|
|
@@ -76,7 +77,9 @@ describe 'RemotesContainerApi' do
|
|
|
76
77
|
# @option opts [String] :name Filter results where name matches value
|
|
77
78
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
78
79
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
80
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
79
81
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
82
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
80
83
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
81
84
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
82
85
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -89,6 +92,7 @@ describe 'RemotesContainerApi' do
|
|
|
89
92
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
90
93
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
91
94
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
95
|
+
# @option opts [String] :q
|
|
92
96
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
93
97
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
94
98
|
# @return [PaginatedcontainerContainerRemoteResponseList]
|
|
@@ -99,6 +103,7 @@ describe 'RemotesContainerApi' do
|
|
|
99
103
|
end
|
|
100
104
|
|
|
101
105
|
# unit tests for list_roles
|
|
106
|
+
# List roles
|
|
102
107
|
# List roles assigned to this object.
|
|
103
108
|
# @param container_container_remote_href
|
|
104
109
|
# @param [Hash] opts the optional parameters
|
|
@@ -112,6 +117,7 @@ describe 'RemotesContainerApi' do
|
|
|
112
117
|
end
|
|
113
118
|
|
|
114
119
|
# unit tests for my_permissions
|
|
120
|
+
# List user permissions
|
|
115
121
|
# List permissions available to the current user on this object.
|
|
116
122
|
# @param container_container_remote_href
|
|
117
123
|
# @param [Hash] opts the optional parameters
|
|
@@ -152,6 +158,7 @@ describe 'RemotesContainerApi' do
|
|
|
152
158
|
end
|
|
153
159
|
|
|
154
160
|
# unit tests for remove_role
|
|
161
|
+
# Remove a role
|
|
155
162
|
# Remove a role for this object from users/groups.
|
|
156
163
|
# @param container_container_remote_href
|
|
157
164
|
# @param nested_role
|
|
@@ -163,6 +170,32 @@ describe 'RemotesContainerApi' do
|
|
|
163
170
|
end
|
|
164
171
|
end
|
|
165
172
|
|
|
173
|
+
# unit tests for set_label
|
|
174
|
+
# Set a label
|
|
175
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
176
|
+
# @param container_container_remote_href
|
|
177
|
+
# @param set_label
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @return [SetLabelResponse]
|
|
180
|
+
describe 'set_label test' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# unit tests for unset_label
|
|
187
|
+
# Unset a label
|
|
188
|
+
# Unset a single pulp_label on the object.
|
|
189
|
+
# @param container_container_remote_href
|
|
190
|
+
# @param unset_label
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @return [UnsetLabelResponse]
|
|
193
|
+
describe 'unset_label test' do
|
|
194
|
+
it 'should work' do
|
|
195
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
166
199
|
# unit tests for update
|
|
167
200
|
# Update a container remote
|
|
168
201
|
# Trigger an asynchronous update task
|