pulp_ansible_client 0.27.0 → 0.28.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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  5. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -8
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  8. data/docs/AnsibleGitRemote.md +28 -28
  9. data/docs/AnsibleGitRemoteResponse.md +28 -28
  10. data/docs/AnsibleRole.md +4 -4
  11. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  12. data/docs/AnsibleRoleResponse.md +6 -4
  13. data/docs/CollectionMetadataResponse.md +4 -4
  14. data/docs/CollectionSummaryResponse.md +2 -2
  15. data/docs/CollectionVersionListResponse.md +1 -1
  16. data/docs/CollectionVersionResponse.md +1 -1
  17. data/docs/ContentCollectionVersionsApi.md +8 -8
  18. data/docs/PatchedansibleGitRemote.md +28 -28
  19. data/docs/RemotesGitApi.md +2 -2
  20. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  21. data/docs/RepositoryVersionResponse.md +3 -1
  22. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  23. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
  24. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
  25. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +10 -1
  26. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +0 -15
  27. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +0 -15
  28. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -33
  29. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +0 -30
  30. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +29 -35
  31. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +10 -1
  32. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +234 -249
  33. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -165
  34. data/lib/pulp_ansible_client/models/ansible_role.rb +17 -17
  35. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +0 -15
  36. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +0 -15
  37. data/lib/pulp_ansible_client/models/ansible_role_response.rb +29 -20
  38. data/lib/pulp_ansible_client/models/collection_summary_response.rb +0 -15
  39. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -15
  40. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -15
  41. data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +0 -4
  42. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +0 -2
  43. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +0 -2
  44. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +0 -2
  45. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +0 -2
  46. data/lib/pulp_ansible_client/models/paginatedansible_ansible_collection_deprecated_response_list.rb +0 -2
  47. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +0 -2
  48. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +0 -2
  49. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +0 -2
  50. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +0 -2
  51. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +0 -2
  52. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +0 -2
  53. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +0 -2
  54. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +0 -2
  55. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +0 -2
  56. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +0 -2
  57. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +0 -2
  58. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +0 -15
  59. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -33
  60. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +229 -244
  61. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +0 -15
  62. data/lib/pulp_ansible_client/models/repository.rb +0 -15
  63. data/lib/pulp_ansible_client/models/repository_response.rb +0 -15
  64. data/lib/pulp_ansible_client/models/repository_version_response.rb +13 -4
  65. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -15
  66. data/lib/pulp_ansible_client/version.rb +1 -1
  67. data/spec/api/content_collection_versions_api_spec.rb +4 -4
  68. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  69. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  70. data/spec/models/ansible_collection_version_response_spec.rb +10 -4
  71. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  72. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  73. data/spec/models/ansible_git_remote_spec.rb +20 -20
  74. data/spec/models/ansible_role_response_spec.rb +10 -4
  75. data/spec/models/ansible_role_spec.rb +2 -2
  76. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  77. data/spec/models/repository_version_response_spec.rb +6 -0
  78. metadata +123 -123
@@ -16,64 +16,64 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class PatchedansibleGitRemote
19
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
20
- attr_accessor :total_timeout
21
-
22
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
23
- attr_accessor :connect_timeout
24
-
25
- # Headers for aiohttp.Clientsession
26
- attr_accessor :headers
19
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
20
+ attr_accessor :proxy_password
27
21
 
28
22
  # If True, TLS peer validation must be performed.
29
23
  attr_accessor :tls_validation
30
24
 
31
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
32
- attr_accessor :max_retries
33
-
34
25
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
35
26
  attr_accessor :password
36
27
 
37
- # A PEM encoded private key used for authentication.
38
- attr_accessor :client_key
28
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
29
+ attr_accessor :total_timeout
39
30
 
40
- # 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.
41
- attr_accessor :sock_read_timeout
31
+ # Total number of simultaneous connections. If not set then the default value will be used.
32
+ attr_accessor :download_concurrency
33
+
34
+ # The username to be used for authentication when syncing.
35
+ attr_accessor :username
36
+
37
+ # The proxy URL. Format: scheme://host:port
38
+ attr_accessor :proxy_url
42
39
 
43
40
  # A PEM encoded client certificate used for authentication.
44
41
  attr_accessor :client_cert
45
42
 
46
- # The username to authenticte to the proxy.
47
- attr_accessor :proxy_username
43
+ # 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.
44
+ attr_accessor :sock_connect_timeout
48
45
 
