pulp_ansible_client 0.20.9 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  4. data/docs/AnsibleCollectionVersion.md +4 -4
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleCollectionVersionSignature.md +3 -1
  7. data/docs/AnsibleCollectionsApi.md +1 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +25 -25
  10. data/docs/AnsibleGitRemoteResponse.md +22 -22
  11. data/docs/AnsibleRoleResponse.md +2 -2
  12. data/docs/ApiCollectionsApi.md +1 -1
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  16. data/docs/ContentCollectionMarksApi.md +1 -1
  17. data/docs/ContentCollectionSignaturesApi.md +8 -6
  18. data/docs/ContentCollectionVersionsApi.md +5 -5
  19. data/docs/ContentNamespacesApi.md +1 -1
  20. data/docs/ContentRolesApi.md +1 -1
  21. data/docs/DistributionsAnsibleApi.md +1 -1
  22. data/docs/GalaxyDetailApi.md +1 -1
  23. data/docs/PatchedansibleGitRemote.md +25 -25
  24. data/docs/PulpAnsibleApiApi.md +1 -1
  25. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  26. data/docs/PulpAnsibleApiV3Api.md +1 -1
  27. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  30. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  43. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  44. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  64. data/docs/PulpAnsibleTagsApi.md +1 -1
  65. data/docs/RemotesCollectionApi.md +1 -1
  66. data/docs/RemotesGitApi.md +1 -1
  67. data/docs/RemotesRoleApi.md +1 -1
  68. data/docs/RepositoriesAnsibleApi.md +1 -1
  69. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  70. data/docs/TagResponse.md +3 -1
  71. data/docs/VersionsApi.md +1 -1
  72. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +9 -10
  73. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +5 -5
  74. 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
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  76. data/lib/pulp_ansible_client/configuration.rb +2 -2
  77. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  78. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  79. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  80. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +12 -12
  81. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +12 -7
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +227 -227
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +135 -135
  85. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  86. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  87. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  88. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  89. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
  90. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  91. data/lib/pulp_ansible_client/models/tag_response.rb +13 -4
  92. data/lib/pulp_ansible_client/version.rb +1 -1
  93. data/lib/pulp_ansible_client.rb +1 -1
  94. data/spec/api/content_collection_signatures_api_spec.rb +2 -1
  95. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  96. 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
  97. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  98. data/spec/configuration_spec.rb +3 -3
  99. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  100. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  101. data/spec/models/ansible_collection_version_spec.rb +4 -4
  102. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  103. data/spec/models/ansible_git_remote_spec.rb +18 -18
  104. data/spec/models/ansible_role_response_spec.rb +2 -2
  105. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  106. data/spec/models/tag_response_spec.rb +6 -0
  107. metadata +147 -147
@@ -15,48 +15,40 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
19
+ attr_accessor :ca_cert
20
+
21
+ # Timestamp of the most recent update of the remote.
22
+ attr_accessor :pulp_last_updated
23
+
24
+ # The URL of an external content source.
25
+ attr_accessor :url
26
+
27
+ # If True, TLS peer validation must be performed.
28
+ attr_accessor :tls_validation
20
29
 
21
30
  attr_accessor :pulp_href
22
31
 
23
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.
24
33
  attr_accessor :sock_read_timeout
25
34
 
26
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
27
- attr_accessor :total_timeout
28
-
29
- attr_accessor :pulp_labels
30
-
31
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
32
- attr_accessor :connect_timeout
35
+ # Timestamp of creation.
36
+ attr_accessor :pulp_created
33
37
 
34
38
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
35
39
  attr_accessor :max_retries
36
40
 
37
- # The proxy URL. Format: scheme://host:port
38
- attr_accessor :proxy_url
39
-
40
- # Timestamp of the most recent update of the remote.
41
- attr_accessor :pulp_last_updated
42
-
43
- # A PEM encoded client certificate used for authentication.
44
- attr_accessor :client_cert
45
-
46
41
  # A unique name for this remote.
47
42
  attr_accessor :name
48
43
 
49
- # If True, TLS peer validation must be performed.
50
- attr_accessor :tls_validation
44
+ # Headers for aiohttp.Clientsession
45
+ attr_accessor :headers
51
46
 
52
47
  # Limits requests per second for each concurrent downloader
53
48
  attr_accessor :rate_limit
54
49
 
