pulp_ansible_client 0.28.0 → 0.28.1
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 +4 -4
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +30 -30
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +2 -2
- data/docs/DistributionsAnsibleApi.md +10 -10
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesCollectionApi.md +10 -10
- data/docs/RemotesGitApi.md +10 -10
- data/docs/RemotesRoleApi.md +10 -10
- data/docs/RepositoriesAnsibleApi.md +10 -10
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +10 -10
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +239 -239
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +160 -160
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/distributions_ansible_api_spec.rb +4 -4
- data/spec/api/remotes_collection_api_spec.rb +4 -4
- data/spec/api/remotes_git_api_spec.rb +4 -4
- data/spec/api/remotes_role_api_spec.rb +4 -4
- data/spec/api/repositories_ansible_api_spec.rb +4 -4
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- 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 +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +125 -125
|
@@ -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 :
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
23
|
+
attr_accessor :connect_timeout
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# A unique name for this remote.
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
attr_accessor :pulp_labels
|
|
27
29
|
|
|
28
30
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
29
31
|
attr_accessor :download_concurrency
|
|
30
32
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
33
|
-
|
|
34
|
-
# A PEM encoded client certificate used for authentication.
|
|
35
|
-
attr_accessor :client_cert
|
|
33
|
+
# 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.
|
|
34
|
+
attr_accessor :sock_read_timeout
|
|
36
35
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
36
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
37
|
+
attr_accessor :max_retries
|
|
39
38
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
39
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
40
|
+
attr_accessor :ca_cert
|
|
42
41
|
|
|
43
42
|
# List of hidden (write only) fields
|
|
44
43
|
attr_accessor :hidden_fields
|
|
45
44
|
|
|
46
|
-
#
|
|
47
|
-
attr_accessor :
|
|
45
|
+
# Limits requests per second for each concurrent downloader
|
|
46
|
+
attr_accessor :rate_limit
|
|
48
47
|
|
|
49
|
-
#
|
|
50
|
-
attr_accessor :
|
|
48
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
49
|
+
attr_accessor :total_timeout
|
|
51
50
|
|
|
52
|
-
#
|
|
53
|
-
attr_accessor :
|
|
51
|
+
# The Pulp Resource Name (PRN).
|
|
52
|
+
attr_accessor :prn
|
|
54
53
|
|
|
55
54
|
attr_accessor :pulp_href
|
|
56
55
|
|
|
57
|
-
#
|
|
58
|
-
attr_accessor :
|
|
56
|
+
# The proxy URL. Format: scheme://host:port
|
|
57
|
+
attr_accessor :proxy_url
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
# If True, TLS peer validation must be performed.
|
|
60
|
+
attr_accessor :tls_validation
|
|
61
61
|
|
|
62
|
-
#
|
|
63
|
-
attr_accessor :
|
|
62
|
+
# Timestamp of the most recent update of the remote.
|
|
63
|
+
attr_accessor :pulp_last_updated
|
|
64
64
|
|
|
65
|
-
#
|
|
66
|
-
attr_accessor :
|
|
65
|
+
# A PEM encoded client certificate used for authentication.
|
|
66
|
+
attr_accessor :client_cert
|
|
67
67
|
|
|
68
|
-
#
|
|
69
|
-
attr_accessor :
|
|
68
|
+
# Headers for aiohttp.Clientsession
|
|
69
|
+
attr_accessor :headers
|
|
70
|
+
|
|
71
|
+
# 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.
|
|
72
|
+
attr_accessor :sock_connect_timeout
|
|
70
73
|
|
|
71
74
|
# The URL of an external content source.
|
|
72
75
|
attr_accessor :url
|
|
73
76
|
|
|
74
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
75
|
-
attr_accessor :ca_cert
|
|
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
|
-
:'
|
|
88
|
-
:'
|
|
86
|
+
:'pulp_created' => :'pulp_created',
|
|
87
|
+
:'connect_timeout' => :'connect_timeout',
|
|
88
|
+
:'name' => :'name',
|
|
89
|
+
:'pulp_labels' => :'pulp_labels',
|
|
89
90
|
:'download_concurrency' => :'download_concurrency',
|
|
91
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
92
|
+
:'max_retries' => :'max_retries',
|
|
93
|
+
:'ca_cert' => :'ca_cert',
|
|
94
|
+
:'hidden_fields' => :'hidden_fields',
|
|
95
|
+
:'rate_limit' => :'rate_limit',
|
|
96
|
+
:'total_timeout' => :'total_timeout',
|
|
97
|
+
:'prn' => :'prn',
|
|
98
|
+
:'pulp_href' => :'pulp_href',
|
|
90
99
|
:'proxy_url' => :'proxy_url',
|
|
100
|
+
:'tls_validation' => :'tls_validation',
|
|
101
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
91
102
|
:'client_cert' => :'client_cert',
|
|
92
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
93
|
-
:'pulp_created' => :'pulp_created',
|
|
94
|
-
:'hidden_fields' => :'hidden_fields',
|
|
95
103
|
:'headers' => :'headers',
|
|
96
|
-
:'
|
|
97
|
-
:'max_retries' => :'max_retries',
|
|
98
|
-
:'pulp_href' => :'pulp_href',
|
|
99
|
-
:'rate_limit' => :'rate_limit',
|
|
100
|
-
:'pulp_labels' => :'pulp_labels',
|
|
101
|
-
:'connect_timeout' => :'connect_timeout',
|
|
102
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
103
|
-
:'name' => :'name',
|
|
104
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
104
105
|
:'url' => :'url',
|
|
105
|
-
:'ca_cert' => :'ca_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
|
-
:'
|
|
121
|
-
:'
|
|
119
|
+
:'pulp_created' => :'Time',
|
|
120
|
+
:'connect_timeout' => :'Float',
|
|
121
|
+
:'name' => :'String',
|
|
122
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
122
123
|
:'download_concurrency' => :'Integer',
|
|
124
|
+
:'sock_read_timeout' => :'Float',
|
|
125
|
+
:'max_retries' => :'Integer',
|
|
126
|
+
:'ca_cert' => :'String',
|
|
127
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
128
|
+
:'rate_limit' => :'Integer',
|
|
129
|
+
:'total_timeout' => :'Float',
|
|
130
|
+
:'prn' => :'String',
|
|
131
|
+
:'pulp_href' => :'String',
|
|
123
132
|
:'proxy_url' => :'String',
|
|
133
|
+
:'tls_validation' => :'Boolean',
|
|
134
|
+
:'pulp_last_updated' => :'Time',
|
|
124
135
|
:'client_cert' => :'String',
|
|
125
|
-
:'sock_connect_timeout' => :'Float',
|
|
126
|
-
:'pulp_created' => :'Time',
|
|
127
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
128
136
|
:'headers' => :'Array<Object>',
|
|
129
|
-
:'
|
|
130
|
-
:'max_retries' => :'Integer',
|
|
131
|
-
:'pulp_href' => :'String',
|
|
132
|
-
:'rate_limit' => :'Integer',
|
|
133
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
134
|
-
:'connect_timeout' => :'Float',
|
|
135
|
-
:'sock_read_timeout' => :'Float',
|
|
136
|
-
:'name' => :'String',
|
|
137
|
+
:'sock_connect_timeout' => :'Float',
|
|
137
138
|
:'url' => :'String',
|
|
138
|
-
:'ca_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
|
+
:'connect_timeout',
|
|
148
148
|
:'download_concurrency',
|
|
149
|
+
:'sock_read_timeout',
|
|
150
|
+
:'max_retries',
|
|
151
|
+
:'ca_cert',
|
|
152
|
+
:'rate_limit',
|
|
153
|
+
:'total_timeout',
|
|
149
154
|
:'proxy_url',
|
|
150
155
|
:'client_cert',
|
|
151
156
|
:'sock_connect_timeout',
|
|
152
|
-
:'max_retries',
|
|
153
|
-
:'rate_limit',
|
|
154
|
-
:'connect_timeout',
|
|
155
|
-
:'sock_read_timeout',
|
|
156
|
-
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,36 +172,40 @@ 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?(:'connect_timeout')
|
|
180
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
self.
|
|
183
|
+
if attributes.key?(:'name')
|
|
184
|
+
self.name = attributes[:'name']
|
|
185
|
+
else
|
|
186
|
+
self.name = nil
|
|
185
187
|
end
|
|
186
188
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
|
|
189
|
+
if attributes.key?(:'pulp_labels')
|
|
190
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
191
|
+
self.pulp_labels = value
|
|
192
|
+
end
|
|
189
193
|
end
|
|
190
194
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
self.
|
|
195
|
+
if attributes.key?(:'download_concurrency')
|
|
196
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
193
197
|
end
|
|
194
198
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
199
|
+
if attributes.key?(:'sock_read_timeout')
|
|
200
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
197
201
|
end
|
|
198
202
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
self.
|
|
203
|
+
if attributes.key?(:'max_retries')
|
|
204
|
+
self.max_retries = attributes[:'max_retries']
|
|
201
205
|
end
|
|
202
206
|
|
|
203
|
-
if attributes.key?(:'
|
|
204
|
-
self.
|
|
207
|
+
if attributes.key?(:'ca_cert')
|
|
208
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
205
209
|
end
|
|
206
210
|
|
|
207
211
|
if attributes.key?(:'hidden_fields')
|
|
@@ -210,46 +214,46 @@ module PulpAnsibleClient
|
|
|
210
214
|
end
|
|
211
215
|
end
|
|
212
216
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
|
|
215
|
-
self.headers = value
|
|
216
|
-
end
|
|
217
|
+
if attributes.key?(:'rate_limit')
|
|
218
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
217
219
|
end
|
|
218
220
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
221
|
+
if attributes.key?(:'total_timeout')
|
|
222
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
221
223
|
end
|
|
222
224
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
self.
|
|
225
|
+
if attributes.key?(:'prn')
|
|
226
|
+
self.prn = attributes[:'prn']
|
|
225
227
|
end
|
|
226
228
|
|
|
227
229
|
if attributes.key?(:'pulp_href')
|
|
228
230
|
self.pulp_href = attributes[:'pulp_href']
|
|
229
231
|
end
|
|
230
232
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
233
|
+
if attributes.key?(:'proxy_url')
|
|
234
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
233
235
|
end
|
|
234
236
|
|
|
235
|
-
if attributes.key?(:'
|
|
236
|
-
|
|
237
|
-
self.pulp_labels = value
|
|
238
|
-
end
|
|
237
|
+
if attributes.key?(:'tls_validation')
|
|
238
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
self.
|
|
241
|
+
if attributes.key?(:'pulp_last_updated')
|
|
242
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
243
243
|
end
|
|
244
244
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
245
|
+
if attributes.key?(:'client_cert')
|
|
246
|
+
self.client_cert = attributes[:'client_cert']
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
249
|
+
if attributes.key?(:'headers')
|
|
250
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
251
|
+
self.headers = value
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
256
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
253
257
|
end
|
|
254
258
|
|
|
255
259
|
if attributes.key?(:'url')
|
|
@@ -258,10 +262,6 @@ module PulpAnsibleClient
|
|
|
258
262
|
self.url = nil
|
|
259
263
|
end
|
|
260
264
|
|
|
261
|
-
if attributes.key?(:'ca_cert')
|
|
262
|
-
self.ca_cert = attributes[:'ca_cert']
|
|
263
|
-
end
|
|
264
|
-
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
266
266
|
self.metadata_only = attributes[:'metadata_only']
|
|
267
267
|
end
|
|
@@ -276,24 +276,24 @@ 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 !@total_timeout.nil? && @total_timeout < 0.0
|
|
280
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
284
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
285
|
-
end
|
|
286
|
-
|
|
287
279
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
288
280
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
289
281
|
end
|
|
290
282
|
|
|
283
|
+
if @name.nil?
|
|
284
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
285
|
+
end
|
|
286
|
+
|
|
291
287
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
292
288
|
invalid_properties.push('invalid value for "sock_read_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 !@total_timeout.nil? && @total_timeout < 0.0
|
|
292
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
293
|
+
end
|
|
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
297
|
end
|
|
298
298
|
|
|
299
299
|
if @url.nil?
|
|
@@ -307,35 +307,15 @@ module PulpAnsibleClient
|
|
|
307
307
|
# @return true if the model is valid
|
|
308
308
|
def valid?
|
|
309
309
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
310
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
311
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
312
310
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
313
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
314
311
|
return false if @name.nil?
|
|
312
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
313
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
314
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
315
|
return false if @url.nil?
|
|
316
316
|
true
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
# Custom attribute writer method with validation
|
|
320
|
-
# @param [Object] total_timeout Value to be assigned
|
|
321
|
-
def total_timeout=(total_timeout)
|
|
322
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
|
323
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
@total_timeout = total_timeout
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# Custom attribute writer method with validation
|
|
330
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
|
331
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
|
332
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
333
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
334
|
-
end
|
|
335
|
-
|
|
336
|
-
@sock_connect_timeout = sock_connect_timeout
|
|
337
|
-
end
|
|
338
|
-
|
|
339
319
|
# Custom attribute writer method with validation
|
|
340
320
|
# @param [Object] connect_timeout Value to be assigned
|
|
341
321
|
def connect_timeout=(connect_timeout)
|
|
@@ -356,31 +336,51 @@ module PulpAnsibleClient
|
|
|
356
336
|
@sock_read_timeout = sock_read_timeout
|
|
357
337
|
end
|
|
358
338
|
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] total_timeout Value to be assigned
|
|
341
|
+
def total_timeout=(total_timeout)
|
|
342
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
343
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@total_timeout = total_timeout
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
351
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
352
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
353
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
357
|
+
end
|
|
358
|
+
|
|
359
359
|
# Checks equality by comparing each attribute.
|
|
360
360
|
# @param [Object] Object to be compared
|
|
361
361
|
def ==(o)
|
|
362
362
|
return true if self.equal?(o)
|
|
363
363
|
self.class == o.class &&
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
pulp_created == o.pulp_created &&
|
|
365
|
+
connect_timeout == o.connect_timeout &&
|
|
366
|
+
name == o.name &&
|
|
367
|
+
pulp_labels == o.pulp_labels &&
|
|
367
368
|
download_concurrency == o.download_concurrency &&
|
|
369
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
370
|
+
max_retries == o.max_retries &&
|
|
371
|
+
ca_cert == o.ca_cert &&
|
|
372
|
+
hidden_fields == o.hidden_fields &&
|
|
373
|
+
rate_limit == o.rate_limit &&
|
|
374
|
+
total_timeout == o.total_timeout &&
|
|
375
|
+
prn == o.prn &&
|
|
376
|
+
pulp_href == o.pulp_href &&
|
|
368
377
|
proxy_url == o.proxy_url &&
|
|
378
|
+
tls_validation == o.tls_validation &&
|
|
379
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
369
380
|
client_cert == o.client_cert &&
|
|
370
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
371
|
-
pulp_created == o.pulp_created &&
|
|
372
|
-
hidden_fields == o.hidden_fields &&
|
|
373
381
|
headers == o.headers &&
|
|
374
|
-
|
|
375
|
-
max_retries == o.max_retries &&
|
|
376
|
-
pulp_href == o.pulp_href &&
|
|
377
|
-
rate_limit == o.rate_limit &&
|
|
378
|
-
pulp_labels == o.pulp_labels &&
|
|
379
|
-
connect_timeout == o.connect_timeout &&
|
|
380
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
381
|
-
name == o.name &&
|
|
382
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
382
383
|
url == o.url &&
|
|
383
|
-
ca_cert == o.ca_cert &&
|
|
384
384
|
metadata_only == o.metadata_only &&
|
|
385
385
|
git_ref == o.git_ref
|
|
386
386
|
end
|
|
@@ -394,7 +394,7 @@ module PulpAnsibleClient
|
|
|
394
394
|
# Calculates hash code according to all attributes.
|
|
395
395
|
# @return [Integer] Hash code
|
|
396
396
|
def hash
|
|
397
|
-
[
|
|
397
|
+
[pulp_created, connect_timeout, name, pulp_labels, download_concurrency, sock_read_timeout, max_retries, ca_cert, hidden_fields, rate_limit, total_timeout, prn, pulp_href, proxy_url, tls_validation, pulp_last_updated, client_cert, headers, sock_connect_timeout, url, metadata_only, git_ref].hash
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
# Builds the object from hash
|
|
@@ -19,8 +19,8 @@ module PulpAnsibleClient
|
|
|
19
19
|
# The Pulp Resource Name (PRN).
|
|
20
20
|
attr_accessor :prn
|
|
21
21
|
|
|
22
|
-
# Timestamp of
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# Timestamp of creation.
|
|
23
|
+
attr_accessor :pulp_created
|
|
24
24
|
|
|
25
25
|
attr_accessor :pulp_href
|
|
26
26
|
|
|
@@ -30,8 +30,8 @@ module PulpAnsibleClient
|
|
|
30
30
|
# Artifact file representing the physical content
|
|
31
31
|
attr_accessor :artifact
|
|
32
32
|
|
|
33
|
-
# Timestamp of
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# 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.
|
|
34
|
+
attr_accessor :pulp_last_updated
|
|
35
35
|
|
|
36
36
|
attr_accessor :vuln_report
|
|
37
37
|
|
|
@@ -45,11 +45,11 @@ module PulpAnsibleClient
|
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
47
|
:'prn' => :'prn',
|
|
48
|
-
:'
|
|
48
|
+
:'pulp_created' => :'pulp_created',
|
|
49
49
|
:'pulp_href' => :'pulp_href',
|
|
50
50
|
:'pulp_labels' => :'pulp_labels',
|
|
51
51
|
:'artifact' => :'artifact',
|
|
52
|
-
:'
|
|
52
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
53
53
|
:'vuln_report' => :'vuln_report',
|
|
54
54
|
:'version' => :'version',
|
|
55
55
|
:'name' => :'name',
|
|
@@ -66,11 +66,11 @@ module PulpAnsibleClient
|
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
68
|
:'prn' => :'String',
|
|
69
|
-
:'
|
|
69
|
+
:'pulp_created' => :'Time',
|
|
70
70
|
:'pulp_href' => :'String',
|
|
71
71
|
:'pulp_labels' => :'Hash<String, String>',
|
|
72
72
|
:'artifact' => :'String',
|
|
73
|
-
:'
|
|
73
|
+
:'pulp_last_updated' => :'Time',
|
|
74
74
|
:'vuln_report' => :'String',
|
|
75
75
|
:'version' => :'String',
|
|
76
76
|
:'name' => :'String',
|
|
@@ -103,8 +103,8 @@ module PulpAnsibleClient
|
|
|
103
103
|
self.prn = attributes[:'prn']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
106
|
+
if attributes.key?(:'pulp_created')
|
|
107
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
108
108
|
end
|
|
109
109
|
|
|
110
110
|
if attributes.key?(:'pulp_href')
|
|
@@ -123,8 +123,8 @@ module PulpAnsibleClient
|
|
|
123
123
|
self.artifact = nil
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
126
|
+
if attributes.key?(:'pulp_last_updated')
|
|
127
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'vuln_report')
|
|
@@ -191,11 +191,11 @@ module PulpAnsibleClient
|
|
|
191
191
|
return true if self.equal?(o)
|
|
192
192
|
self.class == o.class &&
|
|
193
193
|
prn == o.prn &&
|
|
194
|
-
|
|
194
|
+
pulp_created == o.pulp_created &&
|
|
195
195
|
pulp_href == o.pulp_href &&
|
|
196
196
|
pulp_labels == o.pulp_labels &&
|
|
197
197
|
artifact == o.artifact &&
|
|
198
|
-
|
|
198
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
199
199
|
vuln_report == o.vuln_report &&
|
|
200
200
|
version == o.version &&
|
|
201
201
|
name == o.name &&
|
|
@@ -211,7 +211,7 @@ module PulpAnsibleClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[prn,
|
|
214
|
+
[prn, pulp_created, pulp_href, pulp_labels, artifact, pulp_last_updated, vuln_report, version, name, namespace].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|