pulp_ansible_client 0.13.6 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AnsibleCollectionRemote.md +2 -2
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersion.md +2 -0
  6. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  7. data/docs/AnsibleCollectionsApi.md +2 -2
  8. data/docs/AnsibleGitRemote.md +24 -24
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRoleRemote.md +2 -2
  11. data/docs/AnsibleRoleResponse.md +2 -2
  12. data/docs/ContentCollectionDeprecationsApi.md +2 -2
  13. data/docs/ContentCollectionSignaturesApi.md +2 -2
  14. data/docs/ContentCollectionVersionsApi.md +4 -2
  15. data/docs/ContentRolesApi.md +2 -2
  16. data/docs/DistributionsAnsibleApi.md +2 -2
  17. data/docs/PatchedansibleCollectionRemote.md +2 -2
  18. data/docs/PatchedansibleGitRemote.md +24 -24
  19. data/docs/PatchedansibleRoleRemote.md +2 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -0
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -0
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -0
  23. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -0
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -0
  26. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -0
  27. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -0
  28. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -0
  29. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -0
  30. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -0
  31. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -0
  32. data/docs/PulpAnsibleTagsApi.md +0 -2
  33. data/docs/RemotesCollectionApi.md +2 -2
  34. data/docs/RemotesGitApi.md +2 -2
  35. data/docs/RemotesRoleApi.md +2 -2
  36. data/docs/RepositoriesAnsibleApi.md +2 -2
  37. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  38. data/git_push.sh +58 -0
  39. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -3
  40. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +7 -3
  41. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +7 -3
  42. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +10 -3
  43. data/lib/pulp_ansible_client/api/content_roles_api.rb +7 -3
  44. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +7 -3
  45. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +7 -0
  46. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +7 -0
  47. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +7 -0
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -0
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +7 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +7 -0
  51. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +7 -0
  52. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +7 -0
  53. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +7 -0
  54. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -0
  55. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +7 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +7 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +0 -3
  58. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +7 -3
  59. data/lib/pulp_ansible_client/api/remotes_git_api.rb +7 -3
  60. data/lib/pulp_ansible_client/api/remotes_role_api.rb +7 -3
  61. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +7 -3
  62. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +7 -3
  63. data/lib/pulp_ansible_client/api_client.rb +1 -1
  64. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +2 -2
  65. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  66. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -1
  67. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  68. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +208 -208
  69. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
  70. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +2 -2
  71. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  72. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +2 -2
  73. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +199 -199
  74. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +2 -2
  75. data/lib/pulp_ansible_client/version.rb +1 -1
  76. data/pulp_ansible_client.gemspec +3 -3
  77. data/spec/api/ansible_collections_api_spec.rb +1 -1
  78. data/spec/api/content_collection_deprecations_api_spec.rb +1 -1
  79. data/spec/api/content_collection_signatures_api_spec.rb +1 -1
  80. data/spec/api/content_collection_versions_api_spec.rb +2 -1
  81. data/spec/api/content_roles_api_spec.rb +1 -1
  82. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  83. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  84. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  85. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -0
  86. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  87. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  88. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -0
  89. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  90. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  91. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -0
  92. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  93. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  94. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -0
  95. data/spec/api/pulp_ansible_tags_api_spec.rb +0 -1
  96. data/spec/api/remotes_collection_api_spec.rb +1 -1
  97. data/spec/api/remotes_git_api_spec.rb +1 -1
  98. data/spec/api/remotes_role_api_spec.rb +1 -1
  99. data/spec/api/repositories_ansible_api_spec.rb +1 -1
  100. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  101. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  102. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  103. data/spec/models/ansible_collection_version_spec.rb +6 -0
  104. data/spec/models/ansible_git_remote_response_spec.rb +16 -16
  105. data/spec/models/ansible_git_remote_spec.rb +18 -18
  106. data/spec/models/ansible_role_response_spec.rb +2 -2
  107. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  108. metadata +101 -100
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemote
18
- # 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.
19
- attr_accessor :sock_read_timeout
18
+ # A PEM encoded client certificate used for authentication.
19
+ attr_accessor :client_cert
20
20
 
21
- # A PEM encoded private key used for authentication.
22
- attr_accessor :client_key
21
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
22
+ attr_accessor :password
23
23
 
24
24
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
25
  attr_accessor :connect_timeout
26
26
 
27
- # A PEM encoded client certificate used for authentication.
28
- attr_accessor :client_cert
27
+ # A unique name for this remote.
28
+ attr_accessor :name
29
29
 
