pulp_ansible_client 0.20.6 → 0.20.8

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