49
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
50
- attr_accessor :ca_cert
46
+ # Headers for aiohttp.Clientsession
47
+ attr_accessor :headers
51
48
 
52
- # The URL of an external content source.
53
- attr_accessor :url
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
54
51
 
55
- # A unique name for this remote.
56
- attr_accessor :name
52
+ # The username to authenticte to the proxy.
53
+ attr_accessor :proxy_username
57
54
 
58
55
  # Limits requests per second for each concurrent downloader
59
56
  attr_accessor :rate_limit
60
57
 
61
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
62
- attr_accessor :proxy_password
58
+ attr_accessor :pulp_labels
63
59
 
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.
65
- attr_accessor :sock_connect_timeout
60
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
61
+ attr_accessor :connect_timeout
66
62
 
67
- # The username to be used for authentication when syncing.
68
- attr_accessor :username
63
+ # A PEM encoded private key used for authentication.
64
+ attr_accessor :client_key
69
65
 
70
- attr_accessor :pulp_labels
66
+ # 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.
67
+ attr_accessor :sock_read_timeout
71
68
 
72
- # The proxy URL. Format: scheme://host:port
73
- attr_accessor :proxy_url
69
+ # A unique name for this remote.
70
+ attr_accessor :name
74
71
 
75
- # Total number of simultaneous connections. If not set then the default value will be used.
76
- attr_accessor :download_concurrency
72
+ # The URL of an external content source.
73
+ attr_accessor :url
74
+
75
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
76
+ attr_accessor :ca_cert
77
77
 
78
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
79
79
  attr_accessor :metadata_only
@@ -84,26 +84,26 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
- :'total_timeout' => :'total_timeout',
88
- :'connect_timeout' => :'connect_timeout',
89
- :'headers' => :'headers',
87
+ :'proxy_password' => :'proxy_password',
90
88
  :'tls_validation' => :'tls_validation',
91
- :'max_retries' => :'max_retries',
92
89
  :'password' => :'password',
93
- :'client_key' => :'client_key',
94
- :'sock_read_timeout' => :'sock_read_timeout',
90
+ :'total_timeout' => :'total_timeout',
91
+ :'download_concurrency' => :'download_concurrency',
92
+ :'username' => :'username',
93
+ :'proxy_url' => :'proxy_url',
95
94
  :'client_cert' => :'client_cert',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'headers' => :'headers',
97
+ :'max_retries' => :'max_retries',
96
98
  :'proxy_username' => :'proxy_username',
97
- :'ca_cert' => :'ca_cert',
98
- :'url' => :'url',
99
- :'name' => :'name',
100
99
  :'rate_limit' => :'rate_limit',
101
- :'proxy_password' => :'proxy_password',
102
- :'sock_connect_timeout' => :'sock_connect_timeout',
103
- :'username' => :'username',
104
100
  :'pulp_labels' => :'pulp_labels',
105
- :'proxy_url' => :'proxy_url',
106
- :'download_concurrency' => :'download_concurrency',
101
+ :'connect_timeout' => :'connect_timeout',
102
+ :'client_key' => :'client_key',
103
+ :'sock_read_timeout' => :'sock_read_timeout',
104
+ :'name' => :'name',
105
+ :'url' => :'url',
106
+ :'ca_cert' => :'ca_cert',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
109
109
  }
@@ -117,26 +117,26 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
- :'total_timeout' => :'Float',
121
- :'connect_timeout' => :'Float',
122
- :'headers' => :'Array<Object>',
120
+ :'proxy_password' => :'String',
123
121
  :'tls_validation' => :'Boolean',
124
- :'max_retries' => :'Integer',
125
122
  :'password' => :'String',
126
- :'client_key' => :'String',
127
- :'sock_read_timeout' => :'Float',
123
+ :'total_timeout' => :'Float',
124
+ :'download_concurrency' => :'Integer',
125
+ :'username' => :'String',
126
+ :'proxy_url' => :'String',
128
127
  :'client_cert' => :'String',
128
+ :'sock_connect_timeout' => :'Float',
129
+ :'headers' => :'Array<Object>',
130
+ :'max_retries' => :'Integer',
129
131
  :'proxy_username' => :'String',
130
- :'ca_cert' => :'String',
131
- :'url' => :'String',
132
- :'name' => :'String',
133
132
  :'rate_limit' => :'Integer',
134
- :'proxy_password' => :'String',
135
- :'sock_connect_timeout' => :'Float',
136
- :'username' => :'String',
137
133
  :'pulp_labels' => :'Hash<String, String>',