30
- # The password to authenticte to the proxy.
31
- attr_accessor :proxy_password
30
+ # The proxy URL. Format: scheme://host:port
31
+ attr_accessor :proxy_url
32
32
 
33
- # The username to be used for authentication when syncing.
34
- attr_accessor :username
33
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
34
+ attr_accessor :max_retries
35
+
36
+ # 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.
37
+ attr_accessor :sock_read_timeout
35
38
 
36
39
  # Headers for aiohttp.Clientsession
37
40
  attr_accessor :headers
38
41
 
42
+ # Total number of simultaneous connections. If not set then the default value will be used.
43
+ attr_accessor :download_concurrency
44
+
39
45
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
46
  attr_accessor :total_timeout
41
47
 
42
- # 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.
43
- attr_accessor :sock_connect_timeout
48
+ # A PEM encoded private key used for authentication.
49
+ attr_accessor :client_key
44
50
 
45
51
  # The URL of an external content source.
46
52
  attr_accessor :url
47
53
 
48
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
49
- attr_accessor :ca_cert
50
-
51
54
  attr_accessor :pulp_labels
52
55
 
56
+ # 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.
57
+ attr_accessor :sock_connect_timeout
58
+
53
59
  # The username to authenticte to the proxy.
54
60
  attr_accessor :proxy_username
55
61
 
56
- # The proxy URL. Format: scheme://host:port
57
- attr_accessor :proxy_url
62
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
63
+ attr_accessor :ca_cert
58
64
 
59
- # The password to be used for authentication when syncing.
60
- attr_accessor :password
65
+ # The username to be used for authentication when syncing.
66
+ attr_accessor :username
61
67
 
62
68
  # If True, TLS peer validation must be performed.
63
69
  attr_accessor :tls_validation
64
70
 
65
- # A unique name for this remote.
66
- attr_accessor :name
67
-
68
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
- attr_accessor :max_retries
70
-
71
- # Total number of simultaneous connections. If not set then the default value will be used.
72
- attr_accessor :download_concurrency
71
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
72
+ attr_accessor :proxy_password
73
73
 
74
74
  # Limits requests per second for each concurrent downloader
75
75
  attr_accessor :rate_limit
@@ -83,25 +83,25 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'sock_read_timeout' => :'sock_read_timeout',
87
- :'client_key' => :'client_key',
88
- :'connect_timeout' => :'connect_timeout',
89
86
  :'client_cert' => :'client_cert',
90
- :'proxy_password' => :'proxy_password',
91
- :'username' => :'username',
87
+ :'password' => :'password',
88
+ :'connect_timeout' => :'connect_timeout',
89
+ :'name' => :'name',
90
+ :'proxy_url' => :'proxy_url',
91
+ :'max_retries' => :'max_retries',
92
+ :'sock_read_timeout' => :'sock_read_timeout',
92
93
  :'headers' => :'headers',
94
+ :'download_concurrency' => :'download_concurrency',
93
95
  :'total_timeout' => :'total_timeout',
94
- :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'client_key' => :'client_key',
95
97
  :'url' => :'url',
96
- :'ca_cert' => :'ca_cert',
97
98
  :'pulp_labels' => :'pulp_labels',
99
+ :'sock_connect_timeout' => :'sock_connect_timeout',
98
100
  :'proxy_username' => :'proxy_username',
99
- :'proxy_url' => :'proxy_url',
100
- :'password' => :'password',
101
+ :'ca_cert' => :'ca_cert',
102
+ :'username' => :'username',
101
103
  :'tls_validation' => :'tls_validation',
102
- :'name' => :'name',
103
- :'max_retries' => :'max_retries',
104
- :'download_concurrency' => :'download_concurrency',
104
+ :'proxy_password' => :'proxy_password',
105
105
  :'rate_limit' => :'rate_limit',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
@@ -111,25 +111,25 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'sock_read_timeout' => :'Float',
115
- :'client_key' => :'String',
116
- :'connect_timeout' => :'Float',
117
114
  :'client_cert' => :'String',
118
- :'proxy_password' => :'String',
119
- :'username' => :'String',
115
+ :'password' => :'String',
116
+ :'connect_timeout' => :'Float',
117
+ :'name' => :'String',
118
+ :'proxy_url' => :'String',
119
+ :'max_retries' => :'Integer',
120
+ :'sock_read_timeout' => :'Float',
120
121
  :'headers' => :'Array<Object>',
