pulp_deb_client 3.7.1 → 3.8.0
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 +27 -16
- data/docs/AcsDebApi.md +886 -0
- data/docs/DebAptAlternateContentSource.md +24 -0
- data/docs/DebAptAlternateContentSourceResponse.md +32 -0
- data/docs/DebAptRepository.md +2 -0
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/PaginateddebAptAlternateContentSourceResponseList.md +24 -0
- data/docs/PatcheddebAptAlternateContentSource.md +24 -0
- data/docs/PatcheddebAptRepository.md +2 -0
- data/docs/TaskGroupOperationResponse.md +18 -0
- data/lib/pulp_deb_client/api/acs_deb_api.rb +865 -0
- data/lib/pulp_deb_client/models/deb_apt_alternate_content_source.rb +282 -0
- data/lib/pulp_deb_client/models/deb_apt_alternate_content_source_response.rb +302 -0
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +13 -1
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +13 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list.rb +257 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_alternate_content_source.rb +268 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +13 -1
- data/lib/pulp_deb_client/models/task_group_operation_response.rb +223 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +6 -0
- data/spec/api/acs_deb_api_spec.rb +204 -0
- data/spec/models/deb_apt_alternate_content_source_response_spec.rb +78 -0
- data/spec/models/deb_apt_alternate_content_source_spec.rb +54 -0
- data/spec/models/deb_apt_repository_response_spec.rb +6 -0
- data/spec/models/deb_apt_repository_spec.rb +6 -0
- data/spec/models/paginateddeb_apt_alternate_content_source_response_list_spec.rb +54 -0
- data/spec/models/patcheddeb_apt_alternate_content_source_spec.rb +54 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +6 -0
- data/spec/models/task_group_operation_response_spec.rb +36 -0
- metadata +98 -74
|
@@ -0,0 +1,223 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PulpDebClient
|
|
17
|
+
# Serializer for asynchronous operations that return a task group.
|
|
18
|
+
class TaskGroupOperationResponse
|
|
19
|
+
# The href of the task group.
|
|
20
|
+
attr_accessor :task_group
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'task_group' => :'task_group'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
|
30
|
+
def self.acceptable_attributes
|
|
31
|
+
attribute_map.values
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.openapi_types
|
|
36
|
+
{
|
|
37
|
+
:'task_group' => :'String'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# List of attributes with nullable: true
|
|
42
|
+
def self.openapi_nullable
|
|
43
|
+
Set.new([
|
|
44
|
+
])
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Initializes the object
|
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
49
|
+
def initialize(attributes = {})
|
|
50
|
+
if (!attributes.is_a?(Hash))
|
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::TaskGroupOperationResponse` initialize method"
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::TaskGroupOperationResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
58
|
+
end
|
|
59
|
+
h[k.to_sym] = v
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if attributes.key?(:'task_group')
|
|
63
|
+
self.task_group = attributes[:'task_group']
|
|
64
|
+
else
|
|
65
|
+
self.task_group = nil
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
70
|
+
# @return Array for valid properties with the reasons
|
|
71
|
+
def list_invalid_properties
|
|
72
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
73
|
+
invalid_properties = Array.new
|
|
74
|
+
if @task_group.nil?
|
|
75
|
+
invalid_properties.push('invalid value for "task_group", task_group cannot be nil.')
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
invalid_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
def valid?
|
|
84
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
85
|
+
return false if @task_group.nil?
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Checks equality by comparing each attribute.
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
task_group == o.task_group
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[task_group].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
new(transformed_hash)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Deserializes the data based on type
|
|
133
|
+
# @param string type Data type
|
|
134
|
+
# @param string value Value to be deserialized
|
|
135
|
+
# @return [Object] Deserialized data
|
|
136
|
+
def self._deserialize(type, value)
|
|
137
|
+
case type.to_sym
|
|
138
|
+
when :Time
|
|
139
|
+
Time.parse(value)
|
|
140
|
+
when :Date
|
|
141
|
+
Date.parse(value)
|
|
142
|
+
when :String
|
|
143
|
+
value.to_s
|
|
144
|
+
when :Integer
|
|
145
|
+
value.to_i
|
|
146
|
+
when :Float
|
|
147
|
+
value.to_f
|
|
148
|
+
when :Boolean
|
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
150
|
+
true
|
|
151
|
+
else
|
|
152
|
+
false
|
|
153
|
+
end
|
|
154
|
+
when :Object
|
|
155
|
+
# generic object (usually a Hash), return directly
|
|
156
|
+
value
|
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
|
163
|
+
{}.tap do |hash|
|
|
164
|
+
value.each do |k, v|
|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
else # model
|
|
169
|
+
# models (e.g. Pet) or oneOf
|
|
170
|
+
klass = PulpDebClient.const_get(type)
|
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Returns the string representation of the object
|
|
176
|
+
# @return [String] String presentation of the object
|
|
177
|
+
def to_s
|
|
178
|
+
to_hash.to_s
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
|
183
|
+
def to_body
|
|
184
|
+
to_hash
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Returns the object in the form of hash
|
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
|
189
|
+
def to_hash
|
|
190
|
+
hash = {}
|
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
192
|
+
value = self.send(attr)
|
|
193
|
+
if value.nil?
|
|
194
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
195
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
hash[param] = _to_hash(value)
|
|
199
|
+
end
|
|
200
|
+
hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Outputs non-array value in the form of hash
|
|
204
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
205
|
+
# @param [Object] value Any valid value
|
|
206
|
+
# @return [Hash] Returns the value in the form of hash
|
|
207
|
+
def _to_hash(value)
|
|
208
|
+
if value.is_a?(Array)
|
|
209
|
+
value.compact.map { |v| _to_hash(v) }
|
|
210
|
+
elsif value.is_a?(Hash)
|
|
211
|
+
{}.tap do |hash|
|
|
212
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
213
|
+
end
|
|
214
|
+
elsif value.respond_to? :to_hash
|
|
215
|
+
value.to_hash
|
|
216
|
+
else
|
|
217
|
+
value
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
end
|
data/lib/pulp_deb_client.rb
CHANGED
|
@@ -21,6 +21,8 @@ require 'pulp_deb_client/models/apt_repository_sync_url'
|
|
|
21
21
|
require 'pulp_deb_client/models/async_operation_response'
|
|
22
22
|
require 'pulp_deb_client/models/content_summary_response'
|
|
23
23
|
require 'pulp_deb_client/models/copy'
|
|
24
|
+
require 'pulp_deb_client/models/deb_apt_alternate_content_source'
|
|
25
|
+
require 'pulp_deb_client/models/deb_apt_alternate_content_source_response'
|
|
24
26
|
require 'pulp_deb_client/models/deb_apt_distribution'
|
|
25
27
|
require 'pulp_deb_client/models/deb_apt_distribution_response'
|
|
26
28
|
require 'pulp_deb_client/models/deb_apt_publication'
|
|
@@ -60,6 +62,7 @@ require 'pulp_deb_client/models/nested_role'
|
|
|
60
62
|
require 'pulp_deb_client/models/nested_role_response'
|
|
61
63
|
require 'pulp_deb_client/models/object_roles_response'
|
|
62
64
|
require 'pulp_deb_client/models/paginated_repository_version_response_list'
|
|
65
|
+
require 'pulp_deb_client/models/paginateddeb_apt_alternate_content_source_response_list'
|
|
63
66
|
require 'pulp_deb_client/models/paginateddeb_apt_distribution_response_list'
|
|
64
67
|
require 'pulp_deb_client/models/paginateddeb_apt_publication_response_list'
|
|
65
68
|
require 'pulp_deb_client/models/paginateddeb_apt_remote_response_list'
|
|
@@ -78,6 +81,7 @@ require 'pulp_deb_client/models/paginateddeb_source_index_response_list'
|
|
|
78
81
|
require 'pulp_deb_client/models/paginateddeb_source_package_release_component_response_list'
|
|
79
82
|
require 'pulp_deb_client/models/paginateddeb_source_package_response_list'
|
|
80
83
|
require 'pulp_deb_client/models/paginateddeb_verbatim_publication_response_list'
|
|
84
|
+
require 'pulp_deb_client/models/patcheddeb_apt_alternate_content_source'
|
|
81
85
|
require 'pulp_deb_client/models/patcheddeb_apt_distribution'
|
|
82
86
|
require 'pulp_deb_client/models/patcheddeb_apt_remote'
|
|
83
87
|
require 'pulp_deb_client/models/patcheddeb_apt_repository'
|
|
@@ -87,10 +91,12 @@ require 'pulp_deb_client/models/repository_add_remove_content'
|
|
|
87
91
|
require 'pulp_deb_client/models/repository_version_response'
|
|
88
92
|
require 'pulp_deb_client/models/set_label'
|
|
89
93
|
require 'pulp_deb_client/models/set_label_response'
|
|
94
|
+
require 'pulp_deb_client/models/task_group_operation_response'
|
|
90
95
|
require 'pulp_deb_client/models/unset_label'
|
|
91
96
|
require 'pulp_deb_client/models/unset_label_response'
|
|
92
97
|
|
|
93
98
|
# APIs
|
|
99
|
+
require 'pulp_deb_client/api/acs_deb_api'
|
|
94
100
|
require 'pulp_deb_client/api/content_generic_contents_api'
|
|
95
101
|
require 'pulp_deb_client/api/content_installer_file_indices_api'
|
|
96
102
|
require 'pulp_deb_client/api/content_installer_packages_api'
|
|
@@ -0,0 +1,204 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpDebClient::AcsDebApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AcsDebApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpDebClient::AcsDebApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AcsDebApi' do
|
|
30
|
+
it 'should create an instance of AcsDebApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpDebClient::AcsDebApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
37
|
+
# Add a role for this object to users/groups.
|
|
38
|
+
# @param deb_apt_alternate_content_source_href
|
|
39
|
+
# @param nested_role
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
|
+
# @return [NestedRoleResponse]
|
|
43
|
+
describe 'add_role test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for create
|
|
50
|
+
# Create an apt alternate content source
|
|
51
|
+
# ViewSet for ACS.
|
|
52
|
+
# @param deb_apt_alternate_content_source
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
55
|
+
# @return [DebAptAlternateContentSourceResponse]
|
|
56
|
+
describe 'create test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for delete
|
|
63
|
+
# Delete an apt alternate content source
|
|
64
|
+
# Trigger an asynchronous delete ACS task
|
|
65
|
+
# @param deb_apt_alternate_content_source_href
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
68
|
+
# @return [AsyncOperationResponse]
|
|
69
|
+
describe 'delete test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for list
|
|
76
|
+
# List apt alternate content sources
|
|
77
|
+
# ViewSet for ACS.
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
80
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
81
|
+
# @option opts [String] :name Filter results where name matches value
|
|
82
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
83
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
84
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
85
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
86
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
87
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
88
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
89
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
90
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
91
|
+
# @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) * `last_refreshed` - Last refreshed * `-last_refreshed` - Last refreshed (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
92
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
93
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
94
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
95
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
96
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
97
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
98
|
+
# @return [PaginateddebAptAlternateContentSourceResponseList]
|
|
99
|
+
describe 'list test' do
|
|
100
|
+
it 'should work' do
|
|
101
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# unit tests for list_roles
|
|
106
|
+
# List roles
|
|
107
|
+
# List roles assigned to this object.
|
|
108
|
+
# @param deb_apt_alternate_content_source_href
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
111
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
112
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
113
|
+
# @return [ObjectRolesResponse]
|
|
114
|
+
describe 'list_roles test' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# unit tests for my_permissions
|
|
121
|
+
# List user permissions
|
|
122
|
+
# List permissions available to the current user on this object.
|
|
123
|
+
# @param deb_apt_alternate_content_source_href
|
|
124
|
+
# @param [Hash] opts the optional parameters
|
|
125
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
126
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
127
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
128
|
+
# @return [MyPermissionsResponse]
|
|
129
|
+
describe 'my_permissions test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for partial_update
|
|
136
|
+
# Update an apt alternate content source
|
|
137
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
138
|
+
# @param deb_apt_alternate_content_source_href
|
|
139
|
+
# @param patcheddeb_apt_alternate_content_source
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
142
|
+
# @return [DebAptAlternateContentSourceResponse]
|
|
143
|
+
describe 'partial_update test' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# unit tests for read
|
|
150
|
+
# Inspect an apt alternate content source
|
|
151
|
+
# ViewSet for ACS.
|
|
152
|
+
# @param deb_apt_alternate_content_source_href
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
155
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
156
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
157
|
+
# @return [DebAptAlternateContentSourceResponse]
|
|
158
|
+
describe 'read test' do
|
|
159
|
+
it 'should work' do
|
|
160
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# unit tests for refresh
|
|
165
|
+
# Trigger an asynchronous task to create Alternate Content Source content.
|
|
166
|
+
# @param deb_apt_alternate_content_source_href
|
|
167
|
+
# @param [Hash] opts the optional parameters
|
|
168
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
169
|
+
# @return [TaskGroupOperationResponse]
|
|
170
|
+
describe 'refresh test' do
|
|
171
|
+
it 'should work' do
|
|
172
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# unit tests for remove_role
|
|
177
|
+
# Remove a role
|
|
178
|
+
# Remove a role for this object from users/groups.
|
|
179
|
+
# @param deb_apt_alternate_content_source_href
|
|
180
|
+
# @param nested_role
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
183
|
+
# @return [NestedRoleResponse]
|
|
184
|
+
describe 'remove_role test' do
|
|
185
|
+
it 'should work' do
|
|
186
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# unit tests for update
|
|
191
|
+
# Update an apt alternate content source
|
|
192
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
193
|
+
# @param deb_apt_alternate_content_source_href
|
|
194
|
+
# @param deb_apt_alternate_content_source
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
197
|
+
# @return [DebAptAlternateContentSourceResponse]
|
|
198
|
+
describe 'update test' do
|
|
199
|
+
it 'should work' do
|
|
200
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpDebClient::DebAptAlternateContentSourceResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpDebClient::DebAptAlternateContentSourceResponse do
|
|
21
|
+
let(:instance) { PulpDebClient::DebAptAlternateContentSourceResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DebAptAlternateContentSourceResponse' do
|
|
24
|
+
it 'should create an instance of DebAptAlternateContentSourceResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpDebClient::DebAptAlternateContentSourceResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "pulp_href"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "prn"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "pulp_created"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "name"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "last_refreshed"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "paths"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "remote"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpDebClient::DebAptAlternateContentSource
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpDebClient::DebAptAlternateContentSource do
|
|
21
|
+
let(:instance) { PulpDebClient::DebAptAlternateContentSource.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of DebAptAlternateContentSource' do
|
|
24
|
+
it 'should create an instance of DebAptAlternateContentSource' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpDebClient::DebAptAlternateContentSource)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "last_refreshed"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "paths"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "remote"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -93,6 +93,12 @@ describe PulpDebClient::DebAptRepositoryResponse do
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
describe 'test attribute "autopublish"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
96
102
|
describe 'test attribute "publish_upstream_release_fields"' do
|
|
97
103
|
it 'should work' do
|
|
98
104
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -57,6 +57,12 @@ describe PulpDebClient::DebAptRepository do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "autopublish"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
60
66
|
describe 'test attribute "publish_upstream_release_fields"' do
|
|
61
67
|
it 'should work' do
|
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for PulpDebClient::PaginateddebAptAlternateContentSourceResponseList
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PulpDebClient::PaginateddebAptAlternateContentSourceResponseList do
|
|
21
|
+
let(:instance) { PulpDebClient::PaginateddebAptAlternateContentSourceResponseList.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of PaginateddebAptAlternateContentSourceResponseList' do
|
|
24
|
+
it 'should create an instance of PaginateddebAptAlternateContentSourceResponseList' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(PulpDebClient::PaginateddebAptAlternateContentSourceResponseList)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "count"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "_next"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "previous"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "results"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|