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