pulp_maven_client 0.2.0 → 0.3.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 +4 -4
- data/build/lib/pulpcore/__init__.py +2 -0
- data/build/lib/pulpcore/client/__init__.py +2 -0
- data/build/lib/pulpcore/client/pulp_maven/__init__.py +58 -0
- data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +10 -0
- data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +445 -0
- data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +830 -0
- data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +840 -0
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +809 -0
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +614 -0
- data/build/lib/pulpcore/client/pulp_maven/api_client.py +667 -0
- data/build/lib/pulpcore/client/pulp_maven/configuration.py +427 -0
- data/build/lib/pulpcore/client/pulp_maven/exceptions.py +121 -0
- data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +39 -0
- data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +124 -0
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +176 -0
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +176 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +153 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +290 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +260 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +342 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +657 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +604 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +202 -0
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +308 -0
- data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +197 -0
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +258 -0
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +655 -0
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +201 -0
- data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +101 -0
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +123 -0
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +231 -0
- data/build/lib/pulpcore/client/pulp_maven/rest.py +292 -0
- data/dist/pulp_maven-client-0.3.0.tar.gz +0 -0
- data/dist/pulp_maven_client-0.3.0-py3-none-any.whl +0 -0
- data/docs/ContentArtifactApi.md +14 -14
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DistributionsMavenApi.md +20 -12
- data/docs/MavenMavenDistribution.md +4 -0
- data/docs/MavenMavenDistributionResponse.md +4 -0
- data/docs/MavenMavenRemote.md +12 -2
- data/docs/MavenMavenRemoteResponse.md +8 -8
- data/docs/MavenMavenRepository.md +3 -1
- data/docs/MavenMavenRepositoryResponse.md +2 -0
- data/docs/PatchedmavenMavenDistribution.md +4 -0
- data/docs/PatchedmavenMavenRemote.md +12 -2
- data/docs/PatchedmavenMavenRepository.md +3 -1
- data/docs/RemotesMavenApi.md +24 -16
- data/docs/RepositoriesMavenApi.md +12 -4
- data/docs/RepositoriesMavenVersionsApi.md +28 -28
- data/lib/pulp_maven_client/api/content_artifact_api.rb +14 -14
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +26 -14
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +30 -18
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +17 -5
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +30 -30
- data/lib/pulp_maven_client/models/content_summary.rb +12 -6
- data/lib/pulp_maven_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +21 -1
- data/lib/pulp_maven_client/models/maven_maven_distribution_response.rb +21 -1
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +60 -6
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +35 -36
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +10 -1
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +10 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +21 -1
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +60 -6
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +10 -1
- data/lib/pulp_maven_client/version.rb +1 -1
- data/pulp_maven_client.egg-info/PKG-INFO +15 -0
- data/pulp_maven_client.egg-info/SOURCES.txt +71 -0
- data/pulp_maven_client.egg-info/dependency_links.txt +1 -0
- data/pulp_maven_client.egg-info/requires.txt +4 -0
- data/pulp_maven_client.egg-info/top_level.txt +1 -0
- data/pulpcore/__init__.py +2 -0
- data/pulpcore/client/__init__.py +2 -0
- data/pulpcore/client/pulp_maven/__init__.py +58 -0
- data/pulpcore/client/pulp_maven/api/__init__.py +10 -0
- data/pulpcore/client/pulp_maven/api/content_artifact_api.py +445 -0
- data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +830 -0
- data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +840 -0
- data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +809 -0
- data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +614 -0
- data/pulpcore/client/pulp_maven/api_client.py +667 -0
- data/pulpcore/client/pulp_maven/configuration.py +427 -0
- data/pulpcore/client/pulp_maven/exceptions.py +121 -0
- data/pulpcore/client/pulp_maven/models/__init__.py +39 -0
- data/pulpcore/client/pulp_maven/models/async_operation_response.py +124 -0
- data/pulpcore/client/pulp_maven/models/content_summary.py +176 -0
- data/pulpcore/client/pulp_maven/models/content_summary_response.py +176 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +153 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +290 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +260 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +342 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +657 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +604 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +202 -0
- data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +308 -0
- data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +197 -0
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +197 -0
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +197 -0
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +197 -0
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +197 -0
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +258 -0
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +655 -0
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +201 -0
- data/pulpcore/client/pulp_maven/models/policy_enum.py +101 -0
- data/pulpcore/client/pulp_maven/models/repository_version.py +123 -0
- data/pulpcore/client/pulp_maven/models/repository_version_response.py +231 -0
- data/pulpcore/client/pulp_maven/rest.py +292 -0
- data/requirements.txt +6 -0
- data/setup.cfg +2 -0
- data/setup.py +42 -0
- data/spec/api/content_artifact_api_spec.rb +7 -7
- data/spec/api/distributions_maven_api_spec.rb +10 -6
- data/spec/api/remotes_maven_api_spec.rb +12 -8
- data/spec/api/repositories_maven_api_spec.rb +6 -2
- data/spec/api/repositories_maven_versions_api_spec.rb +14 -14
- data/spec/models/maven_maven_distribution_response_spec.rb +12 -0
- data/spec/models/maven_maven_distribution_spec.rb +12 -0
- data/spec/models/maven_maven_remote_response_spec.rb +12 -12
- data/spec/models/maven_maven_remote_spec.rb +30 -0
- data/spec/models/maven_maven_repository_response_spec.rb +6 -0
- data/spec/models/maven_maven_repository_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_distribution_spec.rb +12 -0
- data/spec/models/patchedmaven_maven_remote_spec.rb +30 -0
- data/spec/models/patchedmaven_maven_repository_spec.rb +6 -0
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +54 -0
- data/test/test_content_artifact_api.py +55 -0
- data/test/test_content_summary.py +70 -0
- data/test/test_content_summary_response.py +70 -0
- data/test/test_distributions_maven_api.py +76 -0
- data/test/test_maven_maven_artifact.py +56 -0
- data/test/test_maven_maven_artifact_response.py +60 -0
- data/test/test_maven_maven_distribution.py +60 -0
- data/test/test_maven_maven_distribution_response.py +63 -0
- data/test/test_maven_maven_remote.py +76 -0
- data/test/test_maven_maven_remote_response.py +74 -0
- data/test/test_maven_maven_repository.py +57 -0
- data/test/test_maven_maven_repository_response.py +61 -0
- data/test/test_paginated_repository_version_response_list.py +63 -0
- data/test/test_paginatedmaven_maven_artifact_response_list.py +65 -0
- data/test/test_paginatedmaven_maven_distribution_response_list.py +67 -0
- data/test/test_paginatedmaven_maven_remote_response_list.py +78 -0
- data/test/test_paginatedmaven_maven_repository_response_list.py +66 -0
- data/test/test_patchedmaven_maven_distribution.py +58 -0
- data/test/test_patchedmaven_maven_remote.py +74 -0
- data/test/test_patchedmaven_maven_repository.py +56 -0
- data/test/test_policy_enum.py +52 -0
- data/test/test_remotes_maven_api.py +76 -0
- data/test/test_repositories_maven_api.py +76 -0
- data/test/test_repositories_maven_versions_api.py +61 -0
- data/test/test_repository_version.py +53 -0
- data/test/test_repository_version_response.py +57 -0
- data/test-requirements.txt +3 -0
- data/tox.ini +9 -0
- metadata +133 -21
|
@@ -33,9 +33,9 @@ module PulpMavenClient
|
|
|
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 PulpMavenClient
|
|
|
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
|
|
|
@@ -21,9 +21,14 @@ module PulpMavenClient
|
|
|
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
|
|
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
30
|
+
attr_accessor :repository
|
|
31
|
+
|
|
27
32
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
28
33
|
attr_accessor :remote
|
|
29
34
|
|
|
@@ -32,7 +37,9 @@ module PulpMavenClient
|
|
|
32
37
|
{
|
|
33
38
|
:'base_path' => :'base_path',
|
|
34
39
|
:'content_guard' => :'content_guard',
|
|
40
|
+
:'pulp_labels' => :'pulp_labels',
|
|
35
41
|
:'name' => :'name',
|
|
42
|
+
:'repository' => :'repository',
|
|
36
43
|
:'remote' => :'remote'
|
|
37
44
|
}
|
|
38
45
|
end
|
|
@@ -42,7 +49,9 @@ module PulpMavenClient
|
|
|
42
49
|
{
|
|
43
50
|
:'base_path' => :'String',
|
|
44
51
|
:'content_guard' => :'String',
|
|
52
|
+
:'pulp_labels' => :'Object',
|
|
45
53
|
:'name' => :'String',
|
|
54
|
+
:'repository' => :'String',
|
|
46
55
|
:'remote' => :'String'
|
|
47
56
|
}
|
|
48
57
|
end
|
|
@@ -51,6 +60,7 @@ module PulpMavenClient
|
|
|
51
60
|
def self.openapi_nullable
|
|
52
61
|
Set.new([
|
|
53
62
|
:'content_guard',
|
|
63
|
+
:'repository',
|
|
54
64
|
:'remote'
|
|
55
65
|
])
|
|
56
66
|
end
|
|
@@ -78,10 +88,18 @@ module PulpMavenClient
|
|
|
78
88
|
self.content_guard = attributes[:'content_guard']
|
|
79
89
|
end
|
|
80
90
|
|
|
91
|
+
if attributes.key?(:'pulp_labels')
|
|
92
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
93
|
+
end
|
|
94
|
+
|
|
81
95
|
if attributes.key?(:'name')
|
|
82
96
|
self.name = attributes[:'name']
|
|
83
97
|
end
|
|
84
98
|
|
|
99
|
+
if attributes.key?(:'repository')
|
|
100
|
+
self.repository = attributes[:'repository']
|
|
101
|
+
end
|
|
102
|
+
|
|
85
103
|
if attributes.key?(:'remote')
|
|
86
104
|
self.remote = attributes[:'remote']
|
|
87
105
|
end
|
|
@@ -117,7 +135,9 @@ module PulpMavenClient
|
|
|
117
135
|
self.class == o.class &&
|
|
118
136
|
base_path == o.base_path &&
|
|
119
137
|
content_guard == o.content_guard &&
|
|
138
|
+
pulp_labels == o.pulp_labels &&
|
|
120
139
|
name == o.name &&
|
|
140
|
+
repository == o.repository &&
|
|
121
141
|
remote == o.remote
|
|
122
142
|
end
|
|
123
143
|
|
|
@@ -130,7 +150,7 @@ module PulpMavenClient
|
|
|
130
150
|
# Calculates hash code according to all attributes.
|
|
131
151
|
# @return [Integer] Hash code
|
|
132
152
|
def hash
|
|
133
|
-
[base_path, content_guard, name, remote].hash
|
|
153
|
+
[base_path, content_guard, pulp_labels, name, repository, remote].hash
|
|
134
154
|
end
|
|
135
155
|
|
|
136
156
|
# Builds the object from hash
|
|
@@ -29,9 +29,14 @@ module PulpMavenClient
|
|
|
29
29
|
# An optional content-guard.
|
|
30
30
|
attr_accessor :content_guard
|
|
31
31
|
|
|
32
|
+
attr_accessor :pulp_labels
|
|
33
|
+
|
|
32
34
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
33
35
|
attr_accessor :name
|
|
34
36
|
|
|
37
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
38
|
+
attr_accessor :repository
|
|
39
|
+
|
|
35
40
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
41
|
attr_accessor :remote
|
|
37
42
|
|
|
@@ -43,7 +48,9 @@ module PulpMavenClient
|
|
|
43
48
|
:'base_path' => :'base_path',
|
|
44
49
|
:'base_url' => :'base_url',
|
|
45
50
|
:'content_guard' => :'content_guard',
|
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
|
46
52
|
:'name' => :'name',
|
|
53
|
+
:'repository' => :'repository',
|
|
47
54
|
:'remote' => :'remote'
|
|
48
55
|
}
|
|
49
56
|
end
|
|
@@ -56,7 +63,9 @@ module PulpMavenClient
|
|
|
56
63
|
:'base_path' => :'String',
|
|
57
64
|
:'base_url' => :'String',
|
|
58
65
|
:'content_guard' => :'String',
|
|
66
|
+
:'pulp_labels' => :'Object',
|
|
59
67
|
:'name' => :'String',
|
|
68
|
+
:'repository' => :'String',
|
|
60
69
|
:'remote' => :'String'
|
|
61
70
|
}
|
|
62
71
|
end
|
|
@@ -65,6 +74,7 @@ module PulpMavenClient
|
|
|
65
74
|
def self.openapi_nullable
|
|
66
75
|
Set.new([
|
|
67
76
|
:'content_guard',
|
|
77
|
+
:'repository',
|
|
68
78
|
:'remote'
|
|
69
79
|
])
|
|
70
80
|
end
|
|
@@ -104,10 +114,18 @@ module PulpMavenClient
|
|
|
104
114
|
self.content_guard = attributes[:'content_guard']
|
|
105
115
|
end
|
|
106
116
|
|
|
117
|
+
if attributes.key?(:'pulp_labels')
|
|
118
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
119
|
+
end
|
|
120
|
+
|
|
107
121
|
if attributes.key?(:'name')
|
|
108
122
|
self.name = attributes[:'name']
|
|
109
123
|
end
|
|
110
124
|
|
|
125
|
+
if attributes.key?(:'repository')
|
|
126
|
+
self.repository = attributes[:'repository']
|
|
127
|
+
end
|
|
128
|
+
|
|
111
129
|
if attributes.key?(:'remote')
|
|
112
130
|
self.remote = attributes[:'remote']
|
|
113
131
|
end
|
|
@@ -146,7 +164,9 @@ module PulpMavenClient
|
|
|
146
164
|
base_path == o.base_path &&
|
|
147
165
|
base_url == o.base_url &&
|
|
148
166
|
content_guard == o.content_guard &&
|
|
167
|
+
pulp_labels == o.pulp_labels &&
|
|
149
168
|
name == o.name &&
|
|
169
|
+
repository == o.repository &&
|
|
150
170
|
remote == o.remote
|
|
151
171
|
end
|
|
152
172
|
|
|
@@ -159,7 +179,7 @@ module PulpMavenClient
|
|
|
159
179
|
# Calculates hash code according to all attributes.
|
|
160
180
|
# @return [Integer] Hash code
|
|
161
181
|
def hash
|
|
162
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, name, remote].hash
|
|
182
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, remote].hash
|
|
163
183
|
end
|
|
164
184
|
|
|
165
185
|
# Builds the object from hash
|
|
@@ -33,15 +33,23 @@ module PulpMavenClient
|
|
|
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 PulpMavenClient
|
|
|
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
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
78
|
def self.attribute_map
|
|
65
79
|
{
|
|
@@ -70,14 +84,19 @@ module PulpMavenClient
|
|
|
70
84
|
:'client_key' => :'client_key',
|
|
71
85
|
:'tls_validation' => :'tls_validation',
|
|
72
86
|
:'proxy_url' => :'proxy_url',
|
|
87
|
+
:'proxy_username' => :'proxy_username',
|
|
88
|
+
:'proxy_password' => :'proxy_password',
|
|
73
89
|
:'username' => :'username',
|
|
74
90
|
:'password' => :'password',
|
|
91
|
+
:'pulp_labels' => :'pulp_labels',
|
|
75
92
|
:'download_concurrency' => :'download_concurrency',
|
|
76
93
|
:'policy' => :'policy',
|
|
77
94
|
:'total_timeout' => :'total_timeout',
|
|
78
95
|
:'connect_timeout' => :'connect_timeout',
|
|
79
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
80
|
-
:'sock_read_timeout' => :'sock_read_timeout'
|
|
97
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
98
|
+
:'headers' => :'headers',
|
|
99
|
+
:'rate_limit' => :'rate_limit'
|
|
81
100
|
}
|
|
82
101
|
end
|
|
83
102
|
|
|
@@ -91,14 +110,19 @@ module PulpMavenClient
|
|
|
91
110
|
:'client_key' => :'String',
|
|
92
111
|
:'tls_validation' => :'Boolean',
|
|
93
112
|
:'proxy_url' => :'String',
|
|
113
|
+
:'proxy_username' => :'String',
|
|
114
|
+
:'proxy_password' => :'String',
|
|
94
115
|
:'username' => :'String',
|
|
95
116
|
:'password' => :'String',
|
|
117
|
+
:'pulp_labels' => :'Object',
|
|
96
118
|
:'download_concurrency' => :'Integer',
|
|
97
119
|
:'policy' => :'PolicyEnum',
|
|
98
120
|
:'total_timeout' => :'Float',
|
|
99
121
|
:'connect_timeout' => :'Float',
|
|
100
122
|
:'sock_connect_timeout' => :'Float',
|
|
101
|
-
:'sock_read_timeout' => :'Float'
|
|
123
|
+
:'sock_read_timeout' => :'Float',
|
|
124
|
+
:'headers' => :'Array<Object>',
|
|
125
|
+
:'rate_limit' => :'Integer'
|
|
102
126
|
}
|
|
103
127
|
end
|
|
104
128
|
|
|
@@ -109,12 +133,15 @@ module PulpMavenClient
|
|
|
109
133
|
:'client_cert',
|
|
110
134
|
:'client_key',
|
|
111
135
|
:'proxy_url',
|
|
136
|
+
:'proxy_username',
|
|
137
|
+
:'proxy_password',
|
|
112
138
|
:'username',
|
|
113
139
|
:'password',
|
|
114
140
|
:'total_timeout',
|
|
115
141
|
:'connect_timeout',
|
|
116
142
|
:'sock_connect_timeout',
|
|
117
|
-
:'sock_read_timeout'
|
|
143
|
+
:'sock_read_timeout',
|
|
144
|
+
:'rate_limit'
|
|
118
145
|
])
|
|
119
146
|
end
|
|
120
147
|
|
|
@@ -161,6 +188,14 @@ module PulpMavenClient
|
|
|
161
188
|
self.proxy_url = attributes[:'proxy_url']
|
|
162
189
|
end
|
|
163
190
|
|
|
191
|
+
if attributes.key?(:'proxy_username')
|
|
192
|
+
self.proxy_username = attributes[:'proxy_username']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'proxy_password')
|
|
196
|
+
self.proxy_password = attributes[:'proxy_password']
|
|
197
|
+
end
|
|
198
|
+
|
|
164
199
|
if attributes.key?(:'username')
|
|
165
200
|
self.username = attributes[:'username']
|
|
166
201
|
end
|
|
@@ -169,6 +204,10 @@ module PulpMavenClient
|
|
|
169
204
|
self.password = attributes[:'password']
|
|
170
205
|
end
|
|
171
206
|
|
|
207
|
+
if attributes.key?(:'pulp_labels')
|
|
208
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
209
|
+
end
|
|
210
|
+
|
|
172
211
|
if attributes.key?(:'download_concurrency')
|
|
173
212
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
174
213
|
end
|
|
@@ -192,6 +231,16 @@ module PulpMavenClient
|
|
|
192
231
|
if attributes.key?(:'sock_read_timeout')
|
|
193
232
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
194
233
|
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'headers')
|
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
237
|
+
self.headers = value
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'rate_limit')
|
|
242
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
243
|
+
end
|
|
195
244
|
end
|
|
196
245
|
|
|
197
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -304,14 +353,19 @@ module PulpMavenClient
|
|
|
304
353
|
client_key == o.client_key &&
|
|
305
354
|
tls_validation == o.tls_validation &&
|
|
306
355
|
proxy_url == o.proxy_url &&
|
|
356
|
+
proxy_username == o.proxy_username &&
|
|
357
|
+
proxy_password == o.proxy_password &&
|
|
307
358
|
username == o.username &&
|
|
308
359
|
password == o.password &&
|
|
360
|
+
pulp_labels == o.pulp_labels &&
|
|
309
361
|
download_concurrency == o.download_concurrency &&
|
|
310
362
|
policy == o.policy &&
|
|
311
363
|
total_timeout == o.total_timeout &&
|
|
312
364
|
connect_timeout == o.connect_timeout &&
|
|
313
365
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
314
|
-
sock_read_timeout == o.sock_read_timeout
|
|
366
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
367
|
+
headers == o.headers &&
|
|
368
|
+
rate_limit == o.rate_limit
|
|
315
369
|
end
|
|
316
370
|
|
|
317
371
|
# @see the `==` method
|
|
@@ -323,7 +377,7 @@ module PulpMavenClient
|
|
|
323
377
|
# Calculates hash code according to all attributes.
|
|
324
378
|
# @return [Integer] Hash code
|
|
325
379
|
def hash
|
|
326
|
-
[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].hash
|
|
380
|
+
[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].hash
|
|
327
381
|
end
|
|
328
382
|
|
|
329
383
|
# Builds the object from hash
|
|
@@ -32,20 +32,13 @@ module PulpMavenClient
|
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
|
33
33
|
attr_accessor :client_cert
|
|
34
34
|
|
|
35
|
-
# A PEM encoded private key used for authentication.
|
|
36
|
-
attr_accessor :client_key
|
|
37
|
-
|
|
38
35
|
# If True, TLS peer validation must be performed.
|
|
39
36
|
attr_accessor :tls_validation
|
|
40
37
|
|
|
41
|
-
# The proxy URL. Format: scheme://
|
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
|
42
39
|
attr_accessor :proxy_url
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
attr_accessor :username
|
|
46
|
-
|
|
47
|
-
# The password to be used for authentication when syncing.
|
|
48
|
-
attr_accessor :password
|
|
41
|
+
attr_accessor :pulp_labels
|
|
49
42
|
|
|
50
43
|
# Timestamp of the most recent update of the remote.
|
|
51
44
|
attr_accessor :pulp_last_updated
|
|
@@ -68,6 +61,12 @@ module PulpMavenClient
|
|
|
68
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
69
62
|
attr_accessor :sock_read_timeout
|
|
70
63
|
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
|
65
|
+
attr_accessor :headers
|
|
66
|
+
|
|
67
|
+
# Limits total download rate in requests per second
|
|
68
|
+
attr_accessor :rate_limit
|
|
69
|
+
|
|
71
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
71
|
def self.attribute_map
|
|
73
72
|
{
|
|
@@ -77,18 +76,18 @@ module PulpMavenClient
|
|
|
77
76
|
:'url' => :'url',
|
|
78
77
|
:'ca_cert' => :'ca_cert',
|
|
79
78
|
:'client_cert' => :'client_cert',
|
|
80
|
-
:'client_key' => :'client_key',
|
|
81
79
|
:'tls_validation' => :'tls_validation',
|
|
82
80
|
:'proxy_url' => :'proxy_url',
|
|
83
|
-
:'
|
|
84
|
-
:'password' => :'password',
|
|
81
|
+
:'pulp_labels' => :'pulp_labels',
|
|
85
82
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
83
|
:'download_concurrency' => :'download_concurrency',
|
|
87
84
|
:'policy' => :'policy',
|
|
88
85
|
:'total_timeout' => :'total_timeout',
|
|
89
86
|
:'connect_timeout' => :'connect_timeout',
|
|
90
87
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
91
|
-
:'sock_read_timeout' => :'sock_read_timeout'
|
|
88
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
89
|
+
:'headers' => :'headers',
|
|
90
|
+
:'rate_limit' => :'rate_limit'
|
|
92
91
|
}
|
|
93
92
|
end
|
|
94
93
|
|
|
@@ -101,18 +100,18 @@ module PulpMavenClient
|
|
|
101
100
|
:'url' => :'String',
|
|
102
101
|
:'ca_cert' => :'String',
|
|
103
102
|
:'client_cert' => :'String',
|
|
104
|
-
:'client_key' => :'String',
|
|
105
103
|
:'tls_validation' => :'Boolean',
|
|
106
104
|
:'proxy_url' => :'String',
|
|
107
|
-
:'
|
|
108
|
-
:'password' => :'String',
|
|
105
|
+
:'pulp_labels' => :'Object',
|
|
109
106
|
:'pulp_last_updated' => :'DateTime',
|
|
110
107
|
:'download_concurrency' => :'Integer',
|
|
111
108
|
:'policy' => :'PolicyEnum',
|
|
112
109
|
:'total_timeout' => :'Float',
|
|
113
110
|
:'connect_timeout' => :'Float',
|
|
114
111
|
:'sock_connect_timeout' => :'Float',
|
|
115
|
-
:'sock_read_timeout' => :'Float'
|
|
112
|
+
:'sock_read_timeout' => :'Float',
|
|
113
|
+
:'headers' => :'Array<Object>',
|
|
114
|
+
:'rate_limit' => :'Integer'
|
|
116
115
|
}
|
|
117
116
|
end
|
|
118
117
|
|
|
@@ -121,14 +120,12 @@ module PulpMavenClient
|
|
|
121
120
|
Set.new([
|
|
122
121
|
:'ca_cert',
|
|
123
122
|
:'client_cert',
|
|
124
|
-
:'client_key',
|
|
125
123
|
:'proxy_url',
|
|
126
|
-
:'username',
|
|
127
|
-
:'password',
|
|
128
124
|
:'total_timeout',
|
|
129
125
|
:'connect_timeout',
|
|
130
126
|
:'sock_connect_timeout',
|
|
131
|
-
:'sock_read_timeout'
|
|
127
|
+
:'sock_read_timeout',
|
|
128
|
+
:'rate_limit'
|
|
132
129
|
])
|
|
133
130
|
end
|
|
134
131
|
|
|
@@ -171,10 +168,6 @@ module PulpMavenClient
|
|
|
171
168
|
self.client_cert = attributes[:'client_cert']
|
|
172
169
|
end
|
|
173
170
|
|
|
174
|
-
if attributes.key?(:'client_key')
|
|
175
|
-
self.client_key = attributes[:'client_key']
|
|
176
|
-
end
|
|
177
|
-
|
|
178
171
|
if attributes.key?(:'tls_validation')
|
|
179
172
|
self.tls_validation = attributes[:'tls_validation']
|
|
180
173
|
end
|
|
@@ -183,12 +176,8 @@ module PulpMavenClient
|
|
|
183
176
|
self.proxy_url = attributes[:'proxy_url']
|
|
184
177
|
end
|
|
185
178
|
|
|
186
|
-
if attributes.key?(:'
|
|
187
|
-
self.
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
if attributes.key?(:'password')
|
|
191
|
-
self.password = attributes[:'password']
|
|
179
|
+
if attributes.key?(:'pulp_labels')
|
|
180
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
192
181
|
end
|
|
193
182
|
|
|
194
183
|
if attributes.key?(:'pulp_last_updated')
|
|
@@ -218,6 +207,16 @@ module PulpMavenClient
|
|
|
218
207
|
if attributes.key?(:'sock_read_timeout')
|
|
219
208
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
220
209
|
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'headers')
|
|
212
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
213
|
+
self.headers = value
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'rate_limit')
|
|
218
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
219
|
+
end
|
|
221
220
|
end
|
|
222
221
|
|
|
223
222
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -329,18 +328,18 @@ module PulpMavenClient
|
|
|
329
328
|
url == o.url &&
|
|
330
329
|
ca_cert == o.ca_cert &&
|
|
331
330
|
client_cert == o.client_cert &&
|
|
332
|
-
client_key == o.client_key &&
|
|
333
331
|
tls_validation == o.tls_validation &&
|
|
334
332
|
proxy_url == o.proxy_url &&
|
|
335
|
-
|
|
336
|
-
password == o.password &&
|
|
333
|
+
pulp_labels == o.pulp_labels &&
|
|
337
334
|
pulp_last_updated == o.pulp_last_updated &&
|
|
338
335
|
download_concurrency == o.download_concurrency &&
|
|
339
336
|
policy == o.policy &&
|
|
340
337
|
total_timeout == o.total_timeout &&
|
|
341
338
|
connect_timeout == o.connect_timeout &&
|
|
342
339
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
343
|
-
sock_read_timeout == o.sock_read_timeout
|
|
340
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
341
|
+
headers == o.headers &&
|
|
342
|
+
rate_limit == o.rate_limit
|
|
344
343
|
end
|
|
345
344
|
|
|
346
345
|
# @see the `==` method
|
|
@@ -352,7 +351,7 @@ module PulpMavenClient
|
|
|
352
351
|
# Calculates hash code according to all attributes.
|
|
353
352
|
# @return [Integer] Hash code
|
|
354
353
|
def hash
|
|
355
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
|
354
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
|
356
355
|
end
|
|
357
356
|
|
|
358
357
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'date'
|
|
|
15
15
|
module PulpMavenClient
|
|
16
16
|
# Serializer for Maven Repositories.
|
|
17
17
|
class MavenMavenRepository
|
|
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 PulpMavenClient
|
|
|
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 PulpMavenClient
|
|
|
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 PulpMavenClient
|
|
|
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
|
|
@@ -100,6 +108,7 @@ module PulpMavenClient
|
|
|
100
108
|
def ==(o)
|
|
101
109
|
return true if self.equal?(o)
|
|
102
110
|
self.class == o.class &&
|
|
111
|
+
pulp_labels == o.pulp_labels &&
|
|
103
112
|
name == o.name &&
|
|
104
113
|
description == o.description &&
|
|
105
114
|
remote == o.remote
|
|
@@ -114,7 +123,7 @@ module PulpMavenClient
|
|
|
114
123
|
# Calculates hash code according to all attributes.
|
|
115
124
|
# @return [Integer] Hash code
|
|
116
125
|
def hash
|
|
117
|
-
[name, description, remote].hash
|
|
126
|
+
[pulp_labels, name, description, remote].hash
|
|
118
127
|
end
|
|
119
128
|
|
|
120
129
|
# Builds the object from hash
|
|
@@ -22,6 +22,8 @@ module PulpMavenClient
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :versions_href
|
|
24
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
25
27
|
attr_accessor :latest_version_href
|
|
26
28
|
|
|
27
29
|
# A unique name for this repository.
|
|
@@ -38,6 +40,7 @@ module PulpMavenClient
|
|
|
38
40
|
:'pulp_href' => :'pulp_href',
|
|
39
41
|
:'pulp_created' => :'pulp_created',
|
|
40
42
|
:'versions_href' => :'versions_href',
|
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
|
41
44
|
:'latest_version_href' => :'latest_version_href',
|
|
42
45
|
:'name' => :'name',
|
|
43
46
|
:'description' => :'description',
|
|
@@ -51,6 +54,7 @@ module PulpMavenClient
|
|
|
51
54
|
:'pulp_href' => :'String',
|
|
52
55
|
:'pulp_created' => :'DateTime',
|
|
53
56
|
:'versions_href' => :'String',
|
|
57
|
+
:'pulp_labels' => :'Object',
|
|
54
58
|
:'latest_version_href' => :'String',
|
|
55
59
|
:'name' => :'String',
|
|
56
60
|
:'description' => :'String',
|
|
@@ -93,6 +97,10 @@ module PulpMavenClient
|
|
|
93
97
|
self.versions_href = attributes[:'versions_href']
|
|
94
98
|
end
|
|
95
99
|
|
|
100
|
+
if attributes.key?(:'pulp_labels')
|
|
101
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
|
102
|
+
end
|
|
103
|
+
|
|
96
104
|
if attributes.key?(:'latest_version_href')
|
|
97
105
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
98
106
|
end
|
|
@@ -136,6 +144,7 @@ module PulpMavenClient
|
|
|
136
144
|
pulp_href == o.pulp_href &&
|
|
137
145
|
pulp_created == o.pulp_created &&
|
|
138
146
|
versions_href == o.versions_href &&
|
|
147
|
+
pulp_labels == o.pulp_labels &&
|
|
139
148
|
latest_version_href == o.latest_version_href &&
|
|
140
149
|
name == o.name &&
|
|
141
150
|
description == o.description &&
|
|
@@ -151,7 +160,7 @@ module PulpMavenClient
|
|
|
151
160
|
# Calculates hash code according to all attributes.
|
|
152
161
|
# @return [Integer] Hash code
|
|
153
162
|
def hash
|
|
154
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
|
|
163
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
|
155
164
|
end
|
|
156
165
|
|
|
157
166
|
# Builds the object from hash
|