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 PatchedansibleGitRemote
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,64 +267,64 @@ 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? && @name.to_s.length < 1
283
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
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 !@proxy_url.nil? && @proxy_url.to_s.length < 1
287
+ invalid_properties.push('invalid value for "proxy_url", 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 !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
292
+ end
293
+
294
+ if !@download_concurrency.nil? && @download_concurrency < 1
295
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
292
296
  end
293
297
 
294
298
  if !@total_timeout.nil? && @total_timeout < 0.0
295
299
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
296
300
  end
297
301
 
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.')
302
+ if !@client_key.nil? && @client_key.to_s.length < 1
303
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
300
304
  end
301
305
 
302
306
  if !@url.nil? && @url.to_s.length < 1
303
307
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
304
308
  end
305
309
 
306
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
307
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
310
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
311
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
308
312
  end
309
313
 
310
314
  if !@proxy_username.nil? && @proxy_username.to_s.length < 1
311
315
  invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
312
316
  end
313
317
 
314
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
315
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
316
- end
317
-
318
- if !@password.nil? && @password.to_s.length < 1
319
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
318
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
319
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
320
320
  end
321
321
 
322
- if !@name.nil? && @name.to_s.length < 1
323
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
322
+ if !@username.nil? && @username.to_s.length < 1
323
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
324
324
  end
325
325
 
326
- if !@download_concurrency.nil? && @download_concurrency < 1
327
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
326
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
327
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
328
328
  end
329
329
 
330
330
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -337,43 +337,43 @@ module PulpAnsibleClient
337
337
  # Check to see if the all the properties in the model are valid
338
338
  # @return true if the model is valid
339
339
  def valid?
340
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
341
- return false if !@client_key.nil? && @client_key.to_s.length < 1
342
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
343
340
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
344
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
- return false if !@username.nil? && @username.to_s.length < 1
346
- return false if !@total_timeout.nil? && @total_timeout < 0.0
347
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
348
- return false if !@url.nil? && @url.to_s.length < 1
349
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
350
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
351
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
352
341
  return false if !@password.nil? && @password.to_s.length < 1
342
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
353
343
  return false if !@name.nil? && @name.to_s.length < 1
344
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
345
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
354
346
  return false if !@download_concurrency.nil? && @download_concurrency < 1
347
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
348
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
349
+ return false if !@url.nil? && @url.to_s.length < 1
350
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
351
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
352
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
353
+ return false if !@username.nil? && @username.to_s.length < 1
354
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
355
355
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
356
356
  true
357
357
  end
358
358
 
359
359
  # Custom attribute writer method with validation
360
- # @param [Object] sock_read_timeout Value to be assigned
361
- def sock_read_timeout=(sock_read_timeout)
362
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
363
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
360
+ # @param [Object] client_cert Value to be assigned
361
+ def client_cert=(client_cert)
362
+ if !client_cert.nil? && client_cert.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
364
364
  end
365
365
 
366
- @sock_read_timeout = sock_read_timeout
366
+ @client_cert = client_cert
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] client_key Value to be assigned
371
- def client_key=(client_key)
372
- if !client_key.nil? && client_key.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
370
+ # @param [Object] password Value to be assigned
371
+ def password=(password)
372
+ if !password.nil? && password.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
374
374
  end
375
375
 
376
- @client_key = client_key
376
+ @password = password
377
377
  end
378
378
 
379
379
  # Custom attribute writer method with validation
@@ -387,33 +387,43 @@ module PulpAnsibleClient
387
387
  end
388
388
 
389
389
  # Custom attribute writer method with validation
390
- # @param [Object] client_cert Value to be assigned
391
- def client_cert=(client_cert)
392
- if !client_cert.nil? && client_cert.to_s.length < 1
393
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
390
+ # @param [Object] name Value to be assigned
391
+ def name=(name)
392
+ if !name.nil? && name.to_s.length < 1
393
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
394
394
  end
395
395
 
396
- @client_cert = client_cert
396
+ @name = name
397
397
  end
398
398
 
399
399
  # Custom attribute writer method with validation
400
- # @param [Object] proxy_password Value to be assigned
401
- def proxy_password=(proxy_password)
402
- if !proxy_password.nil? && proxy_password.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
400
+ # @param [Object] proxy_url Value to be assigned
401
+ def proxy_url=(proxy_url)
402
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
403
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
404
404
  end
405
405
 
406
- @proxy_password = proxy_password
406
+ @proxy_url = proxy_url
407
407
  end
408
408
 
409
409
  # Custom attribute writer method with validation
410
- # @param [Object] username Value to be assigned
411
- def username=(username)
412
- if !username.nil? && username.to_s.length < 1
413
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
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.'
414
414
  end
415
415
 
416
- @username = username
416
+ @sock_read_timeout = sock_read_timeout
417
+ end
418
+
419
+ # Custom attribute writer method with validation
420
+ # @param [Object] download_concurrency Value to be assigned
421
+ def download_concurrency=(download_concurrency)
422
+ if !download_concurrency.nil? && download_concurrency < 1
423
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
424
+ end
425
+
426
+ @download_concurrency = download_concurrency
417
427
  end
418
428
 
419
429
  # Custom attribute writer method with validation
@@ -427,13 +437,13 @@ module PulpAnsibleClient
427
437
  end
