pulp_python_client 3.0.0b9 → 3.0.0b11
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 +49 -42
- data/docs/ContentPackagesApi.md +54 -56
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsPypiApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/PatchedpythonPythonDistribution.md +23 -0
- data/docs/PatchedpythonPythonRemote.md +43 -0
- data/docs/PatchedpythonPythonRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsPypiApi.md +40 -40
- data/docs/PythonBanderRemote.md +19 -0
- data/docs/PythonPythonDistribution.md +1 -7
- data/docs/{PythonPythonDistributionRead.md → PythonPythonDistributionResponse.md} +2 -2
- data/docs/PythonPythonPackageContent.md +61 -0
- data/docs/{PythonPythonPackageContentRead.md → PythonPythonPackageContentResponse.md} +3 -3
- data/docs/PythonPythonPublication.md +2 -8
- data/docs/{PythonPythonPublicationRead.md → PythonPythonPublicationResponse.md} +2 -2
- data/docs/PythonPythonRemote.md +6 -12
- data/docs/{PythonPythonRemoteRead.md → PythonPythonRemoteResponse.md} +7 -7
- data/docs/PythonPythonRepository.md +4 -10
- data/docs/{PythonPythonRepositoryRead.md → PythonPythonRepositoryResponse.md} +5 -3
- data/docs/RemotesPythonApi.md +181 -65
- data/docs/RepositoriesPythonApi.md +97 -73
- data/docs/RepositoriesPythonVersionsApi.md +94 -60
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/{RepositoryVersionRead.md → RepositoryVersionResponse.md} +3 -3
- data/lib/pulp_python_client.rb +15 -9
- data/lib/pulp_python_client/api/content_packages_api.rb +73 -84
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +153 -90
- data/lib/pulp_python_client/api/publications_pypi_api.rb +59 -59
- data/lib/pulp_python_client/api/remotes_python_api.rb +253 -100
- data/lib/pulp_python_client/api/repositories_python_api.rb +145 -118
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +137 -89
- data/lib/pulp_python_client/api_client.rb +2 -2
- data/lib/pulp_python_client/api_error.rb +2 -2
- data/lib/pulp_python_client/configuration.rb +3 -3
- data/lib/pulp_python_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_python_client/models/content_summary.rb +9 -15
- data/lib/pulp_python_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_python_client/models/inline_response200.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_python_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +240 -0
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +359 -0
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +229 -0
- data/lib/pulp_python_client/models/policy_enum.rb +37 -0
- data/lib/pulp_python_client/models/{project_specifier.rb → python_bander_remote.rb} +26 -40
- data/lib/pulp_python_client/models/python_python_distribution.rb +4 -85
- data/lib/pulp_python_client/models/{python_python_distribution_read.rb → python_python_distribution_response.rb} +6 -58
- data/lib/pulp_python_client/models/python_python_package_content.rb +433 -0
- data/lib/pulp_python_client/models/{python_python_package_content_read.rb → python_python_package_content_response.rb} +6 -89
- data/lib/pulp_python_client/models/python_python_publication.rb +7 -37
- data/lib/pulp_python_client/models/{python_python_publication_read.rb → python_python_publication_response.rb} +6 -5
- data/lib/pulp_python_client/models/python_python_remote.rb +13 -209
- data/lib/pulp_python_client/models/{python_python_remote_read.rb → python_python_remote_response.rb} +15 -182
- data/lib/pulp_python_client/models/python_python_repository.rb +18 -78
- data/lib/pulp_python_client/models/{python_python_repository_read.rb → python_python_repository_response.rb} +21 -44
- data/lib/pulp_python_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_python_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_python_client/models/repository_version.rb +7 -43
- data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb} +8 -6
- data/lib/pulp_python_client/version.rb +3 -3
- data/pulp_python_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +24 -25
- data/spec/api/distributions_pypi_api_spec.rb +39 -18
- data/spec/api/publications_pypi_api_spec.rb +14 -14
- data/spec/api/remotes_python_api_spec.rb +61 -21
- data/spec/api/repositories_python_api_spec.rb +28 -19
- data/spec/api/repositories_python_versions_api_spec.rb +38 -22
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedpython_python_distribution_spec.rb +59 -0
- data/spec/models/patchedpython_python_remote_spec.rb +119 -0
- data/spec/models/patchedpython_python_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/{project_specifier_spec.rb → python_bander_remote_spec.rb} +10 -10
- data/spec/models/{python_python_distribution_read_spec.rb → python_python_distribution_response_spec.rb} +8 -8
- data/spec/models/python_python_distribution_spec.rb +2 -20
- data/spec/models/{python_python_package_content_read_spec.rb → python_python_package_content_response_spec.rb} +8 -8
- data/spec/models/python_python_package_content_spec.rb +173 -0
- data/spec/models/{python_python_publication_read_spec.rb → python_python_publication_response_spec.rb} +8 -8
- data/spec/models/python_python_publication_spec.rb +2 -20
- data/spec/models/{python_python_remote_read_spec.rb → python_python_remote_response_spec.rb} +8 -12
- data/spec/models/python_python_remote_spec.rb +2 -24
- data/spec/models/{python_python_repository_read_spec.rb → python_python_repository_response_spec.rb} +14 -8
- data/spec/models/python_python_repository_spec.rb +5 -23
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/{repository_version_read_spec.rb → repository_version_response_spec.rb} +8 -8
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +70 -46
- data/docs/ProjectSpecifier.md +0 -19
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpPythonClient
|
|
16
|
-
|
|
16
|
+
# Serializer for Python Repositories.
|
|
17
|
+
class PythonPythonRepositoryResponse
|
|
17
18
|
attr_accessor :pulp_href
|
|
18
19
|
|
|
19
20
|
# Timestamp of creation.
|
|
@@ -29,6 +30,8 @@ module PulpPythonClient
|
|
|
29
30
|
# An optional description.
|
|
30
31
|
attr_accessor :description
|
|
31
32
|
|
|
33
|
+
attr_accessor :remote
|
|
34
|
+
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
@@ -37,7 +40,8 @@ module PulpPythonClient
|
|
|
37
40
|
:'versions_href' => :'versions_href',
|
|
38
41
|
:'latest_version_href' => :'latest_version_href',
|
|
39
42
|
:'name' => :'name',
|
|
40
|
-
:'description' => :'description'
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'remote' => :'remote'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -49,14 +53,16 @@ module PulpPythonClient
|
|
|
49
53
|
:'versions_href' => :'String',
|
|
50
54
|
:'latest_version_href' => :'String',
|
|
51
55
|
:'name' => :'String',
|
|
52
|
-
:'description' => :'String'
|
|
56
|
+
:'description' => :'String',
|
|
57
|
+
:'remote' => :'String'
|
|
53
58
|
}
|
|
54
59
|
end
|
|
55
60
|
|
|
56
61
|
# List of attributes with nullable: true
|
|
57
62
|
def self.openapi_nullable
|
|
58
63
|
Set.new([
|
|
59
|
-
:'description'
|
|
64
|
+
:'description',
|
|
65
|
+
:'remote'
|
|
60
66
|
])
|
|
61
67
|
end
|
|
62
68
|
|
|
@@ -64,13 +70,13 @@ module PulpPythonClient
|
|
|
64
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
65
71
|
def initialize(attributes = {})
|
|
66
72
|
if (!attributes.is_a?(Hash))
|
|
67
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::
|
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonRepositoryResponse` initialize method"
|
|
68
74
|
end
|
|
69
75
|
|
|
70
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
71
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::
|
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonRepositoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
74
80
|
end
|
|
75
81
|
h[k.to_sym] = v
|
|
76
82
|
}
|
|
@@ -98,6 +104,10 @@ module PulpPythonClient
|
|
|
98
104
|
if attributes.key?(:'description')
|
|
99
105
|
self.description = attributes[:'description']
|
|
100
106
|
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'remote')
|
|
109
|
+
self.remote = attributes[:'remote']
|
|
110
|
+
end
|
|
101
111
|
end
|
|
102
112
|
|
|
103
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,14 +118,6 @@ module PulpPythonClient
|
|
|
108
118
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
109
119
|
end
|
|
110
120
|
|
|
111
|
-
if @name.to_s.length < 1
|
|
112
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
116
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
117
|
-
end
|
|
118
|
-
|
|
119
121
|
invalid_properties
|
|
120
122
|
end
|
|
121
123
|
|
|
@@ -123,35 +125,9 @@ module PulpPythonClient
|
|
|
123
125
|
# @return true if the model is valid
|
|
124
126
|
def valid?
|
|
125
127
|
return false if @name.nil?
|
|
126
|
-
return false if @name.to_s.length < 1
|
|
127
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
128
|
true
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
# Custom attribute writer method with validation
|
|
132
|
-
# @param [Object] name Value to be assigned
|
|
133
|
-
def name=(name)
|
|
134
|
-
if name.nil?
|
|
135
|
-
fail ArgumentError, 'name cannot be nil'
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if name.to_s.length < 1
|
|
139
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
@name = name
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
# Custom attribute writer method with validation
|
|
146
|
-
# @param [Object] description Value to be assigned
|
|
147
|
-
def description=(description)
|
|
148
|
-
if !description.nil? && description.to_s.length < 1
|
|
149
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
@description = description
|
|
153
|
-
end
|
|
154
|
-
|
|
155
131
|
# Checks equality by comparing each attribute.
|
|
156
132
|
# @param [Object] Object to be compared
|
|
157
133
|
def ==(o)
|
|
@@ -162,7 +138,8 @@ module PulpPythonClient
|
|
|
162
138
|
versions_href == o.versions_href &&
|
|
163
139
|
latest_version_href == o.latest_version_href &&
|
|
164
140
|
name == o.name &&
|
|
165
|
-
description == o.description
|
|
141
|
+
description == o.description &&
|
|
142
|
+
remote == o.remote
|
|
166
143
|
end
|
|
167
144
|
|
|
168
145
|
# @see the `==` method
|
|
@@ -174,7 +151,7 @@ module PulpPythonClient
|
|
|
174
151
|
# Calculates hash code according to all attributes.
|
|
175
152
|
# @return [Integer] Hash code
|
|
176
153
|
def hash
|
|
177
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description].hash
|
|
154
|
+
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
|
|
178
155
|
end
|
|
179
156
|
|
|
180
157
|
# Builds the object from hash
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpPythonClient
|
|
16
|
+
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
16
17
|
class RepositoryAddRemoveContent
|
|
17
18
|
# A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
|
|
18
19
|
attr_accessor :add_content_units
|
|
@@ -35,8 +36,8 @@ module PulpPythonClient
|
|
|
35
36
|
# Attribute type mapping.
|
|
36
37
|
def self.openapi_types
|
|
37
38
|
{
|
|
38
|
-
:'add_content_units' => :'Array<
|
|
39
|
-
:'remove_content_units' => :'Array<
|
|
39
|
+
:'add_content_units' => :'Array<Object>',
|
|
40
|
+
:'remove_content_units' => :'Array<Object>',
|
|
40
41
|
:'base_version' => :'String'
|
|
41
42
|
}
|
|
42
43
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module PulpPythonClient
|
|
16
16
|
class RepositorySyncURL
|
|
17
|
-
# A
|
|
17
|
+
# A remote to sync from. This will override a remote set on repository.
|
|
18
18
|
attr_accessor :remote
|
|
19
19
|
|
|
20
20
|
# If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
|
|
@@ -72,17 +72,12 @@ module PulpPythonClient
|
|
|
72
72
|
# @return Array for valid properties with the reasons
|
|
73
73
|
def list_invalid_properties
|
|
74
74
|
invalid_properties = Array.new
|
|
75
|
-
if @remote.nil?
|
|
76
|
-
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
77
|
-
end
|
|
78
|
-
|
|
79
75
|
invalid_properties
|
|
80
76
|
end
|
|
81
77
|
|
|
82
78
|
# Check to see if the all the properties in the model are valid
|
|
83
79
|
# @return true if the model is valid
|
|
84
80
|
def valid?
|
|
85
|
-
return false if @remote.nil?
|
|
86
81
|
true
|
|
87
82
|
end
|
|
88
83
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,38 +13,22 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpPythonClient
|
|
16
|
+
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
16
17
|
class RepositoryVersion
|
|
17
|
-
attr_accessor :pulp_href
|
|
18
|
-
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
|
-
attr_accessor :number
|
|
23
|
-
|
|
24
18
|
# A repository version whose content was used as the initial set of content for this repository version
|
|
25
19
|
attr_accessor :base_version
|
|
26
20
|
|
|
27
|
-
attr_accessor :content_summary
|
|
28
|
-
|
|
29
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
22
|
def self.attribute_map
|
|
31
23
|
{
|
|
32
|
-
:'
|
|
33
|
-
:'pulp_created' => :'pulp_created',
|
|
34
|
-
:'number' => :'number',
|
|
35
|
-
:'base_version' => :'base_version',
|
|
36
|
-
:'content_summary' => :'content_summary'
|
|
24
|
+
:'base_version' => :'base_version'
|
|
37
25
|
}
|
|
38
26
|
end
|
|
39
27
|
|
|
40
28
|
# Attribute type mapping.
|
|
41
29
|
def self.openapi_types
|
|
42
30
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'pulp_created' => :'DateTime',
|
|
45
|
-
:'number' => :'Integer',
|
|
46
|
-
:'base_version' => :'String',
|
|
47
|
-
:'content_summary' => :'ContentSummary'
|
|
31
|
+
:'base_version' => :'String'
|
|
48
32
|
}
|
|
49
33
|
end
|
|
50
34
|
|
|
@@ -69,25 +53,9 @@ module PulpPythonClient
|
|
|
69
53
|
h[k.to_sym] = v
|
|
70
54
|
}
|
|
71
55
|
|
|
72
|
-
if attributes.key?(:'pulp_href')
|
|
73
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
if attributes.key?(:'pulp_created')
|
|
77
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
if attributes.key?(:'number')
|
|
81
|
-
self.number = attributes[:'number']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
56
|
if attributes.key?(:'base_version')
|
|
85
57
|
self.base_version = attributes[:'base_version']
|
|
86
58
|
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'content_summary')
|
|
89
|
-
self.content_summary = attributes[:'content_summary']
|
|
90
|
-
end
|
|
91
59
|
end
|
|
92
60
|
|
|
93
61
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,11 +76,7 @@ module PulpPythonClient
|
|
|
108
76
|
def ==(o)
|
|
109
77
|
return true if self.equal?(o)
|
|
110
78
|
self.class == o.class &&
|
|
111
|
-
|
|
112
|
-
pulp_created == o.pulp_created &&
|
|
113
|
-
number == o.number &&
|
|
114
|
-
base_version == o.base_version &&
|
|
115
|
-
content_summary == o.content_summary
|
|
79
|
+
base_version == o.base_version
|
|
116
80
|
end
|
|
117
81
|
|
|
118
82
|
# @see the `==` method
|
|
@@ -124,7 +88,7 @@ module PulpPythonClient
|
|
|
124
88
|
# Calculates hash code according to all attributes.
|
|
125
89
|
# @return [Integer] Hash code
|
|
126
90
|
def hash
|
|
127
|
-
[
|
|
91
|
+
[base_version].hash
|
|
128
92
|
end
|
|
129
93
|
|
|
130
94
|
# Builds the object from hash
|
data/lib/pulp_python_client/models/{repository_version_read.rb → repository_version_response.rb}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpPythonClient
|
|
16
|
-
class
|
|
16
|
+
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
17
|
+
class RepositoryVersionResponse
|
|
17
18
|
attr_accessor :pulp_href
|
|
18
19
|
|
|
19
20
|
# Timestamp of creation.
|
|
@@ -24,6 +25,7 @@ module PulpPythonClient
|
|
|
24
25
|
# A repository version whose content was used as the initial set of content for this repository version
|
|
25
26
|
attr_accessor :base_version
|
|
26
27
|
|
|
28
|
+
# Various count summaries of the content in the version and the HREF to view them.
|
|
27
29
|
attr_accessor :content_summary
|
|
28
30
|
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -44,7 +46,7 @@ module PulpPythonClient
|
|
|
44
46
|
:'pulp_created' => :'DateTime',
|
|
45
47
|
:'number' => :'Integer',
|
|
46
48
|
:'base_version' => :'String',
|
|
47
|
-
:'content_summary' => :'
|
|
49
|
+
:'content_summary' => :'ContentSummaryResponse'
|
|
48
50
|
}
|
|
49
51
|
end
|
|
50
52
|
|
|
@@ -58,13 +60,13 @@ module PulpPythonClient
|
|
|
58
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
61
|
def initialize(attributes = {})
|
|
60
62
|
if (!attributes.is_a?(Hash))
|
|
61
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::RepositoryVersionResponse` initialize method"
|
|
62
64
|
end
|
|
63
65
|
|
|
64
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
68
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::RepositoryVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
70
|
end
|
|
69
71
|
h[k.to_sym] = v
|
|
70
72
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module PulpPythonClient
|
|
14
|
-
VERSION = '3.0.
|
|
14
|
+
VERSION = '3.0.0b11'
|
|
15
15
|
end
|
data/pulp_python_client.gemspec
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
=begin
|
|
4
4
|
#Pulp 3 API
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v3
|
|
9
|
-
|
|
9
|
+
Contact: pulp-list@redhat.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
OpenAPI Generator version: 4.2.3
|
|
12
12
|
|
|
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
s.version = PulpPythonClient::VERSION
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
|
23
|
-
s.email = [""]
|
|
23
|
+
s.email = ["pulp-list@redhat.com"]
|
|
24
24
|
s.homepage = "https://openapi-generator.tech"
|
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
|
26
|
-
s.description = "
|
|
26
|
+
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
|
27
27
|
s.license = 'GPL-2.0+'
|
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
|
29
29
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
|
-
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -36,7 +36,6 @@ describe 'ContentPackagesApi' do
|
|
|
36
36
|
# Create a python package content
|
|
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
|
-
# @param filename The name of the distribution package, usually of the format: {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.{packagetype}
|
|
40
39
|
# @param [Hash] opts the optional parameters
|
|
41
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
|
42
41
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
@@ -55,11 +54,11 @@ describe 'ContentPackagesApi' do
|
|
|
55
54
|
# @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
|
|
56
55
|
# @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
|
|
57
56
|
# @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
|
|
58
|
-
# @option opts [
|
|
59
|
-
# @option opts [
|
|
60
|
-
# @option opts [
|
|
61
|
-
# @option opts [
|
|
62
|
-
# @option opts [
|
|
57
|
+
# @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
|
|
58
|
+
# @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
|
|
59
|
+
# @option opts [Object] :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.
|
|
60
|
+
# @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
|
|
61
|
+
# @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
|
|
63
62
|
# @return [AsyncOperationResponse]
|
|
64
63
|
describe 'create test' do
|
|
65
64
|
it 'should work' do
|
|
@@ -71,23 +70,23 @@ describe 'ContentPackagesApi' do
|
|
|
71
70
|
# List python package contents
|
|
72
71
|
# 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`.
|
|
73
72
|
# @param [Hash] opts the optional parameters
|
|
74
|
-
# @option opts [String] :
|
|
75
|
-
# @option opts [String] :
|
|
76
|
-
# @option opts [String] :
|
|
77
|
-
# @option opts [String] :
|
|
78
|
-
# @option opts [String] :
|
|
79
|
-
# @option opts [String] :
|
|
80
|
-
# @option opts [String] :
|
|
81
|
-
# @option opts [String] :filename Filter results where filename matches value
|
|
82
|
-
# @option opts [String] :filename__in Filter results where filename is in a comma-separated list of values
|
|
83
|
-
# @option opts [String] :filename__contains Filter results where filename contains value
|
|
84
|
-
# @option opts [String] :keywords__in Filter results where keywords is in a comma-separated list of values
|
|
85
|
-
# @option opts [String] :keywords__contains Filter results where keywords contains value
|
|
86
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
87
|
-
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
88
|
-
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
73
|
+
# @option opts [String] :author author
|
|
74
|
+
# @option opts [String] :author__in author__in
|
|
75
|
+
# @option opts [String] :filename filename
|
|
76
|
+
# @option opts [String] :filename__contains filename__contains
|
|
77
|
+
# @option opts [String] :filename__in filename__in
|
|
78
|
+
# @option opts [String] :keywords__contains keywords__contains
|
|
79
|
+
# @option opts [String] :keywords__in keywords__in
|
|
89
80
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
81
|
+
# @option opts [String] :name name
|
|
82
|
+
# @option opts [String] :name__in name__in
|
|
90
83
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
84
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
85
|
+
# @option opts [String] :packagetype packagetype
|
|
86
|
+
# @option opts [String] :packagetype__in packagetype__in
|
|
87
|
+
# @option opts [String] :repository_version repository_version
|
|
88
|
+
# @option opts [String] :repository_version_added repository_version_added
|
|
89
|
+
# @option opts [String] :repository_version_removed repository_version_removed
|
|
91
90
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
92
91
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
93
92
|
# @return [InlineResponse200]
|
|
@@ -100,11 +99,11 @@ describe 'ContentPackagesApi' do
|
|
|
100
99
|
# unit tests for read
|
|
101
100
|
# Inspect a python package content
|
|
102
101
|
# 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`.
|
|
103
|
-
# @param
|
|
102
|
+
# @param python_python_package_content_href
|
|
104
103
|
# @param [Hash] opts the optional parameters
|
|
105
104
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
106
105
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
107
|
-
# @return [
|
|
106
|
+
# @return [PythonPythonPackageContentResponse]
|
|
108
107
|
describe 'read test' do
|
|
109
108
|
it 'should work' do
|
|
110
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|