138
- :'proxy_url' => :'String',
139
- :'download_concurrency' => :'Integer',
134
+ :'connect_timeout' => :'Float',
135
+ :'client_key' => :'String',
136
+ :'sock_read_timeout' => :'Float',
137
+ :'name' => :'String',
138
+ :'url' => :'String',
139
+ :'ca_cert' => :'String',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
142
142
  }
@@ -145,21 +145,21 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
+ :'proxy_password',
149
+ :'password',
148
150
  :'total_timeout',
149
- :'connect_timeout',
151
+ :'download_concurrency',
152
+ :'username',
153
+ :'proxy_url',
154
+ :'client_cert',
155
+ :'sock_connect_timeout',
150
156
  :'max_retries',
151
- :'password',
157
+ :'proxy_username',
158
+ :'rate_limit',
159
+ :'connect_timeout',
152
160
  :'client_key',
153
161
  :'sock_read_timeout',
154
- :'client_cert',
155
- :'proxy_username',
156
162
  :'ca_cert',
157
- :'rate_limit',
158
- :'proxy_password',
159
- :'sock_connect_timeout',
160
- :'username',
161
- :'proxy_url',
162
- :'download_concurrency',
163
163
  ])
164
164
  end
165
165
 
@@ -178,88 +178,88 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'total_timeout')
182
- self.total_timeout = attributes[:'total_timeout']
183
- end
184
-
185
- if attributes.key?(:'connect_timeout')
186
- self.connect_timeout = attributes[:'connect_timeout']
187
- end
188
-
189
- if attributes.key?(:'headers')
190
- if (value = attributes[:'headers']).is_a?(Array)
191
- self.headers = value
192
- end
181
+ if attributes.key?(:'proxy_password')
182
+ self.proxy_password = attributes[:'proxy_password']
193
183
  end
194
184
 
195
185
  if attributes.key?(:'tls_validation')
196
186
  self.tls_validation = attributes[:'tls_validation']
197
187
  end
198
188
 
199
- if attributes.key?(:'max_retries')
200
- self.max_retries = attributes[:'max_retries']
201
- end
202
-
203
189
  if attributes.key?(:'password')
204
190
  self.password = attributes[:'password']
205
191
  end
206
192
 
207
- if attributes.key?(:'client_key')
208
- self.client_key = attributes[:'client_key']
193
+ if attributes.key?(:'total_timeout')
194
+ self.total_timeout = attributes[:'total_timeout']
209
195
  end
210
196
 
211
- if attributes.key?(:'sock_read_timeout')
212
- self.sock_read_timeout = attributes[:'sock_read_timeout']
197
+ if attributes.key?(:'download_concurrency')
198
+ self.download_concurrency = attributes[:'download_concurrency']
199
+ end
200
+
201
+ if attributes.key?(:'username')
202
+ self.username = attributes[:'username']
203
+ end
204
+
205
+ if attributes.key?(:'proxy_url')
206
+ self.proxy_url = attributes[:'proxy_url']
213
207
  end
214
208
 
215
209
  if attributes.key?(:'client_cert')
216
210
  self.client_cert = attributes[:'client_cert']
217
211
  end
218
212
 
219
- if attributes.key?(:'proxy_username')
220
- self.proxy_username = attributes[:'proxy_username']
213
+ if attributes.key?(:'sock_connect_timeout')
214
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
221
215
  end
222
216
 
223
- if attributes.key?(:'ca_cert')
224
- self.ca_cert = attributes[:'ca_cert']
217
+ if attributes.key?(:'headers')
218
+ if (value = attributes[:'headers']).is_a?(Array)
219
+ self.headers = value
220
+ end
225
221
  end
226
222
 
227
- if attributes.key?(:'url')
228
- self.url = attributes[:'url']
223
+ if attributes.key?(:'max_retries')
224
+ self.max_retries = attributes[:'max_retries']
229
225
  end
230
226
 
231
- if attributes.key?(:'name')
232
- self.name = attributes[:'name']
227
+ if attributes.key?(:'proxy_username')
228
+ self.proxy_username = attributes[:'proxy_username']
233
229
  end
234
230
 
235
231
  if attributes.key?(:'rate_limit')
236
232
  self.rate_limit = attributes[:'rate_limit']
237
233
  end
238
234
 
239
- if attributes.key?(:'proxy_password')
240
- self.proxy_password = attributes[:'proxy_password']
235
+ if attributes.key?(:'pulp_labels')
236
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
237
+ self.pulp_labels = value
238
+ end
241
239
  end
