pulp_ansible_client 0.16.7 → 0.17.0.dev1669950709

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

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