pulp_ansible_client 0.24.12 → 0.24.13
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/AnsibleCollectionVersionResponse.md +8 -8
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +36 -36
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +165 -165
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +38 -38
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +128 -128
|
@@ -16,64 +16,64 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# Headers for aiohttp.Clientsession
|
|
23
|
-
attr_accessor :headers
|
|
24
|
-
|
|
25
|
-
# The URL of an external content source.
|
|
26
|
-
attr_accessor :url
|
|
27
|
-
|
|
28
|
-
# If True, TLS peer validation must be performed.
|
|
29
|
-
attr_accessor :tls_validation
|
|
19
|
+
# List of hidden (write only) fields
|
|
20
|
+
attr_accessor :hidden_fields
|
|
30
21
|
|
|
31
22
|
# Timestamp of creation.
|
|
32
23
|
attr_accessor :pulp_created
|
|
33
24
|
|
|
25
|
+
# 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.
|
|
26
|
+
attr_accessor :sock_connect_timeout
|
|
27
|
+
|
|
34
28
|
# Timestamp of the most recent update of the remote.
|
|
35
29
|
attr_accessor :pulp_last_updated
|
|
36
30
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
31
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
32
|
+
attr_accessor :max_retries
|
|
39
33
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
34
|
+
# Limits requests per second for each concurrent downloader
|
|
35
|
+
attr_accessor :rate_limit
|
|
42
36
|
|
|
43
|
-
#
|
|
44
|
-
attr_accessor :
|
|
37
|
+
# A PEM encoded client certificate used for authentication.
|
|
38
|
+
attr_accessor :client_cert
|
|
45
39
|
|
|
46
|
-
|
|
40
|
+
# Headers for aiohttp.Clientsession
|
|
41
|
+
attr_accessor :headers
|
|
42
|
+
|
|
43
|
+
# The proxy URL. Format: scheme://host:port
|
|
44
|
+
attr_accessor :proxy_url
|
|
45
|
+
|
|
46
|
+
attr_accessor :pulp_labels
|
|
47
47
|
|
|
48
48
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
49
49
|
attr_accessor :download_concurrency
|
|
50
50
|
|
|
51
|
-
# aiohttp.ClientTimeout.
|
|
52
|
-
attr_accessor :
|
|
51
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
52
|
+
attr_accessor :connect_timeout
|
|
53
53
|
|
|
54
|
-
#
|
|
55
|
-
attr_accessor :
|
|
54
|
+
# If True, TLS peer validation must be performed.
|
|
55
|
+
attr_accessor :tls_validation
|
|
56
56
|
|
|
57
|
-
#
|
|
58
|
-
attr_accessor :
|
|
57
|
+
# A unique name for this remote.
|
|
58
|
+
attr_accessor :name
|
|
59
59
|
|
|
60
|
-
# The
|
|
61
|
-
attr_accessor :
|
|
60
|
+
# 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.
|
|
61
|
+
attr_accessor :sock_read_timeout
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
# The URL of an external content source.
|
|
64
|
+
attr_accessor :url
|
|
64
65
|
|
|
65
66
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
66
67
|
attr_accessor :total_timeout
|
|
67
68
|
|
|
68
|
-
# The proxy URL. Format: scheme://host:port
|
|
69
|
-
attr_accessor :proxy_url
|
|
70
|
-
|
|
71
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
72
|
-
attr_accessor :max_retries
|
|
73
|
-
|
|
74
69
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
75
70
|
attr_accessor :ca_cert
|
|
76
71
|
|
|
72
|
+
attr_accessor :pulp_href
|
|
73
|
+
|
|
74
|
+
# The Pulp Resource Name (PRN).
|
|
75
|
+
attr_accessor :prn
|
|
76
|
+
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
78
78
|
attr_accessor :metadata_only
|
|
79
79
|
|
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
-
:'
|
|
87
|
-
:'headers' => :'headers',
|
|
88
|
-
:'url' => :'url',
|
|
89
|
-
:'tls_validation' => :'tls_validation',
|
|
86
|
+
:'hidden_fields' => :'hidden_fields',
|
|
90
87
|
:'pulp_created' => :'pulp_created',
|
|
91
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
92
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
93
|
-
:'name' => :'name',
|
|
94
|
-
:'connect_timeout' => :'connect_timeout',
|
|
95
|
-
:'pulp_href' => :'pulp_href',
|
|
96
|
-
:'download_concurrency' => :'download_concurrency',
|
|
97
88
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
89
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
90
|
+
:'max_retries' => :'max_retries',
|
|
98
91
|
:'rate_limit' => :'rate_limit',
|
|
99
|
-
:'
|
|
100
|
-
:'
|
|
92
|
+
:'client_cert' => :'client_cert',
|
|
93
|
+
:'headers' => :'headers',
|
|
94
|
+
:'proxy_url' => :'proxy_url',
|
|
101
95
|
:'pulp_labels' => :'pulp_labels',
|
|
96
|
+
:'download_concurrency' => :'download_concurrency',
|
|
97
|
+
:'connect_timeout' => :'connect_timeout',
|
|
98
|
+
:'tls_validation' => :'tls_validation',
|
|
99
|
+
:'name' => :'name',
|
|
100
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
101
|
+
:'url' => :'url',
|
|
102
102
|
:'total_timeout' => :'total_timeout',
|
|
103
|
-
:'proxy_url' => :'proxy_url',
|
|
104
|
-
:'max_retries' => :'max_retries',
|
|
105
103
|
:'ca_cert' => :'ca_cert',
|
|
104
|
+
:'pulp_href' => :'pulp_href',
|
|
105
|
+
:'prn' => :'prn',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
108
108
|
}
|
|
@@ -116,26 +116,26 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
-
:'
|
|
120
|
-
:'headers' => :'Array<Object>',
|
|
121
|
-
:'url' => :'String',
|
|
122
|
-
:'tls_validation' => :'Boolean',
|
|
119
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
123
120
|
:'pulp_created' => :'Time',
|
|
124
|
-
:'pulp_last_updated' => :'Time',
|
|
125
|
-
:'sock_read_timeout' => :'Float',
|
|
126
|
-
:'name' => :'String',
|
|
127
|
-
:'connect_timeout' => :'Float',
|
|
128
|
-
:'pulp_href' => :'String',
|
|
129
|
-
:'download_concurrency' => :'Integer',
|
|
130
121
|
:'sock_connect_timeout' => :'Float',
|
|
122
|
+
:'pulp_last_updated' => :'Time',
|
|
123
|
+
:'max_retries' => :'Integer',
|
|
131
124
|
:'rate_limit' => :'Integer',
|
|
132
|
-
:'
|
|
133
|
-
:'
|
|
125
|
+
:'client_cert' => :'String',
|
|
126
|
+
:'headers' => :'Array<Object>',
|
|
127
|
+
:'proxy_url' => :'String',
|
|
134
128
|
:'pulp_labels' => :'Hash<String, String>',
|
|
129
|
+
:'download_concurrency' => :'Integer',
|
|
130
|
+
:'connect_timeout' => :'Float',
|
|
131
|
+
:'tls_validation' => :'Boolean',
|
|
132
|
+
:'name' => :'String',
|
|
133
|
+
:'sock_read_timeout' => :'Float',
|
|
134
|
+
:'url' => :'String',
|
|
135
135
|
:'total_timeout' => :'Float',
|
|
136
|
-
:'proxy_url' => :'String',
|
|
137
|
-
:'max_retries' => :'Integer',
|
|
138
136
|
:'ca_cert' => :'String',
|
|
137
|
+
:'pulp_href' => :'String',
|
|
138
|
+
:'prn' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -144,15 +144,15 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
-
:'client_cert',
|
|
148
|
-
:'sock_read_timeout',
|
|
149
|
-
:'connect_timeout',
|
|
150
|
-
:'download_concurrency',
|
|
151
147
|
:'sock_connect_timeout',
|
|
148
|
+
:'max_retries',
|
|
152
149
|
:'rate_limit',
|
|
153
|
-
:'
|
|
150
|
+
:'client_cert',
|
|
154
151
|
:'proxy_url',
|
|
155
|
-
:'
|
|
152
|
+
:'download_concurrency',
|
|
153
|
+
:'connect_timeout',
|
|
154
|
+
:'sock_read_timeout',
|
|
155
|
+
:'total_timeout',
|
|
156
156
|
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
@@ -172,94 +172,94 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
|
|
175
|
+
if attributes.key?(:'hidden_fields')
|
|
176
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
177
|
+
self.hidden_fields = value
|
|
178
|
+
end
|
|
177
179
|
end
|
|
178
180
|
|
|
179
|
-
if attributes.key?(:'
|
|
180
|
-
|
|
181
|
-
self.headers = value
|
|
182
|
-
end
|
|
181
|
+
if attributes.key?(:'pulp_created')
|
|
182
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
187
|
-
else
|
|
188
|
-
self.url = nil
|
|
185
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
186
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
189
187
|
end
|
|
190
188
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
self.
|
|
189
|
+
if attributes.key?(:'pulp_last_updated')
|
|
190
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
193
191
|
end
|
|
194
192
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
193
|
+
if attributes.key?(:'max_retries')
|
|
194
|
+
self.max_retries = attributes[:'max_retries']
|
|
197
195
|
end
|
|
198
196
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
self.
|
|
197
|
+
if attributes.key?(:'rate_limit')
|
|
198
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
201
199
|
end
|
|
202
200
|
|
|
203
|
-
if attributes.key?(:'
|
|
204
|
-
self.
|
|
201
|
+
if attributes.key?(:'client_cert')
|
|
202
|
+
self.client_cert = attributes[:'client_cert']
|
|
205
203
|
end
|
|
206
204
|
|
|
207
|
-
if attributes.key?(:'
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
205
|
+
if attributes.key?(:'headers')
|
|
206
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
207
|
+
self.headers = value
|
|
208
|
+
end
|
|
211
209
|
end
|
|
212
210
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
self.
|
|
211
|
+
if attributes.key?(:'proxy_url')
|
|
212
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
215
213
|
end
|
|
216
214
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
|
|
215
|
+
if attributes.key?(:'pulp_labels')
|
|
216
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
217
|
+
self.pulp_labels = value
|
|
218
|
+
end
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
if attributes.key?(:'download_concurrency')
|
|
222
222
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
223
223
|
end
|
|
224
224
|
|
|
225
|
-
if attributes.key?(:'
|
|
226
|
-
self.
|
|
225
|
+
if attributes.key?(:'connect_timeout')
|
|
226
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
227
227
|
end
|
|
228
228
|
|
|
229
|
-
if attributes.key?(:'
|
|
230
|
-
self.
|
|
229
|
+
if attributes.key?(:'tls_validation')
|
|
230
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
-
if attributes.key?(:'
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
if attributes.key?(:'name')
|
|
234
|
+
self.name = attributes[:'name']
|
|
235
|
+
else
|
|
236
|
+
self.name = nil
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
if attributes.key?(:'
|
|
240
|
-
self.
|
|
239
|
+
if attributes.key?(:'sock_read_timeout')
|
|
240
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
if attributes.key?(:'
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
if attributes.key?(:'url')
|
|
244
|
+
self.url = attributes[:'url']
|
|
245
|
+
else
|
|
246
|
+
self.url = nil
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
if attributes.key?(:'total_timeout')
|
|
250
250
|
self.total_timeout = attributes[:'total_timeout']
|
|
251
251
|
end
|
|
252
252
|
|
|
253
|
-
if attributes.key?(:'
|
|
254
|
-
self.
|
|
253
|
+
if attributes.key?(:'ca_cert')
|
|
254
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
-
if attributes.key?(:'
|
|
258
|
-
self.
|
|
257
|
+
if attributes.key?(:'pulp_href')
|
|
258
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
if attributes.key?(:'
|
|
262
|
-
self.
|
|
261
|
+
if attributes.key?(:'prn')
|
|
262
|
+
self.prn = attributes[:'prn']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -276,28 +276,28 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
-
if
|
|
280
|
-
invalid_properties.push('invalid value for "
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
284
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
279
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
280
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
285
281
|
end
|
|
286
282
|
|
|
287
|
-
if
|
|
288
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
284
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
289
285
|
end
|
|
290
286
|
|
|
291
287
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
292
288
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
293
289
|
end
|
|
294
290
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
291
|
+
if @name.nil?
|
|
292
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
297
293
|
end
|
|
298
294
|
|
|
299
|
-
if !@
|
|
300
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
296
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if @url.nil?
|
|
300
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
301
301
|
end
|
|
302
302
|
|
|
303
303
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
@@ -311,34 +311,24 @@ module PulpAnsibleClient
|
|
|
311
311
|
# @return true if the model is valid
|
|
312
312
|
def valid?
|
|
313
313
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
|
-
return false if @url.nil?
|
|
315
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
316
|
-
return false if @name.nil?
|
|
317
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
318
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
319
314
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
316
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
317
|
+
return false if @name.nil?
|
|
318
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
319
|
+
return false if @url.nil?
|
|
320
320
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
324
324
|
# Custom attribute writer method with validation
|
|
325
|
-
# @param [Object]
|
|
326
|
-
def
|
|
327
|
-
if !
|
|
328
|
-
fail ArgumentError, 'invalid value for "
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
@sock_read_timeout = sock_read_timeout
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
# Custom attribute writer method with validation
|
|
335
|
-
# @param [Object] connect_timeout Value to be assigned
|
|
336
|
-
def connect_timeout=(connect_timeout)
|
|
337
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
338
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
325
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
326
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
339
329
|
end
|
|
340
330
|
|
|
341
|
-
@
|
|
331
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
342
332
|
end
|
|
343
333
|
|
|
344
334
|
# Custom attribute writer method with validation
|
|
@@ -352,13 +342,23 @@ module PulpAnsibleClient
|
|
|
352
342
|
end
|
|
353
343
|
|
|
354
344
|
# Custom attribute writer method with validation
|
|
355
|
-
# @param [Object]
|
|
356
|
-
def
|
|
357
|
-
if !
|
|
358
|
-
fail ArgumentError, 'invalid value for "
|
|
345
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
346
|
+
def connect_timeout=(connect_timeout)
|
|
347
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
348
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
359
349
|
end
|
|
360
350
|
|
|
361
|
-
@
|
|
351
|
+
@connect_timeout = connect_timeout
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Custom attribute writer method with validation
|
|
355
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
356
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
357
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
358
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
@sock_read_timeout = sock_read_timeout
|
|
362
362
|
end
|
|
363
363
|
|
|
364
364
|
# Custom attribute writer method with validation
|
|
@@ -376,26 +376,26 @@ module PulpAnsibleClient
|
|
|
376
376
|
def ==(o)
|
|
377
377
|
return true if self.equal?(o)
|
|
378
378
|
self.class == o.class &&
|
|
379
|
-
|
|
380
|
-
headers == o.headers &&
|
|
381
|
-
url == o.url &&
|
|
382
|
-
tls_validation == o.tls_validation &&
|
|
379
|
+
hidden_fields == o.hidden_fields &&
|
|
383
380
|
pulp_created == o.pulp_created &&
|
|
384
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
385
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
386
|
-
name == o.name &&
|
|
387
|
-
connect_timeout == o.connect_timeout &&
|
|
388
|
-
pulp_href == o.pulp_href &&
|
|
389
|
-
download_concurrency == o.download_concurrency &&
|
|
390
381
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
382
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
383
|
+
max_retries == o.max_retries &&
|
|
391
384
|
rate_limit == o.rate_limit &&
|
|
392
|
-
|
|
393
|
-
|
|
385
|
+
client_cert == o.client_cert &&
|
|
386
|
+
headers == o.headers &&
|
|
387
|
+
proxy_url == o.proxy_url &&
|
|
394
388
|
pulp_labels == o.pulp_labels &&
|
|
389
|
+
download_concurrency == o.download_concurrency &&
|
|
390
|
+
connect_timeout == o.connect_timeout &&
|
|
391
|
+
tls_validation == o.tls_validation &&
|
|
392
|
+
name == o.name &&
|
|
393
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
394
|
+
url == o.url &&
|
|
395
395
|
total_timeout == o.total_timeout &&
|
|
396
|
-
proxy_url == o.proxy_url &&
|
|
397
|
-
max_retries == o.max_retries &&
|
|
398
396
|
ca_cert == o.ca_cert &&
|
|
397
|
+
pulp_href == o.pulp_href &&
|
|
398
|
+
prn == o.prn &&
|
|
399
399
|
metadata_only == o.metadata_only &&
|
|
400
400
|
git_ref == o.git_ref
|
|
401
401
|
end
|
|
@@ -409,7 +409,7 @@ module PulpAnsibleClient
|
|
|
409
409
|
# Calculates hash code according to all attributes.
|
|
410
410
|
# @return [Integer] Hash code
|
|
411
411
|
def hash
|
|
412
|
-
[
|
|
412
|
+
[hidden_fields, pulp_created, sock_connect_timeout, pulp_last_updated, max_retries, rate_limit, client_cert, headers, proxy_url, pulp_labels, download_concurrency, connect_timeout, tls_validation, name, sock_read_timeout, url, total_timeout, ca_cert, pulp_href, prn, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -16,12 +16,12 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
-
# A URI of a repository the new content unit should be associated with.
|
|
20
|
-
attr_accessor :repository
|
|
21
|
-
|
|
22
19
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
20
|
attr_accessor :pulp_labels
|
|
24
21
|
|
|
22
|
+
# A URI of a repository the new content unit should be associated with.
|
|
23
|
+
attr_accessor :repository
|
|
24
|
+
|
|
25
25
|
# Artifact file representing the physical content
|
|
26
26
|
attr_accessor :artifact
|
|
27
27
|
|
|
@@ -34,8 +34,8 @@ module PulpAnsibleClient
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
-
:'repository' => :'repository',
|
|
38
37
|
:'pulp_labels' => :'pulp_labels',
|
|
38
|
+
:'repository' => :'repository',
|
|
39
39
|
:'artifact' => :'artifact',
|
|
40
40
|
:'version' => :'version',
|
|
41
41
|
:'name' => :'name',
|
|
@@ -51,8 +51,8 @@ module PulpAnsibleClient
|
|
|
51
51
|
# Attribute type mapping.
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
|
-
:'repository' => :'String',
|
|
55
54
|
:'pulp_labels' => :'Hash<String, String>',
|
|
55
|
+
:'repository' => :'String',
|
|
56
56
|
:'artifact' => :'String',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
@@ -81,16 +81,16 @@ module PulpAnsibleClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'repository')
|
|
85
|
-
self.repository = attributes[:'repository']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
84
|
if attributes.key?(:'pulp_labels')
|
|
89
85
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
90
86
|
self.pulp_labels = value
|
|
91
87
|
end
|
|
92
88
|
end
|
|
93
89
|
|
|
90
|
+
if attributes.key?(:'repository')
|
|
91
|
+
self.repository = attributes[:'repository']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
94
|
if attributes.key?(:'artifact')
|
|
95
95
|
self.artifact = attributes[:'artifact']
|
|
96
96
|
else
|
|
@@ -213,8 +213,8 @@ module PulpAnsibleClient
|
|
|
213
213
|
def ==(o)
|
|
214
214
|
return true if self.equal?(o)
|
|
215
215
|
self.class == o.class &&
|
|
216
|
-
repository == o.repository &&
|
|
217
216
|
pulp_labels == o.pulp_labels &&
|
|
217
|
+
repository == o.repository &&
|
|
218
218
|
artifact == o.artifact &&
|
|
219
219
|
version == o.version &&
|
|
220
220
|
name == o.name &&
|
|
@@ -230,7 +230,7 @@ module PulpAnsibleClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[
|
|
233
|
+
[pulp_labels, repository, artifact, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|