122
+ :'download_concurrency' => :'Integer',
121
123
  :'total_timeout' => :'Float',
122
- :'sock_connect_timeout' => :'Float',
124
+ :'client_key' => :'String',
123
125
  :'url' => :'String',
124
- :'ca_cert' => :'String',
125
126
  :'pulp_labels' => :'Object',
127
+ :'sock_connect_timeout' => :'Float',
126
128
  :'proxy_username' => :'String',
127
- :'proxy_url' => :'String',
128
- :'password' => :'String',
129
+ :'ca_cert' => :'String',
130
+ :'username' => :'String',
129
131
  :'tls_validation' => :'Boolean',
130
- :'name' => :'String',
131
- :'max_retries' => :'Integer',
132
- :'download_concurrency' => :'Integer',
132
+ :'proxy_password' => :'String',
133
133
  :'rate_limit' => :'Integer',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
@@ -139,20 +139,20 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
- :'sock_read_timeout',
143
- :'client_key',
144
- :'connect_timeout',
145
142
  :'client_cert',
146
- :'proxy_password',
147
- :'username',
148
- :'total_timeout',
149
- :'sock_connect_timeout',
150
- :'ca_cert',
151
- :'proxy_username',
152
- :'proxy_url',
153
143
  :'password',
144
+ :'connect_timeout',
145
+ :'proxy_url',
154
146
  :'max_retries',
147
+ :'sock_read_timeout',
155
148
  :'download_concurrency',
149
+ :'total_timeout',
150
+ :'client_key',
151
+ :'sock_connect_timeout',
152
+ :'proxy_username',
153
+ :'ca_cert',
154
+ :'username',
155
+ :'proxy_password',
156
156
  :'rate_limit',
157
157
  ])
158
158
  end
@@ -172,28 +172,32 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'sock_read_timeout')
176
- self.sock_read_timeout = attributes[:'sock_read_timeout']
175
+ if attributes.key?(:'client_cert')
176
+ self.client_cert = attributes[:'client_cert']
177
177
  end
178
178
 
179
- if attributes.key?(:'client_key')
180
- self.client_key = attributes[:'client_key']
179
+ if attributes.key?(:'password')
180
+ self.password = attributes[:'password']
181
181
  end
182
182
 
183
183
  if attributes.key?(:'connect_timeout')
184
184
  self.connect_timeout = attributes[:'connect_timeout']
185
185
  end
186
186
 
187
- if attributes.key?(:'client_cert')
188
- self.client_cert = attributes[:'client_cert']
187
+ if attributes.key?(:'name')
188
+ self.name = attributes[:'name']
189
189
  end
190
190
 
191
- if attributes.key?(:'proxy_password')
192
- self.proxy_password = attributes[:'proxy_password']
191
+ if attributes.key?(:'proxy_url')
192
+ self.proxy_url = attributes[:'proxy_url']
193
193
  end
194
194
 
195
- if attributes.key?(:'username')
196
- self.username = attributes[:'username']
195
+ if attributes.key?(:'max_retries')
196
+ self.max_retries = attributes[:'max_retries']
197
+ end
198
+
199
+ if attributes.key?(:'sock_read_timeout')
200
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
197
201
  end
198
202
 
199
203
  if attributes.key?(:'headers')
@@ -202,52 +206,48 @@ module PulpAnsibleClient
202
206
  end
203
207
  end
204
208
 
209
+ if attributes.key?(:'download_concurrency')
210
+ self.download_concurrency = attributes[:'download_concurrency']
211
+ end
212
+
205
213
  if attributes.key?(:'total_timeout')
206
214
  self.total_timeout = attributes[:'total_timeout']
207
215
  end
208
216
 
209
- if attributes.key?(:'sock_connect_timeout')
210
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
217
+ if attributes.key?(:'client_key')
218
+ self.client_key = attributes[:'client_key']
211
219
  end
212
220
 
213
221
  if attributes.key?(:'url')
214
222
  self.url = attributes[:'url']
215
223
  end
216
224
 
217
- if attributes.key?(:'ca_cert')
218
- self.ca_cert = attributes[:'ca_cert']
219
- end
220
-
221
225
  if attributes.key?(:'pulp_labels')
222
226
  self.pulp_labels = attributes[:'pulp_labels']
223
227
  end
224
228
 
229
+ if attributes.key?(:'sock_connect_timeout')
230
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
231
+ end
232
+
225
233
  if attributes.key?(:'proxy_username')
