pulp_maven_client 0.1.0b31572381206 → 0.1.0b31574196301
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 +22 -8
- data/docs/ContentArtifactApi.md +6 -6
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsMavenApi.md +8 -8
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/{MavenArtifact.md → MavenMavenArtifact.md} +2 -4
- data/docs/{MavenDistribution.md → MavenMavenDistribution.md} +2 -2
- data/docs/MavenMavenRemote.md +39 -0
- data/docs/MavenMavenRepository.md +27 -0
- data/docs/RemotesMavenApi.md +10 -10
- data/docs/RepositoriesMavenApi.md +354 -0
- data/docs/RepositoriesMavenVersionsApi.md +214 -0
- data/docs/RepositoryVersion.md +25 -0
- data/lib/pulp_maven_client.rb +11 -4
- data/lib/pulp_maven_client/api/content_artifact_api.rb +9 -9
- data/lib/pulp_maven_client/api/distributions_maven_api.rb +10 -10
- data/lib/pulp_maven_client/api/remotes_maven_api.rb +13 -13
- data/lib/pulp_maven_client/api/repositories_maven_api.rb +430 -0
- data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +268 -0
- data/lib/pulp_maven_client/api_client.rb +1 -1
- data/lib/pulp_maven_client/api_error.rb +1 -1
- data/lib/pulp_maven_client/configuration.rb +1 -1
- data/lib/pulp_maven_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_maven_client/models/content_summary.rb +246 -0
- data/lib/pulp_maven_client/models/inline_response200.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_maven_client/models/inline_response2003.rb +247 -0
- data/lib/pulp_maven_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_maven_client/models/{maven_artifact.rb → maven_maven_artifact.rb} +16 -40
- data/lib/pulp_maven_client/models/{maven_distribution.rb → maven_maven_distribution.rb} +17 -23
- data/lib/pulp_maven_client/models/{maven_remote.rb → maven_maven_remote.rb} +69 -105
- data/lib/pulp_maven_client/models/maven_maven_repository.rb +294 -0
- data/lib/pulp_maven_client/models/repository_version.rb +244 -0
- data/lib/pulp_maven_client/version.rb +2 -2
- data/pulp_maven_client.gemspec +1 -1
- data/spec/api/content_artifact_api_spec.rb +3 -3
- data/spec/api/distributions_maven_api_spec.rb +2 -2
- data/spec/api/remotes_maven_api_spec.rb +3 -3
- data/spec/api/repositories_maven_api_spec.rb +116 -0
- data/spec/api/repositories_maven_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/{maven_artifact_spec.rb → maven_maven_artifact_spec.rb} +7 -13
- data/spec/models/{maven_distribution_spec.rb → maven_maven_distribution_spec.rb} +7 -7
- data/spec/models/{maven_remote_spec.rb → maven_maven_remote_spec.rb} +11 -23
- data/spec/models/maven_maven_repository_spec.rb +71 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/spec_helper.rb +1 -1
- metadata +42 -14
- data/docs/MavenRemote.md +0 -43
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class MavenMavenArtifact
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -22,9 +22,6 @@ module PulpMavenClient
|
|
22
22
|
# Artifact file representing the physical content
|
23
23
|
attr_accessor :artifact
|
24
24
|
|
25
|
-
# Path where the artifact is located relative to distributions base_path
|
26
|
-
attr_accessor :relative_path
|
27
|
-
|
28
25
|
# Group Id of the artifact's package.
|
29
26
|
attr_accessor :group_id
|
30
27
|
|
@@ -43,7 +40,6 @@ module PulpMavenClient
|
|
43
40
|
:'pulp_href' => :'pulp_href',
|
44
41
|
:'pulp_created' => :'pulp_created',
|
45
42
|
:'artifact' => :'artifact',
|
46
|
-
:'relative_path' => :'relative_path',
|
47
43
|
:'group_id' => :'group_id',
|
48
44
|
:'artifact_id' => :'artifact_id',
|
49
45
|
:'version' => :'version',
|
@@ -57,7 +53,6 @@ module PulpMavenClient
|
|
57
53
|
:'pulp_href' => :'String',
|
58
54
|
:'pulp_created' => :'DateTime',
|
59
55
|
:'artifact' => :'String',
|
60
|
-
:'relative_path' => :'String',
|
61
56
|
:'group_id' => :'String',
|
62
57
|
:'artifact_id' => :'String',
|
63
58
|
:'version' => :'String',
|
@@ -65,17 +60,23 @@ module PulpMavenClient
|
|
65
60
|
}
|
66
61
|
end
|
67
62
|
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
])
|
67
|
+
end
|
68
|
+
|
68
69
|
# Initializes the object
|
69
70
|
# @param [Hash] attributes Model attributes in the form of hash
|
70
71
|
def initialize(attributes = {})
|
71
72
|
if (!attributes.is_a?(Hash))
|
72
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenArtifact` initialize method"
|
73
74
|
end
|
74
75
|
|
75
76
|
# check to see if the attribute exists and convert string to symbol for hash key
|
76
77
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
78
|
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::
|
79
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenArtifact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
79
80
|
end
|
80
81
|
h[k.to_sym] = v
|
81
82
|
}
|
@@ -92,10 +93,6 @@ module PulpMavenClient
|
|
92
93
|
self.artifact = attributes[:'artifact']
|
93
94
|
end
|
94
95
|
|
95
|
-
if attributes.key?(:'relative_path')
|
96
|
-
self.relative_path = attributes[:'relative_path']
|
97
|
-
end
|
98
|
-
|
99
96
|
if attributes.key?(:'group_id')
|
100
97
|
self.group_id = attributes[:'group_id']
|
101
98
|
end
|
@@ -121,14 +118,6 @@ module PulpMavenClient
|
|
121
118
|
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
122
119
|
end
|
123
120
|
|
124
|
-
if @relative_path.nil?
|
125
|
-
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
|
-
if @relative_path.to_s.length < 1
|
129
|
-
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
130
|
-
end
|
131
|
-
|
132
121
|
if !@group_id.nil? && @group_id.to_s.length < 1
|
133
122
|
invalid_properties.push('invalid value for "group_id", the character length must be great than or equal to 1.')
|
134
123
|
end
|
@@ -152,8 +141,6 @@ module PulpMavenClient
|
|
152
141
|
# @return true if the model is valid
|
153
142
|
def valid?
|
154
143
|
return false if @artifact.nil?
|
155
|
-
return false if @relative_path.nil?
|
156
|
-
return false if @relative_path.to_s.length < 1
|
157
144
|
return false if !@group_id.nil? && @group_id.to_s.length < 1
|
158
145
|
return false if !@artifact_id.nil? && @artifact_id.to_s.length < 1
|
159
146
|
return false if !@version.nil? && @version.to_s.length < 1
|
@@ -161,20 +148,6 @@ module PulpMavenClient
|
|
161
148
|
true
|
162
149
|
end
|
163
150
|
|
164
|
-
# Custom attribute writer method with validation
|
165
|
-
# @param [Object] relative_path Value to be assigned
|
166
|
-
def relative_path=(relative_path)
|
167
|
-
if relative_path.nil?
|
168
|
-
fail ArgumentError, 'relative_path cannot be nil'
|
169
|
-
end
|
170
|
-
|
171
|
-
if relative_path.to_s.length < 1
|
172
|
-
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
173
|
-
end
|
174
|
-
|
175
|
-
@relative_path = relative_path
|
176
|
-
end
|
177
|
-
|
178
151
|
# Custom attribute writer method with validation
|
179
152
|
# @param [Object] group_id Value to be assigned
|
180
153
|
def group_id=(group_id)
|
@@ -223,7 +196,6 @@ module PulpMavenClient
|
|
223
196
|
pulp_href == o.pulp_href &&
|
224
197
|
pulp_created == o.pulp_created &&
|
225
198
|
artifact == o.artifact &&
|
226
|
-
relative_path == o.relative_path &&
|
227
199
|
group_id == o.group_id &&
|
228
200
|
artifact_id == o.artifact_id &&
|
229
201
|
version == o.version &&
|
@@ -239,7 +211,7 @@ module PulpMavenClient
|
|
239
211
|
# Calculates hash code according to all attributes.
|
240
212
|
# @return [Integer] Hash code
|
241
213
|
def hash
|
242
|
-
[pulp_href, pulp_created, artifact,
|
214
|
+
[pulp_href, pulp_created, artifact, group_id, artifact_id, version, filename].hash
|
243
215
|
end
|
244
216
|
|
245
217
|
# Builds the object from hash
|
@@ -328,7 +300,11 @@ module PulpMavenClient
|
|
328
300
|
hash = {}
|
329
301
|
self.class.attribute_map.each_pair do |attr, param|
|
330
302
|
value = self.send(attr)
|
331
|
-
|
303
|
+
if value.nil?
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
306
|
+
end
|
307
|
+
|
332
308
|
hash[param] = _to_hash(value)
|
333
309
|
end
|
334
310
|
hash
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class MavenMavenDistribution
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -60,17 +60,25 @@ module PulpMavenClient
|
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
:'content_guard',
|
67
|
+
:'remote'
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
63
71
|
# Initializes the object
|
64
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
65
73
|
def initialize(attributes = {})
|
66
74
|
if (!attributes.is_a?(Hash))
|
67
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenDistribution` initialize method"
|
68
76
|
end
|
69
77
|
|
70
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
71
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
80
|
if (!self.class.attribute_map.key?(k.to_sym))
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenDistribution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
74
82
|
end
|
75
83
|
h[k.to_sym] = v
|
76
84
|
}
|
@@ -112,10 +120,6 @@ module PulpMavenClient
|
|
112
120
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
113
121
|
end
|
114
122
|
|
115
|
-
if @base_path.to_s.length > 255
|
116
|
-
invalid_properties.push('invalid value for "base_path", the character length must be smaller than or equal to 255.')
|
117
|
-
end
|
118
|
-
|
119
123
|
if @base_path.to_s.length < 1
|
120
124
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
121
125
|
end
|
@@ -128,10 +132,6 @@ module PulpMavenClient
|
|
128
132
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
129
133
|
end
|
130
134
|
|
131
|
-
if @name.to_s.length > 255
|
132
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
133
|
-
end
|
134
|
-
|
135
135
|
if @name.to_s.length < 1
|
136
136
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
137
137
|
end
|
@@ -143,11 +143,9 @@ module PulpMavenClient
|
|
143
143
|
# @return true if the model is valid
|
144
144
|
def valid?
|
145
145
|
return false if @base_path.nil?
|
146
|
-
return false if @base_path.to_s.length > 255
|
147
146
|
return false if @base_path.to_s.length < 1
|
148
147
|
return false if !@base_url.nil? && @base_url.to_s.length < 1
|
149
148
|
return false if @name.nil?
|
150
|
-
return false if @name.to_s.length > 255
|
151
149
|
return false if @name.to_s.length < 1
|
152
150
|
true
|
153
151
|
end
|
@@ -159,10 +157,6 @@ module PulpMavenClient
|
|
159
157
|
fail ArgumentError, 'base_path cannot be nil'
|
160
158
|
end
|
161
159
|
|
162
|
-
if base_path.to_s.length > 255
|
163
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be smaller than or equal to 255.'
|
164
|
-
end
|
165
|
-
|
166
160
|
if base_path.to_s.length < 1
|
167
161
|
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
168
162
|
end
|
@@ -187,10 +181,6 @@ module PulpMavenClient
|
|
187
181
|
fail ArgumentError, 'name cannot be nil'
|
188
182
|
end
|
189
183
|
|
190
|
-
if name.to_s.length > 255
|
191
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
192
|
-
end
|
193
|
-
|
194
184
|
if name.to_s.length < 1
|
195
185
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
196
186
|
end
|
@@ -310,7 +300,11 @@ module PulpMavenClient
|
|
310
300
|
hash = {}
|
311
301
|
self.class.attribute_map.each_pair do |attr, param|
|
312
302
|
value = self.send(attr)
|
313
|
-
|
303
|
+
if value.nil?
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
306
|
+
end
|
307
|
+
|
314
308
|
hash[param] = _to_hash(value)
|
315
309
|
end
|
316
310
|
hash
|
@@ -6,14 +6,14 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpMavenClient
|
16
|
-
class
|
16
|
+
class MavenMavenRemote
|
17
17
|
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
@@ -26,26 +26,20 @@ module PulpMavenClient
|
|
26
26
|
attr_accessor :url
|
27
27
|
|
28
28
|
# A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET.
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :ca_cert
|
30
30
|
|
31
31
|
# A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET.
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :client_cert
|
33
33
|
|
34
34
|
# A PEM encoded private key used for authentication. Returns SHA256 sum on GET.
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :client_key
|
36
36
|
|
37
|
-
# If True,
|
38
|
-
attr_accessor :
|
37
|
+
# If True, TLS peer validation must be performed.
|
38
|
+
attr_accessor :tls_validation
|
39
39
|
|
40
40
|
# The proxy URL. Format: scheme://user:password@host:port
|
41
41
|
attr_accessor :proxy_url
|
42
42
|
|
43
|
-
# The username to be used for authentication when syncing.
|
44
|
-
attr_accessor :username
|
45
|
-
|
46
|
-
# The password to be used for authentication when syncing.
|
47
|
-
attr_accessor :password
|
48
|
-
|
49
43
|
# Timestamp of the most recent update of the remote.
|
50
44
|
attr_accessor :pulp_last_updated
|
51
45
|
|
@@ -84,13 +78,11 @@ module PulpMavenClient
|
|
84
78
|
:'pulp_created' => :'pulp_created',
|
85
79
|
:'name' => :'name',
|
86
80
|
:'url' => :'url',
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'
|
90
|
-
:'
|
81
|
+
:'ca_cert' => :'ca_cert',
|
82
|
+
:'client_cert' => :'client_cert',
|
83
|
+
:'client_key' => :'client_key',
|
84
|
+
:'tls_validation' => :'tls_validation',
|
91
85
|
:'proxy_url' => :'proxy_url',
|
92
|
-
:'username' => :'username',
|
93
|
-
:'password' => :'password',
|
94
86
|
:'pulp_last_updated' => :'pulp_last_updated',
|
95
87
|
:'download_concurrency' => :'download_concurrency',
|
96
88
|
:'policy' => :'policy'
|
@@ -104,30 +96,38 @@ module PulpMavenClient
|
|
104
96
|
:'pulp_created' => :'DateTime',
|
105
97
|
:'name' => :'String',
|
106
98
|
:'url' => :'String',
|
107
|
-
:'
|
108
|
-
:'
|
109
|
-
:'
|
110
|
-
:'
|
99
|
+
:'ca_cert' => :'String',
|
100
|
+
:'client_cert' => :'String',
|
101
|
+
:'client_key' => :'String',
|
102
|
+
:'tls_validation' => :'Boolean',
|
111
103
|
:'proxy_url' => :'String',
|
112
|
-
:'username' => :'String',
|
113
|
-
:'password' => :'String',
|
114
104
|
:'pulp_last_updated' => :'DateTime',
|
115
105
|
:'download_concurrency' => :'Integer',
|
116
106
|
:'policy' => :'String'
|
117
107
|
}
|
118
108
|
end
|
119
109
|
|
110
|
+
# List of attributes with nullable: true
|
111
|
+
def self.openapi_nullable
|
112
|
+
Set.new([
|
113
|
+
:'ca_cert',
|
114
|
+
:'client_cert',
|
115
|
+
:'client_key',
|
116
|
+
:'proxy_url',
|
117
|
+
])
|
118
|
+
end
|
119
|
+
|
120
120
|
# Initializes the object
|
121
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
122
122
|
def initialize(attributes = {})
|
123
123
|
if (!attributes.is_a?(Hash))
|
124
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::
|
124
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenRemote` initialize method"
|
125
125
|
end
|
126
126
|
|
127
127
|
# check to see if the attribute exists and convert string to symbol for hash key
|
128
128
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
129
129
|
if (!self.class.attribute_map.key?(k.to_sym))
|
130
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::
|
130
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
131
131
|
end
|
132
132
|
h[k.to_sym] = v
|
133
133
|
}
|
@@ -148,34 +148,26 @@ module PulpMavenClient
|
|
148
148
|
self.url = attributes[:'url']
|
149
149
|
end
|
150
150
|
|
151
|
-
if attributes.key?(:'
|
152
|
-
self.
|
151
|
+
if attributes.key?(:'ca_cert')
|
152
|
+
self.ca_cert = attributes[:'ca_cert']
|
153
153
|
end
|
154
154
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
155
|
+
if attributes.key?(:'client_cert')
|
156
|
+
self.client_cert = attributes[:'client_cert']
|
157
157
|
end
|
158
158
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
159
|
+
if attributes.key?(:'client_key')
|
160
|
+
self.client_key = attributes[:'client_key']
|
161
161
|
end
|
162
162
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
163
|
+
if attributes.key?(:'tls_validation')
|
164
|
+
self.tls_validation = attributes[:'tls_validation']
|
165
165
|
end
|
166
166
|
|
167
167
|
if attributes.key?(:'proxy_url')
|
168
168
|
self.proxy_url = attributes[:'proxy_url']
|
169
169
|
end
|
170
170
|
|
171
|
-
if attributes.key?(:'username')
|
172
|
-
self.username = attributes[:'username']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes.key?(:'password')
|
176
|
-
self.password = attributes[:'password']
|
177
|
-
end
|
178
|
-
|
179
171
|
if attributes.key?(:'pulp_last_updated')
|
180
172
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
181
173
|
end
|
@@ -211,30 +203,22 @@ module PulpMavenClient
|
|
211
203
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
212
204
|
end
|
213
205
|
|
214
|
-
if !@
|
215
|
-
invalid_properties.push('invalid value for "
|
206
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
207
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
216
208
|
end
|
217
209
|
|
218
|
-
if !@
|
219
|
-
invalid_properties.push('invalid value for "
|
210
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
211
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
220
212
|
end
|
221
213
|
|
222
|
-
if !@
|
223
|
-
invalid_properties.push('invalid value for "
|
214
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
215
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
224
216
|
end
|
225
217
|
|
226
218
|
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
227
219
|
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
228
220
|
end
|
229
221
|
|
230
|
-
if !@username.nil? && @username.to_s.length < 1
|
231
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
232
|
-
end
|
233
|
-
|
234
|
-
if !@password.nil? && @password.to_s.length < 1
|
235
|
-
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
236
|
-
end
|
237
|
-
|
238
222
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
239
223
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
240
224
|
end
|
@@ -249,12 +233,10 @@ module PulpMavenClient
|
|
249
233
|
return false if @name.to_s.length < 1
|
250
234
|
return false if @url.nil?
|
251
235
|
return false if @url.to_s.length < 1
|
252
|
-
return false if !@
|
253
|
-
return false if !@
|
254
|
-
return false if !@
|
236
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
237
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
238
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
255
239
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
256
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
257
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
258
240
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
259
241
|
policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
|
260
242
|
return false unless policy_validator.valid?(@policy)
|
@@ -290,33 +272,33 @@ module PulpMavenClient
|
|
290
272
|
end
|
291
273
|
|
292
274
|
# Custom attribute writer method with validation
|
293
|
-
# @param [Object]
|
294
|
-
def
|
295
|
-
if !
|
296
|
-
fail ArgumentError, 'invalid value for "
|
275
|
+
# @param [Object] ca_cert Value to be assigned
|
276
|
+
def ca_cert=(ca_cert)
|
277
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
278
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
297
279
|
end
|
298
280
|
|
299
|
-
@
|
281
|
+
@ca_cert = ca_cert
|
300
282
|
end
|
301
283
|
|
302
284
|
# Custom attribute writer method with validation
|
303
|
-
# @param [Object]
|
304
|
-
def
|
305
|
-
if !
|
306
|
-
fail ArgumentError, 'invalid value for "
|
285
|
+
# @param [Object] client_cert Value to be assigned
|
286
|
+
def client_cert=(client_cert)
|
287
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
288
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
307
289
|
end
|
308
290
|
|
309
|
-
@
|
291
|
+
@client_cert = client_cert
|
310
292
|
end
|
311
293
|
|
312
294
|
# Custom attribute writer method with validation
|
313
|
-
# @param [Object]
|
314
|
-
def
|
315
|
-
if !
|
316
|
-
fail ArgumentError, 'invalid value for "
|
295
|
+
# @param [Object] client_key Value to be assigned
|
296
|
+
def client_key=(client_key)
|
297
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
298
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
317
299
|
end
|
318
300
|
|
319
|
-
@
|
301
|
+
@client_key = client_key
|
320
302
|
end
|
321
303
|
|
322
304
|
# Custom attribute writer method with validation
|
@@ -329,26 +311,6 @@ module PulpMavenClient
|
|
329
311
|
@proxy_url = proxy_url
|
330
312
|
end
|
331
313
|
|
332
|
-
# Custom attribute writer method with validation
|
333
|
-
# @param [Object] username Value to be assigned
|
334
|
-
def username=(username)
|
335
|
-
if !username.nil? && username.to_s.length < 1
|
336
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
337
|
-
end
|
338
|
-
|
339
|
-
@username = username
|
340
|
-
end
|
341
|
-
|
342
|
-
# Custom attribute writer method with validation
|
343
|
-
# @param [Object] password Value to be assigned
|
344
|
-
def password=(password)
|
345
|
-
if !password.nil? && password.to_s.length < 1
|
346
|
-
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
347
|
-
end
|
348
|
-
|
349
|
-
@password = password
|
350
|
-
end
|
351
|
-
|
352
314
|
# Custom attribute writer method with validation
|
353
315
|
# @param [Object] download_concurrency Value to be assigned
|
354
316
|
def download_concurrency=(download_concurrency)
|
@@ -378,13 +340,11 @@ module PulpMavenClient
|
|
378
340
|
pulp_created == o.pulp_created &&
|
379
341
|
name == o.name &&
|
380
342
|
url == o.url &&
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
343
|
+
ca_cert == o.ca_cert &&
|
344
|
+
client_cert == o.client_cert &&
|
345
|
+
client_key == o.client_key &&
|
346
|
+
tls_validation == o.tls_validation &&
|
385
347
|
proxy_url == o.proxy_url &&
|
386
|
-
username == o.username &&
|
387
|
-
password == o.password &&
|
388
348
|
pulp_last_updated == o.pulp_last_updated &&
|
389
349
|
download_concurrency == o.download_concurrency &&
|
390
350
|
policy == o.policy
|
@@ -399,7 +359,7 @@ module PulpMavenClient
|
|
399
359
|
# Calculates hash code according to all attributes.
|
400
360
|
# @return [Integer] Hash code
|
401
361
|
def hash
|
402
|
-
[pulp_href, pulp_created, name, url,
|
362
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, pulp_last_updated, download_concurrency, policy].hash
|
403
363
|
end
|
404
364
|
|
405
365
|
# Builds the object from hash
|
@@ -488,7 +448,11 @@ module PulpMavenClient
|
|
488
448
|
hash = {}
|
489
449
|
self.class.attribute_map.each_pair do |attr, param|
|
490
450
|
value = self.send(attr)
|
491
|
-
|
451
|
+
if value.nil?
|
452
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
453
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
454
|
+
end
|
455
|
+
|
492
456
|
hash[param] = _to_hash(value)
|
493
457
|
end
|
494
458
|
hash
|