pulp_ansible_client 0.27.0 → 0.28.0
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/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -1
- data/docs/AnsibleCollectionVersionResponse.md +10 -8
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +6 -4
- data/docs/CollectionMetadataResponse.md +4 -4
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionListResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +8 -8
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesGitApi.md +2 -2
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +10 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -33
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +0 -30
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +29 -35
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +10 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +234 -249
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -165
- data/lib/pulp_ansible_client/models/ansible_role.rb +17 -17
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +0 -15
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +29 -20
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +0 -15
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -15
- data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -15
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +0 -4
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +0 -2
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +0 -15
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -33
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +229 -244
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +0 -15
- data/lib/pulp_ansible_client/models/repository.rb +0 -15
- data/lib/pulp_ansible_client/models/repository_response.rb +0 -15
- data/lib/pulp_ansible_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -15
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +4 -4
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +10 -4
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +10 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/repository_version_response_spec.rb +6 -0
- 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
|
+
# The Pulp Resource Name (PRN).
|
20
|
+
attr_accessor :prn
|
21
|
+
|
22
|
+
# If True, TLS peer validation must be performed.
|
23
|
+
attr_accessor :tls_validation
|
24
|
+
|
19
25
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
20
26
|
attr_accessor :total_timeout
|
21
27
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
28
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
29
|
+
attr_accessor :download_concurrency
|
24
30
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
31
|
+
# The proxy URL. Format: scheme://host:port
|
32
|
+
attr_accessor :proxy_url
|
27
33
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
34
|
+
# A PEM encoded client certificate used for authentication.
|
35
|
+
attr_accessor :client_cert
|
30
36
|
|
31
|
-
#
|
32
|
-
attr_accessor :
|
37
|
+
# 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.
|
38
|
+
attr_accessor :sock_connect_timeout
|
33
39
|
|
34
40
|
# Timestamp of creation.
|
35
41
|
attr_accessor :pulp_created
|
36
42
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
39
|
-
|
40
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
41
|
-
attr_accessor :max_retries
|
42
|
-
|
43
|
-
# 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.
|
44
|
-
attr_accessor :sock_read_timeout
|
45
|
-
|
46
|
-
# A PEM encoded client certificate used for authentication.
|
47
|
-
attr_accessor :client_cert
|
43
|
+
# List of hidden (write only) fields
|
44
|
+
attr_accessor :hidden_fields
|
48
45
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
46
|
+
# Headers for aiohttp.Clientsession
|
47
|
+
attr_accessor :headers
|
51
48
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
49
|
+
# Timestamp of the most recent update of the remote.
|
50
|
+
attr_accessor :pulp_last_updated
|
54
51
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
52
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
53
|
+
attr_accessor :max_retries
|
57
54
|
|
58
|
-
|
59
|
-
attr_accessor :prn
|
55
|
+
attr_accessor :pulp_href
|
60
56
|
|
61
57
|
# Limits requests per second for each concurrent downloader
|
62
58
|
attr_accessor :rate_limit
|
63
59
|
|
64
|
-
|
65
|
-
attr_accessor :sock_connect_timeout
|
60
|
+
attr_accessor :pulp_labels
|
66
61
|
|
67
|
-
|
62
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
|
+
attr_accessor :connect_timeout
|
68
64
|
|
69
|
-
|
65
|
+
# 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.
|
66
|
+
attr_accessor :sock_read_timeout
|
70
67
|
|
71
|
-
#
|
72
|
-
attr_accessor :
|
68
|
+
# A unique name for this remote.
|
69
|
+
attr_accessor :name
|
73
70
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
71
|
+
# The URL of an external content source.
|
72
|
+
attr_accessor :url
|
73
|
+
|
74
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
75
|
+
attr_accessor :ca_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
|
+
:'prn' => :'prn',
|
87
|
+
:'tls_validation' => :'tls_validation',
|
86
88
|
:'total_timeout' => :'total_timeout',
|
87
|
-
:'
|
89
|
+
:'download_concurrency' => :'download_concurrency',
|
90
|
+
:'proxy_url' => :'proxy_url',
|
91
|
+
:'client_cert' => :'client_cert',
|
92
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
+
:'pulp_created' => :'pulp_created',
|
94
|
+
:'hidden_fields' => :'hidden_fields',
|
88
95
|
:'headers' => :'headers',
|
89
96
|
:'pulp_last_updated' => :'pulp_last_updated',
|
90
|
-
:'hidden_fields' => :'hidden_fields',
|
91
|
-
:'pulp_created' => :'pulp_created',
|
92
|
-
:'tls_validation' => :'tls_validation',
|
93
97
|
:'max_retries' => :'max_retries',
|
94
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
95
|
-
:'client_cert' => :'client_cert',
|
96
|
-
:'ca_cert' => :'ca_cert',
|
97
|
-
:'url' => :'url',
|
98
|
-
:'name' => :'name',
|
99
|
-
:'prn' => :'prn',
|
100
|
-
:'rate_limit' => :'rate_limit',
|
101
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
102
98
|
:'pulp_href' => :'pulp_href',
|
99
|
+
:'rate_limit' => :'rate_limit',
|
103
100
|
:'pulp_labels' => :'pulp_labels',
|
104
|
-
:'
|
105
|
-
:'
|
101
|
+
:'connect_timeout' => :'connect_timeout',
|
102
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
103
|
+
:'name' => :'name',
|
104
|
+
:'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
|
+
:'prn' => :'String',
|
120
|
+
:'tls_validation' => :'Boolean',
|
119
121
|
:'total_timeout' => :'Float',
|
120
|
-
:'
|
122
|
+
:'download_concurrency' => :'Integer',
|
123
|
+
:'proxy_url' => :'String',
|
124
|
+
:'client_cert' => :'String',
|
125
|
+
:'sock_connect_timeout' => :'Float',
|
126
|
+
:'pulp_created' => :'Time',
|
127
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
121
128
|
:'headers' => :'Array<Object>',
|
122
129
|
:'pulp_last_updated' => :'Time',
|
123
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
124
|
-
:'pulp_created' => :'Time',
|
125
|
-
:'tls_validation' => :'Boolean',
|
126
130
|
:'max_retries' => :'Integer',
|
127
|
-
:'sock_read_timeout' => :'Float',
|
128
|
-
:'client_cert' => :'String',
|
129
|
-
:'ca_cert' => :'String',
|
130
|
-
:'url' => :'String',
|
131
|
-
:'name' => :'String',
|
132
|
-
:'prn' => :'String',
|
133
|
-
:'rate_limit' => :'Integer',
|
134
|
-
:'sock_connect_timeout' => :'Float',
|
135
131
|
:'pulp_href' => :'String',
|
132
|
+
:'rate_limit' => :'Integer',
|
136
133
|
:'pulp_labels' => :'Hash<String, String>',
|
137
|
-
:'
|
138
|
-
:'
|
134
|
+
:'connect_timeout' => :'Float',
|
135
|
+
:'sock_read_timeout' => :'Float',
|
136
|
+
:'name' => :'String',
|
137
|
+
:'url' => :'String',
|
138
|
+
:'ca_cert' => :'String',
|
139
139
|
:'metadata_only' => :'Boolean',
|
140
140
|
:'git_ref' => :'String'
|
141
141
|
}
|
@@ -145,15 +145,15 @@ module PulpAnsibleClient
|
|
145
145
|
def self.openapi_nullable
|
146
146
|
Set.new([
|
147
147
|
:'total_timeout',
|
148
|
-
:'
|
148
|
+
:'download_concurrency',
|
149
|
+
:'proxy_url',
|
150
|
+
:'client_cert',
|
151
|
+
:'sock_connect_timeout',
|
149
152
|
:'max_retries',
|
153
|
+
:'rate_limit',
|
154
|
+
:'connect_timeout',
|
150
155
|
:'sock_read_timeout',
|
151
|
-
:'client_cert',
|
152
156
|
:'ca_cert',
|
153
|
-
:'rate_limit',
|
154
|
-
:'sock_connect_timeout',
|
155
|
-
:'proxy_url',
|
156
|
-
:'download_concurrency',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,22 +172,36 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
+
if attributes.key?(:'prn')
|
176
|
+
self.prn = attributes[:'prn']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.key?(:'tls_validation')
|
180
|
+
self.tls_validation = attributes[:'tls_validation']
|
181
|
+
end
|
182
|
+
|
175
183
|
if attributes.key?(:'total_timeout')
|
176
184
|
self.total_timeout = attributes[:'total_timeout']
|
177
185
|
end
|
178
186
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
187
|
+
if attributes.key?(:'download_concurrency')
|
188
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
181
189
|
end
|
182
190
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
|
185
|
-
self.headers = value
|
186
|
-
end
|
191
|
+
if attributes.key?(:'proxy_url')
|
192
|
+
self.proxy_url = attributes[:'proxy_url']
|
187
193
|
end
|
188
194
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
self.
|
195
|
+
if attributes.key?(:'client_cert')
|
196
|
+
self.client_cert = attributes[:'client_cert']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'sock_connect_timeout')
|
200
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'pulp_created')
|
204
|
+
self.pulp_created = attributes[:'pulp_created']
|
191
205
|
end
|
192
206
|
|
193
207
|
if attributes.key?(:'hidden_fields')
|
@@ -196,34 +210,40 @@ module PulpAnsibleClient
|
|
196
210
|
end
|
197
211
|
end
|
198
212
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
|
213
|
+
if attributes.key?(:'headers')
|
214
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
215
|
+
self.headers = value
|
216
|
+
end
|
201
217
|
end
|
202
218
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
self.
|
219
|
+
if attributes.key?(:'pulp_last_updated')
|
220
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
205
221
|
end
|
206
222
|
|
207
223
|
if attributes.key?(:'max_retries')
|
208
224
|
self.max_retries = attributes[:'max_retries']
|
209
225
|
end
|
210
226
|
|
211
|
-
if attributes.key?(:'
|
212
|
-
self.
|
227
|
+
if attributes.key?(:'pulp_href')
|
228
|
+
self.pulp_href = attributes[:'pulp_href']
|
213
229
|
end
|
214
230
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
self.
|
231
|
+
if attributes.key?(:'rate_limit')
|
232
|
+
self.rate_limit = attributes[:'rate_limit']
|
217
233
|
end
|
218
234
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
|
235
|
+
if attributes.key?(:'pulp_labels')
|
236
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
237
|
+
self.pulp_labels = value
|
238
|
+
end
|
221
239
|
end
|
222
240
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
225
|
-
|
226
|
-
|
241
|
+
if attributes.key?(:'connect_timeout')
|
242
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.key?(:'sock_read_timeout')
|
246
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
227
247
|
end
|
228
248
|
|
229
249
|
if attributes.key?(:'name')
|
@@ -232,34 +252,14 @@ module PulpAnsibleClient
|
|
232
252
|
self.name = nil
|
233
253
|
end
|
234
254
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
237
|
-
|
238
|
-
|
239
|
-
if attributes.key?(:'rate_limit')
|
240
|
-
self.rate_limit = attributes[:'rate_limit']
|
241
|
-
end
|
242
|
-
|
243
|
-
if attributes.key?(:'sock_connect_timeout')
|
244
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
245
|
-
end
|
246
|
-
|
247
|
-
if attributes.key?(:'pulp_href')
|
248
|
-
self.pulp_href = attributes[:'pulp_href']
|
249
|
-
end
|
250
|
-
|
251
|
-
if attributes.key?(:'pulp_labels')
|
252
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
253
|
-
self.pulp_labels = value
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
if attributes.key?(:'proxy_url')
|
258
|
-
self.proxy_url = attributes[:'proxy_url']
|
255
|
+
if attributes.key?(:'url')
|
256
|
+
self.url = attributes[:'url']
|
257
|
+
else
|
258
|
+
self.url = nil
|
259
259
|
end
|
260
260
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
261
|
+
if attributes.key?(:'ca_cert')
|
262
|
+
self.ca_cert = attributes[:'ca_cert']
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
@@ -280,6 +280,10 @@ module PulpAnsibleClient
|
|
280
280
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
281
281
|
end
|
282
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
|
+
|
283
287
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
284
288
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
285
289
|
end
|
@@ -288,20 +292,12 @@ module PulpAnsibleClient
|
|
288
292
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
289
293
|
end
|
290
294
|
|
291
|
-
if @url.nil?
|
292
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
293
|
-
end
|
294
|
-
|
295
295
|
if @name.nil?
|
296
296
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
297
297
|
end
|
298
298
|
|
299
|
-
if
|
300
|
-
invalid_properties.push('invalid value for "
|
301
|
-
end
|
302
|
-
|
303
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
304
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
299
|
+
if @url.nil?
|
300
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
305
301
|
end
|
306
302
|
|
307
303
|
invalid_properties
|
@@ -312,12 +308,11 @@ module PulpAnsibleClient
|
|
312
308
|
def valid?
|
313
309
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
314
310
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
311
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
315
312
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
316
313
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
317
|
-
return false if @url.nil?
|
318
314
|
return false if @name.nil?
|
319
|
-
return false if
|
320
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
315
|
+
return false if @url.nil?
|
321
316
|
true
|
322
317
|
end
|
323
318
|
|
@@ -331,6 +326,16 @@ module PulpAnsibleClient
|
|
331
326
|
@total_timeout = total_timeout
|
332
327
|
end
|
333
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
|
+
|
334
339
|
# Custom attribute writer method with validation
|
335
340
|
# @param [Object] connect_timeout Value to be assigned
|
336
341
|
def connect_timeout=(connect_timeout)
|
@@ -351,51 +356,31 @@ module PulpAnsibleClient
|
|
351
356
|
@sock_read_timeout = sock_read_timeout
|
352
357
|
end
|
353
358
|
|
354
|
-
# Custom attribute writer method with validation
|
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.'
|
359
|
-
end
|
360
|
-
|
361
|
-
@sock_connect_timeout = sock_connect_timeout
|
362
|
-
end
|
363
|
-
|
364
|
-
# Custom attribute writer method with validation
|
365
|
-
# @param [Object] download_concurrency Value to be assigned
|
366
|
-
def download_concurrency=(download_concurrency)
|
367
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
368
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
369
|
-
end
|
370
|
-
|
371
|
-
@download_concurrency = download_concurrency
|
372
|
-
end
|
373
|
-
|
374
359
|
# Checks equality by comparing each attribute.
|
375
360
|
# @param [Object] Object to be compared
|
376
361
|
def ==(o)
|
377
362
|
return true if self.equal?(o)
|
378
363
|
self.class == o.class &&
|
364
|
+
prn == o.prn &&
|
365
|
+
tls_validation == o.tls_validation &&
|
379
366
|
total_timeout == o.total_timeout &&
|
380
|
-
|
367
|
+
download_concurrency == o.download_concurrency &&
|
368
|
+
proxy_url == o.proxy_url &&
|
369
|
+
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 &&
|
381
373
|
headers == o.headers &&
|
382
374
|
pulp_last_updated == o.pulp_last_updated &&
|
383
|
-
hidden_fields == o.hidden_fields &&
|
384
|
-
pulp_created == o.pulp_created &&
|
385
|
-
tls_validation == o.tls_validation &&
|
386
375
|
max_retries == o.max_retries &&
|
387
|
-
sock_read_timeout == o.sock_read_timeout &&
|
388
|
-
client_cert == o.client_cert &&
|
389
|
-
ca_cert == o.ca_cert &&
|
390
|
-
url == o.url &&
|
391
|
-
name == o.name &&
|
392
|
-
prn == o.prn &&
|
393
|
-
rate_limit == o.rate_limit &&
|
394
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
395
376
|
pulp_href == o.pulp_href &&
|
377
|
+
rate_limit == o.rate_limit &&
|
396
378
|
pulp_labels == o.pulp_labels &&
|
397
|
-
|
398
|
-
|
379
|
+
connect_timeout == o.connect_timeout &&
|
380
|
+
sock_read_timeout == o.sock_read_timeout &&
|
381
|
+
name == o.name &&
|
382
|
+
url == o.url &&
|
383
|
+
ca_cert == o.ca_cert &&
|
399
384
|
metadata_only == o.metadata_only &&
|
400
385
|
git_ref == o.git_ref
|
401
386
|
end
|
@@ -409,7 +394,7 @@ module PulpAnsibleClient
|
|
409
394
|
# Calculates hash code according to all attributes.
|
410
395
|
# @return [Integer] Hash code
|
411
396
|
def hash
|
412
|
-
[
|
397
|
+
[prn, tls_validation, total_timeout, download_concurrency, proxy_url, client_cert, sock_connect_timeout, pulp_created, hidden_fields, headers, pulp_last_updated, max_retries, pulp_href, rate_limit, pulp_labels, connect_timeout, sock_read_timeout, name, url, ca_cert, metadata_only, git_ref].hash
|
413
398
|
end
|
414
399
|
|
415
400
|
# Builds the object from hash
|
@@ -16,14 +16,14 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Role versions.
|
18
18
|
class AnsibleRole
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# A URI of a repository the new content unit should be associated with.
|
20
|
+
attr_accessor :repository
|
21
21
|
|
22
22
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
23
|
attr_accessor :pulp_labels
|
24
24
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
25
|
+
# Artifact file representing the physical content
|
26
|
+
attr_accessor :artifact
|
27
27
|
|
28
28
|
attr_accessor :version
|
29
29
|
|
@@ -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',
|
38
|
-
:'pulp_labels' => :'pulp_labels',
|
39
37
|
:'repository' => :'repository',
|
38
|
+
:'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',
|
55
|
-
:'pulp_labels' => :'Hash<String, String>',
|
56
54
|
:'repository' => :'String',
|
55
|
+
:'pulp_labels' => :'Hash<String, String>',
|
56
|
+
:'artifact' => :'String',
|
57
57
|
:'version' => :'String',
|
58
58
|
:'name' => :'String',
|
59
59
|
:'namespace' => :'String'
|
@@ -81,10 +81,8 @@ module PulpAnsibleClient
|
|
81
81
|
h[k.to_sym] = v
|
82
82
|
}
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
86
|
-
else
|
87
|
-
self.artifact = nil
|
84
|
+
if attributes.key?(:'repository')
|
85
|
+
self.repository = attributes[:'repository']
|
88
86
|
end
|
89
87
|
|
90
88
|
if attributes.key?(:'pulp_labels')
|
@@ -93,8 +91,10 @@ module PulpAnsibleClient
|
|
93
91
|
end
|
94
92
|
end
|
95
93
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
94
|
+
if attributes.key?(:'artifact')
|
95
|
+
self.artifact = attributes[:'artifact']
|
96
|
+
else
|
97
|
+
self.artifact = nil
|
98
98
|
end
|
99
99
|
|
100
100
|
if attributes.key?(:'version')
|
@@ -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 &&
|
217
|
-
pulp_labels == o.pulp_labels &&
|
218
216
|
repository == o.repository &&
|
217
|
+
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
|
-
[
|
233
|
+
[repository, pulp_labels, artifact, version, name, namespace].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# Builds the object from hash
|
@@ -341,10 +341,6 @@ module PulpAnsibleClient
|
|
341
341
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
342
342
|
end
|
343
343
|
|
344
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
345
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
346
|
-
end
|
347
|
-
|
348
344
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
349
345
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
350
346
|
end
|
@@ -380,7 +376,6 @@ module PulpAnsibleClient
|
|
380
376
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
381
377
|
return false if !@username.nil? && @username.to_s.length < 1
|
382
378
|
return false if !@password.nil? && @password.to_s.length < 1
|
383
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
384
379
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
385
380
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
386
381
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -496,16 +491,6 @@ module PulpAnsibleClient
|
|
496
491
|
@password = password
|
497
492
|
end
|
498
493
|
|
499
|
-
# Custom attribute writer method with validation
|
500
|
-
# @param [Object] download_concurrency Value to be assigned
|
501
|
-
def download_concurrency=(download_concurrency)
|
502
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
503
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
504
|
-
end
|
505
|
-
|
506
|
-
@download_concurrency = download_concurrency
|
507
|
-
end
|
508
|
-
|
509
494
|
# Custom attribute writer method with validation
|
510
495
|
# @param [Object] total_timeout Value to be assigned
|
511
496
|
def total_timeout=(total_timeout)
|
@@ -297,10 +297,6 @@ module PulpAnsibleClient
|
|
297
297
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
298
298
|
end
|
299
299
|
|
300
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
301
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
|
-
end
|
303
|
-
|
304
300
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
301
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
302
|
end
|
@@ -326,7 +322,6 @@ module PulpAnsibleClient
|
|
326
322
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
327
323
|
return false if @name.nil?
|
328
324
|
return false if @url.nil?
|
329
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
330
325
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
331
326
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
332
327
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -334,16 +329,6 @@ module PulpAnsibleClient
|
|
334
329
|
true
|
335
330
|
end
|
336
331
|
|
337
|
-
# Custom attribute writer method with validation
|
338
|
-
# @param [Object] download_concurrency Value to be assigned
|
339
|
-
def download_concurrency=(download_concurrency)
|
340
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
341
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
342
|
-
end
|
343
|
-
|
344
|
-
@download_concurrency = download_concurrency
|
345
|
-
end
|
346
|
-
|
347
332
|
# Custom attribute writer method with validation
|
348
333
|
# @param [Object] total_timeout Value to be assigned
|
349
334
|
def total_timeout=(total_timeout)
|