pulp_ansible_client 0.20.12 → 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 +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionVersionSignature.md +3 -1
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- 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 +7 -7
- 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 +30 -30
- 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 +7 -7
- 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_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +13 -13
- 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 +250 -250
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +248 -248
- 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 +3 -3
- 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 +3 -3
- data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/tag_response_spec.rb +6 -0
- metadata +153 -153
@@ -15,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
19
|
-
|
20
|
-
# A PEM encoded client certificate used for authentication.
|
21
|
-
attr_accessor :client_cert
|
18
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
19
|
+
attr_accessor :ca_cert
|
22
20
|
|
23
21
|
# Timestamp of the most recent update of the remote.
|
24
22
|
attr_accessor :pulp_last_updated
|
25
23
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
28
|
-
|
29
|
-
# 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.
|
30
|
-
attr_accessor :sock_read_timeout
|
31
|
-
|
32
|
-
# 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.
|
33
|
-
attr_accessor :sock_connect_timeout
|
24
|
+
# The URL of an external content source.
|
25
|
+
attr_accessor :url
|
34
26
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
27
|
+
# If True, TLS peer validation must be performed.
|
28
|
+
attr_accessor :tls_validation
|
37
29
|
|
38
30
|
attr_accessor :pulp_href
|
39
31
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
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.
|
33
|
+
attr_accessor :sock_read_timeout
|
42
34
|
|
43
|
-
#
|
44
|
-
attr_accessor :
|
35
|
+
# Timestamp of creation.
|
36
|
+
attr_accessor :pulp_created
|
45
37
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
38
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
39
|
+
attr_accessor :max_retries
|
40
|
+
|
41
|
+
# A unique name for this remote.
|
42
|
+
attr_accessor :name
|
48
43
|
|
49
44
|
# Headers for aiohttp.Clientsession
|
50
45
|
attr_accessor :headers
|
51
46
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
47
|
+
# Limits requests per second for each concurrent downloader
|
48
|
+
attr_accessor :rate_limit
|
54
49
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
50
|
+
# A PEM encoded client certificate used for authentication.
|
51
|
+
attr_accessor :client_cert
|
57
52
|
|
58
|
-
# aiohttp.ClientTimeout.
|
59
|
-
attr_accessor :
|
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.
|
54
|
+
attr_accessor :sock_connect_timeout
|
60
55
|
|
61
56
|
# List of hidden (write only) fields
|
62
57
|
attr_accessor :hidden_fields
|
63
58
|
|
64
|
-
#
|
65
|
-
attr_accessor :
|
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
|
66
61
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
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
|
69
64
|
|
70
|
-
|
71
|
-
|
65
|
+
attr_accessor :pulp_labels
|
66
|
+
|
67
|
+
# The proxy URL. Format: scheme://host:port
|
68
|
+
attr_accessor :proxy_url
|
69
|
+
|
70
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
71
|
+
attr_accessor :download_concurrency
|
72
72
|
|
73
73
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
74
74
|
attr_accessor :metadata_only
|
@@ -79,25 +79,25 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
-
:'pulp_labels' => :'pulp_labels',
|
83
|
-
:'client_cert' => :'client_cert',
|
84
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
85
|
-
:'total_timeout' => :'total_timeout',
|
86
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
87
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
88
|
-
:'rate_limit' => :'rate_limit',
|
89
|
-
:'pulp_href' => :'pulp_href',
|
90
82
|
:'ca_cert' => :'ca_cert',
|
91
|
-
:'
|
83
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
92
84
|
:'url' => :'url',
|
93
|
-
:'headers' => :'headers',
|
94
|
-
:'max_retries' => :'max_retries',
|
95
|
-
:'download_concurrency' => :'download_concurrency',
|
96
|
-
:'connect_timeout' => :'connect_timeout',
|
97
|
-
:'hidden_fields' => :'hidden_fields',
|
98
85
|
:'tls_validation' => :'tls_validation',
|
86
|
+
:'pulp_href' => :'pulp_href',
|
87
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
99
88
|
:'pulp_created' => :'pulp_created',
|
89
|
+
:'max_retries' => :'max_retries',
|
100
90
|
:'name' => :'name',
|
91
|
+
:'headers' => :'headers',
|
92
|
+
:'rate_limit' => :'rate_limit',
|
93
|
+
:'client_cert' => :'client_cert',
|
94
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
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
|
+
:'download_concurrency' => :'download_concurrency',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
103
103
|
}
|
@@ -106,25 +106,25 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
-
:'pulp_labels' => :'Hash<String, String>',
|
110
|
-
:'client_cert' => :'String',
|
111
|
-
:'pulp_last_updated' => :'DateTime',
|
112
|
-
:'total_timeout' => :'Float',
|
113
|
-
:'sock_read_timeout' => :'Float',
|
114
|
-
:'sock_connect_timeout' => :'Float',
|
115
|
-
:'rate_limit' => :'Integer',
|
116
|
-
:'pulp_href' => :'String',
|
117
109
|
:'ca_cert' => :'String',
|
118
|
-
:'
|
110
|
+
:'pulp_last_updated' => :'DateTime',
|
119
111
|
:'url' => :'String',
|
120
|
-
:'headers' => :'Array<Object>',
|
121
|
-
:'max_retries' => :'Integer',
|
122
|
-
:'download_concurrency' => :'Integer',
|
123
|
-
:'connect_timeout' => :'Float',
|
124
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
125
112
|
:'tls_validation' => :'Boolean',
|
113
|
+
:'pulp_href' => :'String',
|
114
|
+
:'sock_read_timeout' => :'Float',
|
126
115
|
:'pulp_created' => :'DateTime',
|
116
|
+
:'max_retries' => :'Integer',
|
127
117
|
:'name' => :'String',
|
118
|
+
:'headers' => :'Array<Object>',
|
119
|
+
:'rate_limit' => :'Integer',
|
120
|
+
:'client_cert' => :'String',
|
121
|
+
:'sock_connect_timeout' => :'Float',
|
122
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
123
|
+
:'connect_timeout' => :'Float',
|
124
|
+
:'total_timeout' => :'Float',
|
125
|
+
:'pulp_labels' => :'Hash<String, String>',
|
126
|
+
:'proxy_url' => :'String',
|
127
|
+
:'download_concurrency' => :'Integer',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
130
130
|
}
|
@@ -133,16 +133,16 @@ module PulpAnsibleClient
|
|
133
133
|
# List of attributes with nullable: true
|
134
134
|
def self.openapi_nullable
|
135
135
|
Set.new([
|
136
|
-
:'
|
137
|
-
:'total_timeout',
|
136
|
+
:'ca_cert',
|
138
137
|
:'sock_read_timeout',
|
139
|
-
:'
|
138
|
+
:'max_retries',
|
140
139
|
:'rate_limit',
|
141
|
-
:'
|
140
|
+
:'client_cert',
|
141
|
+
:'sock_connect_timeout',
|
142
|
+
:'connect_timeout',
|
143
|
+
:'total_timeout',
|
142
144
|
:'proxy_url',
|
143
|
-
:'max_retries',
|
144
145
|
:'download_concurrency',
|
145
|
-
:'connect_timeout',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,50 +161,40 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
|
166
|
-
self.pulp_labels = value
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.key?(:'client_cert')
|
171
|
-
self.client_cert = attributes[:'client_cert']
|
164
|
+
if attributes.key?(:'ca_cert')
|
165
|
+
self.ca_cert = attributes[:'ca_cert']
|
172
166
|
end
|
173
167
|
|
174
168
|
if attributes.key?(:'pulp_last_updated')
|
175
169
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
176
170
|
end
|
177
171
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
180
|
-
end
|
181
|
-
|
182
|
-
if attributes.key?(:'sock_read_timeout')
|
183
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
184
|
-
end
|
185
|
-
|
186
|
-
if attributes.key?(:'sock_connect_timeout')
|
187
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
172
|
+
if attributes.key?(:'url')
|
173
|
+
self.url = attributes[:'url']
|
188
174
|
end
|
189
175
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
176
|
+
if attributes.key?(:'tls_validation')
|
177
|
+
self.tls_validation = attributes[:'tls_validation']
|
192
178
|
end
|
193
179
|
|
194
180
|
if attributes.key?(:'pulp_href')
|
195
181
|
self.pulp_href = attributes[:'pulp_href']
|
196
182
|
end
|
197
183
|
|
198
|
-
if attributes.key?(:'
|
199
|
-
self.
|
184
|
+
if attributes.key?(:'sock_read_timeout')
|
185
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
200
186
|
end
|
201
187
|
|
202
|
-
if attributes.key?(:'
|
203
|
-
self.
|
188
|
+
if attributes.key?(:'pulp_created')
|
189
|
+
self.pulp_created = attributes[:'pulp_created']
|
204
190
|
end
|
205
191
|
|
206
|
-
if attributes.key?(:'
|
207
|
-
self.
|
192
|
+
if attributes.key?(:'max_retries')
|
193
|
+
self.max_retries = attributes[:'max_retries']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'name')
|
197
|
+
self.name = attributes[:'name']
|
208
198
|
end
|
209
199
|
|
210
200
|
if attributes.key?(:'headers')
|
@@ -213,16 +203,16 @@ module PulpAnsibleClient
|
|
213
203
|
end
|
214
204
|
end
|
215
205
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
206
|
+
if attributes.key?(:'rate_limit')
|
207
|
+
self.rate_limit = attributes[:'rate_limit']
|
218
208
|
end
|
219
209
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
210
|
+
if attributes.key?(:'client_cert')
|
211
|
+
self.client_cert = attributes[:'client_cert']
|
222
212
|
end
|
223
213
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
214
|
+
if attributes.key?(:'sock_connect_timeout')
|
215
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
226
216
|
end
|
227
217
|
|
228
218
|
if attributes.key?(:'hidden_fields')
|
@@ -231,16 +221,26 @@ module PulpAnsibleClient
|
|
231
221
|
end
|
232
222
|
end
|
233
223
|
|
234
|
-
if attributes.key?(:'
|
235
|
-
self.
|
224
|
+
if attributes.key?(:'connect_timeout')
|
225
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
236
226
|
end
|
237
227
|
|
238
|
-
if attributes.key?(:'
|
239
|
-
self.
|
228
|
+
if attributes.key?(:'total_timeout')
|
229
|
+
self.total_timeout = attributes[:'total_timeout']
|
240
230
|
end
|
241
231
|
|
242
|
-
if attributes.key?(:'
|
243
|
-
|
232
|
+
if attributes.key?(:'pulp_labels')
|
233
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
234
|
+
self.pulp_labels = value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
if attributes.key?(:'proxy_url')
|
239
|
+
self.proxy_url = attributes[:'proxy_url']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.key?(:'download_concurrency')
|
243
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
244
244
|
end
|
245
245
|
|
246
246
|
if attributes.key?(:'metadata_only')
|
@@ -256,32 +256,32 @@ module PulpAnsibleClient
|
|
256
256
|
# @return Array for valid properties with the reasons
|
257
257
|
def list_invalid_properties
|
258
258
|
invalid_properties = Array.new
|
259
|
-
if
|
260
|
-
invalid_properties.push('invalid value for "
|
259
|
+
if @url.nil?
|
260
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
261
261
|
end
|
262
262
|
|
263
263
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
264
264
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
265
265
|
end
|
266
266
|
|
267
|
-
if
|
268
|
-
invalid_properties.push('invalid value for "
|
269
|
-
end
|
270
|
-
|
271
|
-
if @url.nil?
|
272
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
267
|
+
if @name.nil?
|
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
275
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
280
276
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
281
277
|
end
|
282
278
|
|
283
|
-
if
|
284
|
-
invalid_properties.push('invalid value for "
|
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
|
+
end
|
282
|
+
|
283
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
284
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
285
285
|
end
|
286
286
|
|
287
287
|
invalid_properties
|
@@ -290,26 +290,16 @@ module PulpAnsibleClient
|
|
290
290
|
# Check to see if the all the properties in the model are valid
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
|
-
return false if
|
293
|
+
return false if @url.nil?
|
294
294
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
295
|
+
return false if @name.nil?
|
295
296
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
296
|
-
return false if @url.nil?
|
297
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
298
297
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
299
|
-
return false if
|
298
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
299
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
|
-
# Custom attribute writer method with validation
|
304
|
-
# @param [Object] total_timeout Value to be assigned
|
305
|
-
def total_timeout=(total_timeout)
|
306
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
307
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
308
|
-
end
|
309
|
-
|
310
|
-
@total_timeout = total_timeout
|
311
|
-
end
|
312
|
-
|
313
303
|
# Custom attribute writer method with validation
|
314
304
|
# @param [Object] sock_read_timeout Value to be assigned
|
315
305
|
def sock_read_timeout=(sock_read_timeout)
|
@@ -330,16 +320,6 @@ module PulpAnsibleClient
|
|
330
320
|
@sock_connect_timeout = sock_connect_timeout
|
331
321
|
end
|
332
322
|
|
333
|
-
# Custom attribute writer method with validation
|
334
|
-
# @param [Object] download_concurrency Value to be assigned
|
335
|
-
def download_concurrency=(download_concurrency)
|
336
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
337
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
338
|
-
end
|
339
|
-
|
340
|
-
@download_concurrency = download_concurrency
|
341
|
-
end
|
342
|
-
|
343
323
|
# Custom attribute writer method with validation
|
344
324
|
# @param [Object] connect_timeout Value to be assigned
|
345
325
|
def connect_timeout=(connect_timeout)
|
@@ -350,30 +330,50 @@ module PulpAnsibleClient
|
|
350
330
|
@connect_timeout = connect_timeout
|
351
331
|
end
|
352
332
|
|
333
|
+
# Custom attribute writer method with validation
|
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
|
+
end
|
339
|
+
|
340
|
+
@total_timeout = total_timeout
|
341
|
+
end
|
342
|
+
|
343
|
+
# Custom attribute writer method with validation
|
344
|
+
# @param [Object] download_concurrency Value to be assigned
|
345
|
+
def download_concurrency=(download_concurrency)
|
346
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
347
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
348
|
+
end
|
349
|
+
|
350
|
+
@download_concurrency = download_concurrency
|
351
|
+
end
|
352
|
+
|
353
353
|
# Checks equality by comparing each attribute.
|
354
354
|
# @param [Object] Object to be compared
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
-
pulp_labels == o.pulp_labels &&
|
359
|
-
client_cert == o.client_cert &&
|
360
|
-
pulp_last_updated == o.pulp_last_updated &&
|
361
|
-
total_timeout == o.total_timeout &&
|
362
|
-
sock_read_timeout == o.sock_read_timeout &&
|
363
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
364
|
-
rate_limit == o.rate_limit &&
|
365
|
-
pulp_href == o.pulp_href &&
|
366
358
|
ca_cert == o.ca_cert &&
|
367
|
-
|
359
|
+
pulp_last_updated == o.pulp_last_updated &&
|
368
360
|
url == o.url &&
|
369
|
-
headers == o.headers &&
|
370
|
-
max_retries == o.max_retries &&
|
371
|
-
download_concurrency == o.download_concurrency &&
|
372
|
-
connect_timeout == o.connect_timeout &&
|
373
|
-
hidden_fields == o.hidden_fields &&
|
374
361
|
tls_validation == o.tls_validation &&
|
362
|
+
pulp_href == o.pulp_href &&
|
363
|
+
sock_read_timeout == o.sock_read_timeout &&
|
375
364
|
pulp_created == o.pulp_created &&
|
365
|
+
max_retries == o.max_retries &&
|
376
366
|
name == o.name &&
|
367
|
+
headers == o.headers &&
|
368
|
+
rate_limit == o.rate_limit &&
|
369
|
+
client_cert == o.client_cert &&
|
370
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
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
|
+
download_concurrency == o.download_concurrency &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
379
379
|
end
|
@@ -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
|