pulp_ansible_client 0.24.1 → 0.24.2
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 +14 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +8 -6
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +8 -6
- data/docs/ContentCollectionDeprecationsApi.md +148 -0
- data/docs/ContentCollectionMarksApi.md +150 -2
- data/docs/ContentCollectionSignaturesApi.md +152 -2
- data/docs/ContentCollectionVersionsApi.md +156 -6
- data/docs/ContentNamespacesApi.md +4 -2
- data/docs/ContentRolesApi.md +150 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +151 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +154 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +157 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +163 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -3
- data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +36 -24
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +219 -219
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -27
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +209 -209
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +27 -0
- data/spec/api/content_collection_marks_api_spec.rb +28 -1
- data/spec/api/content_collection_signatures_api_spec.rb +29 -1
- data/spec/api/content_collection_versions_api_spec.rb +31 -3
- data/spec/api/content_namespaces_api_spec.rb +2 -1
- data/spec/api/content_roles_api_spec.rb +28 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_collection_deprecated_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 +19 -19
- data/spec/models/ansible_git_remote_spec.rb +17 -17
- data/spec/models/ansible_role_response_spec.rb +11 -5
- data/spec/models/ansible_role_spec.rb +6 -0
- 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 :
|
19
|
+
# 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.
|
20
|
+
attr_accessor :sock_connect_timeout
|
21
21
|
|
22
|
-
# A
|
23
|
-
attr_accessor :
|
22
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
23
|
+
attr_accessor :ca_cert
|
24
24
|
|
25
|
-
|
25
|
+
# List of hidden (write only) fields
|
26
|
+
attr_accessor :hidden_fields
|
26
27
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
28
|
+
# Limits requests per second for each concurrent downloader
|
29
|
+
attr_accessor :rate_limit
|
30
|
+
|
31
|
+
# The URL of an external content source.
|
32
|
+
attr_accessor :url
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
29
36
|
|
30
37
|
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
31
38
|
attr_accessor :connect_timeout
|
32
39
|
|
33
|
-
# If True, TLS peer validation must be performed.
|
34
|
-
attr_accessor :tls_validation
|
35
|
-
|
36
40
|
# Headers for aiohttp.Clientsession
|
37
41
|
attr_accessor :headers
|
38
42
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
41
|
-
|
42
|
-
# List of hidden (write only) fields
|
43
|
-
attr_accessor :hidden_fields
|
44
|
-
|
45
|
-
# The Pulp Resource Name (PRN).
|
46
|
-
attr_accessor :prn
|
43
|
+
# If True, TLS peer validation must be performed.
|
44
|
+
attr_accessor :tls_validation
|
47
45
|
|
48
46
|
# Timestamp of the most recent update of the remote.
|
49
47
|
attr_accessor :pulp_last_updated
|
50
48
|
|
49
|
+
# The proxy URL. Format: scheme://host:port
|
50
|
+
attr_accessor :proxy_url
|
51
|
+
|
52
|
+
attr_accessor :pulp_href
|
53
|
+
|
51
54
|
# A PEM encoded client certificate used for authentication.
|
52
55
|
attr_accessor :client_cert
|
53
56
|
|
54
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
55
|
-
attr_accessor :download_concurrency
|
56
|
-
|
57
57
|
# 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.
|
58
58
|
attr_accessor :sock_read_timeout
|
59
59
|
|
60
|
-
#
|
61
|
-
attr_accessor :
|
60
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
61
|
+
attr_accessor :download_concurrency
|
62
62
|
|
63
|
-
#
|
64
|
-
attr_accessor :
|
63
|
+
# The Pulp Resource Name (PRN).
|
64
|
+
attr_accessor :prn
|
65
65
|
|
66
|
-
#
|
67
|
-
attr_accessor :
|
66
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
67
|
+
attr_accessor :max_retries
|
68
68
|
|
69
|
-
#
|
70
|
-
attr_accessor :
|
69
|
+
# A unique name for this remote.
|
70
|
+
attr_accessor :name
|
71
71
|
|
72
|
-
|
72
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
73
|
+
attr_accessor :total_timeout
|
73
74
|
|
74
|
-
|
75
|
-
attr_accessor :rate_limit
|
75
|
+
attr_accessor :pulp_labels
|
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
|
-
:'max_retries' => :'max_retries',
|
87
|
-
:'name' => :'name',
|
88
|
-
:'pulp_labels' => :'pulp_labels',
|
89
86
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
87
|
+
:'ca_cert' => :'ca_cert',
|
88
|
+
:'hidden_fields' => :'hidden_fields',
|
89
|
+
:'rate_limit' => :'rate_limit',
|
90
|
+
:'url' => :'url',
|
91
|
+
:'pulp_created' => :'pulp_created',
|
90
92
|
:'connect_timeout' => :'connect_timeout',
|
91
|
-
:'tls_validation' => :'tls_validation',
|
92
93
|
:'headers' => :'headers',
|
93
|
-
:'
|
94
|
-
:'hidden_fields' => :'hidden_fields',
|
95
|
-
:'prn' => :'prn',
|
94
|
+
:'tls_validation' => :'tls_validation',
|
96
95
|
:'pulp_last_updated' => :'pulp_last_updated',
|
97
|
-
:'client_cert' => :'client_cert',
|
98
|
-
:'download_concurrency' => :'download_concurrency',
|
99
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
100
|
-
:'url' => :'url',
|
101
|
-
:'ca_cert' => :'ca_cert',
|
102
96
|
:'proxy_url' => :'proxy_url',
|
103
|
-
:'pulp_created' => :'pulp_created',
|
104
97
|
:'pulp_href' => :'pulp_href',
|
105
|
-
:'
|
98
|
+
:'client_cert' => :'client_cert',
|
99
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
100
|
+
:'download_concurrency' => :'download_concurrency',
|
101
|
+
:'prn' => :'prn',
|
102
|
+
:'max_retries' => :'max_retries',
|
103
|
+
:'name' => :'name',
|
104
|
+
:'total_timeout' => :'total_timeout',
|
105
|
+
:'pulp_labels' => :'pulp_labels',
|
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
|
-
:'max_retries' => :'Integer',
|
120
|
-
:'name' => :'String',
|
121
|
-
:'pulp_labels' => :'Hash<String, String>',
|
122
119
|
:'sock_connect_timeout' => :'Float',
|
120
|
+
:'ca_cert' => :'String',
|
121
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
122
|
+
:'rate_limit' => :'Integer',
|
123
|
+
:'url' => :'String',
|
124
|
+
:'pulp_created' => :'Time',
|
123
125
|
:'connect_timeout' => :'Float',
|
124
|
-
:'tls_validation' => :'Boolean',
|
125
126
|
:'headers' => :'Array<Object>',
|
126
|
-
:'
|
127
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
128
|
-
:'prn' => :'String',
|
127
|
+
:'tls_validation' => :'Boolean',
|
129
128
|
:'pulp_last_updated' => :'Time',
|
130
|
-
:'client_cert' => :'String',
|
131
|
-
:'download_concurrency' => :'Integer',
|
132
|
-
:'sock_read_timeout' => :'Float',
|
133
|
-
:'url' => :'String',
|
134
|
-
:'ca_cert' => :'String',
|
135
129
|
:'proxy_url' => :'String',
|
136
|
-
:'pulp_created' => :'Time',
|
137
130
|
:'pulp_href' => :'String',
|
138
|
-
:'
|
131
|
+
:'client_cert' => :'String',
|
132
|
+
:'sock_read_timeout' => :'Float',
|
133
|
+
:'download_concurrency' => :'Integer',
|
134
|
+
:'prn' => :'String',
|
135
|
+
:'max_retries' => :'Integer',
|
136
|
+
:'name' => :'String',
|
137
|
+
:'total_timeout' => :'Float',
|
138
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'max_retries',
|
148
147
|
:'sock_connect_timeout',
|
148
|
+
:'ca_cert',
|
149
|
+
:'rate_limit',
|
149
150
|
:'connect_timeout',
|
150
|
-
:'
|
151
|
+
:'proxy_url',
|
151
152
|
:'client_cert',
|
152
|
-
:'download_concurrency',
|
153
153
|
:'sock_read_timeout',
|
154
|
-
:'
|
155
|
-
:'
|
156
|
-
:'
|
154
|
+
:'download_concurrency',
|
155
|
+
:'max_retries',
|
156
|
+
:'total_timeout',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,32 +172,36 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
175
|
+
if attributes.key?(:'sock_connect_timeout')
|
176
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
181
|
-
else
|
182
|
-
self.name = nil
|
179
|
+
if attributes.key?(:'ca_cert')
|
180
|
+
self.ca_cert = attributes[:'ca_cert']
|
183
181
|
end
|
184
182
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
if (value = attributes[:'
|
187
|
-
self.
|
183
|
+
if attributes.key?(:'hidden_fields')
|
184
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
185
|
+
self.hidden_fields = value
|
188
186
|
end
|
189
187
|
end
|
190
188
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
189
|
+
if attributes.key?(:'rate_limit')
|
190
|
+
self.rate_limit = attributes[:'rate_limit']
|
193
191
|
end
|
194
192
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
193
|
+
if attributes.key?(:'url')
|
194
|
+
self.url = attributes[:'url']
|
195
|
+
else
|
196
|
+
self.url = nil
|
197
197
|
end
|
198
198
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
199
|
+
if attributes.key?(:'pulp_created')
|
200
|
+
self.pulp_created = attributes[:'pulp_created']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'connect_timeout')
|
204
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
201
205
|
end
|
202
206
|
|
203
207
|
if attributes.key?(:'headers')
|
@@ -206,60 +210,56 @@ module PulpAnsibleClient
|
|
206
210
|
end
|
207
211
|
end
|
208
212
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
213
|
+
if attributes.key?(:'tls_validation')
|
214
|
+
self.tls_validation = attributes[:'tls_validation']
|
211
215
|
end
|
212
216
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
|
215
|
-
self.hidden_fields = value
|
216
|
-
end
|
217
|
+
if attributes.key?(:'pulp_last_updated')
|
218
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
217
219
|
end
|
218
220
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
self.
|
221
|
+
if attributes.key?(:'proxy_url')
|
222
|
+
self.proxy_url = attributes[:'proxy_url']
|
221
223
|
end
|
222
224
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
225
|
+
if attributes.key?(:'pulp_href')
|
226
|
+
self.pulp_href = attributes[:'pulp_href']
|
225
227
|
end
|
226
228
|
|
227
229
|
if attributes.key?(:'client_cert')
|
228
230
|
self.client_cert = attributes[:'client_cert']
|
229
231
|
end
|
230
232
|
|
231
|
-
if attributes.key?(:'download_concurrency')
|
232
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
233
|
-
end
|
234
|
-
|
235
233
|
if attributes.key?(:'sock_read_timeout')
|
236
234
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
237
235
|
end
|
238
236
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
241
|
-
else
|
242
|
-
self.url = nil
|
237
|
+
if attributes.key?(:'download_concurrency')
|
238
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
243
239
|
end
|
244
240
|
|
245
|
-
if attributes.key?(:'
|
246
|
-
self.
|
241
|
+
if attributes.key?(:'prn')
|
242
|
+
self.prn = attributes[:'prn']
|
247
243
|
end
|
248
244
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
245
|
+
if attributes.key?(:'max_retries')
|
246
|
+
self.max_retries = attributes[:'max_retries']
|
251
247
|
end
|
252
248
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
249
|
+
if attributes.key?(:'name')
|
250
|
+
self.name = attributes[:'name']
|
251
|
+
else
|
252
|
+
self.name = nil
|
255
253
|
end
|
256
254
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
255
|
+
if attributes.key?(:'total_timeout')
|
256
|
+
self.total_timeout = attributes[:'total_timeout']
|
259
257
|
end
|
260
258
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
|
259
|
+
if attributes.key?(:'pulp_labels')
|
260
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
261
|
+
self.pulp_labels = value
|
262
|
+
end
|
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 @name.nil?
|
280
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
281
|
-
end
|
282
|
-
|
283
279
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
284
280
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
285
281
|
end
|
286
282
|
|
283
|
+
if @url.nil?
|
284
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
285
|
+
end
|
286
|
+
|
287
287
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
288
288
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
289
289
|
end
|
290
290
|
|
291
|
-
if !@
|
292
|
-
invalid_properties.push('invalid value for "
|
291
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
292
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
293
293
|
end
|
294
294
|
|
295
295
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
296
296
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
297
297
|
end
|
298
298
|
|
299
|
-
if
|
300
|
-
invalid_properties.push('invalid value for "
|
299
|
+
if @name.nil?
|
300
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
301
301
|
end
|
302
302
|
|
303
|
-
if
|
304
|
-
invalid_properties.push('invalid value for "
|
303
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
304
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
305
305
|
end
|
306
306
|
|
307
307
|
invalid_properties
|
@@ -311,13 +311,13 @@ 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 @name.nil?
|
315
314
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
315
|
+
return false if @url.nil?
|
316
316
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
317
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
318
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
319
317
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
320
|
-
return false if
|
318
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
319
|
+
return false if @name.nil?
|
320
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
321
321
|
true
|
322
322
|
end
|
323
323
|
|
@@ -342,13 +342,13 @@ module PulpAnsibleClient
|
|
342
342
|
end
|
343
343
|
|
344
344
|
# Custom attribute writer method with validation
|
345
|
-
# @param [Object]
|
346
|
-
def
|
347
|
-
if !
|
348
|
-
fail ArgumentError, 'invalid value for "
|
345
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
346
|
+
def sock_read_timeout=(sock_read_timeout)
|
347
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
348
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
349
349
|
end
|
350
350
|
|
351
|
-
@
|
351
|
+
@sock_read_timeout = sock_read_timeout
|
352
352
|
end
|
353
353
|
|
354
354
|
# Custom attribute writer method with validation
|
@@ -362,13 +362,13 @@ module PulpAnsibleClient
|
|
362
362
|
end
|
363
363
|
|
364
364
|
# Custom attribute writer method with validation
|
365
|
-
# @param [Object]
|
366
|
-
def
|
367
|
-
if !
|
368
|
-
fail ArgumentError, 'invalid value for "
|
365
|
+
# @param [Object] total_timeout Value to be assigned
|
366
|
+
def total_timeout=(total_timeout)
|
367
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
368
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
369
369
|
end
|
370
370
|
|
371
|
-
@
|
371
|
+
@total_timeout = total_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
|
-
max_retries == o.max_retries &&
|
380
|
-
name == o.name &&
|
381
|
-
pulp_labels == o.pulp_labels &&
|
382
379
|
sock_connect_timeout == o.sock_connect_timeout &&
|
380
|
+
ca_cert == o.ca_cert &&
|
381
|
+
hidden_fields == o.hidden_fields &&
|
382
|
+
rate_limit == o.rate_limit &&
|
383
|
+
url == o.url &&
|
384
|
+
pulp_created == o.pulp_created &&
|
383
385
|
connect_timeout == o.connect_timeout &&
|
384
|
-
tls_validation == o.tls_validation &&
|
385
386
|
headers == o.headers &&
|
386
|
-
|
387
|
-
hidden_fields == o.hidden_fields &&
|
388
|
-
prn == o.prn &&
|
387
|
+
tls_validation == o.tls_validation &&
|
389
388
|
pulp_last_updated == o.pulp_last_updated &&
|
390
|
-
client_cert == o.client_cert &&
|
391
|
-
download_concurrency == o.download_concurrency &&
|
392
|
-
sock_read_timeout == o.sock_read_timeout &&
|
393
|
-
url == o.url &&
|
394
|
-
ca_cert == o.ca_cert &&
|
395
389
|
proxy_url == o.proxy_url &&
|
396
|
-
pulp_created == o.pulp_created &&
|
397
390
|
pulp_href == o.pulp_href &&
|
398
|
-
|
391
|
+
client_cert == o.client_cert &&
|
392
|
+
sock_read_timeout == o.sock_read_timeout &&
|
393
|
+
download_concurrency == o.download_concurrency &&
|
394
|
+
prn == o.prn &&
|
395
|
+
max_retries == o.max_retries &&
|
396
|
+
name == o.name &&
|
397
|
+
total_timeout == o.total_timeout &&
|
398
|
+
pulp_labels == o.pulp_labels &&
|
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
|
+
[sock_connect_timeout, ca_cert, hidden_fields, rate_limit, url, pulp_created, connect_timeout, headers, tls_validation, pulp_last_updated, proxy_url, pulp_href, client_cert, sock_read_timeout, download_concurrency, prn, max_retries, name, total_timeout, pulp_labels, metadata_only, git_ref].hash
|
413
413
|
end
|
414
414
|
|
415
415
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module PulpAnsibleClient
|
|
22
22
|
# Artifact file representing the physical content
|
23
23
|
attr_accessor :artifact
|
24
24
|
|
25
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
26
|
+
attr_accessor :pulp_labels
|
27
|
+
|
25
28
|
attr_accessor :version
|
26
29
|
|
27
30
|
attr_accessor :name
|
@@ -33,6 +36,7 @@ module PulpAnsibleClient
|
|
33
36
|
{
|
34
37
|
:'repository' => :'repository',
|
35
38
|
:'artifact' => :'artifact',
|
39
|
+
:'pulp_labels' => :'pulp_labels',
|
36
40
|
:'version' => :'version',
|
37
41
|
:'name' => :'name',
|
38
42
|
:'namespace' => :'namespace'
|
@@ -49,6 +53,7 @@ module PulpAnsibleClient
|
|
49
53
|
{
|
50
54
|
:'repository' => :'String',
|
51
55
|
:'artifact' => :'String',
|
56
|
+
:'pulp_labels' => :'Hash<String, String>',
|
52
57
|
:'version' => :'String',
|
53
58
|
:'name' => :'String',
|
54
59
|
:'namespace' => :'String'
|
@@ -86,6 +91,12 @@ module PulpAnsibleClient
|
|
86
91
|
self.artifact = nil
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'pulp_labels')
|
95
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
|
+
self.pulp_labels = value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
89
100
|
if attributes.key?(:'version')
|
90
101
|
self.version = attributes[:'version']
|
91
102
|
else
|
@@ -204,6 +215,7 @@ module PulpAnsibleClient
|
|
204
215
|
self.class == o.class &&
|
205
216
|
repository == o.repository &&
|
206
217
|
artifact == o.artifact &&
|
218
|
+
pulp_labels == o.pulp_labels &&
|
207
219
|
version == o.version &&
|
208
220
|
name == o.name &&
|
209
221
|
namespace == o.namespace
|
@@ -218,7 +230,7 @@ module PulpAnsibleClient
|
|
218
230
|
# Calculates hash code according to all attributes.
|
219
231
|
# @return [Integer] Hash code
|
220
232
|
def hash
|
221
|
-
[repository, artifact, version, name, namespace].hash
|
233
|
+
[repository, artifact, pulp_labels, version, name, namespace].hash
|
222
234
|
end
|
223
235
|
|
224
236
|
# Builds the object from hash
|
@@ -16,20 +16,23 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Role versions.
|
18
18
|
class AnsibleRoleResponse
|
19
|
-
|
20
|
-
attr_accessor :pulp_last_updated
|
21
|
-
|
22
|
-
# The Pulp Resource Name (PRN).
|
23
|
-
attr_accessor :prn
|
19
|
+
attr_accessor :pulp_href
|
24
20
|
|
25
21
|
# Timestamp of creation.
|
26
22
|
attr_accessor :pulp_created
|
27
23
|
|
28
|
-
attr_accessor :pulp_href
|
29
|
-
|
30
24
|
# Artifact file representing the physical content
|
31
25
|
attr_accessor :artifact
|
32
26
|
|
27
|
+
# The Pulp Resource Name (PRN).
|
28
|
+
attr_accessor :prn
|
29
|
+
|
30
|
+
# 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.
|
31
|
+
attr_accessor :pulp_last_updated
|
32
|
+
|
33
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
34
|
+
attr_accessor :pulp_labels
|
35
|
+
|
33
36
|
attr_accessor :version
|
34
37
|
|
35
38
|
attr_accessor :name
|
@@ -39,11 +42,12 @@ module PulpAnsibleClient
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
42
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
43
|
-
:'prn' => :'prn',
|
44
|
-
:'pulp_created' => :'pulp_created',
|
45
45
|
:'pulp_href' => :'pulp_href',
|
46
|
+
:'pulp_created' => :'pulp_created',
|
46
47
|
:'artifact' => :'artifact',
|
48
|
+
:'prn' => :'prn',
|
49
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
47
51
|
:'version' => :'version',
|
48
52
|
:'name' => :'name',
|
49
53
|
:'namespace' => :'namespace'
|
@@ -58,11 +62,12 @@ module PulpAnsibleClient
|
|
58
62
|
# Attribute type mapping.
|
59
63
|
def self.openapi_types
|
60
64
|
{
|
61
|
-
:'pulp_last_updated' => :'Time',
|
62
|
-
:'prn' => :'String',
|
63
|
-
:'pulp_created' => :'Time',
|
64
65
|
:'pulp_href' => :'String',
|
66
|
+
:'pulp_created' => :'Time',
|
65
67
|
:'artifact' => :'String',
|
68
|
+
:'prn' => :'String',
|
69
|
+
:'pulp_last_updated' => :'Time',
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
66
71
|
:'version' => :'String',
|
67
72
|
:'name' => :'String',
|
68
73
|
:'namespace' => :'String'
|
@@ -90,28 +95,34 @@ module PulpAnsibleClient
|
|
90
95
|
h[k.to_sym] = v
|
91
96
|
}
|
92
97
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.key?(:'prn')
|
98
|
-
self.prn = attributes[:'prn']
|
98
|
+
if attributes.key?(:'pulp_href')
|
99
|
+
self.pulp_href = attributes[:'pulp_href']
|
99
100
|
end
|
100
101
|
|
101
102
|
if attributes.key?(:'pulp_created')
|
102
103
|
self.pulp_created = attributes[:'pulp_created']
|
103
104
|
end
|
104
105
|
|
105
|
-
if attributes.key?(:'pulp_href')
|
106
|
-
self.pulp_href = attributes[:'pulp_href']
|
107
|
-
end
|
108
|
-
|
109
106
|
if attributes.key?(:'artifact')
|
110
107
|
self.artifact = attributes[:'artifact']
|
111
108
|
else
|
112
109
|
self.artifact = nil
|
113
110
|
end
|
114
111
|
|
112
|
+
if attributes.key?(:'prn')
|
113
|
+
self.prn = attributes[:'prn']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'pulp_last_updated')
|
117
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
115
126
|
if attributes.key?(:'version')
|
116
127
|
self.version = attributes[:'version']
|
117
128
|
else
|
@@ -171,11 +182,12 @@ module PulpAnsibleClient
|
|
171
182
|
def ==(o)
|
172
183
|
return true if self.equal?(o)
|
173
184
|
self.class == o.class &&
|
174
|
-
pulp_last_updated == o.pulp_last_updated &&
|
175
|
-
prn == o.prn &&
|
176
|
-
pulp_created == o.pulp_created &&
|
177
185
|
pulp_href == o.pulp_href &&
|
186
|
+
pulp_created == o.pulp_created &&
|
178
187
|
artifact == o.artifact &&
|
188
|
+
prn == o.prn &&
|
189
|
+
pulp_last_updated == o.pulp_last_updated &&
|
190
|
+
pulp_labels == o.pulp_labels &&
|
179
191
|
version == o.version &&
|
180
192
|
name == o.name &&
|
181
193
|
namespace == o.namespace
|
@@ -190,7 +202,7 @@ module PulpAnsibleClient
|
|
190
202
|
# Calculates hash code according to all attributes.
|
191
203
|
# @return [Integer] Hash code
|
192
204
|
def hash
|
193
|
-
[
|
205
|
+
[pulp_href, pulp_created, artifact, prn, pulp_last_updated, pulp_labels, version, name, namespace].hash
|
194
206
|
end
|
195
207
|
|
196
208
|
# Builds the object from hash
|