226
234
  self.proxy_username = attributes[:'proxy_username']
227
235
  end
228
236
 
229
- if attributes.key?(:'proxy_url')
230
- self.proxy_url = attributes[:'proxy_url']
237
+ if attributes.key?(:'ca_cert')
238
+ self.ca_cert = attributes[:'ca_cert']
231
239
  end
232
240
 
233
- if attributes.key?(:'password')
234
- self.password = attributes[:'password']
241
+ if attributes.key?(:'username')
242
+ self.username = attributes[:'username']
235
243
  end
236
244
 
237
245
  if attributes.key?(:'tls_validation')
238
246
  self.tls_validation = attributes[:'tls_validation']
239
247
  end
240
248
 
241
- if attributes.key?(:'name')
242
- self.name = attributes[:'name']
243
- end
244
-
245
- if attributes.key?(:'max_retries')
246
- self.max_retries = attributes[:'max_retries']
247
- end
248
-
249
- if attributes.key?(:'download_concurrency')
250
- self.download_concurrency = attributes[:'download_concurrency']
249
+ if attributes.key?(:'proxy_password')
250
+ self.proxy_password = attributes[:'proxy_password']
251
251
  end
252
252
 
253
253
  if attributes.key?(:'rate_limit')
@@ -267,36 +267,44 @@ module PulpAnsibleClient
267
267
  # @return Array for valid properties with the reasons
268
268
  def list_invalid_properties
269
269
  invalid_properties = Array.new
270
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
271
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
270
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
271
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
272
272
  end
273
273
 
274
- if !@client_key.nil? && @client_key.to_s.length < 1
275
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
274
+ if !@password.nil? && @password.to_s.length < 1
275
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
276
276
  end
277
277
 
278
278
  if !@connect_timeout.nil? && @connect_timeout < 0.0
279
279
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
280
280
  end
281
281
 
282
- if !@client_cert.nil? && @client_cert.to_s.length < 1
283
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
282
+ if @name.nil?
283
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
284
284
  end
285
285
 
286
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
287
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
286
+ if @name.to_s.length < 1
287
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
288
288
  end
289
289
 
290
- if !@username.nil? && @username.to_s.length < 1
291
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
290
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
291
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
292
+ end
293
+
294
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
296
+ end
297
+
298
+ if !@download_concurrency.nil? && @download_concurrency < 1
299
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
292
300
  end
293
301
 
294
302
  if !@total_timeout.nil? && @total_timeout < 0.0
295
303
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
296
304
  end
297
305
 
298
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
306
+ if !@client_key.nil? && @client_key.to_s.length < 1
307
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
300
308
  end
301
309
 
302
310
  if @url.nil?
@@ -307,32 +315,24 @@ module PulpAnsibleClient
307
315
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
308
316
  end
309
317
 
310
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
311
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
318
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
319
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
312
320
  end
313
321
 
314
322
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
315
323
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
316
324
  end
317
325
 
318
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
319
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
320
- end
321
-
322
- if !@password.nil? && @password.to_s.length < 1
323
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
324
- end
325
-
326
- if @name.nil?
327
- invalid_properties.push('invalid value for "name", name cannot be nil.')
326
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
327
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
328
328
  end
329
329
 
330
- if @name.to_s.length < 1
331
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
330
+ if !@username.nil? && @username.to_s.length < 1
331
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
332
332
  end
333
333
 
334
- if !@download_concurrency.nil? && @download_concurrency < 1
335
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
334
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
335
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
336
336
  end
337
337
 
338
338
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -345,45 +345,45 @@ module PulpAnsibleClient
345
345
  # Check to see if the all the properties in the model are valid
346
346
  # @return true if the model is valid
347
347
  def valid?
348
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
349
- return false if !@client_key.nil? && @client_key.to_s.length < 1
350
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
351
348
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
352
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
353
- return false if !@username.nil? && @username.to_s.length < 1
354
- return false if !@total_timeout.nil? && @total_timeout < 0.0
355
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
356
- return false if @url.nil?
357
- return false if @url.to_s.length < 1
358
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
359
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
360
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
361
349
  return false if !@password.nil? && @password.to_s.length < 1
350
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
362
351
  return false if @name.nil?
363
352
  return false if @name.to_s.length < 1
353
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
354
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
364
355
  return false if !@download_concurrency.nil? && @download_concurrency < 1