242
240
 
243
- if attributes.key?(:'sock_connect_timeout')
244
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
241
+ if attributes.key?(:'connect_timeout')
242
+ self.connect_timeout = attributes[:'connect_timeout']
245
243
  end
246
244
 
247
- if attributes.key?(:'username')
248
- self.username = attributes[:'username']
245
+ if attributes.key?(:'client_key')
246
+ self.client_key = attributes[:'client_key']
249
247
  end
250
248
 
251
- if attributes.key?(:'pulp_labels')
252
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
253
- self.pulp_labels = value
254
- end
249
+ if attributes.key?(:'sock_read_timeout')
250
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
255
251
  end
256
252
 
257
- if attributes.key?(:'proxy_url')
258
- self.proxy_url = attributes[:'proxy_url']
253
+ if attributes.key?(:'name')
254
+ self.name = attributes[:'name']
259
255
  end
260
256
 
261
- if attributes.key?(:'download_concurrency')
262
- self.download_concurrency = attributes[:'download_concurrency']
257
+ if attributes.key?(:'url')
258
+ self.url = attributes[:'url']
259
+ end
260
+
261
+ if attributes.key?(:'ca_cert')
262
+ self.ca_cert = attributes[:'ca_cert']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,64 +276,60 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@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 !@connect_timeout.nil? && @connect_timeout < 0.0
284
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
280
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
285
281
  end
286
282
 
287
283
  if !@password.nil? && @password.to_s.length < 1
288
284
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
289
285
  end
290
286
 
291
- if !@client_key.nil? && @client_key.to_s.length < 1
292
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
287
+ if !@total_timeout.nil? && @total_timeout < 0.0
288
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
293
289
  end
294
290
 
295
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
291
+ if !@username.nil? && @username.to_s.length < 1
292
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
297
293
  end
298
294
 
299
- if !@client_cert.nil? && @client_cert.to_s.length < 1
300
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
295
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
296
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
301
297
  end
302
298
 
303
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
304
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
299
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
300
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
305
301
  end
306
302
 
307
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
308
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
303
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
304
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
309
305
  end
310
306
 
311
- if !@url.nil? && @url.to_s.length < 1
312
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
307
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
308
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
313
309
  end
314
310
 
315
- if !@name.nil? && @name.to_s.length < 1
316
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
311
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
312
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
317
313
  end
318
314
 
319
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
320
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
315
+ if !@client_key.nil? && @client_key.to_s.length < 1
316
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
321
317
  end
322
318
 
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.')
319
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
320
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
325
321
  end
326
322
 
327
- if !@username.nil? && @username.to_s.length < 1
328
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
323
+ if !@name.nil? && @name.to_s.length < 1
324
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
329
325
  end
330
326
 
331
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
332
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
327
+ if !@url.nil? && @url.to_s.length < 1
328
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
333
329
  end
334
330
 
335
- if !@download_concurrency.nil? && @download_concurrency < 1
336
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
331
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
332
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
337
333
  end
338
334
 
339
335
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -347,43 +343,32 @@ module PulpAnsibleClient
347
343
  # @return true if the model is valid
348
344
  def valid?
349
345
  warn '[DEPRECATED] the `valid?` method is obsolete'
346
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
347
+ return false if !@password.nil? && @password.to_s.length < 1
350
348
  return false if !@total_timeout.nil? && @total_timeout < 0.0
349
+ return false if !@username.nil? && @username.to_s.length < 1
350
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
351
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
351
354
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@password.nil? && @password.to_s.length < 1
353
355
  return false if !@client_key.nil? && @client_key.to_s.length < 1
354
356
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
355
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
356
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
357
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
358
- return false if !@url.nil? && @url.to_s.length < 1
359
357
  return false if !@name.nil? && @name.to_s.length < 1
360
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
361
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
362
- return false if !@username.nil? && @username.to_s.length < 1
363
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
364
- return false if !@download_concurrency.nil? && @download_concurrency < 1
358
+ return false if !@url.nil? && @url.to_s.length < 1
359
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
365
360
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
361
  true
367
362
  end
368
363
 
369
364
  # Custom attribute writer method with validation
370
- # @param [Object] total_timeout Value to be assigned
371
- def total_timeout=(total_timeout)
372
- if !total_timeout.nil? && total_timeout < 0.0
373
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
374
- end
375
-
376
- @total_timeout = total_timeout
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] connect_timeout Value to be assigned
381
- def connect_timeout=(connect_timeout)
382
- if !connect_timeout.nil? && connect_timeout < 0.0
383
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
365
+ # @param [Object] proxy_password Value to be assigned
366
+ def proxy_password=(proxy_password)
367
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
368
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
384
369
  end
