pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1638328524
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleGitRemote.md +30 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -26
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/CollectionVersionResponse.md +4 -0
- data/docs/PatchedansibleGitRemote.md +30 -28
- data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +191 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -16
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +336 -153
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -143
- data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +158 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +183 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +323 -148
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +150 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +22 -16
- data/spec/models/ansible_git_remote_spec.rb +24 -18
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +12 -0
- data/spec/models/patchedansible_git_remote_spec.rb +24 -18
- data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
- metadata +70 -70
@@ -15,124 +15,129 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
+
# A unique name for this remote.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# 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.
|
22
|
+
attr_accessor :sock_read_timeout
|
23
|
+
|
24
|
+
# A PEM encoded client certificate used for authentication.
|
25
|
+
attr_accessor :client_cert
|
26
|
+
|
18
27
|
# Headers for aiohttp.Clientsession
|
19
28
|
attr_accessor :headers
|
20
29
|
|
30
|
+
attr_accessor :pulp_href
|
31
|
+
|
21
32
|
# The proxy URL. Format: scheme://host:port
|
22
33
|
attr_accessor :proxy_url
|
23
34
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# The URL of an external content source.
|
28
|
-
attr_accessor :url
|
29
|
-
|
30
|
-
attr_accessor :pulp_href
|
35
|
+
# Timestamp of the most recent update of the remote.
|
36
|
+
attr_accessor :pulp_last_updated
|
31
37
|
|
32
|
-
# A PEM encoded
|
33
|
-
attr_accessor :
|
38
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
39
|
+
attr_accessor :ca_cert
|
34
40
|
|
35
41
|
# 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.
|
36
42
|
attr_accessor :sock_connect_timeout
|
37
43
|
|
38
|
-
# If
|
39
|
-
attr_accessor :
|
40
|
-
|
41
|
-
# Timestamp of the most recent update of the remote.
|
42
|
-
attr_accessor :pulp_last_updated
|
44
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
45
|
+
attr_accessor :max_retries
|
43
46
|
|
44
47
|
# Limits total download rate in requests per second
|
45
48
|
attr_accessor :rate_limit
|
46
49
|
|
47
|
-
#
|
48
|
-
attr_accessor :
|
50
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
51
|
+
attr_accessor :total_timeout
|
49
52
|
|
50
|
-
# aiohttp.ClientTimeout.
|
51
|
-
attr_accessor :
|
53
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
54
|
+
attr_accessor :connect_timeout
|
52
55
|
|
53
|
-
#
|
54
|
-
attr_accessor :
|
56
|
+
# If True, TLS peer validation must be performed.
|
57
|
+
attr_accessor :tls_validation
|
55
58
|
|
56
|
-
|
57
|
-
|
59
|
+
attr_accessor :pulp_labels
|
60
|
+
|
61
|
+
# The URL of an external content source.
|
62
|
+
attr_accessor :url
|
58
63
|
|
59
64
|
# Timestamp of creation.
|
60
65
|
attr_accessor :pulp_created
|
61
66
|
|
62
|
-
attr_accessor :pulp_labels
|
63
|
-
|
64
67
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
65
68
|
attr_accessor :download_concurrency
|
66
69
|
|
67
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
68
|
-
attr_accessor :connect_timeout
|
69
|
-
|
70
70
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
71
71
|
attr_accessor :metadata_only
|
72
72
|
|
73
|
+
# A git ref. e.g.: branch, tag, or commit sha.
|
74
|
+
attr_accessor :git_ref
|
75
|
+
|
73
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
77
|
def self.attribute_map
|
75
78
|
{
|
79
|
+
:'name' => :'name',
|
80
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
81
|
+
:'client_cert' => :'client_cert',
|
76
82
|
:'headers' => :'headers',
|
77
|
-
:'proxy_url' => :'proxy_url',
|
78
|
-
:'total_timeout' => :'total_timeout',
|
79
|
-
:'url' => :'url',
|
80
83
|
:'pulp_href' => :'pulp_href',
|
81
|
-
:'
|
82
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
83
|
-
:'tls_validation' => :'tls_validation',
|
84
|
+
:'proxy_url' => :'proxy_url',
|
84
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
85
|
-
:'rate_limit' => :'rate_limit',
|
86
|
-
:'max_retries' => :'max_retries',
|
87
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
88
|
-
:'name' => :'name',
|
89
86
|
:'ca_cert' => :'ca_cert',
|
90
|
-
:'
|
87
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
88
|
+
:'max_retries' => :'max_retries',
|
89
|
+
:'rate_limit' => :'rate_limit',
|
90
|
+
:'total_timeout' => :'total_timeout',
|
91
|
+
:'connect_timeout' => :'connect_timeout',
|
92
|
+
:'tls_validation' => :'tls_validation',
|
91
93
|
:'pulp_labels' => :'pulp_labels',
|
94
|
+
:'url' => :'url',
|
95
|
+
:'pulp_created' => :'pulp_created',
|
92
96
|
:'download_concurrency' => :'download_concurrency',
|
93
|
-
:'
|
94
|
-
:'
|
97
|
+
:'metadata_only' => :'metadata_only',
|
98
|
+
:'git_ref' => :'git_ref'
|
95
99
|
}
|
96
100
|
end
|
97
101
|
|
98
102
|
# Attribute type mapping.
|
99
103
|
def self.openapi_types
|
100
104
|
{
|
105
|
+
:'name' => :'String',
|
106
|
+
:'sock_read_timeout' => :'Float',
|
107
|
+
:'client_cert' => :'String',
|
101
108
|
:'headers' => :'Array<Object>',
|
102
|
-
:'proxy_url' => :'String',
|
103
|
-
:'total_timeout' => :'Float',
|
104
|
-
:'url' => :'String',
|
105
109
|
:'pulp_href' => :'String',
|
106
|
-
:'
|
107
|
-
:'sock_connect_timeout' => :'Float',
|
108
|
-
:'tls_validation' => :'Boolean',
|
110
|
+
:'proxy_url' => :'String',
|
109
111
|
:'pulp_last_updated' => :'DateTime',
|
110
|
-
:'rate_limit' => :'Integer',
|
111
|
-
:'max_retries' => :'Integer',
|
112
|
-
:'sock_read_timeout' => :'Float',
|
113
|
-
:'name' => :'String',
|
114
112
|
:'ca_cert' => :'String',
|
115
|
-
:'
|
113
|
+
:'sock_connect_timeout' => :'Float',
|
114
|
+
:'max_retries' => :'Integer',
|
115
|
+
:'rate_limit' => :'Integer',
|
116
|
+
:'total_timeout' => :'Float',
|
117
|
+
:'connect_timeout' => :'Float',
|
118
|
+
:'tls_validation' => :'Boolean',
|
116
119
|
:'pulp_labels' => :'Object',
|
120
|
+
:'url' => :'String',
|
121
|
+
:'pulp_created' => :'DateTime',
|
117
122
|
:'download_concurrency' => :'Integer',
|
118
|
-
:'
|
119
|
-
:'
|
123
|
+
:'metadata_only' => :'Boolean',
|
124
|
+
:'git_ref' => :'String'
|
120
125
|
}
|
121
126
|
end
|
122
127
|
|
123
128
|
# List of attributes with nullable: true
|
124
129
|
def self.openapi_nullable
|
125
130
|
Set.new([
|
126
|
-
:'
|
127
|
-
:'total_timeout',
|
131
|
+
:'sock_read_timeout',
|
128
132
|
:'client_cert',
|
133
|
+
:'proxy_url',
|
134
|
+
:'ca_cert',
|
129
135
|
:'sock_connect_timeout',
|
130
|
-
:'rate_limit',
|
131
136
|
:'max_retries',
|
132
|
-
:'
|
133
|
-
:'
|
134
|
-
:'download_concurrency',
|
137
|
+
:'rate_limit',
|
138
|
+
:'total_timeout',
|
135
139
|
:'connect_timeout',
|
140
|
+
:'download_concurrency',
|
136
141
|
])
|
137
142
|
end
|
138
143
|
|
@@ -151,115 +156,119 @@ module PulpAnsibleClient
|
|
151
156
|
h[k.to_sym] = v
|
152
157
|
}
|
153
158
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
|
156
|
-
self.headers = value
|
157
|
-
end
|
159
|
+
if attributes.key?(:'name')
|
160
|
+
self.name = attributes[:'name']
|
158
161
|
end
|
159
162
|
|
160
|
-
if attributes.key?(:'
|
161
|
-
self.
|
163
|
+
if attributes.key?(:'sock_read_timeout')
|
164
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
162
165
|
end
|
163
166
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
167
|
+
if attributes.key?(:'client_cert')
|
168
|
+
self.client_cert = attributes[:'client_cert']
|
166
169
|
end
|
167
170
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
|
171
|
+
if attributes.key?(:'headers')
|
172
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
173
|
+
self.headers = value
|
174
|
+
end
|
170
175
|
end
|
171
176
|
|
172
177
|
if attributes.key?(:'pulp_href')
|
173
178
|
self.pulp_href = attributes[:'pulp_href']
|
174
179
|
end
|
175
180
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.key?(:'sock_connect_timeout')
|
181
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.key?(:'tls_validation')
|
185
|
-
self.tls_validation = attributes[:'tls_validation']
|
181
|
+
if attributes.key?(:'proxy_url')
|
182
|
+
self.proxy_url = attributes[:'proxy_url']
|
186
183
|
end
|
187
184
|
|
188
185
|
if attributes.key?(:'pulp_last_updated')
|
189
186
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
190
187
|
end
|
191
188
|
|
192
|
-
if attributes.key?(:'
|
193
|
-
self.
|
189
|
+
if attributes.key?(:'ca_cert')
|
190
|
+
self.ca_cert = attributes[:'ca_cert']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'sock_connect_timeout')
|
194
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
194
195
|
end
|
195
196
|
|
196
197
|
if attributes.key?(:'max_retries')
|
197
198
|
self.max_retries = attributes[:'max_retries']
|
198
199
|
end
|
199
200
|
|
200
|
-
if attributes.key?(:'
|
201
|
-
self.
|
201
|
+
if attributes.key?(:'rate_limit')
|
202
|
+
self.rate_limit = attributes[:'rate_limit']
|
202
203
|
end
|
203
204
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
self.
|
205
|
+
if attributes.key?(:'total_timeout')
|
206
|
+
self.total_timeout = attributes[:'total_timeout']
|
206
207
|
end
|
207
208
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
self.
|
209
|
+
if attributes.key?(:'connect_timeout')
|
210
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
210
211
|
end
|
211
212
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
213
|
+
if attributes.key?(:'tls_validation')
|
214
|
+
self.tls_validation = attributes[:'tls_validation']
|
214
215
|
end
|
215
216
|
|
216
217
|
if attributes.key?(:'pulp_labels')
|
217
218
|
self.pulp_labels = attributes[:'pulp_labels']
|
218
219
|
end
|
219
220
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
221
|
+
if attributes.key?(:'url')
|
222
|
+
self.url = attributes[:'url']
|
222
223
|
end
|
223
224
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
225
|
+
if attributes.key?(:'pulp_created')
|
226
|
+
self.pulp_created = attributes[:'pulp_created']
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.key?(:'download_concurrency')
|
230
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
226
231
|
end
|
227
232
|
|
228
233
|
if attributes.key?(:'metadata_only')
|
229
234
|
self.metadata_only = attributes[:'metadata_only']
|
230
235
|
end
|
236
|
+
|
237
|
+
if attributes.key?(:'git_ref')
|
238
|
+
self.git_ref = attributes[:'git_ref']
|
239
|
+
end
|
231
240
|
end
|
232
241
|
|
233
242
|
# Show invalid properties with the reasons. Usually used together with valid?
|
234
243
|
# @return Array for valid properties with the reasons
|
235
244
|
def list_invalid_properties
|
236
245
|
invalid_properties = Array.new
|
237
|
-
if
|
238
|
-
invalid_properties.push('invalid value for "
|
246
|
+
if @name.nil?
|
247
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
239
248
|
end
|
240
249
|
|
241
|
-
if
|
242
|
-
invalid_properties.push('invalid value for "
|
250
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
251
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
243
252
|
end
|
244
253
|
|
245
254
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
246
255
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
247
256
|
end
|
248
257
|
|
249
|
-
if !@
|
250
|
-
invalid_properties.push('invalid value for "
|
258
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
259
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
251
260
|
end
|
252
261
|
|
253
|
-
if
|
254
|
-
invalid_properties.push('invalid value for "
|
262
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
255
264
|
end
|
256
265
|
|
257
|
-
if
|
258
|
-
invalid_properties.push('invalid value for "
|
266
|
+
if @url.nil?
|
267
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
259
268
|
end
|
260
269
|
|
261
|
-
if !@
|
262
|
-
invalid_properties.push('invalid value for "
|
270
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
271
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
263
272
|
end
|
264
273
|
|
265
274
|
invalid_properties
|
@@ -268,24 +277,24 @@ module PulpAnsibleClient
|
|
268
277
|
# Check to see if the all the properties in the model are valid
|
269
278
|
# @return true if the model is valid
|
270
279
|
def valid?
|
280
|
+
return false if @name.nil?
|
281
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
282
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
271
283
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
284
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
272
285
|
return false if @url.nil?
|
273
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
274
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
-
return false if @name.nil?
|
276
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
277
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
278
287
|
true
|
279
288
|
end
|
280
289
|
|
281
290
|
# Custom attribute writer method with validation
|
282
|
-
# @param [Object]
|
283
|
-
def
|
284
|
-
if !
|
285
|
-
fail ArgumentError, 'invalid value for "
|
291
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
292
|
+
def sock_read_timeout=(sock_read_timeout)
|
293
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
294
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
286
295
|
end
|
287
296
|
|
288
|
-
@
|
297
|
+
@sock_read_timeout = sock_read_timeout
|
289
298
|
end
|
290
299
|
|
291
300
|
# Custom attribute writer method with validation
|
@@ -299,23 +308,13 @@ module PulpAnsibleClient
|
|
299
308
|
end
|
300
309
|
|
301
310
|
# Custom attribute writer method with validation
|
302
|
-
# @param [Object]
|
303
|
-
def
|
304
|
-
if !
|
305
|
-
fail ArgumentError, 'invalid value for "
|
306
|
-
end
|
307
|
-
|
308
|
-
@sock_read_timeout = sock_read_timeout
|
309
|
-
end
|
310
|
-
|
311
|
-
# Custom attribute writer method with validation
|
312
|
-
# @param [Object] download_concurrency Value to be assigned
|
313
|
-
def download_concurrency=(download_concurrency)
|
314
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
315
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
311
|
+
# @param [Object] total_timeout Value to be assigned
|
312
|
+
def total_timeout=(total_timeout)
|
313
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
314
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
316
315
|
end
|
317
316
|
|
318
|
-
@
|
317
|
+
@total_timeout = total_timeout
|
319
318
|
end
|
320
319
|
|
321
320
|
# Custom attribute writer method with validation
|
@@ -328,30 +327,41 @@ module PulpAnsibleClient
|
|
328
327
|
@connect_timeout = connect_timeout
|
329
328
|
end
|
330
329
|
|
330
|
+
# Custom attribute writer method with validation
|
331
|
+
# @param [Object] download_concurrency Value to be assigned
|
332
|
+
def download_concurrency=(download_concurrency)
|
333
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
334
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
335
|
+
end
|
336
|
+
|
337
|
+
@download_concurrency = download_concurrency
|
338
|
+
end
|
339
|
+
|
331
340
|
# Checks equality by comparing each attribute.
|
332
341
|
# @param [Object] Object to be compared
|
333
342
|
def ==(o)
|
334
343
|
return true if self.equal?(o)
|
335
344
|
self.class == o.class &&
|
345
|
+
name == o.name &&
|
346
|
+
sock_read_timeout == o.sock_read_timeout &&
|
347
|
+
client_cert == o.client_cert &&
|
336
348
|
headers == o.headers &&
|
337
|
-
proxy_url == o.proxy_url &&
|
338
|
-
total_timeout == o.total_timeout &&
|
339
|
-
url == o.url &&
|
340
349
|
pulp_href == o.pulp_href &&
|
341
|
-
|
342
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
343
|
-
tls_validation == o.tls_validation &&
|
350
|
+
proxy_url == o.proxy_url &&
|
344
351
|
pulp_last_updated == o.pulp_last_updated &&
|
345
|
-
rate_limit == o.rate_limit &&
|
346
|
-
max_retries == o.max_retries &&
|
347
|
-
sock_read_timeout == o.sock_read_timeout &&
|
348
|
-
name == o.name &&
|
349
352
|
ca_cert == o.ca_cert &&
|
350
|
-
|
353
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
354
|
+
max_retries == o.max_retries &&
|
355
|
+
rate_limit == o.rate_limit &&
|
356
|
+
total_timeout == o.total_timeout &&
|
357
|
+
connect_timeout == o.connect_timeout &&
|
358
|
+
tls_validation == o.tls_validation &&
|
351
359
|
pulp_labels == o.pulp_labels &&
|
360
|
+
url == o.url &&
|
361
|
+
pulp_created == o.pulp_created &&
|
352
362
|
download_concurrency == o.download_concurrency &&
|
353
|
-
|
354
|
-
|
363
|
+
metadata_only == o.metadata_only &&
|
364
|
+
git_ref == o.git_ref
|
355
365
|
end
|
356
366
|
|
357
367
|
# @see the `==` method
|
@@ -363,7 +373,7 @@ module PulpAnsibleClient
|
|
363
373
|
# Calculates hash code according to all attributes.
|
364
374
|
# @return [Integer] Hash code
|
365
375
|
def hash
|
366
|
-
[
|
376
|
+
[name, sock_read_timeout, client_cert, headers, pulp_href, proxy_url, pulp_last_updated, ca_cert, sock_connect_timeout, max_retries, rate_limit, total_timeout, connect_timeout, tls_validation, pulp_labels, url, pulp_created, download_concurrency, metadata_only, git_ref].hash
|
367
377
|
end
|
368
378
|
|
369
379
|
# Builds the object from hash
|
@@ -94,14 +94,26 @@ module PulpAnsibleClient
|
|
94
94
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
95
95
|
end
|
96
96
|
|
97
|
+
if @version.to_s.length < 1
|
98
|
+
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
99
|
+
end
|
100
|
+
|
97
101
|
if @name.nil?
|
98
102
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
103
|
end
|
100
104
|
|
105
|
+
if @name.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
101
109
|
if @namespace.nil?
|
102
110
|
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
103
111
|
end
|
104
112
|
|
113
|
+
if @namespace.to_s.length < 1
|
114
|
+
invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
105
117
|
invalid_properties
|
106
118
|
end
|
107
119
|
|
@@ -110,11 +122,56 @@ module PulpAnsibleClient
|
|
110
122
|
def valid?
|
111
123
|
return false if @artifact.nil?
|
112
124
|
return false if @version.nil?
|
125
|
+
return false if @version.to_s.length < 1
|
113
126
|
return false if @name.nil?
|
127
|
+
return false if @name.to_s.length < 1
|
114
128
|
return false if @namespace.nil?
|
129
|
+
return false if @namespace.to_s.length < 1
|
115
130
|
true
|
116
131
|
end
|
117
132
|
|
133
|
+
# Custom attribute writer method with validation
|
134
|
+
# @param [Object] version Value to be assigned
|
135
|
+
def version=(version)
|
136
|
+
if version.nil?
|
137
|
+
fail ArgumentError, 'version cannot be nil'
|
138
|
+
end
|
139
|
+
|
140
|
+
if version.to_s.length < 1
|
141
|
+
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
142
|
+
end
|
143
|
+
|
144
|
+
@version = version
|
145
|
+
end
|
146
|
+
|
147
|
+
# Custom attribute writer method with validation
|
148
|
+
# @param [Object] name Value to be assigned
|
149
|
+
def name=(name)
|
150
|
+
if name.nil?
|
151
|
+
fail ArgumentError, 'name cannot be nil'
|
152
|
+
end
|
153
|
+
|
154
|
+
if name.to_s.length < 1
|
155
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
156
|
+
end
|
157
|
+
|
158
|
+
@name = name
|
159
|
+
end
|
160
|
+
|
161
|
+
# Custom attribute writer method with validation
|
162
|
+
# @param [Object] namespace Value to be assigned
|
163
|
+
def namespace=(namespace)
|
164
|
+
if namespace.nil?
|
165
|
+
fail ArgumentError, 'namespace cannot be nil'
|
166
|
+
end
|
167
|
+
|
168
|
+
if namespace.to_s.length < 1
|
169
|
+
fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
|
170
|
+
end
|
171
|
+
|
172
|
+
@namespace = namespace
|
173
|
+
end
|
174
|
+
|
118
175
|
# Checks equality by comparing each attribute.
|
119
176
|
# @param [Object] Object to be compared
|
120
177
|
def ==(o)
|