356
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
357
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
358
+ return false if @url.nil?
359
+ return false if @url.to_s.length < 1
360
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
361
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
362
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
363
+ return false if !@username.nil? && @username.to_s.length < 1
364
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
365
365
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
366
  true
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] sock_read_timeout Value to be assigned
371
- def sock_read_timeout=(sock_read_timeout)
372
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
373
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
370
+ # @param [Object] client_cert Value to be assigned
371
+ def client_cert=(client_cert)
372
+ if !client_cert.nil? && client_cert.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
374
374
  end
375
375
 
376
- @sock_read_timeout = sock_read_timeout
376
+ @client_cert = client_cert
377
377
  end
378
378
 
379
379
  # Custom attribute writer method with validation
380
- # @param [Object] client_key Value to be assigned
381
- def client_key=(client_key)
382
- if !client_key.nil? && client_key.to_s.length < 1
383
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
380
+ # @param [Object] password Value to be assigned
381
+ def password=(password)
382
+ if !password.nil? && password.to_s.length < 1
383
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
384
384
  end
385
385
 
386
- @client_key = client_key
386
+ @password = password
387
387
  end
388
388
 
389
389
  # Custom attribute writer method with validation
@@ -397,33 +397,47 @@ module PulpAnsibleClient
397
397
  end
398
398
 
399
399
  # Custom attribute writer method with validation
400
- # @param [Object] client_cert Value to be assigned
401
- def client_cert=(client_cert)
402
- if !client_cert.nil? && client_cert.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
400
+ # @param [Object] name Value to be assigned
401
+ def name=(name)
402
+ if name.nil?
403
+ fail ArgumentError, 'name cannot be nil'
404
404
  end
405
405
 
406
- @client_cert = client_cert
406
+ if name.to_s.length < 1
407
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
408
+ end
409
+
410
+ @name = name
407
411
  end
408
412
 
409
413
  # Custom attribute writer method with validation
410
- # @param [Object] proxy_password Value to be assigned
411
- def proxy_password=(proxy_password)
412
- if !proxy_password.nil? && proxy_password.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
414
+ # @param [Object] proxy_url Value to be assigned
415
+ def proxy_url=(proxy_url)
416
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
417
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
414
418
  end
415
419
 
416
- @proxy_password = proxy_password
420
+ @proxy_url = proxy_url
417
421
  end
418
422
 
419
423
  # Custom attribute writer method with validation
420
- # @param [Object] username Value to be assigned
421
- def username=(username)
422
- if !username.nil? && username.to_s.length < 1
423
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
424
+ # @param [Object] sock_read_timeout Value to be assigned
425
+ def sock_read_timeout=(sock_read_timeout)
426
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
427
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
424
428
  end
425
429
 
426
- @username = username
430
+ @sock_read_timeout = sock_read_timeout
431
+ end
432
+
433
+ # Custom attribute writer method with validation
434
+ # @param [Object] download_concurrency Value to be assigned
435
+ def download_concurrency=(download_concurrency)
436
+ if !download_concurrency.nil? && download_concurrency < 1
437
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
438
+ end
439
+
440
+ @download_concurrency = download_concurrency
427
441
  end
428
442
 
429
443
  # Custom attribute writer method with validation
@@ -437,13 +451,13 @@ module PulpAnsibleClient
437
451
  end
438
452
 
439
453
  # Custom attribute writer method with validation
440
- # @param [Object] sock_connect_timeout Value to be assigned
441
- def sock_connect_timeout=(sock_connect_timeout)
442
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
443
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
454
+ # @param [Object] client_key Value to be assigned
455
+ def client_key=(client_key)
456
+ if !client_key.nil? && client_key.to_s.length < 1
457
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
444
458
  end
445
459
 
446
- @sock_connect_timeout = sock_connect_timeout
460
+ @client_key = client_key
447
461
  end
448
462
 
449
463
  # Custom attribute writer method with validation
@@ -461,13 +475,13 @@ module PulpAnsibleClient
461
475
  end
462
476
 
463
477
  # Custom attribute writer method with validation
464
- # @param [Object] ca_cert Value to be assigned
465
- def ca_cert=(ca_cert)
466
- if !ca_cert.nil? && ca_cert.to_s.length < 1
467
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
478
+ # @param [Object] sock_connect_timeout Value to be assigned
479
+ def sock_connect_timeout=(sock_connect_timeout)
480
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
481
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
468
482
  end
469
483
 
470
- @ca_cert = ca_cert
484
+ @sock_connect_timeout = sock_connect_timeout
471
485
  end
472
486
 