385
370
 
386
- @connect_timeout = connect_timeout
371
+ @proxy_password = proxy_password
387
372
  end
388
373
 
389
374
  # Custom attribute writer method with validation
@@ -397,23 +382,33 @@ module PulpAnsibleClient
397
382
  end
398
383
 
399
384
  # Custom attribute writer method with validation
400
- # @param [Object] client_key Value to be assigned
401
- def client_key=(client_key)
402
- if !client_key.nil? && client_key.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
385
+ # @param [Object] total_timeout Value to be assigned
386
+ def total_timeout=(total_timeout)
387
+ if !total_timeout.nil? && total_timeout < 0.0
388
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
404
389
  end
405
390
 
406
- @client_key = client_key
391
+ @total_timeout = total_timeout
407
392
  end
408
393
 
409
394
  # Custom attribute writer method with validation
410
- # @param [Object] sock_read_timeout Value to be assigned
411
- def sock_read_timeout=(sock_read_timeout)
412
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
413
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
395
+ # @param [Object] username Value to be assigned
396
+ def username=(username)
397
+ if !username.nil? && username.to_s.length < 1
398
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
414
399
  end
415
400
 
416
- @sock_read_timeout = sock_read_timeout
401
+ @username = username
402
+ end
403
+
404
+ # Custom attribute writer method with validation
405
+ # @param [Object] proxy_url Value to be assigned
406
+ def proxy_url=(proxy_url)
407
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
408
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
409
+ end
410
+
411
+ @proxy_url = proxy_url
417
412
  end
418
413
 
419
414
  # Custom attribute writer method with validation
@@ -426,6 +421,16 @@ module PulpAnsibleClient
426
421
  @client_cert = client_cert
427
422
  end
428
423
 
424
+ # Custom attribute writer method with validation
425
+ # @param [Object] sock_connect_timeout Value to be assigned
426
+ def sock_connect_timeout=(sock_connect_timeout)
427
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
428
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
429
+ end
430
+
431
+ @sock_connect_timeout = sock_connect_timeout
432
+ end
433
+
429
434
  # Custom attribute writer method with validation
430
435
  # @param [Object] proxy_username Value to be assigned
431
436
  def proxy_username=(proxy_username)
@@ -437,27 +442,33 @@ module PulpAnsibleClient
437
442
  end
438
443
 
439
444
  # Custom attribute writer method with validation
440
- # @param [Object] ca_cert Value to be assigned
441
- def ca_cert=(ca_cert)
442
- if !ca_cert.nil? && ca_cert.to_s.length < 1
443
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
445
+ # @param [Object] connect_timeout Value to be assigned
446
+ def connect_timeout=(connect_timeout)
447
+ if !connect_timeout.nil? && connect_timeout < 0.0
448
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
444
449
  end
445
450
 
446
- @ca_cert = ca_cert
451
+ @connect_timeout = connect_timeout
447
452
  end
448
453
 
449
454
  # Custom attribute writer method with validation
450
- # @param [Object] url Value to be assigned
451
- def url=(url)
452
- if url.nil?
453
- fail ArgumentError, 'url cannot be nil'
455
+ # @param [Object] client_key Value to be assigned
456
+ def client_key=(client_key)
457
+ if !client_key.nil? && client_key.to_s.length < 1
458
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
454
459
  end
455
460
 
456
- if url.to_s.length < 1
457
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
461
+ @client_key = client_key
462
+ end
463
+
464
+ # Custom attribute writer method with validation
465
+ # @param [Object] sock_read_timeout Value to be assigned
466
+ def sock_read_timeout=(sock_read_timeout)
467
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
468
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
458
469
  end
459
470
 
460
- @url = url
471
+ @sock_read_timeout = sock_read_timeout
461
472
  end
462
473
 
463
474
  # Custom attribute writer method with validation
@@ -475,53 +486,27 @@ module PulpAnsibleClient
475
486
  end
476
487
 
477
488
  # Custom attribute writer method with validation