55
- # Headers for aiohttp.Clientsession
56
- attr_accessor :headers
57
-
58
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
59
- attr_accessor :ca_cert
50
+ # A PEM encoded client certificate used for authentication.
51
+ attr_accessor :client_cert
60
52
 
61
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.
62
54
  attr_accessor :sock_connect_timeout
@@ -64,8 +56,16 @@ module PulpAnsibleClient
64
56
  # List of hidden (write only) fields
65
57
  attr_accessor :hidden_fields
66
58
 
67
- # The URL of an external content source.
68
- attr_accessor :url
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
- :'pulp_created' => :'pulp_created',
82
+ :'ca_cert' => :'ca_cert',
83
+ :'pulp_last_updated' => :'pulp_last_updated',
84
+ :'url' => :'url',
85
+ :'tls_validation' => :'tls_validation',
83
86
  :'pulp_href' => :'pulp_href',
84
87
  :'sock_read_timeout' => :'sock_read_timeout',
85
- :'total_timeout' => :'total_timeout',
86
- :'pulp_labels' => :'pulp_labels',
87
- :'connect_timeout' => :'connect_timeout',
88
+ :'pulp_created' => :'pulp_created',
88
89
  :'max_retries' => :'max_retries',
89
- :'proxy_url' => :'proxy_url',
90
- :'pulp_last_updated' => :'pulp_last_updated',
91
- :'client_cert' => :'client_cert',
92
90
  :'name' => :'name',
93
- :'tls_validation' => :'tls_validation',
94
- :'rate_limit' => :'rate_limit',
95
91
  :'headers' => :'headers',
96
- :'ca_cert' => :'ca_cert',
92
+ :'rate_limit' => :'rate_limit',
93
+ :'client_cert' => :'client_cert',
97
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
98
95
  :'hidden_fields' => :'hidden_fields',
99
- :'url' => :'url',
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
- :'pulp_created' => :'DateTime',
109
+ :'ca_cert' => :'String',
110
+ :'pulp_last_updated' => :'DateTime',
111
+ :'url' => :'String',
112
+ :'tls_validation' => :'Boolean',
110
113
  :'pulp_href' => :'String',
111
114
  :'sock_read_timeout' => :'Float',
112
- :'total_timeout' => :'Float',
113
- :'pulp_labels' => :'Hash<String, String>',
114
- :'connect_timeout' => :'Float',
115
+ :'pulp_created' => :'DateTime',
115
116
  :'max_retries' => :'Integer',
116
- :'proxy_url' => :'String',
117
- :'pulp_last_updated' => :'DateTime',
118
- :'client_cert' => :'String',
119
117
  :'name' => :'String',
120
- :'tls_validation' => :'Boolean',
121
- :'rate_limit' => :'Integer',
122
118
  :'headers' => :'Array<Object>',
123
- :'ca_cert' => :'String',
119
+ :'rate_limit' => :'Integer',
120
+ :'client_cert' => :'String',
124
121
  :'sock_connect_timeout' => :'Float',
125
122
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
126
- :'url' => :'String',
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
+ :'ca_cert',
136
137
  :'sock_read_timeout',
137
- :'total_timeout',
138
- :'connect_timeout',
139
138
  :'max_retries',
140
- :'proxy_url',
141
- :'client_cert',
142
139
  :'rate_limit',
143
- :'ca_cert',
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,68 +161,54 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_created')
165
- self.pulp_created = attributes[:'pulp_created']
166
- end
167
-
168
- if attributes.key?(:'pulp_href')
169
- self.pulp_href = attributes[:'pulp_href']
170
- end
171
-
172
- if attributes.key?(:'sock_read_timeout')
173
- self.sock_read_timeout = attributes[:'sock_read_timeout']
164
+ if attributes.key?(:'ca_cert')
165
+ self.ca_cert = attributes[:'ca_cert']
174
166
  end
175
167
 
176
- if attributes.key?(:'total_timeout')
177
- self.total_timeout = attributes[:'total_timeout']
168
+ if attributes.key?(:'pulp_last_updated')
169
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
178
170
  end
179
171
 
180
- if attributes.key?(:'pulp_labels')
181
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
182
- self.pulp_labels = value
183
- end
172
+ if attributes.key?(:'url')
173
+ self.url = attributes[:'url']
184
174
  end
185
175
 
