pulp_maven_client 0.3.1 → 0.3.2
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 +5 -5
- data/docs/ContentArtifactApi.md +1 -1
- data/docs/DistributionsMavenApi.md +1 -1
- data/docs/MavenMavenRemote.md +8 -6
- data/docs/MavenMavenRemoteResponse.md +8 -6
- data/docs/MavenMavenRepository.md +3 -3
- data/docs/MavenMavenRepositoryResponse.md +3 -3
- data/docs/PatchedmavenMavenRemote.md +8 -6
- data/docs/PatchedmavenMavenRepository.md +3 -3
- data/docs/RemotesMavenApi.md +1 -1
- data/docs/RepositoriesMavenApi.md +1 -1
- data/docs/RepositoriesMavenVersionsApi.md +1 -1
- data/lib/pulp_maven_client/configuration.rb +2 -2
- data/lib/pulp_maven_client/models/maven_maven_artifact.rb +19 -0
- data/lib/pulp_maven_client/models/maven_maven_distribution.rb +38 -0
- data/lib/pulp_maven_client/models/maven_maven_remote.rb +177 -7
- data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +19 -7
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +51 -16
- data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +17 -16
- data/lib/pulp_maven_client/models/patchedmaven_maven_distribution.rb +30 -0
- data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +169 -7
- data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +47 -16
- data/lib/pulp_maven_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/maven_maven_remote_response_spec.rb +6 -0
- data/spec/models/maven_maven_remote_spec.rb +6 -0
- data/spec/models/maven_maven_repository_response_spec.rb +1 -1
- data/spec/models/maven_maven_repository_spec.rb +1 -1
- data/spec/models/patchedmaven_maven_remote_spec.rb +6 -0
- data/spec/models/patchedmaven_maven_repository_spec.rb +1 -1
- metadata +20 -132
- data/build/lib/pulpcore/__init__.py +0 -2
- data/build/lib/pulpcore/client/__init__.py +0 -2
- data/build/lib/pulpcore/client/pulp_maven/__init__.py +0 -58
- data/build/lib/pulpcore/client/pulp_maven/api/__init__.py +0 -10
- data/build/lib/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
- data/build/lib/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
- data/build/lib/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
- data/build/lib/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
- data/build/lib/pulpcore/client/pulp_maven/api_client.py +0 -667
- data/build/lib/pulpcore/client/pulp_maven/configuration.py +0 -427
- data/build/lib/pulpcore/client/pulp_maven/exceptions.py +0 -121
- data/build/lib/pulpcore/client/pulp_maven/models/__init__.py +0 -39
- data/build/lib/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
- data/build/lib/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -232
- data/build/lib/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -338
- data/build/lib/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
- data/build/lib/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -231
- data/build/lib/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
- data/build/lib/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -257
- data/build/lib/pulpcore/client/pulp_maven/rest.py +0 -292
- data/dist/pulp_maven-client-0.3.1.tar.gz +0 -0
- data/dist/pulp_maven_client-0.3.1-py3-none-any.whl +0 -0
- data/pulp_maven_client.egg-info/PKG-INFO +0 -15
- data/pulp_maven_client.egg-info/SOURCES.txt +0 -71
- data/pulp_maven_client.egg-info/dependency_links.txt +0 -1
- data/pulp_maven_client.egg-info/requires.txt +0 -4
- data/pulp_maven_client.egg-info/top_level.txt +0 -1
- data/pulpcore/__init__.py +0 -2
- data/pulpcore/client/__init__.py +0 -2
- data/pulpcore/client/pulp_maven/__init__.py +0 -58
- data/pulpcore/client/pulp_maven/api/__init__.py +0 -10
- data/pulpcore/client/pulp_maven/api/content_artifact_api.py +0 -445
- data/pulpcore/client/pulp_maven/api/distributions_maven_api.py +0 -830
- data/pulpcore/client/pulp_maven/api/remotes_maven_api.py +0 -840
- data/pulpcore/client/pulp_maven/api/repositories_maven_api.py +0 -809
- data/pulpcore/client/pulp_maven/api/repositories_maven_versions_api.py +0 -614
- data/pulpcore/client/pulp_maven/api_client.py +0 -667
- data/pulpcore/client/pulp_maven/configuration.py +0 -427
- data/pulpcore/client/pulp_maven/exceptions.py +0 -121
- data/pulpcore/client/pulp_maven/models/__init__.py +0 -39
- data/pulpcore/client/pulp_maven/models/async_operation_response.py +0 -124
- data/pulpcore/client/pulp_maven/models/content_summary.py +0 -176
- data/pulpcore/client/pulp_maven/models/content_summary_response.py +0 -176
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact.py +0 -153
- data/pulpcore/client/pulp_maven/models/maven_maven_artifact_response.py +0 -290
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution.py +0 -260
- data/pulpcore/client/pulp_maven/models/maven_maven_distribution_response.py +0 -342
- data/pulpcore/client/pulp_maven/models/maven_maven_remote.py +0 -657
- data/pulpcore/client/pulp_maven/models/maven_maven_remote_response.py +0 -604
- data/pulpcore/client/pulp_maven/models/maven_maven_repository.py +0 -232
- data/pulpcore/client/pulp_maven/models/maven_maven_repository_response.py +0 -338
- data/pulpcore/client/pulp_maven/models/paginated_repository_version_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_artifact_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_distribution_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_remote_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/paginatedmaven_maven_repository_response_list.py +0 -197
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_distribution.py +0 -258
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_remote.py +0 -655
- data/pulpcore/client/pulp_maven/models/patchedmaven_maven_repository.py +0 -231
- data/pulpcore/client/pulp_maven/models/policy_enum.py +0 -101
- data/pulpcore/client/pulp_maven/models/repository_version.py +0 -123
- data/pulpcore/client/pulp_maven/models/repository_version_response.py +0 -257
- data/pulpcore/client/pulp_maven/rest.py +0 -292
- data/requirements.txt +0 -6
- data/setup.cfg +0 -2
- data/setup.py +0 -42
- data/test/__init__.py +0 -0
- data/test/test_async_operation_response.py +0 -54
- data/test/test_content_artifact_api.py +0 -55
- data/test/test_content_summary.py +0 -70
- data/test/test_content_summary_response.py +0 -70
- data/test/test_distributions_maven_api.py +0 -76
- data/test/test_maven_maven_artifact.py +0 -56
- data/test/test_maven_maven_artifact_response.py +0 -60
- data/test/test_maven_maven_distribution.py +0 -60
- data/test/test_maven_maven_distribution_response.py +0 -63
- data/test/test_maven_maven_remote.py +0 -76
- data/test/test_maven_maven_remote_response.py +0 -74
- data/test/test_maven_maven_repository.py +0 -58
- data/test/test_maven_maven_repository_response.py +0 -62
- data/test/test_paginated_repository_version_response_list.py +0 -64
- data/test/test_paginatedmaven_maven_artifact_response_list.py +0 -65
- data/test/test_paginatedmaven_maven_distribution_response_list.py +0 -67
- data/test/test_paginatedmaven_maven_remote_response_list.py +0 -78
- data/test/test_paginatedmaven_maven_repository_response_list.py +0 -67
- data/test/test_patchedmaven_maven_distribution.py +0 -58
- data/test/test_patchedmaven_maven_remote.py +0 -74
- data/test/test_patchedmaven_maven_repository.py +0 -57
- data/test/test_policy_enum.py +0 -52
- data/test/test_remotes_maven_api.py +0 -76
- data/test/test_repositories_maven_api.py +0 -76
- data/test/test_repositories_maven_versions_api.py +0 -61
- data/test/test_repository_version.py +0 -53
- data/test/test_repository_version_response.py +0 -58
- data/test-requirements.txt +0 -3
- data/tox.ini +0 -9
|
@@ -43,28 +43,31 @@ module PulpMavenClient
|
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
|
44
44
|
attr_accessor :pulp_last_updated
|
|
45
45
|
|
|
46
|
-
# Total number of simultaneous connections.
|
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
47
47
|
attr_accessor :download_concurrency
|
|
48
48
|
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
50
|
+
attr_accessor :max_retries
|
|
51
|
+
|
|
49
52
|
# The policy to use when downloading content.
|
|
50
53
|
attr_accessor :policy
|
|
51
54
|
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
53
56
|
attr_accessor :total_timeout
|
|
54
57
|
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
59
|
attr_accessor :connect_timeout
|
|
57
60
|
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
61
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
59
62
|
attr_accessor :sock_connect_timeout
|
|
60
63
|
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
64
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
62
65
|
attr_accessor :sock_read_timeout
|
|
63
66
|
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
|
65
68
|
attr_accessor :headers
|
|
66
69
|
|
|
67
|
-
# Limits
|
|
70
|
+
# Limits requests per second for each concurrent downloader
|
|
68
71
|
attr_accessor :rate_limit
|
|
69
72
|
|
|
70
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -81,6 +84,7 @@ module PulpMavenClient
|
|
|
81
84
|
:'pulp_labels' => :'pulp_labels',
|
|
82
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
83
86
|
:'download_concurrency' => :'download_concurrency',
|
|
87
|
+
:'max_retries' => :'max_retries',
|
|
84
88
|
:'policy' => :'policy',
|
|
85
89
|
:'total_timeout' => :'total_timeout',
|
|
86
90
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -105,6 +109,7 @@ module PulpMavenClient
|
|
|
105
109
|
:'pulp_labels' => :'Object',
|
|
106
110
|
:'pulp_last_updated' => :'DateTime',
|
|
107
111
|
:'download_concurrency' => :'Integer',
|
|
112
|
+
:'max_retries' => :'Integer',
|
|
108
113
|
:'policy' => :'PolicyEnum',
|
|
109
114
|
:'total_timeout' => :'Float',
|
|
110
115
|
:'connect_timeout' => :'Float',
|
|
@@ -121,6 +126,8 @@ module PulpMavenClient
|
|
|
121
126
|
:'ca_cert',
|
|
122
127
|
:'client_cert',
|
|
123
128
|
:'proxy_url',
|
|
129
|
+
:'download_concurrency',
|
|
130
|
+
:'max_retries',
|
|
124
131
|
:'total_timeout',
|
|
125
132
|
:'connect_timeout',
|
|
126
133
|
:'sock_connect_timeout',
|
|
@@ -188,6 +195,10 @@ module PulpMavenClient
|
|
|
188
195
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
189
196
|
end
|
|
190
197
|
|
|
198
|
+
if attributes.key?(:'max_retries')
|
|
199
|
+
self.max_retries = attributes[:'max_retries']
|
|
200
|
+
end
|
|
201
|
+
|
|
191
202
|
if attributes.key?(:'policy')
|
|
192
203
|
self.policy = attributes[:'policy']
|
|
193
204
|
end
|
|
@@ -333,6 +344,7 @@ module PulpMavenClient
|
|
|
333
344
|
pulp_labels == o.pulp_labels &&
|
|
334
345
|
pulp_last_updated == o.pulp_last_updated &&
|
|
335
346
|
download_concurrency == o.download_concurrency &&
|
|
347
|
+
max_retries == o.max_retries &&
|
|
336
348
|
policy == o.policy &&
|
|
337
349
|
total_timeout == o.total_timeout &&
|
|
338
350
|
connect_timeout == o.connect_timeout &&
|
|
@@ -351,7 +363,7 @@ module PulpMavenClient
|
|
|
351
363
|
# Calculates hash code according to all attributes.
|
|
352
364
|
# @return [Integer] Hash code
|
|
353
365
|
def hash
|
|
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
|
|
366
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
|
355
367
|
end
|
|
356
368
|
|
|
357
369
|
# Builds the object from hash
|
|
@@ -24,8 +24,9 @@ module PulpMavenClient
|
|
|
24
24
|
attr_accessor :description
|
|
25
25
|
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
27
|
-
attr_accessor :
|
|
27
|
+
attr_accessor :retain_repo_versions
|
|
28
28
|
|
|
29
|
+
# An optional remote to use by default when syncing.
|
|
29
30
|
attr_accessor :remote
|
|
30
31
|
|
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -34,7 +35,7 @@ module PulpMavenClient
|
|
|
34
35
|
:'pulp_labels' => :'pulp_labels',
|
|
35
36
|
:'name' => :'name',
|
|
36
37
|
:'description' => :'description',
|
|
37
|
-
:'
|
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
39
|
:'remote' => :'remote'
|
|
39
40
|
}
|
|
40
41
|
end
|
|
@@ -45,7 +46,7 @@ module PulpMavenClient
|
|
|
45
46
|
:'pulp_labels' => :'Object',
|
|
46
47
|
:'name' => :'String',
|
|
47
48
|
:'description' => :'String',
|
|
48
|
-
:'
|
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
|
49
50
|
:'remote' => :'String'
|
|
50
51
|
}
|
|
51
52
|
end
|
|
@@ -54,7 +55,7 @@ module PulpMavenClient
|
|
|
54
55
|
def self.openapi_nullable
|
|
55
56
|
Set.new([
|
|
56
57
|
:'description',
|
|
57
|
-
:'
|
|
58
|
+
:'retain_repo_versions',
|
|
58
59
|
:'remote'
|
|
59
60
|
])
|
|
60
61
|
end
|
|
@@ -86,8 +87,8 @@ module PulpMavenClient
|
|
|
86
87
|
self.description = attributes[:'description']
|
|
87
88
|
end
|
|
88
89
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
91
92
|
end
|
|
92
93
|
|
|
93
94
|
if attributes.key?(:'remote')
|
|
@@ -103,8 +104,16 @@ module PulpMavenClient
|
|
|
103
104
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
104
105
|
end
|
|
105
106
|
|
|
106
|
-
if
|
|
107
|
-
invalid_properties.push('invalid value for "
|
|
107
|
+
if @name.to_s.length < 1
|
|
108
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
112
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
116
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
108
117
|
end
|
|
109
118
|
|
|
110
119
|
invalid_properties
|
|
@@ -114,18 +123,44 @@ module PulpMavenClient
|
|
|
114
123
|
# @return true if the model is valid
|
|
115
124
|
def valid?
|
|
116
125
|
return false if @name.nil?
|
|
117
|
-
return false if
|
|
126
|
+
return false if @name.to_s.length < 1
|
|
127
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
128
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
129
|
true
|
|
119
130
|
end
|
|
120
131
|
|
|
121
132
|
# Custom attribute writer method with validation
|
|
122
|
-
# @param [Object]
|
|
123
|
-
def
|
|
124
|
-
if
|
|
125
|
-
fail ArgumentError, '
|
|
133
|
+
# @param [Object] name Value to be assigned
|
|
134
|
+
def name=(name)
|
|
135
|
+
if name.nil?
|
|
136
|
+
fail ArgumentError, 'name cannot be nil'
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if name.to_s.length < 1
|
|
140
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
@name = name
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] description Value to be assigned
|
|
148
|
+
def description=(description)
|
|
149
|
+
if !description.nil? && description.to_s.length < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@description = description
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Custom attribute writer method with validation
|
|
157
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
158
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
159
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
160
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
126
161
|
end
|
|
127
162
|
|
|
128
|
-
@
|
|
163
|
+
@retain_repo_versions = retain_repo_versions
|
|
129
164
|
end
|
|
130
165
|
|
|
131
166
|
# Checks equality by comparing each attribute.
|
|
@@ -136,7 +171,7 @@ module PulpMavenClient
|
|
|
136
171
|
pulp_labels == o.pulp_labels &&
|
|
137
172
|
name == o.name &&
|
|
138
173
|
description == o.description &&
|
|
139
|
-
|
|
174
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
140
175
|
remote == o.remote
|
|
141
176
|
end
|
|
142
177
|
|
|
@@ -149,7 +184,7 @@ module PulpMavenClient
|
|
|
149
184
|
# Calculates hash code according to all attributes.
|
|
150
185
|
# @return [Integer] Hash code
|
|
151
186
|
def hash
|
|
152
|
-
[pulp_labels, name, description,
|
|
187
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
|
153
188
|
end
|
|
154
189
|
|
|
155
190
|
# Builds the object from hash
|
|
@@ -33,8 +33,9 @@ module PulpMavenClient
|
|
|
33
33
|
attr_accessor :description
|
|
34
34
|
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
36
|
-
attr_accessor :
|
|
36
|
+
attr_accessor :retain_repo_versions
|
|
37
37
|
|
|
38
|
+
# An optional remote to use by default when syncing.
|
|
38
39
|
attr_accessor :remote
|
|
39
40
|
|
|
40
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -47,7 +48,7 @@ module PulpMavenClient
|
|
|
47
48
|
:'latest_version_href' => :'latest_version_href',
|
|
48
49
|
:'name' => :'name',
|
|
49
50
|
:'description' => :'description',
|
|
50
|
-
:'
|
|
51
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
51
52
|
:'remote' => :'remote'
|
|
52
53
|
}
|
|
53
54
|
end
|
|
@@ -62,7 +63,7 @@ module PulpMavenClient
|
|
|
62
63
|
:'latest_version_href' => :'String',
|
|
63
64
|
:'name' => :'String',
|
|
64
65
|
:'description' => :'String',
|
|
65
|
-
:'
|
|
66
|
+
:'retain_repo_versions' => :'Integer',
|
|
66
67
|
:'remote' => :'String'
|
|
67
68
|
}
|
|
68
69
|
end
|
|
@@ -71,7 +72,7 @@ module PulpMavenClient
|
|
|
71
72
|
def self.openapi_nullable
|
|
72
73
|
Set.new([
|
|
73
74
|
:'description',
|
|
74
|
-
:'
|
|
75
|
+
:'retain_repo_versions',
|
|
75
76
|
:'remote'
|
|
76
77
|
])
|
|
77
78
|
end
|
|
@@ -119,8 +120,8 @@ module PulpMavenClient
|
|
|
119
120
|
self.description = attributes[:'description']
|
|
120
121
|
end
|
|
121
122
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
123
|
+
if attributes.key?(:'retain_repo_versions')
|
|
124
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
124
125
|
end
|
|
125
126
|
|
|
126
127
|
if attributes.key?(:'remote')
|
|
@@ -136,8 +137,8 @@ module PulpMavenClient
|
|
|
136
137
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
137
138
|
end
|
|
138
139
|
|
|
139
|
-
if !@
|
|
140
|
-
invalid_properties.push('invalid value for "
|
|
140
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
141
142
|
end
|
|
142
143
|
|
|
143
144
|
invalid_properties
|
|
@@ -147,18 +148,18 @@ module PulpMavenClient
|
|
|
147
148
|
# @return true if the model is valid
|
|
148
149
|
def valid?
|
|
149
150
|
return false if @name.nil?
|
|
150
|
-
return false if !@
|
|
151
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
151
152
|
true
|
|
152
153
|
end
|
|
153
154
|
|
|
154
155
|
# Custom attribute writer method with validation
|
|
155
|
-
# @param [Object]
|
|
156
|
-
def
|
|
157
|
-
if !
|
|
158
|
-
fail ArgumentError, 'invalid value for "
|
|
156
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
157
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
158
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
159
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
159
160
|
end
|
|
160
161
|
|
|
161
|
-
@
|
|
162
|
+
@retain_repo_versions = retain_repo_versions
|
|
162
163
|
end
|
|
163
164
|
|
|
164
165
|
# Checks equality by comparing each attribute.
|
|
@@ -173,7 +174,7 @@ module PulpMavenClient
|
|
|
173
174
|
latest_version_href == o.latest_version_href &&
|
|
174
175
|
name == o.name &&
|
|
175
176
|
description == o.description &&
|
|
176
|
-
|
|
177
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
177
178
|
remote == o.remote
|
|
178
179
|
end
|
|
179
180
|
|
|
@@ -186,7 +187,7 @@ module PulpMavenClient
|
|
|
186
187
|
# Calculates hash code according to all attributes.
|
|
187
188
|
# @return [Integer] Hash code
|
|
188
189
|
def hash
|
|
189
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
|
190
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
|
|
190
191
|
end
|
|
191
192
|
|
|
192
193
|
# Builds the object from hash
|
|
@@ -109,15 +109,45 @@ module PulpMavenClient
|
|
|
109
109
|
# @return Array for valid properties with the reasons
|
|
110
110
|
def list_invalid_properties
|
|
111
111
|
invalid_properties = Array.new
|
|
112
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
113
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
117
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
118
|
+
end
|
|
119
|
+
|
|
112
120
|
invalid_properties
|
|
113
121
|
end
|
|
114
122
|
|
|
115
123
|
# Check to see if the all the properties in the model are valid
|
|
116
124
|
# @return true if the model is valid
|
|
117
125
|
def valid?
|
|
126
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
127
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
118
128
|
true
|
|
119
129
|
end
|
|
120
130
|
|
|
131
|
+
# Custom attribute writer method with validation
|
|
132
|
+
# @param [Object] base_path Value to be assigned
|
|
133
|
+
def base_path=(base_path)
|
|
134
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
|
135
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
@base_path = base_path
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] name Value to be assigned
|
|
143
|
+
def name=(name)
|
|
144
|
+
if !name.nil? && name.to_s.length < 1
|
|
145
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@name = name
|
|
149
|
+
end
|
|
150
|
+
|
|
121
151
|
# Checks equality by comparing each attribute.
|
|
122
152
|
# @param [Object] Object to be compared
|
|
123
153
|
def ==(o)
|
|
@@ -50,28 +50,31 @@ module PulpMavenClient
|
|
|
50
50
|
|
|
51
51
|
attr_accessor :pulp_labels
|
|
52
52
|
|
|
53
|
-
# Total number of simultaneous connections.
|
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
54
54
|
attr_accessor :download_concurrency
|
|
55
55
|
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
57
|
+
attr_accessor :max_retries
|
|
58
|
+
|
|
56
59
|
# The policy to use when downloading content.
|
|
57
60
|
attr_accessor :policy
|
|
58
61
|
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
60
63
|
attr_accessor :total_timeout
|
|
61
64
|
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
63
66
|
attr_accessor :connect_timeout
|
|
64
67
|
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
66
69
|
attr_accessor :sock_connect_timeout
|
|
67
70
|
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
69
72
|
attr_accessor :sock_read_timeout
|
|
70
73
|
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
|
72
75
|
attr_accessor :headers
|
|
73
76
|
|
|
74
|
-
# Limits
|
|
77
|
+
# Limits requests per second for each concurrent downloader
|
|
75
78
|
attr_accessor :rate_limit
|
|
76
79
|
|
|
77
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -90,6 +93,7 @@ module PulpMavenClient
|
|
|
90
93
|
:'password' => :'password',
|
|
91
94
|
:'pulp_labels' => :'pulp_labels',
|
|
92
95
|
:'download_concurrency' => :'download_concurrency',
|
|
96
|
+
:'max_retries' => :'max_retries',
|
|
93
97
|
:'policy' => :'policy',
|
|
94
98
|
:'total_timeout' => :'total_timeout',
|
|
95
99
|
:'connect_timeout' => :'connect_timeout',
|
|
@@ -116,6 +120,7 @@ module PulpMavenClient
|
|
|
116
120
|
:'password' => :'String',
|
|
117
121
|
:'pulp_labels' => :'Object',
|
|
118
122
|
:'download_concurrency' => :'Integer',
|
|
123
|
+
:'max_retries' => :'Integer',
|
|
119
124
|
:'policy' => :'PolicyEnum',
|
|
120
125
|
:'total_timeout' => :'Float',
|
|
121
126
|
:'connect_timeout' => :'Float',
|
|
@@ -137,6 +142,8 @@ module PulpMavenClient
|
|
|
137
142
|
:'proxy_password',
|
|
138
143
|
:'username',
|
|
139
144
|
:'password',
|
|
145
|
+
:'download_concurrency',
|
|
146
|
+
:'max_retries',
|
|
140
147
|
:'total_timeout',
|
|
141
148
|
:'connect_timeout',
|
|
142
149
|
:'sock_connect_timeout',
|
|
@@ -212,6 +219,10 @@ module PulpMavenClient
|
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
213
220
|
end
|
|
214
221
|
|
|
222
|
+
if attributes.key?(:'max_retries')
|
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
|
224
|
+
end
|
|
225
|
+
|
|
215
226
|
if attributes.key?(:'policy')
|
|
216
227
|
self.policy = attributes[:'policy']
|
|
217
228
|
end
|
|
@@ -247,6 +258,46 @@ module PulpMavenClient
|
|
|
247
258
|
# @return Array for valid properties with the reasons
|
|
248
259
|
def list_invalid_properties
|
|
249
260
|
invalid_properties = Array.new
|
|
261
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
262
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if !@url.nil? && @url.to_s.length < 1
|
|
266
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
270
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
274
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
|
278
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
282
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
286
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
290
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if !@username.nil? && @username.to_s.length < 1
|
|
294
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if !@password.nil? && @password.to_s.length < 1
|
|
298
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
299
|
+
end
|
|
300
|
+
|
|
250
301
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
251
302
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
252
303
|
end
|
|
@@ -273,6 +324,16 @@ module PulpMavenClient
|
|
|
273
324
|
# Check to see if the all the properties in the model are valid
|
|
274
325
|
# @return true if the model is valid
|
|
275
326
|
def valid?
|
|
327
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
328
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
|
329
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
330
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
331
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
332
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
333
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
334
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
335
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
|
336
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
|
276
337
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
277
338
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
278
339
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
@@ -281,6 +342,106 @@ module PulpMavenClient
|
|
|
281
342
|
true
|
|
282
343
|
end
|
|
283
344
|
|
|
345
|
+
# Custom attribute writer method with validation
|
|
346
|
+
# @param [Object] name Value to be assigned
|
|
347
|
+
def name=(name)
|
|
348
|
+
if !name.nil? && name.to_s.length < 1
|
|
349
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
@name = name
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Custom attribute writer method with validation
|
|
356
|
+
# @param [Object] url Value to be assigned
|
|
357
|
+
def url=(url)
|
|
358
|
+
if !url.nil? && url.to_s.length < 1
|
|
359
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
@url = url
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# Custom attribute writer method with validation
|
|
366
|
+
# @param [Object] ca_cert Value to be assigned
|
|
367
|
+
def ca_cert=(ca_cert)
|
|
368
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
|
369
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
@ca_cert = ca_cert
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Custom attribute writer method with validation
|
|
376
|
+
# @param [Object] client_cert Value to be assigned
|
|
377
|
+
def client_cert=(client_cert)
|
|
378
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
|
379
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
@client_cert = client_cert
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Custom attribute writer method with validation
|
|
386
|
+
# @param [Object] client_key Value to be assigned
|
|
387
|
+
def client_key=(client_key)
|
|
388
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
|
389
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
@client_key = client_key
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Custom attribute writer method with validation
|
|
396
|
+
# @param [Object] proxy_url Value to be assigned
|
|
397
|
+
def proxy_url=(proxy_url)
|
|
398
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
|
399
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
@proxy_url = proxy_url
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Custom attribute writer method with validation
|
|
406
|
+
# @param [Object] proxy_username Value to be assigned
|
|
407
|
+
def proxy_username=(proxy_username)
|
|
408
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
|
409
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
@proxy_username = proxy_username
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Custom attribute writer method with validation
|
|
416
|
+
# @param [Object] proxy_password Value to be assigned
|
|
417
|
+
def proxy_password=(proxy_password)
|
|
418
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
|
419
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
@proxy_password = proxy_password
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Custom attribute writer method with validation
|
|
426
|
+
# @param [Object] username Value to be assigned
|
|
427
|
+
def username=(username)
|
|
428
|
+
if !username.nil? && username.to_s.length < 1
|
|
429
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
@username = username
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Custom attribute writer method with validation
|
|
436
|
+
# @param [Object] password Value to be assigned
|
|
437
|
+
def password=(password)
|
|
438
|
+
if !password.nil? && password.to_s.length < 1
|
|
439
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
@password = password
|
|
443
|
+
end
|
|
444
|
+
|
|
284
445
|
# Custom attribute writer method with validation
|
|
285
446
|
# @param [Object] download_concurrency Value to be assigned
|
|
286
447
|
def download_concurrency=(download_concurrency)
|
|
@@ -349,6 +510,7 @@ module PulpMavenClient
|
|
|
349
510
|
password == o.password &&
|
|
350
511
|
pulp_labels == o.pulp_labels &&
|
|
351
512
|
download_concurrency == o.download_concurrency &&
|
|
513
|
+
max_retries == o.max_retries &&
|
|
352
514
|
policy == o.policy &&
|
|
353
515
|
total_timeout == o.total_timeout &&
|
|
354
516
|
connect_timeout == o.connect_timeout &&
|
|
@@ -367,7 +529,7 @@ module PulpMavenClient
|
|
|
367
529
|
# Calculates hash code according to all attributes.
|
|
368
530
|
# @return [Integer] Hash code
|
|
369
531
|
def hash
|
|
370
|
-
[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
|
|
532
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
|
371
533
|
end
|
|
372
534
|
|
|
373
535
|
# Builds the object from hash
|