pulp_ansible_client 0.22.0 → 0.22.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -8
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleCollectionVersionResponse.md +5 -5
  5. data/docs/AnsibleCollectionsApi.md +1 -1
  6. data/docs/AnsibleCopyApi.md +1 -1
  7. data/docs/AnsibleGitRemote.md +29 -29
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRole.md +3 -3
  10. data/docs/AnsibleRoleResponse.md +5 -5
  11. data/docs/{PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md → ApiPluginAnsibleSearchCollectionVersionsApi.md} +18 -17
  12. data/docs/ApiRolesApi.md +1 -1
  13. data/docs/CollectionImportApi.md +1 -1
  14. data/docs/ContentCollectionDeprecationsApi.md +1 -1
  15. data/docs/ContentCollectionMarksApi.md +1 -1
  16. data/docs/ContentCollectionSignaturesApi.md +1 -1
  17. data/docs/ContentCollectionVersionsApi.md +5 -5
  18. data/docs/ContentNamespacesApi.md +1 -1
  19. data/docs/ContentRolesApi.md +1 -1
  20. data/docs/DistributionsAnsibleApi.md +1 -1
  21. data/docs/PatchedansibleGitRemote.md +29 -29
  22. data/docs/PulpAnsibleApiApi.md +1 -1
  23. data/docs/PulpAnsibleApiV3Api.md +1 -1
  24. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  25. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  26. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  27. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  30. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  40. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  41. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  42. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  43. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  44. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -3
  60. data/docs/PulpAnsibleTagsApi.md +1 -1
  61. data/docs/RemotesCollectionApi.md +1 -1
  62. data/docs/RemotesGitApi.md +1 -1
  63. data/docs/RemotesRoleApi.md +1 -1
  64. data/docs/RepositoriesAnsibleApi.md +1 -1
  65. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  66. data/docs/VersionsApi.md +1 -1
  67. data/lib/pulp_ansible_client/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb → api_plugin_ansible_search_collection_versions_api.rb} +26 -24
  68. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -0
  70. data/lib/pulp_ansible_client/configuration.rb +2 -2
  71. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  72. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  73. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  74. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
  75. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +250 -250
  76. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
  77. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  78. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  79. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  80. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  81. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  82. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +243 -243
  83. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  84. data/lib/pulp_ansible_client/version.rb +1 -1
  85. data/lib/pulp_ansible_client.rb +1 -1
  86. data/spec/api/{pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb → api_plugin_ansible_search_collection_versions_api_spec.rb} +9 -8
  87. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  88. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -0
  89. data/spec/configuration_spec.rb +3 -3
  90. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  91. data/spec/models/ansible_collection_version_spec.rb +3 -3
  92. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  93. data/spec/models/ansible_git_remote_spec.rb +20 -20
  94. data/spec/models/ansible_role_response_spec.rb +4 -4
  95. data/spec/models/ansible_role_spec.rb +2 -2
  96. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  97. metadata +145 -145
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of the most recent update of the remote.
19
- attr_accessor :pulp_last_updated
20
-
21
- # The URL of an external content source.
22
- attr_accessor :url
23
-
24
18
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
25
19
  attr_accessor :max_retries
26
20
 
27
- # A PEM encoded client certificate used for authentication.
28
- attr_accessor :client_cert
21
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :connect_timeout
29
23
 
30
- # If True, TLS peer validation must be performed.
31
- attr_accessor :tls_validation
24
+ # 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.
25
+ attr_accessor :sock_connect_timeout
32
26
 
33
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
- attr_accessor :total_timeout
27
+ attr_accessor :pulp_href
35
28
 
36
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
- attr_accessor :connect_timeout
29
+ # If True, TLS peer validation must be performed.
30
+ attr_accessor :tls_validation
38
31
 
39
- # Limits requests per second for each concurrent downloader
40
- attr_accessor :rate_limit
32
+ # The proxy URL. Format: scheme://host:port
33
+ attr_accessor :proxy_url
41
34
 
42
35
  # 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.
43
36
  attr_accessor :sock_read_timeout
44
37
 
45
- # Total number of simultaneous connections. If not set then the default value will be used.
46
- attr_accessor :download_concurrency
38
+ # A unique name for this remote.
39
+ attr_accessor :name
47
40
 