186
- if attributes.key?(:'connect_timeout')
187
- self.connect_timeout = attributes[:'connect_timeout']
176
+ if attributes.key?(:'tls_validation')
177
+ self.tls_validation = attributes[:'tls_validation']
188
178
  end
189
179
 
190
- if attributes.key?(:'max_retries')
191
- self.max_retries = attributes[:'max_retries']
180
+ if attributes.key?(:'pulp_href')
181
+ self.pulp_href = attributes[:'pulp_href']
192
182
  end
193
183
 
194
- if attributes.key?(:'proxy_url')
195
- self.proxy_url = attributes[:'proxy_url']
184
+ if attributes.key?(:'sock_read_timeout')
185
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
196
186
  end
197
187
 
198
- if attributes.key?(:'pulp_last_updated')
199
- self.pulp_last_updated = attributes[:'pulp_last_updated']
188
+ if attributes.key?(:'pulp_created')
189
+ self.pulp_created = attributes[:'pulp_created']
200
190
  end
201
191
 
202
- if attributes.key?(:'client_cert')
203
- self.client_cert = attributes[:'client_cert']
192
+ if attributes.key?(:'max_retries')
193
+ self.max_retries = attributes[:'max_retries']
204
194
  end
205
195
 
206
196
  if attributes.key?(:'name')
207
197
  self.name = attributes[:'name']
208
198
  end
209
199
 
210
- if attributes.key?(:'tls_validation')
211
- self.tls_validation = attributes[:'tls_validation']
212
- end
213
-
214
- if attributes.key?(:'rate_limit')
215
- self.rate_limit = attributes[:'rate_limit']
216
- end
217
-
218
200
  if attributes.key?(:'headers')
219
201
  if (value = attributes[:'headers']).is_a?(Array)
220
202
  self.headers = value
221
203
  end
222
204
  end
223
205
 
224
- if attributes.key?(:'ca_cert')
225
- self.ca_cert = attributes[:'ca_cert']
206
+ if attributes.key?(:'rate_limit')
207
+ self.rate_limit = attributes[:'rate_limit']
208
+ end
209
+
210
+ if attributes.key?(:'client_cert')
211
+ self.client_cert = attributes[:'client_cert']
226
212
  end
227
213
 
228
214
  if attributes.key?(:'sock_connect_timeout')
@@ -235,8 +221,22 @@ module PulpAnsibleClient
235
221
  end
236
222
  end
237
223
 
238
- if attributes.key?(:'url')
239
- self.url = attributes[:'url']
224
+ if attributes.key?(:'connect_timeout')
225
+ self.connect_timeout = attributes[:'connect_timeout']
226
+ end
227
+
228
+ if attributes.key?(:'total_timeout')
229
+ self.total_timeout = attributes[:'total_timeout']
230
+ end
231
+
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
240
  end
241
241
 
242
242
  if attributes.key?(:'download_concurrency')
@@ -256,28 +256,28 @@ 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 !@sock_read_timeout.nil? && @sock_read_timeout < 0
260
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
261
- end
262
-
263
- if !@total_timeout.nil? && @total_timeout < 0
264
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
259
+ if @url.nil?
260
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
265
261
  end
266
262
 
267
- if !@connect_timeout.nil? && @connect_timeout < 0
268
- invalid_properties.push('invalid value for "connect_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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
276
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
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 @url.nil?
280
- invalid_properties.push('invalid value for "url", url cannot be nil.')
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
@@ -290,12 +290,12 @@ 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 !@sock_read_timeout.nil? && @sock_read_timeout < 0
294
- return false if !@total_timeout.nil? && @total_timeout < 0
295
- return false if !@connect_timeout.nil? && @connect_timeout < 0
296
- return false if @name.nil?
297
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
298
293
  return false if @url.nil?
294
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
+ return false if @name.nil?
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
@@ -303,41 +303,41 @@ module PulpAnsibleClient
303
303
  # Custom attribute writer method with validation
304
304
  # @param [Object] sock_read_timeout Value to be assigned
305
305
  def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
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] total_timeout Value to be assigned
315
- def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
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
- @total_timeout = total_timeout
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
324
324
  # @param [Object] connect_timeout Value to be assigned
325
325
  def connect_timeout=(connect_timeout)
