pulp_ansible_client 0.18.2 → 0.18.4

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