48
- # Headers for aiohttp.Clientsession
49
- attr_accessor :headers
41
+ # The URL of an external content source.
42
+ attr_accessor :url
50
43
 
51
- # The proxy URL. Format: scheme://host:port
52
- attr_accessor :proxy_url
44
+ # Limits requests per second for each concurrent downloader
45
+ attr_accessor :rate_limit
46
+
47
+ # A PEM encoded client certificate used for authentication.
48
+ attr_accessor :client_cert
53
49
 
54
50
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
55
51
  attr_accessor :ca_cert
56
52
 
57
- # 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.
58
- attr_accessor :sock_connect_timeout
53
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
+ attr_accessor :total_timeout
55
+
56
+ # Timestamp of creation.
57
+ attr_accessor :pulp_created
58
+
59
+ # Total number of simultaneous connections. If not set then the default value will be used.
60
+ attr_accessor :download_concurrency
59
61
 
60
62
  attr_accessor :pulp_labels
61
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
62
67
  # List of hidden (write only) fields
63
68
  attr_accessor :hidden_fields
64
69
 
65
- # A unique name for this remote.
66
- attr_accessor :name
67
-
68
- attr_accessor :pulp_href
69
-
70
- # Timestamp of creation.
71
- attr_accessor :pulp_created
70
+ # Timestamp of the most recent update of the remote.
71
+ attr_accessor :pulp_last_updated
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'pulp_last_updated' => :'pulp_last_updated',
83
- :'url' => :'url',
84
82
  :'max_retries' => :'max_retries',
85
- :'client_cert' => :'client_cert',
86
- :'tls_validation' => :'tls_validation',
87
- :'total_timeout' => :'total_timeout',
88
83
  :'connect_timeout' => :'connect_timeout',
89
- :'rate_limit' => :'rate_limit',
90
- :'sock_read_timeout' => :'sock_read_timeout',
91
- :'download_concurrency' => :'download_concurrency',
92
- :'headers' => :'headers',
84
+ :'sock_connect_timeout' => :'sock_connect_timeout',
85
+ :'pulp_href' => :'pulp_href',
86
+ :'tls_validation' => :'tls_validation',
93
87
  :'proxy_url' => :'proxy_url',
88
+ :'sock_read_timeout' => :'sock_read_timeout',
89
+ :'name' => :'name',
90
+ :'url' => :'url',
91
+ :'rate_limit' => :'rate_limit',
92
+ :'client_cert' => :'client_cert',
94
93
  :'ca_cert' => :'ca_cert',
95
- :'sock_connect_timeout' => :'sock_connect_timeout',
94
+ :'total_timeout' => :'total_timeout',
95
+ :'pulp_created' => :'pulp_created',
96
+ :'download_concurrency' => :'download_concurrency',
96
97
  :'pulp_labels' => :'pulp_labels',
98
+ :'headers' => :'headers',
97
99
  :'hidden_fields' => :'hidden_fields',
98
- :'name' => :'name',
99
- :'pulp_href' => :'pulp_href',
100
- :'pulp_created' => :'pulp_created',
100
+ :'pulp_last_updated' => :'pulp_last_updated',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'pulp_last_updated' => :'DateTime',
110
- :'url' => :'String',
111
109
  :'max_retries' => :'Integer',
112
- :'client_cert' => :'String',
113
- :'tls_validation' => :'Boolean',
114
- :'total_timeout' => :'Float',
115
110
  :'connect_timeout' => :'Float',
116
- :'rate_limit' => :'Integer',
117
- :'sock_read_timeout' => :'Float',
118
- :'download_concurrency' => :'Integer',
119
- :'headers' => :'Array<Object>',
111
+ :'sock_connect_timeout' => :'Float',
112
+ :'pulp_href' => :'String',
113
+ :'tls_validation' => :'Boolean',
120
114
  :'proxy_url' => :'String',
115
+ :'sock_read_timeout' => :'Float',
116
+ :'name' => :'String',
117
+ :'url' => :'String',
118
+ :'rate_limit' => :'Integer',
119
+ :'client_cert' => :'String',
121
120
  :'ca_cert' => :'String',
