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