pulp_ansible_client 0.22.9 → 0.22.10
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/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +31 -31
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +167 -167
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +24 -24
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +248 -248
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +127 -127
|
@@ -15,63 +15,63 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for Git Collection Remotes.
|
|
17
17
|
class AnsibleGitRemoteResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
22
|
-
attr_accessor :download_concurrency
|
|
18
|
+
# 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.
|
|
19
|
+
attr_accessor :sock_connect_timeout
|
|
23
20
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
21
|
+
# Timestamp of the most recent update of the remote.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
26
23
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
24
|
+
# List of hidden (write only) fields
|
|
25
|
+
attr_accessor :hidden_fields
|
|
29
26
|
|
|
30
|
-
# The
|
|
31
|
-
attr_accessor :
|
|
27
|
+
# The Pulp Resource Name (PRN).
|
|
28
|
+
attr_accessor :prn
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
# A unique name for this remote.
|
|
31
|
+
attr_accessor :name
|
|
34
32
|
|
|
35
33
|
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
36
34
|
attr_accessor :connect_timeout
|
|
37
35
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
|
37
|
+
attr_accessor :proxy_url
|
|
38
|
+
|
|
39
|
+
# Headers for aiohttp.Clientsession
|
|
40
|
+
attr_accessor :headers
|
|
41
|
+
|
|
42
|
+
# A PEM encoded client certificate used for authentication.
|
|
43
|
+
attr_accessor :client_cert
|
|
40
44
|
|
|
41
45
|
# Limits requests per second for each concurrent downloader
|
|
42
46
|
attr_accessor :rate_limit
|
|
43
47
|
|
|
44
|
-
# aiohttp.ClientTimeout.
|
|
45
|
-
attr_accessor :
|
|
48
|
+
# 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.
|
|
49
|
+
attr_accessor :sock_read_timeout
|
|
46
50
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
51
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
52
|
+
attr_accessor :ca_cert
|
|
49
53
|
|
|
50
54
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
51
55
|
attr_accessor :max_retries
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
attr_accessor :prn
|
|
55
|
-
|
|
56
|
-
# Timestamp of the most recent update of the remote.
|
|
57
|
-
attr_accessor :pulp_last_updated
|
|
57
|
+
attr_accessor :pulp_labels
|
|
58
58
|
|
|
59
|
-
#
|
|
60
|
-
attr_accessor :
|
|
59
|
+
# 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
|
+
attr_accessor :total_timeout
|
|
61
61
|
|
|
62
|
-
#
|
|
63
|
-
attr_accessor :
|
|
62
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
63
|
+
attr_accessor :download_concurrency
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
attr_accessor :headers
|
|
65
|
+
attr_accessor :pulp_href
|
|
67
66
|
|
|
68
|
-
#
|
|
69
|
-
attr_accessor :
|
|
67
|
+
# Timestamp of creation.
|
|
68
|
+
attr_accessor :pulp_created
|
|
70
69
|
|
|
71
|
-
|
|
70
|
+
# If True, TLS peer validation must be performed.
|
|
71
|
+
attr_accessor :tls_validation
|
|
72
72
|
|
|
73
|
-
#
|
|
74
|
-
attr_accessor :
|
|
73
|
+
# The URL of an external content source.
|
|
74
|
+
attr_accessor :url
|
|
75
75
|
|
|
76
76
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
77
77
|
attr_accessor :metadata_only
|
|
@@ -82,26 +82,26 @@ module PulpAnsibleClient
|
|
|
82
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
83
83
|
def self.attribute_map
|
|
84
84
|
{
|
|
85
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
86
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
87
|
+
:'hidden_fields' => :'hidden_fields',
|
|
88
|
+
:'prn' => :'prn',
|
|
89
|
+
:'name' => :'name',
|
|
90
|
+
:'connect_timeout' => :'connect_timeout',
|
|
91
|
+
:'proxy_url' => :'proxy_url',
|
|
92
|
+
:'headers' => :'headers',
|
|
85
93
|
:'client_cert' => :'client_cert',
|
|
86
|
-
:'
|
|
87
|
-
:'
|
|
94
|
+
:'rate_limit' => :'rate_limit',
|
|
95
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
88
96
|
:'ca_cert' => :'ca_cert',
|
|
89
|
-
:'
|
|
97
|
+
:'max_retries' => :'max_retries',
|
|
90
98
|
:'pulp_labels' => :'pulp_labels',
|
|
91
|
-
:'connect_timeout' => :'connect_timeout',
|
|
92
99
|
:'total_timeout' => :'total_timeout',
|
|
93
|
-
:'
|
|
94
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
95
|
-
:'tls_validation' => :'tls_validation',
|
|
96
|
-
:'max_retries' => :'max_retries',
|
|
97
|
-
:'prn' => :'prn',
|
|
98
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
99
|
-
:'pulp_created' => :'pulp_created',
|
|
100
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
101
|
-
:'headers' => :'headers',
|
|
102
|
-
:'hidden_fields' => :'hidden_fields',
|
|
100
|
+
:'download_concurrency' => :'download_concurrency',
|
|
103
101
|
:'pulp_href' => :'pulp_href',
|
|
104
|
-
:'
|
|
102
|
+
:'pulp_created' => :'pulp_created',
|
|
103
|
+
:'tls_validation' => :'tls_validation',
|
|
104
|
+
:'url' => :'url',
|
|
105
105
|
:'metadata_only' => :'metadata_only',
|
|
106
106
|
:'git_ref' => :'git_ref'
|
|
107
107
|
}
|
|
@@ -110,26 +110,26 @@ module PulpAnsibleClient
|
|
|
110
110
|
# Attribute type mapping.
|
|
111
111
|
def self.openapi_types
|
|
112
112
|
{
|
|
113
|
+
:'sock_connect_timeout' => :'Float',
|
|
114
|
+
:'pulp_last_updated' => :'DateTime',
|
|
115
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
|
116
|
+
:'prn' => :'String',
|
|
117
|
+
:'name' => :'String',
|
|
118
|
+
:'connect_timeout' => :'Float',
|
|
119
|
+
:'proxy_url' => :'String',
|
|
120
|
+
:'headers' => :'Array<Object>',
|
|
113
121
|
:'client_cert' => :'String',
|
|
114
|
-
:'
|
|
115
|
-
:'
|
|
122
|
+
:'rate_limit' => :'Integer',
|
|
123
|
+
:'sock_read_timeout' => :'Float',
|
|
116
124
|
:'ca_cert' => :'String',
|
|
117
|
-
:'
|
|
125
|
+
:'max_retries' => :'Integer',
|
|
118
126
|
:'pulp_labels' => :'Hash<String, String>',
|
|
119
|
-
:'connect_timeout' => :'Float',
|
|
120
127
|
:'total_timeout' => :'Float',
|
|
121
|
-
:'
|
|
122
|
-
:'sock_connect_timeout' => :'Float',
|
|
123
|
-
:'tls_validation' => :'Boolean',
|
|
124
|
-
:'max_retries' => :'Integer',
|
|
125
|
-
:'prn' => :'String',
|
|
126
|
-
:'pulp_last_updated' => :'DateTime',
|
|
127
|
-
:'pulp_created' => :'DateTime',
|
|
128
|
-
:'sock_read_timeout' => :'Float',
|
|
129
|
-
:'headers' => :'Array<Object>',
|
|
130
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
|
128
|
+
:'download_concurrency' => :'Integer',
|
|
131
129
|
:'pulp_href' => :'String',
|
|
132
|
-
:'
|
|
130
|
+
:'pulp_created' => :'DateTime',
|
|
131
|
+
:'tls_validation' => :'Boolean',
|
|
132
|
+
:'url' => :'String',
|
|
133
133
|
:'metadata_only' => :'Boolean',
|
|
134
134
|
:'git_ref' => :'String'
|
|
135
135
|
}
|
|
@@ -138,16 +138,16 @@ module PulpAnsibleClient
|
|
|
138
138
|
# List of attributes with nullable: true
|
|
139
139
|
def self.openapi_nullable
|
|
140
140
|
Set.new([
|
|
141
|
-
:'
|
|
142
|
-
:'download_concurrency',
|
|
143
|
-
:'ca_cert',
|
|
144
|
-
:'proxy_url',
|
|
141
|
+
:'sock_connect_timeout',
|
|
145
142
|
:'connect_timeout',
|
|
146
|
-
:'
|
|
143
|
+
:'proxy_url',
|
|
144
|
+
:'client_cert',
|
|
147
145
|
:'rate_limit',
|
|
148
|
-
:'sock_connect_timeout',
|
|
149
|
-
:'max_retries',
|
|
150
146
|
:'sock_read_timeout',
|
|
147
|
+
:'ca_cert',
|
|
148
|
+
:'max_retries',
|
|
149
|
+
:'total_timeout',
|
|
150
|
+
:'download_concurrency',
|
|
151
151
|
])
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -166,90 +166,90 @@ module PulpAnsibleClient
|
|
|
166
166
|
h[k.to_sym] = v
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
if attributes.key?(:'
|
|
170
|
-
self.
|
|
169
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
170
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
171
171
|
end
|
|
172
172
|
|
|
173
|
-
if attributes.key?(:'
|
|
174
|
-
self.
|
|
173
|
+
if attributes.key?(:'pulp_last_updated')
|
|
174
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
if attributes.key?(:'
|
|
178
|
-
|
|
177
|
+
if attributes.key?(:'hidden_fields')
|
|
178
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
179
|
+
self.hidden_fields = value
|
|
180
|
+
end
|
|
179
181
|
end
|
|
180
182
|
|
|
181
|
-
if attributes.key?(:'
|
|
182
|
-
self.
|
|
183
|
+
if attributes.key?(:'prn')
|
|
184
|
+
self.prn = attributes[:'prn']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'name')
|
|
188
|
+
self.name = attributes[:'name']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'connect_timeout')
|
|
192
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
183
193
|
end
|
|
184
194
|
|
|
185
195
|
if attributes.key?(:'proxy_url')
|
|
186
196
|
self.proxy_url = attributes[:'proxy_url']
|
|
187
197
|
end
|
|
188
198
|
|
|
189
|
-
if attributes.key?(:'
|
|
190
|
-
if (value = attributes[:'
|
|
191
|
-
self.
|
|
199
|
+
if attributes.key?(:'headers')
|
|
200
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
201
|
+
self.headers = value
|
|
192
202
|
end
|
|
193
203
|
end
|
|
194
204
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
if attributes.key?(:'total_timeout')
|
|
200
|
-
self.total_timeout = attributes[:'total_timeout']
|
|
205
|
+
if attributes.key?(:'client_cert')
|
|
206
|
+
self.client_cert = attributes[:'client_cert']
|
|
201
207
|
end
|
|
202
208
|
|
|
203
209
|
if attributes.key?(:'rate_limit')
|
|
204
210
|
self.rate_limit = attributes[:'rate_limit']
|
|
205
211
|
end
|
|
206
212
|
|
|
207
|
-
if attributes.key?(:'
|
|
208
|
-
self.
|
|
213
|
+
if attributes.key?(:'sock_read_timeout')
|
|
214
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
209
215
|
end
|
|
210
216
|
|
|
211
|
-
if attributes.key?(:'
|
|
212
|
-
self.
|
|
217
|
+
if attributes.key?(:'ca_cert')
|
|
218
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
213
219
|
end
|
|
214
220
|
|
|
215
221
|
if attributes.key?(:'max_retries')
|
|
216
222
|
self.max_retries = attributes[:'max_retries']
|
|
217
223
|
end
|
|
218
224
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if attributes.key?(:'pulp_last_updated')
|
|
224
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
225
|
+
if attributes.key?(:'pulp_labels')
|
|
226
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
227
|
+
self.pulp_labels = value
|
|
228
|
+
end
|
|
225
229
|
end
|
|
226
230
|
|
|
227
|
-
if attributes.key?(:'
|
|
228
|
-
self.
|
|
231
|
+
if attributes.key?(:'total_timeout')
|
|
232
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
229
233
|
end
|
|
230
234
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
235
|
+
if attributes.key?(:'download_concurrency')
|
|
236
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
233
237
|
end
|
|
234
238
|
|
|
235
|
-
if attributes.key?(:'
|
|
236
|
-
|
|
237
|
-
self.headers = value
|
|
238
|
-
end
|
|
239
|
+
if attributes.key?(:'pulp_href')
|
|
240
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
239
241
|
end
|
|
240
242
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
|
|
243
|
-
self.hidden_fields = value
|
|
244
|
-
end
|
|
243
|
+
if attributes.key?(:'pulp_created')
|
|
244
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
245
245
|
end
|
|
246
246
|
|
|
247
|
-
if attributes.key?(:'
|
|
248
|
-
self.
|
|
247
|
+
if attributes.key?(:'tls_validation')
|
|
248
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
251
|
+
if attributes.key?(:'url')
|
|
252
|
+
self.url = attributes[:'url']
|
|
253
253
|
end
|
|
254
254
|
|
|
255
255
|
if attributes.key?(:'metadata_only')
|
|
@@ -265,32 +265,32 @@ module PulpAnsibleClient
|
|
|
265
265
|
# @return Array for valid properties with the reasons
|
|
266
266
|
def list_invalid_properties
|
|
267
267
|
invalid_properties = Array.new
|
|
268
|
-
if !@
|
|
269
|
-
invalid_properties.push('invalid value for "
|
|
268
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
269
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
-
if @
|
|
273
|
-
invalid_properties.push('invalid value for "
|
|
272
|
+
if @name.nil?
|
|
273
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
274
274
|
end
|
|
275
275
|
|
|
276
276
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
277
277
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
if !@
|
|
281
|
-
invalid_properties.push('invalid value for "
|
|
280
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
281
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
282
282
|
end
|
|
283
283
|
|
|
284
|
-
if !@
|
|
285
|
-
invalid_properties.push('invalid value for "
|
|
284
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
285
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
-
if !@
|
|
289
|
-
invalid_properties.push('invalid value for "
|
|
288
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
289
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
290
290
|
end
|
|
291
291
|
|
|
292
|
-
if @
|
|
293
|
-
invalid_properties.push('invalid value for "
|
|
292
|
+
if @url.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
294
294
|
end
|
|
295
295
|
|
|
296
296
|
invalid_properties
|
|
@@ -299,24 +299,24 @@ module PulpAnsibleClient
|
|
|
299
299
|
# Check to see if the all the properties in the model are valid
|
|
300
300
|
# @return true if the model is valid
|
|
301
301
|
def valid?
|
|
302
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
303
|
-
return false if @url.nil?
|
|
304
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
305
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
306
302
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
307
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
308
303
|
return false if @name.nil?
|
|
304
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
305
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
306
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
307
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
308
|
+
return false if @url.nil?
|
|
309
309
|
true
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
# Custom attribute writer method with validation
|
|
313
|
-
# @param [Object]
|
|
314
|
-
def
|
|
315
|
-
if !
|
|
316
|
-
fail ArgumentError, 'invalid value for "
|
|
313
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
314
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
315
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
316
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
@
|
|
319
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
320
320
|
end
|
|
321
321
|
|
|
322
322
|
# Custom attribute writer method with validation
|
|
@@ -330,33 +330,33 @@ module PulpAnsibleClient
|
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
# Custom attribute writer method with validation
|
|
333
|
-
# @param [Object]
|
|
334
|
-
def
|
|
335
|
-
if !
|
|
336
|
-
fail ArgumentError, 'invalid value for "
|
|
333
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
334
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
335
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
336
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
-
@
|
|
339
|
+
@sock_read_timeout = sock_read_timeout
|
|
340
340
|
end
|
|
341
341
|
|
|
342
342
|
# Custom attribute writer method with validation
|
|
343
|
-
# @param [Object]
|
|
344
|
-
def
|
|
345
|
-
if !
|
|
346
|
-
fail ArgumentError, 'invalid value for "
|
|
343
|
+
# @param [Object] total_timeout Value to be assigned
|
|
344
|
+
def total_timeout=(total_timeout)
|
|
345
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
346
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
-
@
|
|
349
|
+
@total_timeout = total_timeout
|
|
350
350
|
end
|
|
351
351
|
|
|
352
352
|
# Custom attribute writer method with validation
|
|
353
|
-
# @param [Object]
|
|
354
|
-
def
|
|
355
|
-
if !
|
|
356
|
-
fail ArgumentError, 'invalid value for "
|
|
353
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
354
|
+
def download_concurrency=(download_concurrency)
|
|
355
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
356
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
357
357
|
end
|
|
358
358
|
|
|
359
|
-
@
|
|
359
|
+
@download_concurrency = download_concurrency
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
# Checks equality by comparing each attribute.
|
|
@@ -364,26 +364,26 @@ module PulpAnsibleClient
|
|
|
364
364
|
def ==(o)
|
|
365
365
|
return true if self.equal?(o)
|
|
366
366
|
self.class == o.class &&
|
|
367
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
368
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
369
|
+
hidden_fields == o.hidden_fields &&
|
|
370
|
+
prn == o.prn &&
|
|
371
|
+
name == o.name &&
|
|
372
|
+
connect_timeout == o.connect_timeout &&
|
|
373
|
+
proxy_url == o.proxy_url &&
|
|
374
|
+
headers == o.headers &&
|
|
367
375
|
client_cert == o.client_cert &&
|
|
368
|
-
|
|
369
|
-
|
|
376
|
+
rate_limit == o.rate_limit &&
|
|
377
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
370
378
|
ca_cert == o.ca_cert &&
|
|
371
|
-
|
|
379
|
+
max_retries == o.max_retries &&
|
|
372
380
|
pulp_labels == o.pulp_labels &&
|
|
373
|
-
connect_timeout == o.connect_timeout &&
|
|
374
381
|
total_timeout == o.total_timeout &&
|
|
375
|
-
|
|
376
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
377
|
-
tls_validation == o.tls_validation &&
|
|
378
|
-
max_retries == o.max_retries &&
|
|
379
|
-
prn == o.prn &&
|
|
380
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
381
|
-
pulp_created == o.pulp_created &&
|
|
382
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
383
|
-
headers == o.headers &&
|
|
384
|
-
hidden_fields == o.hidden_fields &&
|
|
382
|
+
download_concurrency == o.download_concurrency &&
|
|
385
383
|
pulp_href == o.pulp_href &&
|
|
386
|
-
|
|
384
|
+
pulp_created == o.pulp_created &&
|
|
385
|
+
tls_validation == o.tls_validation &&
|
|
386
|
+
url == o.url &&
|
|
387
387
|
metadata_only == o.metadata_only &&
|
|
388
388
|
git_ref == o.git_ref
|
|
389
389
|
end
|
|
@@ -397,7 +397,7 @@ module PulpAnsibleClient
|
|
|
397
397
|
# Calculates hash code according to all attributes.
|
|
398
398
|
# @return [Integer] Hash code
|
|
399
399
|
def hash
|
|
400
|
-
[
|
|
400
|
+
[sock_connect_timeout, pulp_last_updated, hidden_fields, prn, name, connect_timeout, proxy_url, headers, client_cert, rate_limit, sock_read_timeout, ca_cert, max_retries, pulp_labels, total_timeout, download_concurrency, pulp_href, pulp_created, tls_validation, url, metadata_only, git_ref].hash
|
|
401
401
|
end
|
|
402
402
|
|
|
403
403
|
# Builds the object from hash
|
|
@@ -15,20 +15,20 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for Role versions.
|
|
17
17
|
class AnsibleRoleResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# Artifact file representing the physical content
|
|
19
|
+
attr_accessor :artifact
|
|
20
20
|
|
|
21
21
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
22
|
attr_accessor :pulp_last_updated
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# The Pulp Resource Name (PRN).
|
|
25
|
+
attr_accessor :prn
|
|
26
|
+
|
|
27
|
+
attr_accessor :pulp_href
|
|
26
28
|
|
|
27
29
|
# Timestamp of creation.
|
|
28
30
|
attr_accessor :pulp_created
|
|
29
31
|
|
|
30
|
-
attr_accessor :pulp_href
|
|
31
|
-
|
|
32
32
|
attr_accessor :version
|
|
33
33
|
|
|
34
34
|
attr_accessor :name
|
|
@@ -38,11 +38,11 @@ module PulpAnsibleClient
|
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
39
39
|
def self.attribute_map
|
|
40
40
|
{
|
|
41
|
-
:'prn' => :'prn',
|
|
42
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
43
41
|
:'artifact' => :'artifact',
|
|
44
|
-
:'
|
|
42
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
43
|
+
:'prn' => :'prn',
|
|
45
44
|
:'pulp_href' => :'pulp_href',
|
|
45
|
+
:'pulp_created' => :'pulp_created',
|
|
46
46
|
:'version' => :'version',
|
|
47
47
|
:'name' => :'name',
|
|
48
48
|
:'namespace' => :'namespace'
|
|
@@ -52,11 +52,11 @@ module PulpAnsibleClient
|
|
|
52
52
|
# Attribute type mapping.
|
|
53
53
|
def self.openapi_types
|
|
54
54
|
{
|
|
55
|
-
:'prn' => :'String',
|
|
56
|
-
:'pulp_last_updated' => :'DateTime',
|
|
57
55
|
:'artifact' => :'String',
|
|
58
|
-
:'
|
|
56
|
+
:'pulp_last_updated' => :'DateTime',
|
|
57
|
+
:'prn' => :'String',
|
|
59
58
|
:'pulp_href' => :'String',
|
|
59
|
+
:'pulp_created' => :'DateTime',
|
|
60
60
|
:'version' => :'String',
|
|
61
61
|
:'name' => :'String',
|
|
62
62
|
:'namespace' => :'String'
|
|
@@ -84,26 +84,26 @@ module PulpAnsibleClient
|
|
|
84
84
|
h[k.to_sym] = v
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
if attributes.key?(:'
|
|
88
|
-
self.
|
|
87
|
+
if attributes.key?(:'artifact')
|
|
88
|
+
self.artifact = attributes[:'artifact']
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
if attributes.key?(:'pulp_last_updated')
|
|
92
92
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.key?(:'pulp_created')
|
|
100
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
95
|
+
if attributes.key?(:'prn')
|
|
96
|
+
self.prn = attributes[:'prn']
|
|
101
97
|
end
|
|
102
98
|
|
|
103
99
|
if attributes.key?(:'pulp_href')
|
|
104
100
|
self.pulp_href = attributes[:'pulp_href']
|
|
105
101
|
end
|
|
106
102
|
|
|
103
|
+
if attributes.key?(:'pulp_created')
|
|
104
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
107
|
if attributes.key?(:'version')
|
|
108
108
|
self.version = attributes[:'version']
|
|
109
109
|
end
|
|
@@ -155,11 +155,11 @@ module PulpAnsibleClient
|
|
|
155
155
|
def ==(o)
|
|
156
156
|
return true if self.equal?(o)
|
|
157
157
|
self.class == o.class &&
|
|
158
|
-
prn == o.prn &&
|
|
159
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
160
158
|
artifact == o.artifact &&
|
|
161
|
-
|
|
159
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
160
|
+
prn == o.prn &&
|
|
162
161
|
pulp_href == o.pulp_href &&
|
|
162
|
+
pulp_created == o.pulp_created &&
|
|
163
163
|
version == o.version &&
|
|
164
164
|
name == o.name &&
|
|
165
165
|
namespace == o.namespace
|
|
@@ -174,7 +174,7 @@ module PulpAnsibleClient
|
|
|
174
174
|
# Calculates hash code according to all attributes.
|
|
175
175
|
# @return [Integer] Hash code
|
|
176
176
|
def hash
|
|
177
|
-
[
|
|
177
|
+
[artifact, pulp_last_updated, prn, pulp_href, pulp_created, version, name, namespace].hash
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# Builds the object from hash
|