122
- :'sock_connect_timeout' => :'Float',
121
+ :'total_timeout' => :'Float',
122
+ :'pulp_created' => :'DateTime',
123
+ :'download_concurrency' => :'Integer',
123
124
  :'pulp_labels' => :'Hash<String, String>',
125
+ :'headers' => :'Array<Object>',
124
126
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
125
- :'name' => :'String',
126
- :'pulp_href' => :'String',
127
- :'pulp_created' => :'DateTime',
127
+ :'pulp_last_updated' => :'DateTime',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -134,15 +134,15 @@ module PulpAnsibleClient
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
136
  :'max_retries',
137
- :'client_cert',
138
- :'total_timeout',
139
137
  :'connect_timeout',
140
- :'rate_limit',
141
- :'sock_read_timeout',
142
- :'download_concurrency',
138
+ :'sock_connect_timeout',
143
139
  :'proxy_url',
140
+ :'sock_read_timeout',
141
+ :'rate_limit',
142
+ :'client_cert',
144
143
  :'ca_cert',
145
- :'sock_connect_timeout',
144
+ :'total_timeout',
145
+ :'download_concurrency',
146
146
  ])
147
147
  end
148
148
 
@@ -161,62 +161,64 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_last_updated')
165
- self.pulp_last_updated = attributes[:'pulp_last_updated']
166
- end
167
-
168
- if attributes.key?(:'url')
169
- self.url = attributes[:'url']
170
- end
171
-
172
164
  if attributes.key?(:'max_retries')
173
165
  self.max_retries = attributes[:'max_retries']
174
166
  end
175
167
 
176
- if attributes.key?(:'client_cert')
177
- self.client_cert = attributes[:'client_cert']
168
+ if attributes.key?(:'connect_timeout')
169
+ self.connect_timeout = attributes[:'connect_timeout']
178
170
  end
179
171
 
180
- if attributes.key?(:'tls_validation')
181
- self.tls_validation = attributes[:'tls_validation']
172
+ if attributes.key?(:'sock_connect_timeout')
173
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
182
174
  end
183
175
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
176
+ if attributes.key?(:'pulp_href')
177
+ self.pulp_href = attributes[:'pulp_href']
186
178
  end
187
179
 
188
- if attributes.key?(:'connect_timeout')
189
- self.connect_timeout = attributes[:'connect_timeout']
180
+ if attributes.key?(:'tls_validation')
181
+ self.tls_validation = attributes[:'tls_validation']
190
182
  end
191
183
 
192
- if attributes.key?(:'rate_limit')
193
- self.rate_limit = attributes[:'rate_limit']
184
+ if attributes.key?(:'proxy_url')
185
+ self.proxy_url = attributes[:'proxy_url']
194
186
  end
195
187
 
196
188
  if attributes.key?(:'sock_read_timeout')
197
189
  self.sock_read_timeout = attributes[:'sock_read_timeout']
198
190
  end
199
191
 
200
- if attributes.key?(:'download_concurrency')
201
- self.download_concurrency = attributes[:'download_concurrency']
192
+ if attributes.key?(:'name')
193
+ self.name = attributes[:'name']
202
194
  end
203
195
 
204
- if attributes.key?(:'headers')
205
- if (value = attributes[:'headers']).is_a?(Array)
206
- self.headers = value
207
- end
196
+ if attributes.key?(:'url')
197
+ self.url = attributes[:'url']
208
198
  end
209
199
 
210
- if attributes.key?(:'proxy_url')
211
- self.proxy_url = attributes[:'proxy_url']
200
+ if attributes.key?(:'rate_limit')
201
+ self.rate_limit = attributes[:'rate_limit']
202
+ end
203
+
204
+ if attributes.key?(:'client_cert')
205
+ self.client_cert = attributes[:'client_cert']
212
206
  end
213
207
 
214
208
  if attributes.key?(:'ca_cert')
215
209
  self.ca_cert = attributes[:'ca_cert']
216
210
  end
217
211
 
218
- if attributes.key?(:'sock_connect_timeout')
219
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
212
+ if attributes.key?(:'total_timeout')
213
+ self.total_timeout = attributes[:'total_timeout']
214
+ end
215
+
216
+ if attributes.key?(:'pulp_created')
217
+ self.pulp_created = attributes[:'pulp_created']
218
+ end
219
+
220
+ if attributes.key?(:'download_concurrency')
221
+ self.download_concurrency = attributes[:'download_concurrency']
220
222
  end