478
- # @param [Object] proxy_password Value to be assigned
479
- def proxy_password=(proxy_password)
480
- if !proxy_password.nil? && proxy_password.to_s.length < 1
481
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
482
- end
483
-
484
- @proxy_password = proxy_password
485
- end
486
-
487
- # Custom attribute writer method with validation
488
- # @param [Object] sock_connect_timeout Value to be assigned
489
- def sock_connect_timeout=(sock_connect_timeout)
490
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
491
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
492
- end
493
-
494
- @sock_connect_timeout = sock_connect_timeout
495
- end
496
-
497
- # Custom attribute writer method with validation
498
- # @param [Object] username Value to be assigned
499
- def username=(username)
500
- if !username.nil? && username.to_s.length < 1
501
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
489
+ # @param [Object] url Value to be assigned
490
+ def url=(url)
491
+ if url.nil?
492
+ fail ArgumentError, 'url cannot be nil'
502
493
  end
503
494
 
504
- @username = username
505
- end
506
-
507
- # Custom attribute writer method with validation
508
- # @param [Object] proxy_url Value to be assigned
509
- def proxy_url=(proxy_url)
510
- if !proxy_url.nil? && proxy_url.to_s.length < 1
511
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
495
+ if url.to_s.length < 1
496
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
512
497
  end
513
498
 
514
- @proxy_url = proxy_url
499
+ @url = url
515
500
  end
516
501
 
517
502
  # Custom attribute writer method with validation
518
- # @param [Object] download_concurrency Value to be assigned
519
- def download_concurrency=(download_concurrency)
520
- if !download_concurrency.nil? && download_concurrency < 1
521
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
503
+ # @param [Object] ca_cert Value to be assigned
504
+ def ca_cert=(ca_cert)
505
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
506
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
522
507
  end
523
508
 
524
- @download_concurrency = download_concurrency
509
+ @ca_cert = ca_cert
525
510
  end
526
511
 
527
512
  # Custom attribute writer method with validation
@@ -543,26 +528,26 @@ module PulpAnsibleClient
543
528
  def ==(o)
544
529
  return true if self.equal?(o)
545
530
  self.class == o.class &&
546
- total_timeout == o.total_timeout &&
547
- connect_timeout == o.connect_timeout &&
548
- headers == o.headers &&
531
+ proxy_password == o.proxy_password &&
549
532
  tls_validation == o.tls_validation &&
550
- max_retries == o.max_retries &&
551
533
  password == o.password &&
552
- client_key == o.client_key &&
553
- sock_read_timeout == o.sock_read_timeout &&
534
+ total_timeout == o.total_timeout &&
535
+ download_concurrency == o.download_concurrency &&
536
+ username == o.username &&
537
+ proxy_url == o.proxy_url &&
554
538
  client_cert == o.client_cert &&
539
+ sock_connect_timeout == o.sock_connect_timeout &&
540
+ headers == o.headers &&
541
+ max_retries == o.max_retries &&
555
542
  proxy_username == o.proxy_username &&
556
- ca_cert == o.ca_cert &&
557
- url == o.url &&
558
- name == o.name &&
559
543
  rate_limit == o.rate_limit &&
560
- proxy_password == o.proxy_password &&
561
- sock_connect_timeout == o.sock_connect_timeout &&
562
- username == o.username &&
563
544
  pulp_labels == o.pulp_labels &&
564
- proxy_url == o.proxy_url &&
565
- download_concurrency == o.download_concurrency &&
545
+ connect_timeout == o.connect_timeout &&
546
+ client_key == o.client_key &&
547
+ sock_read_timeout == o.sock_read_timeout &&
548
+ name == o.name &&
549
+ url == o.url &&
550
+ ca_cert == o.ca_cert &&
566
551
  metadata_only == o.metadata_only &&
567
552
  git_ref == o.git_ref
568
553
  end
@@ -576,7 +561,7 @@ module PulpAnsibleClient
576
561
  # Calculates hash code according to all attributes.
577
562
  # @return [Integer] Hash code
578
563
  def hash
579
- [total_timeout, connect_timeout, headers, tls_validation, max_retries, password, client_key, sock_read_timeout, client_cert, proxy_username, ca_cert, url, name, rate_limit, proxy_password, sock_connect_timeout, username, pulp_labels, proxy_url, download_concurrency, metadata_only, git_ref].hash
564
+ [proxy_password, tls_validation, password, total_timeout, download_concurrency, username, proxy_url, client_cert, sock_connect_timeout, headers, max_retries, proxy_username, rate_limit, pulp_labels, connect_timeout, client_key, sock_read_timeout, name, url, ca_cert, metadata_only, git_ref].hash
580
565
  end
581
566
 
582
567
  # Builds the object from hash