pulp_deb_client 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -4
- data/docs/DebReleaseComponentResponse.md +3 -1
- data/docs/DebSourcePackageResponse.md +2 -0
- data/docs/DistributionsAptApi.md +232 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PublicationsAptApi.md +232 -0
- data/docs/PublicationsVerbatimApi.md +232 -0
- data/docs/RemotesAptApi.md +232 -0
- data/docs/RepositoriesAptApi.md +232 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +276 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +276 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +276 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +14 -4
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +11 -1
- data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_deb_client/models/nested_role.rb +253 -0
- data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +4 -0
- data/spec/api/distributions_apt_api_spec.rb +54 -0
- data/spec/api/publications_apt_api_spec.rb +54 -0
- data/spec/api/publications_verbatim_api_spec.rb +54 -0
- data/spec/api/remotes_apt_api_spec.rb +54 -0
- data/spec/api/repositories_apt_api_spec.rb +54 -0
- data/spec/models/deb_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +6 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +95 -79
@@ -0,0 +1,213 @@
|
|
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 PulpDebClient
|
16
|
+
class ObjectRolesResponse
|
17
|
+
attr_accessor :roles
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'roles' => :'roles'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'roles' => :'Array<NestedRoleResponse>'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
])
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
if (!attributes.is_a?(Hash))
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::ObjectRolesResponse` initialize method"
|
44
|
+
end
|
45
|
+
|
46
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::ObjectRolesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
+
end
|
51
|
+
h[k.to_sym] = v
|
52
|
+
}
|
53
|
+
|
54
|
+
if attributes.key?(:'roles')
|
55
|
+
if (value = attributes[:'roles']).is_a?(Array)
|
56
|
+
self.roles = value
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
+
# @return Array for valid properties with the reasons
|
63
|
+
def list_invalid_properties
|
64
|
+
invalid_properties = Array.new
|
65
|
+
if @roles.nil?
|
66
|
+
invalid_properties.push('invalid value for "roles", roles cannot be nil.')
|
67
|
+
end
|
68
|
+
|
69
|
+
invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
return false if @roles.nil?
|
76
|
+
true
|
77
|
+
end
|
78
|
+
|
79
|
+
# Checks equality by comparing each attribute.
|
80
|
+
# @param [Object] Object to be compared
|
81
|
+
def ==(o)
|
82
|
+
return true if self.equal?(o)
|
83
|
+
self.class == o.class &&
|
84
|
+
roles == o.roles
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Integer] Hash code
|
95
|
+
def hash
|
96
|
+
[roles].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def self.build_from_hash(attributes)
|
103
|
+
new.build_from_hash(attributes)
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
self.class.openapi_types.each_pair do |key, type|
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
121
|
+
end
|
122
|
+
|
123
|
+
self
|
124
|
+
end
|
125
|
+
|
126
|
+
# Deserializes the data based on type
|
127
|
+
# @param string type Data type
|
128
|
+
# @param string value Value to be deserialized
|
129
|
+
# @return [Object] Deserialized data
|
130
|
+
def _deserialize(type, value)
|
131
|
+
case type.to_sym
|
132
|
+
when :DateTime
|
133
|
+
DateTime.parse(value)
|
134
|
+
when :Date
|
135
|
+
Date.parse(value)
|
136
|
+
when :String
|
137
|
+
value.to_s
|
138
|
+
when :Integer
|
139
|
+
value.to_i
|
140
|
+
when :Float
|
141
|
+
value.to_f
|
142
|
+
when :Boolean
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
144
|
+
true
|
145
|
+
else
|
146
|
+
false
|
147
|
+
end
|
148
|
+
when :Object
|
149
|
+
# generic object (usually a Hash), return directly
|
150
|
+
value
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
157
|
+
{}.tap do |hash|
|
158
|
+
value.each do |k, v|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
else # model
|
163
|
+
PulpDebClient.const_get(type).build_from_hash(value)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Returns the string representation of the object
|
168
|
+
# @return [String] String presentation of the object
|
169
|
+
def to_s
|
170
|
+
to_hash.to_s
|
171
|
+
end
|
172
|
+
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_body
|
176
|
+
to_hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Returns the object in the form of hash
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_hash
|
182
|
+
hash = {}
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
184
|
+
value = self.send(attr)
|
185
|
+
if value.nil?
|
186
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
|
+
end
|
189
|
+
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
@@ -379,20 +379,20 @@ module PulpDebClient
|
|
379
379
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
380
380
|
end
|
381
381
|
|
382
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
383
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
382
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
383
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
384
384
|
end
|
385
385
|
|
386
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
387
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
386
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
387
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
388
388
|
end
|
389
389
|
|
390
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
391
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
390
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
391
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
392
392
|
end
|
393
393
|
|
394
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
395
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
394
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
395
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
396
396
|
end
|
397
397
|
|
398
398
|
if !@distributions.nil? && @distributions.to_s.length < 1
|
@@ -428,10 +428,10 @@ module PulpDebClient
|
|
428
428
|
return false if !@username.nil? && @username.to_s.length < 1
|
429
429
|
return false if !@password.nil? && @password.to_s.length < 1
|
430
430
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
431
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
432
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
433
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
434
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
431
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
432
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
433
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
434
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
435
435
|
return false if !@distributions.nil? && @distributions.to_s.length < 1
|
436
436
|
return false if !@components.nil? && @components.to_s.length < 1
|
437
437
|
return false if !@architectures.nil? && @architectures.to_s.length < 1
|
@@ -552,8 +552,8 @@ module PulpDebClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] total_timeout Value to be assigned
|
554
554
|
def total_timeout=(total_timeout)
|
555
|
-
if !total_timeout.nil? && total_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
555
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@total_timeout = total_timeout
|
@@ -562,8 +562,8 @@ module PulpDebClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] connect_timeout Value to be assigned
|
564
564
|
def connect_timeout=(connect_timeout)
|
565
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
565
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@connect_timeout = connect_timeout
|
@@ -572,8 +572,8 @@ module PulpDebClient
|
|
572
572
|
# Custom attribute writer method with validation
|
573
573
|
# @param [Object] sock_connect_timeout Value to be assigned
|
574
574
|
def sock_connect_timeout=(sock_connect_timeout)
|
575
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
575
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
576
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
577
577
|
end
|
578
578
|
|
579
579
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -582,8 +582,8 @@ module PulpDebClient
|
|
582
582
|
# Custom attribute writer method with validation
|
583
583
|
# @param [Object] sock_read_timeout Value to be assigned
|
584
584
|
def sock_read_timeout=(sock_read_timeout)
|
585
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
585
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
586
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
587
587
|
end
|
588
588
|
|
589
589
|
@sock_read_timeout = sock_read_timeout
|
data/lib/pulp_deb_client.rb
CHANGED
@@ -58,6 +58,10 @@ require 'pulp_deb_client/models/deb_source_package_release_component_response'
|
|
58
58
|
require 'pulp_deb_client/models/deb_source_package_response'
|
59
59
|
require 'pulp_deb_client/models/deb_verbatim_publication'
|
60
60
|
require 'pulp_deb_client/models/deb_verbatim_publication_response'
|
61
|
+
require 'pulp_deb_client/models/my_permissions_response'
|
62
|
+
require 'pulp_deb_client/models/nested_role'
|
63
|
+
require 'pulp_deb_client/models/nested_role_response'
|
64
|
+
require 'pulp_deb_client/models/object_roles_response'
|
61
65
|
require 'pulp_deb_client/models/paginated_repository_version_response_list'
|
62
66
|
require 'pulp_deb_client/models/paginateddeb_apt_distribution_response_list'
|
63
67
|
require 'pulp_deb_client/models/paginateddeb_apt_publication_response_list'
|
@@ -32,6 +32,19 @@ describe 'DistributionsAptApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
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_distribution_href
|
39
|
+
# @param nested_role
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NestedRoleResponse]
|
42
|
+
describe 'add_role test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for create
|
36
49
|
# Create an apt distribution
|
37
50
|
# Trigger an asynchronous create task
|
@@ -93,6 +106,34 @@ describe 'DistributionsAptApi' do
|
|
93
106
|
end
|
94
107
|
end
|
95
108
|
|
109
|
+
# unit tests for list_roles
|
110
|
+
# List roles
|
111
|
+
# List roles assigned to this object.
|
112
|
+
# @param deb_apt_distribution_href
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
115
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
116
|
+
# @return [ObjectRolesResponse]
|
117
|
+
describe 'list_roles test' do
|
118
|
+
it 'should work' do
|
119
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for my_permissions
|
124
|
+
# List user permissions
|
125
|
+
# List permissions available to the current user on this object.
|
126
|
+
# @param deb_apt_distribution_href
|
127
|
+
# @param [Hash] opts the optional parameters
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
|
+
# @return [MyPermissionsResponse]
|
131
|
+
describe 'my_permissions test' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
96
137
|
# unit tests for partial_update
|
97
138
|
# Update an apt distribution
|
98
139
|
# Trigger an asynchronous partial update task
|
@@ -120,6 +161,19 @@ describe 'DistributionsAptApi' do
|
|
120
161
|
end
|
121
162
|
end
|
122
163
|
|
164
|
+
# unit tests for remove_role
|
165
|
+
# Remove a role
|
166
|
+
# Remove a role for this object from users/groups.
|
167
|
+
# @param deb_apt_distribution_href
|
168
|
+
# @param nested_role
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [NestedRoleResponse]
|
171
|
+
describe 'remove_role test' do
|
172
|
+
it 'should work' do
|
173
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
123
177
|
# unit tests for set_label
|
124
178
|
# Set a label
|
125
179
|
# Set a single pulp_label on the object to a specific value or null.
|
@@ -32,6 +32,19 @@ describe 'PublicationsAptApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
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_publication_href
|
39
|
+
# @param nested_role
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NestedRoleResponse]
|
42
|
+
describe 'add_role test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for create
|
36
49
|
# Create an apt publication
|
37
50
|
# Trigger an asynchronous task to publish content
|
@@ -86,6 +99,34 @@ describe 'PublicationsAptApi' do
|
|
86
99
|
end
|
87
100
|
end
|
88
101
|
|
102
|
+
# unit tests for list_roles
|
103
|
+
# List roles
|
104
|
+
# List roles assigned to this object.
|
105
|
+
# @param deb_apt_publication_href
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
|
+
# @return [ObjectRolesResponse]
|
110
|
+
describe 'list_roles test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# unit tests for my_permissions
|
117
|
+
# List user permissions
|
118
|
+
# List permissions available to the current user on this object.
|
119
|
+
# @param deb_apt_publication_href
|
120
|
+
# @param [Hash] opts the optional parameters
|
121
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
122
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
123
|
+
# @return [MyPermissionsResponse]
|
124
|
+
describe 'my_permissions test' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
89
130
|
# unit tests for read
|
90
131
|
# Inspect an apt publication
|
91
132
|
# 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).
|
@@ -100,4 +141,17 @@ describe 'PublicationsAptApi' do
|
|
100
141
|
end
|
101
142
|
end
|
102
143
|
|
144
|
+
# unit tests for remove_role
|
145
|
+
# Remove a role
|
146
|
+
# Remove a role for this object from users/groups.
|
147
|
+
# @param deb_apt_publication_href
|
148
|
+
# @param nested_role
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [NestedRoleResponse]
|
151
|
+
describe 'remove_role test' do
|
152
|
+
it 'should work' do
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
103
157
|
end
|
@@ -32,6 +32,19 @@ describe 'PublicationsVerbatimApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for add_role
|
36
|
+
# Add a role
|
37
|
+
# Add a role for this object to users/groups.
|
38
|
+
# @param deb_verbatim_publication_href
|
39
|
+
# @param nested_role
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NestedRoleResponse]
|
42
|
+
describe 'add_role test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for create
|
36
49
|
# Create a verbatim publication
|
37
50
|
# Trigger an asynchronous task to publish content
|
@@ -86,6 +99,34 @@ describe 'PublicationsVerbatimApi' do
|
|
86
99
|
end
|
87
100
|
end
|
88
101
|
|
102
|
+
# unit tests for list_roles
|
103
|
+
# List roles
|
104
|
+
# List roles assigned to this object.
|
105
|
+
# @param deb_verbatim_publication_href
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
|
+
# @return [ObjectRolesResponse]
|
110
|
+
describe 'list_roles test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# unit tests for my_permissions
|
117
|
+
# List user permissions
|
118
|
+
# List permissions available to the current user on this object.
|
119
|
+
# @param deb_verbatim_publication_href
|
120
|
+
# @param [Hash] opts the optional parameters
|
121
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
122
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
123
|
+
# @return [MyPermissionsResponse]
|
124
|
+
describe 'my_permissions test' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
89
130
|
# unit tests for read
|
90
131
|
# Inspect a verbatim publication
|
91
132
|
# 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).
|
@@ -100,4 +141,17 @@ describe 'PublicationsVerbatimApi' do
|
|
100
141
|
end
|
101
142
|
end
|
102
143
|
|
144
|
+
# unit tests for remove_role
|
145
|
+
# Remove a role
|
146
|
+
# Remove a role for this object from users/groups.
|
147
|
+
# @param deb_verbatim_publication_href
|
148
|
+
# @param nested_role
|
149
|
+
# @param [Hash] opts the optional parameters
|
150
|
+
# @return [NestedRoleResponse]
|
151
|
+
describe 'remove_role test' do
|
152
|
+
it 'should work' do
|
153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
103
157
|
end
|
@@ -32,6 +32,19 @@ describe 'RemotesAptApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
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_remote_href
|
39
|
+
# @param nested_role
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NestedRoleResponse]
|
42
|
+
describe 'add_role test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for create
|
36
49
|
# Create an apt remote
|
37
50
|
# An AptRemote represents an external APT repository content source. It contains the location of the upstream APT repository, as well as the user options that are applied when using the remote to synchronize the upstream repository to Pulp.
|
@@ -92,6 +105,34 @@ describe 'RemotesAptApi' do
|
|
92
105
|
end
|
93
106
|
end
|
94
107
|
|
108
|
+
# unit tests for list_roles
|
109
|
+
# List roles
|
110
|
+
# List roles assigned to this object.
|
111
|
+
# @param deb_apt_remote_href
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
114
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
115
|
+
# @return [ObjectRolesResponse]
|
116
|
+
describe 'list_roles test' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for my_permissions
|
123
|
+
# List user permissions
|
124
|
+
# List permissions available to the current user on this object.
|
125
|
+
# @param deb_apt_remote_href
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
128
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
129
|
+
# @return [MyPermissionsResponse]
|
130
|
+
describe 'my_permissions test' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
95
136
|
# unit tests for partial_update
|
96
137
|
# Update an apt remote
|
97
138
|
# Trigger an asynchronous partial update task
|
@@ -119,6 +160,19 @@ describe 'RemotesAptApi' do
|
|
119
160
|
end
|
120
161
|
end
|
121
162
|
|
163
|
+
# unit tests for remove_role
|
164
|
+
# Remove a role
|
165
|
+
# Remove a role for this object from users/groups.
|
166
|
+
# @param deb_apt_remote_href
|
167
|
+
# @param nested_role
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [NestedRoleResponse]
|
170
|
+
describe 'remove_role test' do
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
122
176
|
# unit tests for set_label
|
123
177
|
# Set a label
|
124
178
|
# Set a single pulp_label on the object to a specific value or null.
|