pulp_ansible_client 0.20.8 → 0.21.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 +8 -8
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleCollectionVersionSignature.md +3 -1
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +8 -6
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +1 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +1 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +1 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/TagResponse.md +3 -1
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +9 -10
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +19 -19
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +12 -7
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +225 -225
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/tag_response.rb +13 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +2 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- data/spec/models/tag_response_spec.rb +6 -0
- metadata +147 -147
@@ -15,57 +15,57 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
# A PEM encoded
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# Headers for aiohttp.Clientsession
|
22
|
-
attr_accessor :headers
|
23
|
-
|
24
|
-
# Limits requests per second for each concurrent downloader
|
25
|
-
attr_accessor :rate_limit
|
18
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
19
|
+
attr_accessor :ca_cert
|
26
20
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
21
|
+
# Timestamp of the most recent update of the remote.
|
22
|
+
attr_accessor :pulp_last_updated
|
29
23
|
|
30
24
|
# The URL of an external content source.
|
31
25
|
attr_accessor :url
|
32
26
|
|
33
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
34
|
-
attr_accessor :connect_timeout
|
35
|
-
|
36
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
37
|
-
attr_accessor :ca_cert
|
38
|
-
|
39
27
|
# If True, TLS peer validation must be performed.
|
40
28
|
attr_accessor :tls_validation
|
41
29
|
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
# Timestamp of the most recent update of the remote.
|
45
|
-
attr_accessor :pulp_last_updated
|
46
|
-
|
47
|
-
# List of hidden (write only) fields
|
48
|
-
attr_accessor :hidden_fields
|
49
|
-
|
50
|
-
# The proxy URL. Format: scheme://host:port
|
51
|
-
attr_accessor :proxy_url
|
30
|
+
attr_accessor :pulp_href
|
52
31
|
|
53
32
|
# 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.
|
54
33
|
attr_accessor :sock_read_timeout
|
55
34
|
|
35
|
+
# Timestamp of creation.
|
36
|
+
attr_accessor :pulp_created
|
37
|
+
|
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
|
40
|
+
|
56
41
|
# A unique name for this remote.
|
57
42
|
attr_accessor :name
|
58
43
|
|
59
|
-
|
44
|
+
# Headers for aiohttp.Clientsession
|
45
|
+
attr_accessor :headers
|
60
46
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
47
|
+
# Limits requests per second for each concurrent downloader
|
48
|
+
attr_accessor :rate_limit
|
49
|
+
|
50
|
+
# A PEM encoded client certificate used for authentication.
|
51
|
+
attr_accessor :client_cert
|
63
52
|
|
64
53
|
# 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.
|
65
54
|
attr_accessor :sock_connect_timeout
|
66
55
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
56
|
+
# List of hidden (write only) fields
|
57
|
+
attr_accessor :hidden_fields
|
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
|
61
|
+
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
|
+
attr_accessor :total_timeout
|
64
|
+
|
65
|
+
attr_accessor :pulp_labels
|
66
|
+
|
67
|
+
# The proxy URL. Format: scheme://host:port
|
68
|
+
attr_accessor :proxy_url
|
69
69
|
|
70
70
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
71
71
|
attr_accessor :download_concurrency
|
@@ -79,24 +79,24 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
-
:'client_cert' => :'client_cert',
|
83
|
-
:'headers' => :'headers',
|
84
|
-
:'rate_limit' => :'rate_limit',
|
85
|
-
:'max_retries' => :'max_retries',
|
86
|
-
:'url' => :'url',
|
87
|
-
:'connect_timeout' => :'connect_timeout',
|
88
82
|
:'ca_cert' => :'ca_cert',
|
89
|
-
:'tls_validation' => :'tls_validation',
|
90
|
-
:'pulp_labels' => :'pulp_labels',
|
91
83
|
:'pulp_last_updated' => :'pulp_last_updated',
|
92
|
-
:'
|
93
|
-
:'
|
84
|
+
:'url' => :'url',
|
85
|
+
:'tls_validation' => :'tls_validation',
|
86
|
+
:'pulp_href' => :'pulp_href',
|
94
87
|
:'sock_read_timeout' => :'sock_read_timeout',
|
88
|
+
:'pulp_created' => :'pulp_created',
|
89
|
+
:'max_retries' => :'max_retries',
|
95
90
|
:'name' => :'name',
|
96
|
-
:'
|
97
|
-
:'
|
91
|
+
:'headers' => :'headers',
|
92
|
+
:'rate_limit' => :'rate_limit',
|
93
|
+
:'client_cert' => :'client_cert',
|
98
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
99
|
-
:'
|
95
|
+
:'hidden_fields' => :'hidden_fields',
|
96
|
+
:'connect_timeout' => :'connect_timeout',
|
97
|
+
:'total_timeout' => :'total_timeout',
|
98
|
+
:'pulp_labels' => :'pulp_labels',
|
99
|
+
:'proxy_url' => :'proxy_url',
|
100
100
|
:'download_concurrency' => :'download_concurrency',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
@@ -106,24 +106,24 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
-
:'client_cert' => :'String',
|
110
|
-
:'headers' => :'Array<Object>',
|
111
|
-
:'rate_limit' => :'Integer',
|
112
|
-
:'max_retries' => :'Integer',
|
113
|
-
:'url' => :'String',
|
114
|
-
:'connect_timeout' => :'Float',
|
115
109
|
:'ca_cert' => :'String',
|
116
|
-
:'tls_validation' => :'Boolean',
|
117
|
-
:'pulp_labels' => :'Hash<String, String>',
|
118
110
|
:'pulp_last_updated' => :'DateTime',
|
119
|
-
:'
|
120
|
-
:'
|
111
|
+
:'url' => :'String',
|
112
|
+
:'tls_validation' => :'Boolean',
|
113
|
+
:'pulp_href' => :'String',
|
121
114
|
:'sock_read_timeout' => :'Float',
|
115
|
+
:'pulp_created' => :'DateTime',
|
116
|
+
:'max_retries' => :'Integer',
|
122
117
|
:'name' => :'String',
|
123
|
-
:'
|
124
|
-
:'
|
118
|
+
:'headers' => :'Array<Object>',
|
119
|
+
:'rate_limit' => :'Integer',
|
120
|
+
:'client_cert' => :'String',
|
125
121
|
:'sock_connect_timeout' => :'Float',
|
126
|
-
:'
|
122
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
123
|
+
:'connect_timeout' => :'Float',
|
124
|
+
:'total_timeout' => :'Float',
|
125
|
+
:'pulp_labels' => :'Hash<String, String>',
|
126
|
+
:'proxy_url' => :'String',
|
127
127
|
:'download_concurrency' => :'Integer',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
@@ -133,15 +133,15 @@ module PulpAnsibleClient
|
|
133
133
|
# List of attributes with nullable: true
|
134
134
|
def self.openapi_nullable
|
135
135
|
Set.new([
|
136
|
-
:'client_cert',
|
137
|
-
:'rate_limit',
|
138
|
-
:'max_retries',
|
139
|
-
:'connect_timeout',
|
140
136
|
:'ca_cert',
|
141
|
-
:'proxy_url',
|
142
137
|
:'sock_read_timeout',
|
143
|
-
:'
|
138
|
+
:'max_retries',
|
139
|
+
:'rate_limit',
|
140
|
+
:'client_cert',
|
144
141
|
:'sock_connect_timeout',
|
142
|
+
:'connect_timeout',
|
143
|
+
:'total_timeout',
|
144
|
+
:'proxy_url',
|
145
145
|
:'download_concurrency',
|
146
146
|
])
|
147
147
|
end
|
@@ -161,82 +161,82 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
164
|
+
if attributes.key?(:'ca_cert')
|
165
|
+
self.ca_cert = attributes[:'ca_cert']
|
166
166
|
end
|
167
167
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
|
170
|
-
self.headers = value
|
171
|
-
end
|
168
|
+
if attributes.key?(:'pulp_last_updated')
|
169
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
172
170
|
end
|
173
171
|
|
174
|
-
if attributes.key?(:'
|
175
|
-
self.
|
172
|
+
if attributes.key?(:'url')
|
173
|
+
self.url = attributes[:'url']
|
176
174
|
end
|
177
175
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
176
|
+
if attributes.key?(:'tls_validation')
|
177
|
+
self.tls_validation = attributes[:'tls_validation']
|
180
178
|
end
|
181
179
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
180
|
+
if attributes.key?(:'pulp_href')
|
181
|
+
self.pulp_href = attributes[:'pulp_href']
|
184
182
|
end
|
185
183
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
184
|
+
if attributes.key?(:'sock_read_timeout')
|
185
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
188
186
|
end
|
189
187
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
188
|
+
if attributes.key?(:'pulp_created')
|
189
|
+
self.pulp_created = attributes[:'pulp_created']
|
192
190
|
end
|
193
191
|
|
194
|
-
if attributes.key?(:'
|
195
|
-
self.
|
192
|
+
if attributes.key?(:'max_retries')
|
193
|
+
self.max_retries = attributes[:'max_retries']
|
196
194
|
end
|
197
195
|
|
198
|
-
if attributes.key?(:'
|
199
|
-
|
200
|
-
self.pulp_labels = value
|
201
|
-
end
|
196
|
+
if attributes.key?(:'name')
|
197
|
+
self.name = attributes[:'name']
|
202
198
|
end
|
203
199
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
|
200
|
+
if attributes.key?(:'headers')
|
201
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
202
|
+
self.headers = value
|
203
|
+
end
|
206
204
|
end
|
207
205
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
|
210
|
-
self.hidden_fields = value
|
211
|
-
end
|
206
|
+
if attributes.key?(:'rate_limit')
|
207
|
+
self.rate_limit = attributes[:'rate_limit']
|
212
208
|
end
|
213
209
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
self.
|
210
|
+
if attributes.key?(:'client_cert')
|
211
|
+
self.client_cert = attributes[:'client_cert']
|
216
212
|
end
|
217
213
|
|
218
|
-
if attributes.key?(:'
|
219
|
-
self.
|
214
|
+
if attributes.key?(:'sock_connect_timeout')
|
215
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
220
216
|
end
|
221
217
|
|
222
|
-
if attributes.key?(:'
|
223
|
-
|
218
|
+
if attributes.key?(:'hidden_fields')
|
219
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
220
|
+
self.hidden_fields = value
|
221
|
+
end
|
224
222
|
end
|
225
223
|
|
226
|
-
if attributes.key?(:'
|
227
|
-
self.
|
224
|
+
if attributes.key?(:'connect_timeout')
|
225
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
228
226
|
end
|
229
227
|
|
230
228
|
if attributes.key?(:'total_timeout')
|
231
229
|
self.total_timeout = attributes[:'total_timeout']
|
232
230
|
end
|
233
231
|
|
234
|
-
if attributes.key?(:'
|
235
|
-
|
232
|
+
if attributes.key?(:'pulp_labels')
|
233
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
234
|
+
self.pulp_labels = value
|
235
|
+
end
|
236
236
|
end
|
237
237
|
|
238
|
-
if attributes.key?(:'
|
239
|
-
self.
|
238
|
+
if attributes.key?(:'proxy_url')
|
239
|
+
self.proxy_url = attributes[:'proxy_url']
|
240
240
|
end
|
241
241
|
|
242
242
|
if attributes.key?(:'download_concurrency')
|
@@ -260,24 +260,24 @@ module PulpAnsibleClient
|
|
260
260
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
261
261
|
end
|
262
262
|
|
263
|
-
if !@
|
264
|
-
invalid_properties.push('invalid value for "
|
265
|
-
end
|
266
|
-
|
267
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
268
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
263
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
264
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
269
265
|
end
|
270
266
|
|
271
267
|
if @name.nil?
|
272
268
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
273
269
|
end
|
274
270
|
|
275
|
-
if !@
|
276
|
-
invalid_properties.push('invalid value for "
|
271
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
272
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
277
273
|
end
|
278
274
|
|
279
|
-
if !@
|
280
|
-
invalid_properties.push('invalid value for "
|
275
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
276
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
277
|
+
end
|
278
|
+
|
279
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
280
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
281
281
|
end
|
282
282
|
|
283
283
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
@@ -291,53 +291,53 @@ module PulpAnsibleClient
|
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
293
|
return false if @url.nil?
|
294
|
-
return false if !@
|
295
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
294
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
296
295
|
return false if @name.nil?
|
297
|
-
return false if !@
|
298
|
-
return false if !@
|
296
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
297
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
298
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
299
299
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
303
|
# Custom attribute writer method with validation
|
304
|
-
# @param [Object]
|
305
|
-
def
|
306
|
-
if !
|
307
|
-
fail ArgumentError, 'invalid value for "
|
304
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
305
|
+
def sock_read_timeout=(sock_read_timeout)
|
306
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
307
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
308
308
|
end
|
309
309
|
|
310
|
-
@
|
310
|
+
@sock_read_timeout = sock_read_timeout
|
311
311
|
end
|
312
312
|
|
313
313
|
# Custom attribute writer method with validation
|
314
|
-
# @param [Object]
|
315
|
-
def
|
316
|
-
if !
|
317
|
-
fail ArgumentError, 'invalid value for "
|
314
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
315
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
316
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
317
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
318
318
|
end
|
319
319
|
|
320
|
-
@
|
320
|
+
@sock_connect_timeout = sock_connect_timeout
|
321
321
|
end
|
322
322
|
|
323
323
|
# Custom attribute writer method with validation
|
324
|
-
# @param [Object]
|
325
|
-
def
|
326
|
-
if !
|
327
|
-
fail ArgumentError, 'invalid value for "
|
324
|
+
# @param [Object] connect_timeout Value to be assigned
|
325
|
+
def connect_timeout=(connect_timeout)
|
326
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
327
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
328
328
|
end
|
329
329
|
|
330
|
-
@
|
330
|
+
@connect_timeout = connect_timeout
|
331
331
|
end
|
332
332
|
|
333
333
|
# Custom attribute writer method with validation
|
334
|
-
# @param [Object]
|
335
|
-
def
|
336
|
-
if !
|
337
|
-
fail ArgumentError, 'invalid value for "
|
334
|
+
# @param [Object] total_timeout Value to be assigned
|
335
|
+
def total_timeout=(total_timeout)
|
336
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
337
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
338
338
|
end
|
339
339
|
|
340
|
-
@
|
340
|
+
@total_timeout = total_timeout
|
341
341
|
end
|
342
342
|
|
343
343
|
# Custom attribute writer method with validation
|
@@ -355,24 +355,24 @@ module PulpAnsibleClient
|
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
-
client_cert == o.client_cert &&
|
359
|
-
headers == o.headers &&
|
360
|
-
rate_limit == o.rate_limit &&
|
361
|
-
max_retries == o.max_retries &&
|
362
|
-
url == o.url &&
|
363
|
-
connect_timeout == o.connect_timeout &&
|
364
358
|
ca_cert == o.ca_cert &&
|
365
|
-
tls_validation == o.tls_validation &&
|
366
|
-
pulp_labels == o.pulp_labels &&
|
367
359
|
pulp_last_updated == o.pulp_last_updated &&
|
368
|
-
|
369
|
-
|
360
|
+
url == o.url &&
|
361
|
+
tls_validation == o.tls_validation &&
|
362
|
+
pulp_href == o.pulp_href &&
|
370
363
|
sock_read_timeout == o.sock_read_timeout &&
|
364
|
+
pulp_created == o.pulp_created &&
|
365
|
+
max_retries == o.max_retries &&
|
371
366
|
name == o.name &&
|
372
|
-
|
373
|
-
|
367
|
+
headers == o.headers &&
|
368
|
+
rate_limit == o.rate_limit &&
|
369
|
+
client_cert == o.client_cert &&
|
374
370
|
sock_connect_timeout == o.sock_connect_timeout &&
|
375
|
-
|
371
|
+
hidden_fields == o.hidden_fields &&
|
372
|
+
connect_timeout == o.connect_timeout &&
|
373
|
+
total_timeout == o.total_timeout &&
|
374
|
+
pulp_labels == o.pulp_labels &&
|
375
|
+
proxy_url == o.proxy_url &&
|
376
376
|
download_concurrency == o.download_concurrency &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
@@ -387,7 +387,7 @@ module PulpAnsibleClient
|
|
387
387
|
# Calculates hash code according to all attributes.
|
388
388
|
# @return [Integer] Hash code
|
389
389
|
def hash
|
390
|
-
[
|
390
|
+
[ca_cert, pulp_last_updated, url, tls_validation, pulp_href, sock_read_timeout, pulp_created, max_retries, name, headers, rate_limit, client_cert, sock_connect_timeout, hidden_fields, connect_timeout, total_timeout, pulp_labels, proxy_url, download_concurrency, metadata_only, git_ref].hash
|
391
391
|
end
|
392
392
|
|
393
393
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRole
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
18
|
# Artifact file representing the physical content
|
22
19
|
attr_accessor :artifact
|
23
20
|
|
21
|
+
# A URI of a repository the new content unit should be associated with.
|
22
|
+
attr_accessor :repository
|
23
|
+
|
24
24
|
attr_accessor :version
|
25
25
|
|
26
26
|
attr_accessor :name
|
@@ -30,8 +30,8 @@ module PulpAnsibleClient
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'repository' => :'repository',
|
34
33
|
:'artifact' => :'artifact',
|
34
|
+
:'repository' => :'repository',
|
35
35
|
:'version' => :'version',
|
36
36
|
:'name' => :'name',
|
37
37
|
:'namespace' => :'namespace'
|
@@ -41,8 +41,8 @@ module PulpAnsibleClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
-
:'repository' => :'String',
|
45
44
|
:'artifact' => :'String',
|
45
|
+
:'repository' => :'String',
|
46
46
|
:'version' => :'String',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'namespace' => :'String'
|
@@ -70,14 +70,14 @@ module PulpAnsibleClient
|
|
70
70
|
h[k.to_sym] = v
|
71
71
|
}
|
72
72
|
|
73
|
-
if attributes.key?(:'repository')
|
74
|
-
self.repository = attributes[:'repository']
|
75
|
-
end
|
76
|
-
|
77
73
|
if attributes.key?(:'artifact')
|
78
74
|
self.artifact = attributes[:'artifact']
|
79
75
|
end
|
80
76
|
|
77
|
+
if attributes.key?(:'repository')
|
78
|
+
self.repository = attributes[:'repository']
|
79
|
+
end
|
80
|
+
|
81
81
|
if attributes.key?(:'version')
|
82
82
|
self.version = attributes[:'version']
|
83
83
|
end
|
@@ -186,8 +186,8 @@ module PulpAnsibleClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
repository == o.repository &&
|
190
189
|
artifact == o.artifact &&
|
190
|
+
repository == o.repository &&
|
191
191
|
version == o.version &&
|
192
192
|
name == o.name &&
|
193
193
|
namespace == o.namespace
|
@@ -202,7 +202,7 @@ module PulpAnsibleClient
|
|
202
202
|
# Calculates hash code according to all attributes.
|
203
203
|
# @return [Integer] Hash code
|
204
204
|
def hash
|
205
|
-
[
|
205
|
+
[artifact, repository, version, name, namespace].hash
|
206
206
|
end
|
207
207
|
|
208
208
|
# Builds the object from hash
|
@@ -312,20 +312,20 @@ module PulpAnsibleClient
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -347,10 +347,10 @@ module PulpAnsibleClient
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
352
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
353
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
351
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
352
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
354
354
|
true
|
355
355
|
end
|
356
356
|
|
@@ -475,8 +475,8 @@ module PulpAnsibleClient
|
|
475
475
|
# Custom attribute writer method with validation
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
477
477
|
def total_timeout=(total_timeout)
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
478
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
480
480
|
end
|
481
481
|
|
482
482
|
@total_timeout = total_timeout
|
@@ -485,8 +485,8 @@ module PulpAnsibleClient
|
|
485
485
|
# Custom attribute writer method with validation
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
487
487
|
def connect_timeout=(connect_timeout)
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
490
490
|
end
|
491
491
|
|
492
492
|
@connect_timeout = connect_timeout
|
@@ -495,8 +495,8 @@ module PulpAnsibleClient
|
|
495
495
|
# Custom attribute writer method with validation
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
500
500
|
end
|
501
501
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -505,8 +505,8 @@ module PulpAnsibleClient
|
|
505
505
|
# Custom attribute writer method with validation
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
510
510
|
end
|
511
511
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|