428
438
 
429
439
  # Custom attribute writer method with validation
430
- # @param [Object] sock_connect_timeout Value to be assigned
431
- def sock_connect_timeout=(sock_connect_timeout)
432
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
433
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
440
+ # @param [Object] client_key Value to be assigned
441
+ def client_key=(client_key)
442
+ if !client_key.nil? && client_key.to_s.length < 1
443
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
434
444
  end
435
445
 
436
- @sock_connect_timeout = sock_connect_timeout
446
+ @client_key = client_key
437
447
  end
438
448
 
439
449
  # Custom attribute writer method with validation
@@ -447,13 +457,13 @@ module PulpAnsibleClient
447
457
  end
448
458
 
449
459
  # Custom attribute writer method with validation
450
- # @param [Object] ca_cert Value to be assigned
451
- def ca_cert=(ca_cert)
452
- if !ca_cert.nil? && ca_cert.to_s.length < 1
453
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
460
+ # @param [Object] sock_connect_timeout Value to be assigned
461
+ def sock_connect_timeout=(sock_connect_timeout)
462
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
463
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
454
464
  end
455
465
 
456
- @ca_cert = ca_cert
466
+ @sock_connect_timeout = sock_connect_timeout
457
467
  end
458
468
 
459
469
  # Custom attribute writer method with validation
@@ -467,43 +477,33 @@ module PulpAnsibleClient
467
477
  end
468
478
 
469
479
  # Custom attribute writer method with validation
470
- # @param [Object] proxy_url Value to be assigned
471
- def proxy_url=(proxy_url)
472
- if !proxy_url.nil? && proxy_url.to_s.length < 1
473
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
474
- end
475
-
476
- @proxy_url = proxy_url
477
- end
478
-
479
- # Custom attribute writer method with validation
480
- # @param [Object] password Value to be assigned
481
- def password=(password)
482
- if !password.nil? && password.to_s.length < 1
483
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
480
+ # @param [Object] ca_cert Value to be assigned
481
+ def ca_cert=(ca_cert)
482
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
483
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
484
484
  end
485
485
 
486
- @password = password
486
+ @ca_cert = ca_cert
487
487
  end
488
488
 
489
489
  # Custom attribute writer method with validation
490
- # @param [Object] name Value to be assigned
491
- def name=(name)
492
- if !name.nil? && name.to_s.length < 1
493
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
490
+ # @param [Object] username Value to be assigned
491
+ def username=(username)
492
+ if !username.nil? && username.to_s.length < 1
493
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
494
494
  end
495
495
 
496
- @name = name
496
+ @username = username
497
497
  end
498
498
 
499
499
  # Custom attribute writer method with validation
500
- # @param [Object] download_concurrency Value to be assigned
501
- def download_concurrency=(download_concurrency)
502
- if !download_concurrency.nil? && download_concurrency < 1
503
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
500
+ # @param [Object] proxy_password Value to be assigned
501
+ def proxy_password=(proxy_password)
502
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
503
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
504
504
  end
505
505
 
506
- @download_concurrency = download_concurrency
506
+ @proxy_password = proxy_password
507
507
  end
508
508
 
509
509
  # Custom attribute writer method with validation
@@ -521,25 +521,25 @@ module PulpAnsibleClient
521
521
  def ==(o)
522
522
  return true if self.equal?(o)
523
523
  self.class == o.class &&
524
- sock_read_timeout == o.sock_read_timeout &&
525
- client_key == o.client_key &&
526
- connect_timeout == o.connect_timeout &&
527
524
  client_cert == o.client_cert &&
528
- proxy_password == o.proxy_password &&
529
- username == o.username &&
525
+ password == o.password &&
526
+ connect_timeout == o.connect_timeout &&
527
+ name == o.name &&
528
+ proxy_url == o.proxy_url &&
529
+ max_retries == o.max_retries &&
530
+ sock_read_timeout == o.sock_read_timeout &&
530
531
  headers == o.headers &&
532
+ download_concurrency == o.download_concurrency &&
531
533
  total_timeout == o.total_timeout &&
532
- sock_connect_timeout == o.sock_connect_timeout &&
534
+ client_key == o.client_key &&
533
535
  url == o.url &&
534
- ca_cert == o.ca_cert &&
535
536
  pulp_labels == o.pulp_labels &&
537
+ sock_connect_timeout == o.sock_connect_timeout &&
536
538
  proxy_username == o.proxy_username &&
537
- proxy_url == o.proxy_url &&
538
- password == o.password &&
539
+ ca_cert == o.ca_cert &&
540
+ username == o.username &&
539
541
  tls_validation == o.tls_validation &&
540
- name == o.name &&
541
- max_retries == o.max_retries &&
542
- download_concurrency == o.download_concurrency &&
542
+ proxy_password == o.proxy_password &&
543
543
  rate_limit == o.rate_limit &&
544
544
  metadata_only == o.metadata_only &&
545
545
  git_ref == o.git_ref
@@ -554,7 +554,7 @@ module PulpAnsibleClient
554
554
  # Calculates hash code according to all attributes.
555
555
  # @return [Integer] Hash code
556
556
  def hash
557
- [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
557
+ [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
558
558
  end
559
559
 
560
560
  # Builds the object from hash