326
- if !connect_timeout.nil? && connect_timeout < 0
327
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
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] sock_connect_timeout Value to be assigned
335
- def sock_connect_timeout=(sock_connect_timeout)
336
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
337
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
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
- @sock_connect_timeout = sock_connect_timeout
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
- pulp_created == o.pulp_created &&
358
+ ca_cert == o.ca_cert &&
359
+ pulp_last_updated == o.pulp_last_updated &&
360
+ url == o.url &&
361
+ tls_validation == o.tls_validation &&
359
362
  pulp_href == o.pulp_href &&
360
363
  sock_read_timeout == o.sock_read_timeout &&
361
- total_timeout == o.total_timeout &&
362
- pulp_labels == o.pulp_labels &&
363
- connect_timeout == o.connect_timeout &&
364
+ pulp_created == o.pulp_created &&
364
365
  max_retries == o.max_retries &&
365
- proxy_url == o.proxy_url &&
366
- pulp_last_updated == o.pulp_last_updated &&
367
- client_cert == o.client_cert &&
368
366
  name == o.name &&
369
- tls_validation == o.tls_validation &&
370
- rate_limit == o.rate_limit &&
371
367
  headers == o.headers &&
372
- ca_cert == o.ca_cert &&
368
+ rate_limit == o.rate_limit &&
369
+ client_cert == o.client_cert &&
373
370
  sock_connect_timeout == o.sock_connect_timeout &&
374
371
  hidden_fields == o.hidden_fields &&
375
- url == o.url &&
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
- [pulp_created, pulp_href, sock_read_timeout, total_timeout, pulp_labels, connect_timeout, max_retries, proxy_url, pulp_last_updated, client_cert, name, tls_validation, rate_limit, headers, ca_cert, sock_connect_timeout, hidden_fields, url, download_concurrency, metadata_only, git_ref].hash
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
@@ -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
@@ -259,20 +259,20 @@ module PulpAnsibleClient
259
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
260
  end
261
261
 
262
- if !@total_timeout.nil? && @total_timeout < 0
263
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
262
+ if !@total_timeout.nil? && @total_timeout < 0.0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
264
264
  end
265
265
 
266
- if !@connect_timeout.nil? && @connect_timeout < 0
267
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
266
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
268
  end
269
269
 
270
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
271
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
272
  end
273
273
 
274
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
275
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
276
276
  end
277
277
 
278
278
  invalid_properties
@@ -284,10 +284,10 @@ module PulpAnsibleClient
284
284
  return false if @name.nil?
285
285
  return false if @url.nil?
286
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
- return false if !@total_timeout.nil? && @total_timeout < 0
288
- return false if !@connect_timeout.nil? && @connect_timeout < 0
289
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
290
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
287
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
291
  true
292
292
  end
293
293
 
@@ -304,8 +304,8 @@ module PulpAnsibleClient
304
304
  # Custom attribute writer method with validation
305
305
  # @param [Object] total_timeout Value to be assigned
306
306
  def total_timeout=(total_timeout)
307
- if !total_timeout.nil? && total_timeout < 0
308
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
307
+ if !total_timeout.nil? && total_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
309
309
  end
310
310
 
311
311
  @total_timeout = total_timeout
@@ -314,8 +314,8 @@ module PulpAnsibleClient
314
314
  # Custom attribute writer method with validation
315
315
  # @param [Object] connect_timeout Value to be assigned
316
316
  def connect_timeout=(connect_timeout)
317
- if !connect_timeout.nil? && connect_timeout < 0
318
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
317
+ if !connect_timeout.nil? && connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
319
319
  end
320
320
 
321
321
  @connect_timeout = connect_timeout
@@ -324,8 +324,8 @@ module PulpAnsibleClient
324
324
  # Custom attribute writer method with validation
325
325
  # @param [Object] sock_connect_timeout Value to be assigned
326
326
  def sock_connect_timeout=(sock_connect_timeout)
327
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
328
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
329
329
  end
330
330
 
331
331
  @sock_connect_timeout = sock_connect_timeout
@@ -334,8 +334,8 @@ module PulpAnsibleClient
334
334
  # Custom attribute writer method with validation
335
335
  # @param [Object] sock_read_timeout Value to be assigned
336
336
  def sock_read_timeout=(sock_read_timeout)
337
- if !sock_read_timeout.nil? && sock_read_timeout < 0
338
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
339
339
  end
340
340
 
341
341
  @sock_read_timeout = sock_read_timeout