pulp_python_client 3.11.8 → 3.12.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 +31 -12
- data/docs/ContentPackagesApi.md +13 -19
- data/docs/DistributionsPypiApi.md +245 -41
- 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/PackageMetadataResponse.md +3 -3
- data/docs/PublicationsPypiApi.md +237 -17
- data/docs/PypiApi.md +8 -4
- data/docs/PypiLegacyApi.md +1 -3
- data/docs/PypiMetadataApi.md +8 -4
- data/docs/PypiSimpleApi.md +1 -7
- data/docs/PythonPythonPackageContent.md +6 -6
- data/docs/PythonPythonPackageContentResponse.md +6 -6
- data/docs/RemotesPythonApi.md +245 -43
- data/docs/RepositoriesPythonApi.md +249 -53
- data/docs/RepositoriesPythonVersionsApi.md +5 -17
- data/lib/pulp_python_client/api/content_packages_api.rb +12 -21
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -24
- data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -12
- data/lib/pulp_python_client/api/pypi_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +0 -3
- data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -4
- data/lib/pulp_python_client/api/pypi_simple_api.rb +0 -9
- data/lib/pulp_python_client/api/remotes_python_api.rb +276 -27
- data/lib/pulp_python_client/api/repositories_python_api.rb +276 -30
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +0 -12
- data/lib/pulp_python_client/configuration.rb +2 -2
- data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_python_client/models/nested_role.rb +253 -0
- data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
- data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
- data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
- data/lib/pulp_python_client/models/python_python_package_content_response.rb +6 -6
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +4 -0
- data/spec/api/content_packages_api_spec.rb +6 -9
- data/spec/api/distributions_pypi_api_spec.rb +54 -8
- data/spec/api/publications_pypi_api_spec.rb +54 -4
- data/spec/api/pypi_api_spec.rb +0 -1
- data/spec/api/pypi_legacy_api_spec.rb +0 -1
- data/spec/api/pypi_metadata_api_spec.rb +0 -1
- data/spec/api/pypi_simple_api_spec.rb +0 -3
- data/spec/api/remotes_python_api_spec.rb +54 -9
- data/spec/api/repositories_python_api_spec.rb +54 -10
- data/spec/api/repositories_python_versions_api_spec.rb +0 -4
- data/spec/configuration_spec.rb +3 -3
- 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 +68 -52
|
@@ -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 PulpPythonClient
|
|
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 `PulpPythonClient::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 `PulpPythonClient::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
|
+
PulpPythonClient.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
|
|
@@ -40,9 +40,9 @@ module PulpPythonClient
|
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
42
|
:'last_serial' => :'Integer',
|
|
43
|
-
:'info' => :'
|
|
44
|
-
:'releases' => :'
|
|
45
|
-
:'urls' => :'
|
|
43
|
+
:'info' => :'AnyType',
|
|
44
|
+
:'releases' => :'AnyType',
|
|
45
|
+
:'urls' => :'AnyType'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -42,6 +42,8 @@ module PulpPythonClient
|
|
|
42
42
|
# List of attributes with nullable: true
|
|
43
43
|
def self.openapi_nullable
|
|
44
44
|
Set.new([
|
|
45
|
+
:'session',
|
|
46
|
+
:'task_start_time'
|
|
45
47
|
])
|
|
46
48
|
end
|
|
47
49
|
|
|
@@ -77,27 +79,17 @@ module PulpPythonClient
|
|
|
77
79
|
# @return Array for valid properties with the reasons
|
|
78
80
|
def list_invalid_properties
|
|
79
81
|
invalid_properties = Array.new
|
|
80
|
-
if @session.nil?
|
|
81
|
-
invalid_properties.push('invalid value for "session", session cannot be nil.')
|
|
82
|
-
end
|
|
83
|
-
|
|
84
82
|
if @task.nil?
|
|
85
83
|
invalid_properties.push('invalid value for "task", task cannot be nil.')
|
|
86
84
|
end
|
|
87
85
|
|
|
88
|
-
if @task_start_time.nil?
|
|
89
|
-
invalid_properties.push('invalid value for "task_start_time", task_start_time cannot be nil.')
|
|
90
|
-
end
|
|
91
|
-
|
|
92
86
|
invalid_properties
|
|
93
87
|
end
|
|
94
88
|
|
|
95
89
|
# Check to see if the all the properties in the model are valid
|
|
96
90
|
# @return true if the model is valid
|
|
97
91
|
def valid?
|
|
98
|
-
return false if @session.nil?
|
|
99
92
|
return false if @task.nil?
|
|
100
|
-
return false if @task_start_time.nil?
|
|
101
93
|
true
|
|
102
94
|
end
|
|
103
95
|
|
|
@@ -151,14 +151,14 @@ module PulpPythonClient
|
|
|
151
151
|
:'license' => :'String',
|
|
152
152
|
:'requires_python' => :'String',
|
|
153
153
|
:'project_url' => :'String',
|
|
154
|
-
:'project_urls' => :'
|
|
154
|
+
:'project_urls' => :'AnyType',
|
|
155
155
|
:'platform' => :'String',
|
|
156
156
|
:'supported_platform' => :'String',
|
|
157
|
-
:'requires_dist' => :'
|
|
158
|
-
:'provides_dist' => :'
|
|
159
|
-
:'obsoletes_dist' => :'
|
|
160
|
-
:'requires_external' => :'
|
|
161
|
-
:'classifiers' => :'
|
|
157
|
+
:'requires_dist' => :'AnyType',
|
|
158
|
+
:'provides_dist' => :'AnyType',
|
|
159
|
+
:'obsoletes_dist' => :'AnyType',
|
|
160
|
+
:'requires_external' => :'AnyType',
|
|
161
|
+
:'classifiers' => :'AnyType'
|
|
162
162
|
}
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -170,14 +170,14 @@ module PulpPythonClient
|
|
|
170
170
|
:'license' => :'String',
|
|
171
171
|
:'requires_python' => :'String',
|
|
172
172
|
:'project_url' => :'String',
|
|
173
|
-
:'project_urls' => :'
|
|
173
|
+
:'project_urls' => :'AnyType',
|
|
174
174
|
:'platform' => :'String',
|
|
175
175
|
:'supported_platform' => :'String',
|
|
176
|
-
:'requires_dist' => :'
|
|
177
|
-
:'provides_dist' => :'
|
|
178
|
-
:'obsoletes_dist' => :'
|
|
179
|
-
:'requires_external' => :'
|
|
180
|
-
:'classifiers' => :'
|
|
176
|
+
:'requires_dist' => :'AnyType',
|
|
177
|
+
:'provides_dist' => :'AnyType',
|
|
178
|
+
:'obsoletes_dist' => :'AnyType',
|
|
179
|
+
:'requires_external' => :'AnyType',
|
|
180
|
+
:'classifiers' => :'AnyType'
|
|
181
181
|
}
|
|
182
182
|
end
|
|
183
183
|
|
data/lib/pulp_python_client.rb
CHANGED
|
@@ -20,6 +20,10 @@ require 'pulp_python_client/configuration'
|
|
|
20
20
|
require 'pulp_python_client/models/async_operation_response'
|
|
21
21
|
require 'pulp_python_client/models/content_summary_response'
|
|
22
22
|
require 'pulp_python_client/models/exclude_platforms_enum'
|
|
23
|
+
require 'pulp_python_client/models/my_permissions_response'
|
|
24
|
+
require 'pulp_python_client/models/nested_role'
|
|
25
|
+
require 'pulp_python_client/models/nested_role_response'
|
|
26
|
+
require 'pulp_python_client/models/object_roles_response'
|
|
23
27
|
require 'pulp_python_client/models/package_metadata_response'
|
|
24
28
|
require 'pulp_python_client/models/package_types_enum'
|
|
25
29
|
require 'pulp_python_client/models/package_upload'
|
|
@@ -37,7 +37,6 @@ describe 'ContentPackagesApi' do
|
|
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
38
38
|
# @param relative_path Path where the artifact is located relative to distributions base_path
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
42
41
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
43
42
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
@@ -56,14 +55,14 @@ describe 'ContentPackagesApi' do
|
|
|
56
55
|
# @option opts [String] :license Text indicating the license covering the distribution
|
|
57
56
|
# @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
|
|
58
57
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
|
59
|
-
# @option opts [
|
|
58
|
+
# @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
|
|
60
59
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
61
60
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
|
62
|
-
# @option opts [
|
|
63
|
-
# @option opts [
|
|
64
|
-
# @option opts [
|
|
65
|
-
# @option opts [
|
|
66
|
-
# @option opts [
|
|
61
|
+
# @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
|
62
|
+
# @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
|
63
|
+
# @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project's distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
|
|
64
|
+
# @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
|
65
|
+
# @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
|
|
67
66
|
# @return [AsyncOperationResponse]
|
|
68
67
|
describe 'create test' do
|
|
69
68
|
it 'should work' do
|
|
@@ -75,7 +74,6 @@ describe 'ContentPackagesApi' do
|
|
|
75
74
|
# List python package contents
|
|
76
75
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
|
77
76
|
# @param [Hash] opts the optional parameters
|
|
78
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
79
77
|
# @option opts [String] :author Filter results where author matches value
|
|
80
78
|
# @option opts [Array<String>] :author__in Filter results where author is in a comma-separated list of values
|
|
81
79
|
# @option opts [String] :filename Filter results where filename matches value
|
|
@@ -121,7 +119,6 @@ describe 'ContentPackagesApi' do
|
|
|
121
119
|
# PythonPackageContent represents each individually installable Python package. In the Python ecosystem, this is called a Python Distribution, sometimes (ambiguously) refered to as a package. In Pulp Python, we refer to it as PythonPackageContent. Each PythonPackageContent corresponds to a single filename, for example `pulpcore-3.0.0rc1-py3-none-any.whl` or `pulpcore-3.0.0rc1.tar.gz`.
|
|
122
120
|
# @param python_python_package_content_href
|
|
123
121
|
# @param [Hash] opts the optional parameters
|
|
124
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
125
122
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
126
123
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
127
124
|
# @return [PythonPythonPackageContentResponse]
|
|
@@ -32,12 +32,24 @@ describe 'DistributionsPypiApi' 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 python_python_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 a python distribution
|
|
37
50
|
# Trigger an asynchronous create task
|
|
38
51
|
# @param python_python_distribution
|
|
39
52
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
53
|
# @return [AsyncOperationResponse]
|
|
42
54
|
describe 'create test' do
|
|
43
55
|
it 'should work' do
|
|
@@ -50,7 +62,6 @@ describe 'DistributionsPypiApi' do
|
|
|
50
62
|
# Trigger an asynchronous delete task
|
|
51
63
|
# @param python_python_distribution_href
|
|
52
64
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
65
|
# @return [AsyncOperationResponse]
|
|
55
66
|
describe 'delete test' do
|
|
56
67
|
it 'should work' do
|
|
@@ -62,7 +73,6 @@ describe 'DistributionsPypiApi' do
|
|
|
62
73
|
# List python distributions
|
|
63
74
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
|
64
75
|
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
66
76
|
# @option opts [String] :base_path Filter results where base_path matches value
|
|
67
77
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
|
68
78
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
|
@@ -95,13 +105,40 @@ describe 'DistributionsPypiApi' do
|
|
|
95
105
|
end
|
|
96
106
|
end
|
|
97
107
|
|
|
108
|
+
# unit tests for list_roles
|
|
109
|
+
# List roles
|
|
110
|
+
# List roles assigned to this object.
|
|
111
|
+
# @param python_python_distribution_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 python_python_distribution_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
|
+
|
|
98
136
|
# unit tests for partial_update
|
|
99
137
|
# Update a python distribution
|
|
100
138
|
# Trigger an asynchronous partial update task
|
|
101
139
|
# @param python_python_distribution_href
|
|
102
140
|
# @param patchedpython_python_distribution
|
|
103
141
|
# @param [Hash] opts the optional parameters
|
|
104
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
105
142
|
# @return [AsyncOperationResponse]
|
|
106
143
|
describe 'partial_update test' do
|
|
107
144
|
it 'should work' do
|
|
@@ -114,7 +151,6 @@ describe 'DistributionsPypiApi' do
|
|
|
114
151
|
# Pulp Python Distributions are used to distribute Python content from Python Repositories or Python Publications. Pulp Python Distributions should not be confused with \"Python Distribution\" as defined by the Python community. In Pulp usage, Python content is referred to as Python Package Content.
|
|
115
152
|
# @param python_python_distribution_href
|
|
116
153
|
# @param [Hash] opts the optional parameters
|
|
117
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
118
154
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
119
155
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
120
156
|
# @return [PythonPythonDistributionResponse]
|
|
@@ -124,13 +160,25 @@ describe 'DistributionsPypiApi' do
|
|
|
124
160
|
end
|
|
125
161
|
end
|
|
126
162
|
|
|
163
|
+
# unit tests for remove_role
|
|
164
|
+
# Remove a role
|
|
165
|
+
# Remove a role for this object from users/groups.
|
|
166
|
+
# @param python_python_distribution_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
|
+
|
|
127
176
|
# unit tests for set_label
|
|
128
177
|
# Set a label
|
|
129
178
|
# Set a single pulp_label on the object to a specific value or null.
|
|
130
179
|
# @param python_python_distribution_href
|
|
131
180
|
# @param set_label
|
|
132
181
|
# @param [Hash] opts the optional parameters
|
|
133
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
134
182
|
# @return [SetLabelResponse]
|
|
135
183
|
describe 'set_label test' do
|
|
136
184
|
it 'should work' do
|
|
@@ -144,7 +192,6 @@ describe 'DistributionsPypiApi' do
|
|
|
144
192
|
# @param python_python_distribution_href
|
|
145
193
|
# @param unset_label
|
|
146
194
|
# @param [Hash] opts the optional parameters
|
|
147
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
148
195
|
# @return [UnsetLabelResponse]
|
|
149
196
|
describe 'unset_label test' do
|
|
150
197
|
it 'should work' do
|
|
@@ -158,7 +205,6 @@ describe 'DistributionsPypiApi' do
|
|
|
158
205
|
# @param python_python_distribution_href
|
|
159
206
|
# @param python_python_distribution
|
|
160
207
|
# @param [Hash] opts the optional parameters
|
|
161
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
162
208
|
# @return [AsyncOperationResponse]
|
|
163
209
|
describe 'update test' do
|
|
164
210
|
it 'should work' do
|
|
@@ -32,12 +32,24 @@ describe 'PublicationsPypiApi' 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 python_python_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 python publication
|
|
37
50
|
# Dispatches a publish task, which generates metadata that will be used by pip.
|
|
38
51
|
# @param python_python_publication
|
|
39
52
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
53
|
# @return [AsyncOperationResponse]
|
|
42
54
|
describe 'create test' do
|
|
43
55
|
it 'should work' do
|
|
@@ -50,7 +62,6 @@ describe 'PublicationsPypiApi' do
|
|
|
50
62
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
51
63
|
# @param python_python_publication_href
|
|
52
64
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
65
|
# @return [nil]
|
|
55
66
|
describe 'delete test' do
|
|
56
67
|
it 'should work' do
|
|
@@ -62,7 +73,6 @@ describe 'PublicationsPypiApi' do
|
|
|
62
73
|
# List python publications
|
|
63
74
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
64
75
|
# @param [Hash] opts the optional parameters
|
|
65
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
66
76
|
# @option opts [String] :content Content Unit referenced by HREF
|
|
67
77
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
68
78
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -88,12 +98,39 @@ describe 'PublicationsPypiApi' do
|
|
|
88
98
|
end
|
|
89
99
|
end
|
|
90
100
|
|
|
101
|
+
# unit tests for list_roles
|
|
102
|
+
# List roles
|
|
103
|
+
# List roles assigned to this object.
|
|
104
|
+
# @param python_python_publication_href
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
107
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
108
|
+
# @return [ObjectRolesResponse]
|
|
109
|
+
describe 'list_roles test' do
|
|
110
|
+
it 'should work' do
|
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# unit tests for my_permissions
|
|
116
|
+
# List user permissions
|
|
117
|
+
# List permissions available to the current user on this object.
|
|
118
|
+
# @param python_python_publication_href
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
121
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
122
|
+
# @return [MyPermissionsResponse]
|
|
123
|
+
describe 'my_permissions test' do
|
|
124
|
+
it 'should work' do
|
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
91
129
|
# unit tests for read
|
|
92
130
|
# Inspect a python publication
|
|
93
131
|
# Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
|
|
94
132
|
# @param python_python_publication_href
|
|
95
133
|
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
97
134
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
98
135
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
99
136
|
# @return [PythonPythonPublicationResponse]
|
|
@@ -103,4 +140,17 @@ describe 'PublicationsPypiApi' do
|
|
|
103
140
|
end
|
|
104
141
|
end
|
|
105
142
|
|
|
143
|
+
# unit tests for remove_role
|
|
144
|
+
# Remove a role
|
|
145
|
+
# Remove a role for this object from users/groups.
|
|
146
|
+
# @param python_python_publication_href
|
|
147
|
+
# @param nested_role
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [NestedRoleResponse]
|
|
150
|
+
describe 'remove_role test' do
|
|
151
|
+
it 'should work' do
|
|
152
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
106
156
|
end
|
data/spec/api/pypi_api_spec.rb
CHANGED
|
@@ -37,7 +37,6 @@ describe 'PypiApi' do
|
|
|
37
37
|
# Gets package summary stats of index.
|
|
38
38
|
# @param path
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
41
40
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
42
41
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
43
42
|
# @return [SummaryResponse]
|
|
@@ -39,7 +39,6 @@ describe 'PypiLegacyApi' do
|
|
|
39
39
|
# @param content A Python package release file to upload to the index.
|
|
40
40
|
# @param sha256_digest SHA256 of package to validate upload integrity.
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
42
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
43
|
# @return [PackageUploadTaskResponse]
|
|
45
44
|
describe 'create test' do
|
|
@@ -38,7 +38,6 @@ describe 'PypiMetadataApi' do
|
|
|
38
38
|
# @param meta
|
|
39
39
|
# @param path
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
41
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
43
42
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
44
43
|
# @return [PackageMetadataResponse]
|
|
@@ -39,7 +39,6 @@ describe 'PypiSimpleApi' do
|
|
|
39
39
|
# @param content A Python package release file to upload to the index.
|
|
40
40
|
# @param sha256_digest SHA256 of package to validate upload integrity.
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
43
42
|
# @option opts [String] :action Defaults to `file_upload`, don't change it or request will fail!
|
|
44
43
|
# @return [PackageUploadTaskResponse]
|
|
45
44
|
describe 'create test' do
|
|
@@ -54,7 +53,6 @@ describe 'PypiSimpleApi' do
|
|
|
54
53
|
# @param package
|
|
55
54
|
# @param path
|
|
56
55
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
58
56
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
59
57
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
60
58
|
# @return [nil]
|
|
@@ -69,7 +67,6 @@ describe 'PypiSimpleApi' do
|
|
|
69
67
|
# Gets the simple api html page for the index.
|
|
70
68
|
# @param path
|
|
71
69
|
# @param [Hash] opts the optional parameters
|
|
72
|
-
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
73
70
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
74
71
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
75
72
|
# @return [nil]
|