pulp_python_client 3.0.0 → 3.2.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 +6 -4
- data/docs/ContentPackagesApi.md +34 -28
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DistributionsPypiApi.md +20 -12
- data/docs/ExcludePlatformsEnum.md +16 -0
- data/docs/PackageTypesEnum.md +16 -0
- data/docs/PatchedpythonPythonDistribution.md +2 -0
- data/docs/PatchedpythonPythonRemote.md +18 -2
- data/docs/PatchedpythonPythonRepository.md +3 -1
- data/docs/PublicationsPypiApi.md +14 -14
- data/docs/PythonPythonDistribution.md +2 -0
- data/docs/PythonPythonDistributionResponse.md +2 -0
- data/docs/PythonPythonRemote.md +18 -2
- data/docs/PythonPythonRemoteResponse.md +14 -8
- data/docs/PythonPythonRepository.md +3 -1
- data/docs/PythonPythonRepositoryResponse.md +2 -0
- data/docs/RemotesPythonApi.md +24 -16
- data/docs/RepositoriesPythonApi.md +12 -4
- data/docs/RepositoriesPythonVersionsApi.md +28 -28
- data/lib/pulp_python_client/api/content_packages_api.rb +42 -33
- data/lib/pulp_python_client/api/distributions_pypi_api.rb +26 -14
- data/lib/pulp_python_client/api/publications_pypi_api.rb +15 -15
- data/lib/pulp_python_client/api/remotes_python_api.rb +30 -18
- data/lib/pulp_python_client/api/repositories_python_api.rb +17 -5
- data/lib/pulp_python_client/api/repositories_python_versions_api.rb +30 -30
- data/lib/pulp_python_client/models/content_summary.rb +12 -6
- data/lib/pulp_python_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_python_client/models/exclude_platforms_enum.rb +38 -0
- data/lib/pulp_python_client/models/package_types_enum.rb +42 -0
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +10 -1
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +95 -5
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +10 -1
- data/lib/pulp_python_client/models/python_python_distribution.rb +10 -1
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +10 -1
- data/lib/pulp_python_client/models/python_python_remote.rb +95 -5
- data/lib/pulp_python_client/models/python_python_remote_response.rb +70 -35
- data/lib/pulp_python_client/models/python_python_repository.rb +10 -1
- data/lib/pulp_python_client/models/python_python_repository_response.rb +10 -1
- data/lib/pulp_python_client/version.rb +1 -1
- data/lib/pulp_python_client.rb +2 -0
- data/spec/api/content_packages_api_spec.rb +17 -14
- data/spec/api/distributions_pypi_api_spec.rb +10 -6
- data/spec/api/publications_pypi_api_spec.rb +7 -7
- data/spec/api/remotes_python_api_spec.rb +12 -8
- data/spec/api/repositories_python_api_spec.rb +6 -2
- data/spec/api/repositories_python_versions_api_spec.rb +14 -14
- data/spec/models/exclude_platforms_enum_spec.rb +35 -0
- data/spec/models/package_types_enum_spec.rb +35 -0
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/patchedpython_python_remote_spec.rb +48 -0
- data/spec/models/patchedpython_python_repository_spec.rb +6 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_remote_response_spec.rb +30 -12
- data/spec/models/python_python_remote_spec.rb +48 -0
- data/spec/models/python_python_repository_response_spec.rb +6 -0
- data/spec/models/python_python_repository_spec.rb +6 -0
- metadata +30 -22
@@ -85,23 +85,23 @@ module PulpPythonClient
|
|
85
85
|
# PythonRepositoryVersion represents a single Python repository version.
|
86
86
|
# @param python_python_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
91
|
+
# @option opts [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -114,23 +114,23 @@ module PulpPythonClient
|
|
114
114
|
# PythonRepositoryVersion represents a single Python repository version.
|
115
115
|
# @param python_python_repository_href [String]
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :content
|
118
|
-
# @option opts [String] :content__in
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [
|
121
|
-
# @option opts [
|
122
|
-
# @option opts [
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
120
|
+
# @option opts [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
127
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
128
|
-
# @option opts [
|
129
|
-
# @option opts [
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -155,7 +155,7 @@ module PulpPythonClient
|
|
155
155
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
156
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
157
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
158
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
159
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
160
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
161
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -163,7 +163,7 @@ module PulpPythonClient
|
|
163
163
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
164
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
165
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
166
|
-
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
166
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
167
167
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
168
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
169
|
|
@@ -33,9 +33,9 @@ module PulpPythonClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpPythonClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -33,9 +33,9 @@ module PulpPythonClient
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
:'added' => :'Object',
|
37
|
-
:'removed' => :'Object',
|
38
|
-
:'present' => :'Object'
|
36
|
+
:'added' => :'Hash<String, Object>',
|
37
|
+
:'removed' => :'Hash<String, Object>',
|
38
|
+
:'present' => :'Hash<String, Object>'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -61,15 +61,21 @@ module PulpPythonClient
|
|
61
61
|
}
|
62
62
|
|
63
63
|
if attributes.key?(:'added')
|
64
|
-
|
64
|
+
if (value = attributes[:'added']).is_a?(Hash)
|
65
|
+
self.added = value
|
66
|
+
end
|
65
67
|
end
|
66
68
|
|
67
69
|
if attributes.key?(:'removed')
|
68
|
-
|
70
|
+
if (value = attributes[:'removed']).is_a?(Hash)
|
71
|
+
self.removed = value
|
72
|
+
end
|
69
73
|
end
|
70
74
|
|
71
75
|
if attributes.key?(:'present')
|
72
|
-
|
76
|
+
if (value = attributes[:'present']).is_a?(Hash)
|
77
|
+
self.present = value
|
78
|
+
end
|
73
79
|
end
|
74
80
|
end
|
75
81
|
|
@@ -0,0 +1,38 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpPythonClient
|
16
|
+
class ExcludePlatformsEnum
|
17
|
+
WINDOWS = "windows".freeze
|
18
|
+
MACOS = "macos".freeze
|
19
|
+
FREEBSD = "freebsd".freeze
|
20
|
+
LINUX = "linux".freeze
|
21
|
+
|
22
|
+
# Builds the enum from string
|
23
|
+
# @param [String] The enum value in the form of the string
|
24
|
+
# @return [String] The enum value
|
25
|
+
def self.build_from_hash(value)
|
26
|
+
new.build_from_hash(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def build_from_hash(value)
|
33
|
+
constantValues = ExcludePlatformsEnum.constants.select { |c| ExcludePlatformsEnum::const_get(c) == value }
|
34
|
+
raise "Invalid ENUM value #{value} for class #ExcludePlatformsEnum" if constantValues.empty?
|
35
|
+
value
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpPythonClient
|
16
|
+
class PackageTypesEnum
|
17
|
+
BDIST_DMG = "bdist_dmg".freeze
|
18
|
+
BDIST_DUMB = "bdist_dumb".freeze
|
19
|
+
BDIST_EGG = "bdist_egg".freeze
|
20
|
+
BDIST_MSI = "bdist_msi".freeze
|
21
|
+
BDIST_RPM = "bdist_rpm".freeze
|
22
|
+
BDIST_WHEEL = "bdist_wheel".freeze
|
23
|
+
BDIST_WININST = "bdist_wininst".freeze
|
24
|
+
SDIST = "sdist".freeze
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
constantValues = PackageTypesEnum.constants.select { |c| PackageTypesEnum::const_get(c) == value }
|
38
|
+
raise "Invalid ENUM value #{value} for class #PackageTypesEnum" if constantValues.empty?
|
39
|
+
value
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -21,6 +21,8 @@ module PulpPythonClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
@@ -32,6 +34,7 @@ module PulpPythonClient
|
|
32
34
|
{
|
33
35
|
:'base_path' => :'base_path',
|
34
36
|
:'content_guard' => :'content_guard',
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'publication' => :'publication'
|
37
40
|
}
|
@@ -42,6 +45,7 @@ module PulpPythonClient
|
|
42
45
|
{
|
43
46
|
:'base_path' => :'String',
|
44
47
|
:'content_guard' => :'String',
|
48
|
+
:'pulp_labels' => :'Object',
|
45
49
|
:'name' => :'String',
|
46
50
|
:'publication' => :'String'
|
47
51
|
}
|
@@ -78,6 +82,10 @@ module PulpPythonClient
|
|
78
82
|
self.content_guard = attributes[:'content_guard']
|
79
83
|
end
|
80
84
|
|
85
|
+
if attributes.key?(:'pulp_labels')
|
86
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'name')
|
82
90
|
self.name = attributes[:'name']
|
83
91
|
end
|
@@ -107,6 +115,7 @@ module PulpPythonClient
|
|
107
115
|
self.class == o.class &&
|
108
116
|
base_path == o.base_path &&
|
109
117
|
content_guard == o.content_guard &&
|
118
|
+
pulp_labels == o.pulp_labels &&
|
110
119
|
name == o.name &&
|
111
120
|
publication == o.publication
|
112
121
|
end
|
@@ -120,7 +129,7 @@ module PulpPythonClient
|
|
120
129
|
# Calculates hash code according to all attributes.
|
121
130
|
# @return [Integer] Hash code
|
122
131
|
def hash
|
123
|
-
[base_path, content_guard, name, publication].hash
|
132
|
+
[base_path, content_guard, pulp_labels, name, publication].hash
|
124
133
|
end
|
125
134
|
|
126
135
|
# Builds the object from hash
|
@@ -33,15 +33,23 @@ module PulpPythonClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
42
48
|
# The password to be used for authentication when syncing.
|
43
49
|
attr_accessor :password
|
44
50
|
|
51
|
+
attr_accessor :pulp_labels
|
52
|
+
|
45
53
|
# Total number of simultaneous connections.
|
46
54
|
attr_accessor :download_concurrency
|
47
55
|
|
@@ -60,6 +68,12 @@ module PulpPythonClient
|
|
60
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
61
69
|
attr_accessor :sock_read_timeout
|
62
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
74
|
+
# Limits total download rate in requests per second
|
75
|
+
attr_accessor :rate_limit
|
76
|
+
|
63
77
|
# A JSON list containing project specifiers for Python packages to include.
|
64
78
|
attr_accessor :includes
|
65
79
|
|
@@ -69,6 +83,15 @@ module PulpPythonClient
|
|
69
83
|
# Whether or not to include pre-release packages in the sync.
|
70
84
|
attr_accessor :prereleases
|
71
85
|
|
86
|
+
# The package types to sync for Python content. Leave blank to get everypackage type.
|
87
|
+
attr_accessor :package_types
|
88
|
+
|
89
|
+
# The amount of latest versions of a package to keep on sync, includespre-releases if synced. Default 0 keeps all versions.
|
90
|
+
attr_accessor :keep_latest_packages
|
91
|
+
|
92
|
+
# List of platforms to exclude syncing Python packages for. Possible valuesinclude: windows, macos, freebsd, and linux.
|
93
|
+
attr_accessor :exclude_platforms
|
94
|
+
|
72
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
73
96
|
def self.attribute_map
|
74
97
|
{
|
@@ -79,17 +102,25 @@ module PulpPythonClient
|
|
79
102
|
:'client_key' => :'client_key',
|
80
103
|
:'tls_validation' => :'tls_validation',
|
81
104
|
:'proxy_url' => :'proxy_url',
|
105
|
+
:'proxy_username' => :'proxy_username',
|
106
|
+
:'proxy_password' => :'proxy_password',
|
82
107
|
:'username' => :'username',
|
83
108
|
:'password' => :'password',
|
109
|
+
:'pulp_labels' => :'pulp_labels',
|
84
110
|
:'download_concurrency' => :'download_concurrency',
|
85
111
|
:'policy' => :'policy',
|
86
112
|
:'total_timeout' => :'total_timeout',
|
87
113
|
:'connect_timeout' => :'connect_timeout',
|
88
114
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
115
|
:'sock_read_timeout' => :'sock_read_timeout',
|
116
|
+
:'headers' => :'headers',
|
117
|
+
:'rate_limit' => :'rate_limit',
|
90
118
|
:'includes' => :'includes',
|
91
119
|
:'excludes' => :'excludes',
|
92
|
-
:'prereleases' => :'prereleases'
|
120
|
+
:'prereleases' => :'prereleases',
|
121
|
+
:'package_types' => :'package_types',
|
122
|
+
:'keep_latest_packages' => :'keep_latest_packages',
|
123
|
+
:'exclude_platforms' => :'exclude_platforms'
|
93
124
|
}
|
94
125
|
end
|
95
126
|
|
@@ -103,17 +134,25 @@ module PulpPythonClient
|
|
103
134
|
:'client_key' => :'String',
|
104
135
|
:'tls_validation' => :'Boolean',
|
105
136
|
:'proxy_url' => :'String',
|
137
|
+
:'proxy_username' => :'String',
|
138
|
+
:'proxy_password' => :'String',
|
106
139
|
:'username' => :'String',
|
107
140
|
:'password' => :'String',
|
141
|
+
:'pulp_labels' => :'Object',
|
108
142
|
:'download_concurrency' => :'Integer',
|
109
143
|
:'policy' => :'PolicyEnum',
|
110
144
|
:'total_timeout' => :'Float',
|
111
145
|
:'connect_timeout' => :'Float',
|
112
146
|
:'sock_connect_timeout' => :'Float',
|
113
147
|
:'sock_read_timeout' => :'Float',
|
148
|
+
:'headers' => :'Array<Object>',
|
149
|
+
:'rate_limit' => :'Integer',
|
114
150
|
:'includes' => :'Object',
|
115
151
|
:'excludes' => :'Object',
|
116
|
-
:'prereleases' => :'Boolean'
|
152
|
+
:'prereleases' => :'Boolean',
|
153
|
+
:'package_types' => :'Array<PackageTypesEnum>',
|
154
|
+
:'keep_latest_packages' => :'Integer',
|
155
|
+
:'exclude_platforms' => :'Array<ExcludePlatformsEnum>'
|
117
156
|
}
|
118
157
|
end
|
119
158
|
|
@@ -124,12 +163,15 @@ module PulpPythonClient
|
|
124
163
|
:'client_cert',
|
125
164
|
:'client_key',
|
126
165
|
:'proxy_url',
|
166
|
+
:'proxy_username',
|
167
|
+
:'proxy_password',
|
127
168
|
:'username',
|
128
169
|
:'password',
|
129
170
|
:'total_timeout',
|
130
171
|
:'connect_timeout',
|
131
172
|
:'sock_connect_timeout',
|
132
173
|
:'sock_read_timeout',
|
174
|
+
:'rate_limit',
|
133
175
|
])
|
134
176
|
end
|
135
177
|
|
@@ -176,6 +218,14 @@ module PulpPythonClient
|
|
176
218
|
self.proxy_url = attributes[:'proxy_url']
|
177
219
|
end
|
178
220
|
|
221
|
+
if attributes.key?(:'proxy_username')
|
222
|
+
self.proxy_username = attributes[:'proxy_username']
|
223
|
+
end
|
224
|
+
|
225
|
+
if attributes.key?(:'proxy_password')
|
226
|
+
self.proxy_password = attributes[:'proxy_password']
|
227
|
+
end
|
228
|
+
|
179
229
|
if attributes.key?(:'username')
|
180
230
|
self.username = attributes[:'username']
|
181
231
|
end
|
@@ -184,6 +234,10 @@ module PulpPythonClient
|
|
184
234
|
self.password = attributes[:'password']
|
185
235
|
end
|
186
236
|
|
237
|
+
if attributes.key?(:'pulp_labels')
|
238
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
239
|
+
end
|
240
|
+
|
187
241
|
if attributes.key?(:'download_concurrency')
|
188
242
|
self.download_concurrency = attributes[:'download_concurrency']
|
189
243
|
end
|
@@ -208,6 +262,16 @@ module PulpPythonClient
|
|
208
262
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
209
263
|
end
|
210
264
|
|
265
|
+
if attributes.key?(:'headers')
|
266
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
267
|
+
self.headers = value
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.key?(:'rate_limit')
|
272
|
+
self.rate_limit = attributes[:'rate_limit']
|
273
|
+
end
|
274
|
+
|
211
275
|
if attributes.key?(:'includes')
|
212
276
|
self.includes = attributes[:'includes']
|
213
277
|
end
|
@@ -219,6 +283,24 @@ module PulpPythonClient
|
|
219
283
|
if attributes.key?(:'prereleases')
|
220
284
|
self.prereleases = attributes[:'prereleases']
|
221
285
|
end
|
286
|
+
|
287
|
+
if attributes.key?(:'package_types')
|
288
|
+
if (value = attributes[:'package_types']).is_a?(Array)
|
289
|
+
self.package_types = value
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
if attributes.key?(:'keep_latest_packages')
|
294
|
+
self.keep_latest_packages = attributes[:'keep_latest_packages']
|
295
|
+
else
|
296
|
+
self.keep_latest_packages = 0
|
297
|
+
end
|
298
|
+
|
299
|
+
if attributes.key?(:'exclude_platforms')
|
300
|
+
if (value = attributes[:'exclude_platforms']).is_a?(Array)
|
301
|
+
self.exclude_platforms = value
|
302
|
+
end
|
303
|
+
end
|
222
304
|
end
|
223
305
|
|
224
306
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -321,17 +403,25 @@ module PulpPythonClient
|
|
321
403
|
client_key == o.client_key &&
|
322
404
|
tls_validation == o.tls_validation &&
|
323
405
|
proxy_url == o.proxy_url &&
|
406
|
+
proxy_username == o.proxy_username &&
|
407
|
+
proxy_password == o.proxy_password &&
|
324
408
|
username == o.username &&
|
325
409
|
password == o.password &&
|
410
|
+
pulp_labels == o.pulp_labels &&
|
326
411
|
download_concurrency == o.download_concurrency &&
|
327
412
|
policy == o.policy &&
|
328
413
|
total_timeout == o.total_timeout &&
|
329
414
|
connect_timeout == o.connect_timeout &&
|
330
415
|
sock_connect_timeout == o.sock_connect_timeout &&
|
331
416
|
sock_read_timeout == o.sock_read_timeout &&
|
417
|
+
headers == o.headers &&
|
418
|
+
rate_limit == o.rate_limit &&
|
332
419
|
includes == o.includes &&
|
333
420
|
excludes == o.excludes &&
|
334
|
-
prereleases == o.prereleases
|
421
|
+
prereleases == o.prereleases &&
|
422
|
+
package_types == o.package_types &&
|
423
|
+
keep_latest_packages == o.keep_latest_packages &&
|
424
|
+
exclude_platforms == o.exclude_platforms
|
335
425
|
end
|
336
426
|
|
337
427
|
# @see the `==` method
|
@@ -343,7 +433,7 @@ module PulpPythonClient
|
|
343
433
|
# Calculates hash code according to all attributes.
|
344
434
|
# @return [Integer] Hash code
|
345
435
|
def hash
|
346
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, includes, excludes, prereleases].hash
|
436
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
|
347
437
|
end
|
348
438
|
|
349
439
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpPythonClient
|
16
16
|
# Serializer for Python Repositories.
|
17
17
|
class PatchedpythonPythonRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -26,6 +28,7 @@ module PulpPythonClient
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
31
|
+
:'pulp_labels' => :'pulp_labels',
|
29
32
|
:'name' => :'name',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'remote' => :'remote'
|
@@ -35,6 +38,7 @@ module PulpPythonClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'pulp_labels' => :'Object',
|
38
42
|
:'name' => :'String',
|
39
43
|
:'description' => :'String',
|
40
44
|
:'remote' => :'String'
|
@@ -64,6 +68,10 @@ module PulpPythonClient
|
|
64
68
|
h[k.to_sym] = v
|
65
69
|
}
|
66
70
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
72
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
73
|
+
end
|
74
|
+
|
67
75
|
if attributes.key?(:'name')
|
68
76
|
self.name = attributes[:'name']
|
69
77
|
end
|
@@ -95,6 +103,7 @@ module PulpPythonClient
|
|
95
103
|
def ==(o)
|
96
104
|
return true if self.equal?(o)
|
97
105
|
self.class == o.class &&
|
106
|
+
pulp_labels == o.pulp_labels &&
|
98
107
|
name == o.name &&
|
99
108
|
description == o.description &&
|
100
109
|
remote == o.remote
|
@@ -109,7 +118,7 @@ module PulpPythonClient
|
|
109
118
|
# Calculates hash code according to all attributes.
|
110
119
|
# @return [Integer] Hash code
|
111
120
|
def hash
|
112
|
-
[name, description, remote].hash
|
121
|
+
[pulp_labels, name, description, remote].hash
|
113
122
|
end
|
114
123
|
|
115
124
|
# Builds the object from hash
|
@@ -21,6 +21,8 @@ module PulpPythonClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
@@ -32,6 +34,7 @@ module PulpPythonClient
|
|
32
34
|
{
|
33
35
|
:'base_path' => :'base_path',
|
34
36
|
:'content_guard' => :'content_guard',
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
35
38
|
:'name' => :'name',
|
36
39
|
:'publication' => :'publication'
|
37
40
|
}
|
@@ -42,6 +45,7 @@ module PulpPythonClient
|
|
42
45
|
{
|
43
46
|
:'base_path' => :'String',
|
44
47
|
:'content_guard' => :'String',
|
48
|
+
:'pulp_labels' => :'Object',
|
45
49
|
:'name' => :'String',
|
46
50
|
:'publication' => :'String'
|
47
51
|
}
|
@@ -78,6 +82,10 @@ module PulpPythonClient
|
|
78
82
|
self.content_guard = attributes[:'content_guard']
|
79
83
|
end
|
80
84
|
|
85
|
+
if attributes.key?(:'pulp_labels')
|
86
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
87
|
+
end
|
88
|
+
|
81
89
|
if attributes.key?(:'name')
|
82
90
|
self.name = attributes[:'name']
|
83
91
|
end
|
@@ -117,6 +125,7 @@ module PulpPythonClient
|
|
117
125
|
self.class == o.class &&
|
118
126
|
base_path == o.base_path &&
|
119
127
|
content_guard == o.content_guard &&
|
128
|
+
pulp_labels == o.pulp_labels &&
|
120
129
|
name == o.name &&
|
121
130
|
publication == o.publication
|
122
131
|
end
|
@@ -130,7 +139,7 @@ module PulpPythonClient
|
|
130
139
|
# Calculates hash code according to all attributes.
|
131
140
|
# @return [Integer] Hash code
|
132
141
|
def hash
|
133
|
-
[base_path, content_guard, name, publication].hash
|
142
|
+
[base_path, content_guard, pulp_labels, name, publication].hash
|
134
143
|
end
|
135
144
|
|
136
145
|
# Builds the object from hash
|