221
223
 
222
224
  if attributes.key?(:'pulp_labels')
@@ -225,22 +227,20 @@ module PulpAnsibleClient
225
227
  end
226
228
  end
227
229
 
230
+ if attributes.key?(:'headers')
231
+ if (value = attributes[:'headers']).is_a?(Array)
232
+ self.headers = value
233
+ end
234
+ end
235
+
228
236
  if attributes.key?(:'hidden_fields')
229
237
  if (value = attributes[:'hidden_fields']).is_a?(Array)
230
238
  self.hidden_fields = value
231
239
  end
232
240
  end
233
241
 
234
- if attributes.key?(:'name')
235
- self.name = attributes[:'name']
236
- end
237
-
238
- if attributes.key?(:'pulp_href')
239
- self.pulp_href = attributes[:'pulp_href']
240
- end
241
-
242
- if attributes.key?(:'pulp_created')
243
- self.pulp_created = attributes[:'pulp_created']
242
+ if attributes.key?(:'pulp_last_updated')
243
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @url.nil?
260
- invalid_properties.push('invalid value for "url", url cannot be nil.')
259
+ if !@connect_timeout.nil? && @connect_timeout < 0
260
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
261
261
  end
262
262
 
263
- if !@total_timeout.nil? && @total_timeout < 0.0
264
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
263
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
264
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
265
265
  end
266
266
 
267
- if !@connect_timeout.nil? && @connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
267
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
268
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
269
269
  end
270
270
 
271
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
272
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
271
+ if @name.nil?
272
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
273
273
  end
274
274
 
275
- if !@download_concurrency.nil? && @download_concurrency < 1
276
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
277
  end
278
278
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@total_timeout.nil? && @total_timeout < 0
280
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
281
281
  end
282
282
 
283
- if @name.nil?
284
- invalid_properties.push('invalid value for "name", name cannot be nil.')
283
+ if !@download_concurrency.nil? && @download_concurrency < 1
284
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,64 +290,64 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
294
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
295
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
296
+ return false if @name.nil?
293
297
  return false if @url.nil?
294
- return false if !@total_timeout.nil? && @total_timeout < 0.0
295
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
+ return false if !@total_timeout.nil? && @total_timeout < 0
297
299
  return false if !@download_concurrency.nil? && @download_concurrency < 1
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
- return false if @name.nil?
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] total_timeout Value to be assigned
305
- def total_timeout=(total_timeout)
306
- if !total_timeout.nil? && total_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
304
+ # @param [Object] connect_timeout Value to be assigned
305
+ def connect_timeout=(connect_timeout)
306
+ if !connect_timeout.nil? && connect_timeout < 0
307
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
308
308
  end
309
309
 
310
- @total_timeout = total_timeout
310
+ @connect_timeout = connect_timeout
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] connect_timeout Value to be assigned
315
- def connect_timeout=(connect_timeout)
316
- if !connect_timeout.nil? && connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
314
+ # @param [Object] sock_connect_timeout Value to be assigned
315
+ def sock_connect_timeout=(sock_connect_timeout)
316
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
317
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
318
318
  end
319
319
 
320
- @connect_timeout = connect_timeout
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
324
324
  # @param [Object] sock_read_timeout Value to be assigned
325
325
  def sock_read_timeout=(sock_read_timeout)
326
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
326
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
327
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
328
328
  end
329
329
 
330
330
  @sock_read_timeout = sock_read_timeout
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] download_concurrency Value to be assigned
335
- def download_concurrency=(download_concurrency)
336
- if !download_concurrency.nil? && download_concurrency < 1
337
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
334
+ # @param [Object] total_timeout Value to be assigned
335
+ def total_timeout=(total_timeout)
336
+ if !total_timeout.nil? && total_timeout < 0
337
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
338
338
  end
339
339
 
340
- @download_concurrency = download_concurrency
340
+ @total_timeout = total_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] sock_connect_timeout Value to be assigned
345
- def sock_connect_timeout=(sock_connect_timeout)
346
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
344
+ # @param [Object] download_concurrency Value to be assigned
345
+ def download_concurrency=(download_concurrency)
346
+ if !download_concurrency.nil? && download_concurrency < 1
347
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
348
  end
