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