473
487
  # Custom attribute writer method with validation
@@ -481,47 +495,33 @@ module PulpAnsibleClient
481
495
  end
482
496
 
483
497
  # Custom attribute writer method with validation
484
- # @param [Object] proxy_url Value to be assigned
485
- def proxy_url=(proxy_url)
486
- if !proxy_url.nil? && proxy_url.to_s.length < 1
487
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
488
- end
489
-
490
- @proxy_url = proxy_url
491
- end
492
-
493
- # Custom attribute writer method with validation
494
- # @param [Object] password Value to be assigned
495
- def password=(password)
496
- if !password.nil? && password.to_s.length < 1
497
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
498
+ # @param [Object] ca_cert Value to be assigned
499
+ def ca_cert=(ca_cert)
500
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
501
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
498
502
  end
499
503
 
500
- @password = password
504
+ @ca_cert = ca_cert
501
505
  end
502
506
 
503
507
  # Custom attribute writer method with validation
504
- # @param [Object] name Value to be assigned
505
- def name=(name)
506
- if name.nil?
507
- fail ArgumentError, 'name cannot be nil'
508
- end
509
-
510
- if name.to_s.length < 1
511
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
508
+ # @param [Object] username Value to be assigned
509
+ def username=(username)
510
+ if !username.nil? && username.to_s.length < 1
511
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
512
512
  end
513
513
 
514
- @name = name
514
+ @username = username
515
515
  end
516
516
 
517
517
  # 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.'
518
+ # @param [Object] proxy_password Value to be assigned
519
+ def proxy_password=(proxy_password)
520
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
521
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
522
522
  end
523
523
 
524
- @download_concurrency = download_concurrency
524
+ @proxy_password = proxy_password
525
525
  end
526
526
 
527
527
  # Custom attribute writer method with validation
@@ -539,25 +539,25 @@ module PulpAnsibleClient
539
539
  def ==(o)
540
540
  return true if self.equal?(o)
541
541
  self.class == o.class &&
542
- sock_read_timeout == o.sock_read_timeout &&
543
- client_key == o.client_key &&
544
- connect_timeout == o.connect_timeout &&
545
542
  client_cert == o.client_cert &&
546
- proxy_password == o.proxy_password &&
547
- username == o.username &&
543
+ password == o.password &&
544
+ connect_timeout == o.connect_timeout &&
545
+ name == o.name &&
546
+ proxy_url == o.proxy_url &&
547
+ max_retries == o.max_retries &&
548
+ sock_read_timeout == o.sock_read_timeout &&
548
549
  headers == o.headers &&
550
+ download_concurrency == o.download_concurrency &&
549
551
  total_timeout == o.total_timeout &&
550
- sock_connect_timeout == o.sock_connect_timeout &&
552
+ client_key == o.client_key &&
551
553
  url == o.url &&
552
- ca_cert == o.ca_cert &&
553
554
  pulp_labels == o.pulp_labels &&
555
+ sock_connect_timeout == o.sock_connect_timeout &&
554
556
  proxy_username == o.proxy_username &&
555
- proxy_url == o.proxy_url &&
556
- password == o.password &&
557
+ ca_cert == o.ca_cert &&
558
+ username == o.username &&
557
559
  tls_validation == o.tls_validation &&
558
- name == o.name &&
559
- max_retries == o.max_retries &&
560
- download_concurrency == o.download_concurrency &&
560
+ proxy_password == o.proxy_password &&
561
561
  rate_limit == o.rate_limit &&
562
562
  metadata_only == o.metadata_only &&
563
563
  git_ref == o.git_ref
@@ -572,7 +572,7 @@ module PulpAnsibleClient
572
572
  # Calculates hash code according to all attributes.
573
573
  # @return [Integer] Hash code
574
574
  def hash
575
- [sock_read_timeout, client_key, connect_timeout, client_cert, proxy_password, username, headers, total_timeout, sock_connect_timeout, url, ca_cert, pulp_labels, proxy_username, proxy_url, password, tls_validation, name, max_retries, download_concurrency, rate_limit, metadata_only, git_ref].hash
575
+ [client_cert, password, connect_timeout, name, proxy_url, max_retries, sock_read_timeout, headers, download_concurrency, total_timeout, client_key, url, pulp_labels, sock_connect_timeout, proxy_username, ca_cert, username, tls_validation, proxy_password, rate_limit, metadata_only, git_ref].hash
576
576
  end
577
577
 
578
578
  # Builds the object from hash