349
349
 
350
- @sock_connect_timeout = sock_connect_timeout
350
+ @download_concurrency = download_concurrency
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- pulp_last_updated == o.pulp_last_updated &&
359
- url == o.url &&
360
358
  max_retries == o.max_retries &&
361
- client_cert == o.client_cert &&
362
- tls_validation == o.tls_validation &&
363
- total_timeout == o.total_timeout &&
364
359
  connect_timeout == o.connect_timeout &&
365
- rate_limit == o.rate_limit &&
366
- sock_read_timeout == o.sock_read_timeout &&
367
- download_concurrency == o.download_concurrency &&
368
- headers == o.headers &&
360
+ sock_connect_timeout == o.sock_connect_timeout &&
361
+ pulp_href == o.pulp_href &&
362
+ tls_validation == o.tls_validation &&
369
363
  proxy_url == o.proxy_url &&
364
+ sock_read_timeout == o.sock_read_timeout &&
365
+ name == o.name &&
366
+ url == o.url &&
367
+ rate_limit == o.rate_limit &&
368
+ client_cert == o.client_cert &&
370
369
  ca_cert == o.ca_cert &&
371
- sock_connect_timeout == o.sock_connect_timeout &&
370
+ total_timeout == o.total_timeout &&
371
+ pulp_created == o.pulp_created &&
372
+ download_concurrency == o.download_concurrency &&
372
373
  pulp_labels == o.pulp_labels &&
374
+ headers == o.headers &&
373
375
  hidden_fields == o.hidden_fields &&
374
- name == o.name &&
375
- pulp_href == o.pulp_href &&
376
- pulp_created == o.pulp_created &&
376
+ pulp_last_updated == o.pulp_last_updated &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [pulp_last_updated, url, max_retries, client_cert, tls_validation, total_timeout, connect_timeout, rate_limit, sock_read_timeout, download_concurrency, headers, proxy_url, ca_cert, sock_connect_timeout, pulp_labels, hidden_fields, name, pulp_href, pulp_created, metadata_only, git_ref].hash
390
+ [max_retries, connect_timeout, sock_connect_timeout, pulp_href, tls_validation, proxy_url, sock_read_timeout, name, url, rate_limit, client_cert, ca_cert, total_timeout, pulp_created, download_concurrency, pulp_labels, headers, hidden_fields, pulp_last_updated, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRole
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
21
+ # Artifact file representing the physical content
22
+ attr_accessor :artifact
23
+
24
24
  attr_accessor :version
25
25
 
26
26
  attr_accessor :name
@@ -30,8 +30,8 @@ module PulpAnsibleClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'artifact' => :'artifact',
34
33
  :'repository' => :'repository',
34
+ :'artifact' => :'artifact',
35
35
  :'version' => :'version',
36
36
  :'name' => :'name',
37
37
  :'namespace' => :'namespace'
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'artifact' => :'String',
45
44
  :'repository' => :'String',
45
+ :'artifact' => :'String',
46
46
  :'version' => :'String',
47
47
  :'name' => :'String',
48
48
  :'namespace' => :'String'
@@ -70,14 +70,14 @@ module PulpAnsibleClient
70
70
  h[k.to_sym] = v
71
71
  }
72
72
 
73
- if attributes.key?(:'artifact')
74
- self.artifact = attributes[:'artifact']
75
- end
76
-
77
73
  if attributes.key?(:'repository')
78
74
  self.repository = attributes[:'repository']
79
75
  end
80
76
 
77
+ if attributes.key?(:'artifact')
78
+ self.artifact = attributes[:'artifact']
79
+ end
80
+
81
81
  if attributes.key?(:'version')
82
82
  self.version = attributes[:'version']
83
83
  end
@@ -186,8 +186,8 @@ module PulpAnsibleClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- artifact == o.artifact &&
190
189
  repository == o.repository &&
190
+ artifact == o.artifact &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [artifact, repository, version, name, namespace].hash
205
+ [repository, artifact, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0.0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0.0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0.0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
478
+ if !total_timeout.nil? && total_timeout < 0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0.0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout