pulp_ansible_client 0.13.6 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AnsibleCollectionRemote.md +2 -2
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersion.md +2 -0
  6. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  7. data/docs/AnsibleCollectionsApi.md +2 -2
  8. data/docs/AnsibleGitRemote.md +24 -24
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRoleRemote.md +2 -2
  11. data/docs/AnsibleRoleResponse.md +2 -2
  12. data/docs/ContentCollectionDeprecationsApi.md +2 -2
  13. data/docs/ContentCollectionSignaturesApi.md +2 -2
  14. data/docs/ContentCollectionVersionsApi.md +4 -2
  15. data/docs/ContentRolesApi.md +2 -2
  16. data/docs/DistributionsAnsibleApi.md +2 -2
  17. data/docs/PatchedansibleCollectionRemote.md +2 -2
  18. data/docs/PatchedansibleGitRemote.md +24 -24
  19. data/docs/PatchedansibleRoleRemote.md +2 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -0
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -0
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -0
  23. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -0
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -0
  26. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -0
  27. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -0
  28. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -0
  29. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -0
  30. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -0
  31. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -0
  32. data/docs/PulpAnsibleTagsApi.md +0 -2
  33. data/docs/RemotesCollectionApi.md +2 -2
  34. data/docs/RemotesGitApi.md +2 -2
  35. data/docs/RemotesRoleApi.md +2 -2
  36. data/docs/RepositoriesAnsibleApi.md +2 -2
  37. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  38. data/git_push.sh +58 -0
  39. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -3
  40. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +7 -3
  41. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +7 -3
  42. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +10 -3
  43. data/lib/pulp_ansible_client/api/content_roles_api.rb +7 -3
  44. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +7 -3
  45. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +7 -0
  46. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +7 -0
  47. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +7 -0
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -0
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +7 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +7 -0
  51. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +7 -0
  52. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +7 -0
  53. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +7 -0
  54. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +7 -0
  55. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +7 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +7 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +0 -3
  58. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +7 -3
  59. data/lib/pulp_ansible_client/api/remotes_git_api.rb +7 -3
  60. data/lib/pulp_ansible_client/api/remotes_role_api.rb +7 -3
  61. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +7 -3
  62. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +7 -3
  63. data/lib/pulp_ansible_client/api_client.rb +1 -1
  64. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +2 -2
  65. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  66. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -1
  67. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  68. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +208 -208
  69. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
  70. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +2 -2
  71. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  72. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +2 -2
  73. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +199 -199
  74. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +2 -2
  75. data/lib/pulp_ansible_client/version.rb +1 -1
  76. data/pulp_ansible_client.gemspec +3 -3
  77. data/spec/api/ansible_collections_api_spec.rb +1 -1
  78. data/spec/api/content_collection_deprecations_api_spec.rb +1 -1
  79. data/spec/api/content_collection_signatures_api_spec.rb +1 -1
  80. data/spec/api/content_collection_versions_api_spec.rb +2 -1
  81. data/spec/api/content_roles_api_spec.rb +1 -1
  82. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  83. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  84. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  85. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -0
  86. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  87. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  88. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -0
  89. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  90. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  91. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -0
  92. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  93. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  94. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -0
  95. data/spec/api/pulp_ansible_tags_api_spec.rb +0 -1
  96. data/spec/api/remotes_collection_api_spec.rb +1 -1
  97. data/spec/api/remotes_git_api_spec.rb +1 -1
  98. data/spec/api/remotes_role_api_spec.rb +1 -1
  99. data/spec/api/repositories_ansible_api_spec.rb +1 -1
  100. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  101. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  102. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  103. data/spec/models/ansible_collection_version_spec.rb +6 -0
  104. data/spec/models/ansible_git_remote_response_spec.rb +16 -16
  105. data/spec/models/ansible_git_remote_spec.rb +18 -18
  106. data/spec/models/ansible_role_response_spec.rb +2 -2
  107. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  108. metadata +101 -100
@@ -15,54 +15,54 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
19
- attr_accessor :sock_read_timeout
18
+ # A PEM encoded client certificate used for authentication.
19
+ attr_accessor :client_cert
20
20
 
21
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
22
  attr_accessor :connect_timeout
23
23
 
24
- # A PEM encoded client certificate used for authentication.
25
- attr_accessor :client_cert
24
+ # A unique name for this remote.
25
+ attr_accessor :name
26
+
27
+ # The proxy URL. Format: scheme://host:port
28
+ attr_accessor :proxy_url
29
+
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
32
+
33
+ # 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.
34
+ attr_accessor :sock_read_timeout
26
35
 
27
36
  # Headers for aiohttp.Clientsession
28
37
  attr_accessor :headers
29
38
 
39
+ # Total number of simultaneous connections. If not set then the default value will be used.
40
+ attr_accessor :download_concurrency
41
+
30
42
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
31
43
  attr_accessor :total_timeout
32
44
 
33
- attr_accessor :pulp_href
34
-
35
- # 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.
36
- attr_accessor :sock_connect_timeout
37
-
38
45
  # The URL of an external content source.
39
46
  attr_accessor :url
40
47
 
41
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
42
- attr_accessor :ca_cert
43
-
44
- # Timestamp of the most recent update of the remote.
45
- attr_accessor :pulp_last_updated
48
+ # Timestamp of creation.
49
+ attr_accessor :pulp_created
46
50
 
47
51
  attr_accessor :pulp_labels
48
52
 
49
- # The proxy URL. Format: scheme://host:port
50
- attr_accessor :proxy_url
53
+ # 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.
54
+ attr_accessor :sock_connect_timeout
55
+
56
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
57
+ attr_accessor :ca_cert
51
58
 
52
59
  # If True, TLS peer validation must be performed.
53
60
  attr_accessor :tls_validation
54
61
 
55
- # Timestamp of creation.
56
- attr_accessor :pulp_created
57
-
58
- # A unique name for this remote.
59
- attr_accessor :name
60
-
61
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
62
- attr_accessor :max_retries
62
+ attr_accessor :pulp_href
63
63
 
64
- # Total number of simultaneous connections. If not set then the default value will be used.
65
- attr_accessor :download_concurrency
64
+ # Timestamp of the most recent update of the remote.
65
+ attr_accessor :pulp_last_updated
66
66
 
67
67
  # Limits requests per second for each concurrent downloader
68
68
  attr_accessor :rate_limit
@@ -76,23 +76,23 @@ module PulpAnsibleClient
76
76
  # Attribute mapping from ruby-style variable name to JSON key.
77
77
  def self.attribute_map
78
78
  {
79
- :'sock_read_timeout' => :'sock_read_timeout',
80
- :'connect_timeout' => :'connect_timeout',
81
79
  :'client_cert' => :'client_cert',
80
+ :'connect_timeout' => :'connect_timeout',
81
+ :'name' => :'name',
82
+ :'proxy_url' => :'proxy_url',
83
+ :'max_retries' => :'max_retries',
84
+ :'sock_read_timeout' => :'sock_read_timeout',
82
85
  :'headers' => :'headers',
86
+ :'download_concurrency' => :'download_concurrency',
83
87
  :'total_timeout' => :'total_timeout',
84
- :'pulp_href' => :'pulp_href',
85
- :'sock_connect_timeout' => :'sock_connect_timeout',
86
88
  :'url' => :'url',
87
- :'ca_cert' => :'ca_cert',
88
- :'pulp_last_updated' => :'pulp_last_updated',
89
+ :'pulp_created' => :'pulp_created',
89
90
  :'pulp_labels' => :'pulp_labels',
90
- :'proxy_url' => :'proxy_url',
91
+ :'sock_connect_timeout' => :'sock_connect_timeout',
92
+ :'ca_cert' => :'ca_cert',
91
93
  :'tls_validation' => :'tls_validation',
92
- :'pulp_created' => :'pulp_created',
93
- :'name' => :'name',
94
- :'max_retries' => :'max_retries',
95
- :'download_concurrency' => :'download_concurrency',
94
+ :'pulp_href' => :'pulp_href',
95
+ :'pulp_last_updated' => :'pulp_last_updated',
96
96
  :'rate_limit' => :'rate_limit',
97
97
  :'metadata_only' => :'metadata_only',
98
98
  :'git_ref' => :'git_ref'
@@ -102,23 +102,23 @@ module PulpAnsibleClient
102
102
  # Attribute type mapping.
103
103
  def self.openapi_types
104
104
  {
105
- :'sock_read_timeout' => :'Float',
106
- :'connect_timeout' => :'Float',
107
105
  :'client_cert' => :'String',
106
+ :'connect_timeout' => :'Float',
107
+ :'name' => :'String',
108
+ :'proxy_url' => :'String',
109
+ :'max_retries' => :'Integer',
110
+ :'sock_read_timeout' => :'Float',
108
111
  :'headers' => :'Array<Object>',
112
+ :'download_concurrency' => :'Integer',
109
113
  :'total_timeout' => :'Float',
110
- :'pulp_href' => :'String',
111
- :'sock_connect_timeout' => :'Float',
112
114
  :'url' => :'String',
113
- :'ca_cert' => :'String',
114
- :'pulp_last_updated' => :'DateTime',
115
+ :'pulp_created' => :'DateTime',
115
116
  :'pulp_labels' => :'Object',
116
- :'proxy_url' => :'String',
117
+ :'sock_connect_timeout' => :'Float',
118
+ :'ca_cert' => :'String',
117
119
  :'tls_validation' => :'Boolean',
118
- :'pulp_created' => :'DateTime',
119
- :'name' => :'String',
120
- :'max_retries' => :'Integer',
121
- :'download_concurrency' => :'Integer',
120
+ :'pulp_href' => :'String',
121
+ :'pulp_last_updated' => :'DateTime',
122
122
  :'rate_limit' => :'Integer',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
@@ -128,15 +128,15 @@ module PulpAnsibleClient
128
128
  # List of attributes with nullable: true
129
129
  def self.openapi_nullable
130
130
  Set.new([
131
- :'sock_read_timeout',
132
- :'connect_timeout',
133
131
  :'client_cert',
134
- :'total_timeout',
135
- :'sock_connect_timeout',
136
- :'ca_cert',
132
+ :'connect_timeout',
137
133
  :'proxy_url',
138
134
  :'max_retries',
135
+ :'sock_read_timeout',
139
136
  :'download_concurrency',
137
+ :'total_timeout',
138
+ :'sock_connect_timeout',
139
+ :'ca_cert',
140
140
  :'rate_limit',
141
141
  ])
142
142
  end
@@ -156,16 +156,28 @@ module PulpAnsibleClient
156
156
  h[k.to_sym] = v
157
157
  }
158
158
 
159
- if attributes.key?(:'sock_read_timeout')
160
- self.sock_read_timeout = attributes[:'sock_read_timeout']
159
+ if attributes.key?(:'client_cert')
160
+ self.client_cert = attributes[:'client_cert']
161
161
  end
162
162
 
163
163
  if attributes.key?(:'connect_timeout')
164
164
  self.connect_timeout = attributes[:'connect_timeout']
165
165
  end
166
166
 
167
- if attributes.key?(:'client_cert')
168
- self.client_cert = attributes[:'client_cert']
167
+ if attributes.key?(:'name')
168
+ self.name = attributes[:'name']
169
+ end
170
+
171
+ if attributes.key?(:'proxy_url')
172
+ self.proxy_url = attributes[:'proxy_url']
173
+ end
174
+
175
+ if attributes.key?(:'max_retries')
176
+ self.max_retries = attributes[:'max_retries']
177
+ end
178
+
179
+ if attributes.key?(:'sock_read_timeout')
180
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
169
181
  end
170
182
 
171
183
  if attributes.key?(:'headers')
@@ -174,56 +186,44 @@ module PulpAnsibleClient
174
186
  end
175
187
  end
176
188
 
177
- if attributes.key?(:'total_timeout')
178
- self.total_timeout = attributes[:'total_timeout']
179
- end
180
-
181
- if attributes.key?(:'pulp_href')
182
- self.pulp_href = attributes[:'pulp_href']
189
+ if attributes.key?(:'download_concurrency')
190
+ self.download_concurrency = attributes[:'download_concurrency']
183
191
  end
184
192
 
185
- if attributes.key?(:'sock_connect_timeout')
186
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
193
+ if attributes.key?(:'total_timeout')
194
+ self.total_timeout = attributes[:'total_timeout']
187
195
  end
188
196
 
189
197
  if attributes.key?(:'url')
190
198
  self.url = attributes[:'url']
191
199
  end
192
200
 
193
- if attributes.key?(:'ca_cert')
194
- self.ca_cert = attributes[:'ca_cert']
195
- end
196
-
197
- if attributes.key?(:'pulp_last_updated')
198
- self.pulp_last_updated = attributes[:'pulp_last_updated']
201
+ if attributes.key?(:'pulp_created')
202
+ self.pulp_created = attributes[:'pulp_created']
199
203
  end
200
204
 
201
205
  if attributes.key?(:'pulp_labels')
202
206
  self.pulp_labels = attributes[:'pulp_labels']
203
207
  end
204
208
 
205
- if attributes.key?(:'proxy_url')
206
- self.proxy_url = attributes[:'proxy_url']
207
- end
208
-
209
- if attributes.key?(:'tls_validation')
210
- self.tls_validation = attributes[:'tls_validation']
209
+ if attributes.key?(:'sock_connect_timeout')
210
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
211
211
  end
212
212
 
213
- if attributes.key?(:'pulp_created')
214
- self.pulp_created = attributes[:'pulp_created']
213
+ if attributes.key?(:'ca_cert')
214
+ self.ca_cert = attributes[:'ca_cert']
215
215
  end
216
216
 
217
- if attributes.key?(:'name')
218
- self.name = attributes[:'name']
217
+ if attributes.key?(:'tls_validation')
218
+ self.tls_validation = attributes[:'tls_validation']
219
219
  end
220
220
 
221
- if attributes.key?(:'max_retries')
222
- self.max_retries = attributes[:'max_retries']
221
+ if attributes.key?(:'pulp_href')
222
+ self.pulp_href = attributes[:'pulp_href']
223
223
  end
224
224
 
225
- if attributes.key?(:'download_concurrency')
226
- self.download_concurrency = attributes[:'download_concurrency']
225
+ if attributes.key?(:'pulp_last_updated')
226
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
227
227
  end
228
228
 
229
229
  if attributes.key?(:'rate_limit')
@@ -243,32 +243,32 @@ module PulpAnsibleClient
243
243
  # @return Array for valid properties with the reasons
244
244
  def list_invalid_properties
245
245
  invalid_properties = Array.new
246
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
247
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
248
+ end
249
+
250
+ if @name.nil?
251
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
252
+ end
253
+
246
254
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
247
255
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
248
256
  end
249
257
 
250
- if !@connect_timeout.nil? && @connect_timeout < 0.0
251
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
258
+ if !@download_concurrency.nil? && @download_concurrency < 1
259
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
252
260
  end
253
261
 
254
262
  if !@total_timeout.nil? && @total_timeout < 0.0
255
263
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
256
264
  end
257
265
 
258
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
259
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
260
- end
261
-
262
266
  if @url.nil?
263
267
  invalid_properties.push('invalid value for "url", url cannot be nil.')
264
268
  end
265
269
 
266
- if @name.nil?
267
- invalid_properties.push('invalid value for "name", name cannot be nil.')
268
- end
269
-
270
- if !@download_concurrency.nil? && @download_concurrency < 1
271
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
272
  end
273
273
 
274
274
  invalid_properties
@@ -277,16 +277,26 @@ module PulpAnsibleClient
277
277
  # Check to see if the all the properties in the model are valid
278
278
  # @return true if the model is valid
279
279
  def valid?
280
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
281
280
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
282
- return false if !@total_timeout.nil? && @total_timeout < 0.0
283
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
284
- return false if @url.nil?
285
281
  return false if @name.nil?
282
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
286
283
  return false if !@download_concurrency.nil? && @download_concurrency < 1
284
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
285
+ return false if @url.nil?
286
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
287
287
  true
288
288
  end
289
289
 
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] connect_timeout Value to be assigned
292
+ def connect_timeout=(connect_timeout)
293
+ if !connect_timeout.nil? && connect_timeout < 0.0
294
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
295
+ end
296
+
297
+ @connect_timeout = connect_timeout
298
+ end
299
+
290
300
  # Custom attribute writer method with validation
291
301
  # @param [Object] sock_read_timeout Value to be assigned
292
302
  def sock_read_timeout=(sock_read_timeout)
@@ -298,13 +308,13 @@ module PulpAnsibleClient
298
308
  end
299
309
 
300
310
  # Custom attribute writer method with validation
301
- # @param [Object] connect_timeout Value to be assigned
302
- def connect_timeout=(connect_timeout)
303
- if !connect_timeout.nil? && connect_timeout < 0.0
304
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
311
+ # @param [Object] download_concurrency Value to be assigned
312
+ def download_concurrency=(download_concurrency)
313
+ if !download_concurrency.nil? && download_concurrency < 1
314
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
305
315
  end
306
316
 
307
- @connect_timeout = connect_timeout
317
+ @download_concurrency = download_concurrency
308
318
  end
309
319
 
310
320
  # Custom attribute writer method with validation
@@ -327,38 +337,28 @@ module PulpAnsibleClient
327
337
  @sock_connect_timeout = sock_connect_timeout
328
338
  end
329
339
 
330
- # Custom attribute writer method with validation
331
- # @param [Object] download_concurrency Value to be assigned
332
- def download_concurrency=(download_concurrency)
333
- if !download_concurrency.nil? && download_concurrency < 1
334
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
335
- end
336
-
337
- @download_concurrency = download_concurrency
338
- end
339
-
340
340
  # Checks equality by comparing each attribute.
341
341
  # @param [Object] Object to be compared
342
342
  def ==(o)
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
- sock_read_timeout == o.sock_read_timeout &&
346
- connect_timeout == o.connect_timeout &&
347
345
  client_cert == o.client_cert &&
346
+ connect_timeout == o.connect_timeout &&
347
+ name == o.name &&
348
+ proxy_url == o.proxy_url &&
349
+ max_retries == o.max_retries &&
350
+ sock_read_timeout == o.sock_read_timeout &&
348
351
  headers == o.headers &&
352
+ download_concurrency == o.download_concurrency &&
349
353
  total_timeout == o.total_timeout &&
350
- pulp_href == o.pulp_href &&
351
- sock_connect_timeout == o.sock_connect_timeout &&
352
354
  url == o.url &&
353
- ca_cert == o.ca_cert &&
354
- pulp_last_updated == o.pulp_last_updated &&
355
+ pulp_created == o.pulp_created &&
355
356
  pulp_labels == o.pulp_labels &&
356
- proxy_url == o.proxy_url &&
357
+ sock_connect_timeout == o.sock_connect_timeout &&
358
+ ca_cert == o.ca_cert &&
357
359
  tls_validation == o.tls_validation &&
358
- pulp_created == o.pulp_created &&
359
- name == o.name &&
360
- max_retries == o.max_retries &&
361
- download_concurrency == o.download_concurrency &&
360
+ pulp_href == o.pulp_href &&
361
+ pulp_last_updated == o.pulp_last_updated &&
362
362
  rate_limit == o.rate_limit &&
363
363
  metadata_only == o.metadata_only &&
364
364
  git_ref == o.git_ref
@@ -373,7 +373,7 @@ module PulpAnsibleClient
373
373
  # Calculates hash code according to all attributes.
374
374
  # @return [Integer] Hash code
375
375
  def hash
376
- [sock_read_timeout, connect_timeout, client_cert, headers, total_timeout, pulp_href, sock_connect_timeout, url, ca_cert, pulp_last_updated, pulp_labels, proxy_url, tls_validation, pulp_created, name, max_retries, download_concurrency, rate_limit, metadata_only, git_ref].hash
376
+ [client_cert, connect_timeout, name, proxy_url, max_retries, sock_read_timeout, headers, download_concurrency, total_timeout, url, pulp_created, pulp_labels, sock_connect_timeout, ca_cert, tls_validation, pulp_href, pulp_last_updated, rate_limit, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash
@@ -39,13 +39,13 @@ module PulpAnsibleClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels
@@ -18,11 +18,11 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
+ attr_accessor :pulp_href
22
+
21
23
  # Timestamp of creation.
22
24
  attr_accessor :pulp_created
23
25
 
24
- attr_accessor :pulp_href
25
-
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'artifact' => :'artifact',
36
- :'pulp_created' => :'pulp_created',
37
36
  :'pulp_href' => :'pulp_href',
37
+ :'pulp_created' => :'pulp_created',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -45,8 +45,8 @@ module PulpAnsibleClient
45
45
  def self.openapi_types
46
46
  {
47
47
  :'artifact' => :'String',
48
- :'pulp_created' => :'DateTime',
49
48
  :'pulp_href' => :'String',
49
+ :'pulp_created' => :'DateTime',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  self.artifact = attributes[:'artifact']
79
79
  end
80
80
 
81
- if attributes.key?(:'pulp_created')
82
- self.pulp_created = attributes[:'pulp_created']
83
- end
84
-
85
81
  if attributes.key?(:'pulp_href')
86
82
  self.pulp_href = attributes[:'pulp_href']
87
83
  end
88
84
 
85
+ if attributes.key?(:'pulp_created')
86
+ self.pulp_created = attributes[:'pulp_created']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -138,8 +138,8 @@ module PulpAnsibleClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  artifact == o.artifact &&
141
- pulp_created == o.pulp_created &&
142
141
  pulp_href == o.pulp_href &&
142
+ pulp_created == o.pulp_created &&
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_created, pulp_href, version, name, namespace].hash
157
+ [artifact, pulp_href, pulp_created, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -39,13 +39,13 @@ module PulpAnsibleClient
39
39
  # The username to authenticte to the proxy.
40
40
  attr_accessor :proxy_username
41
41
 
42
- # The password to authenticte to the proxy.
42
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
43
43
  attr_accessor :proxy_password
44
44
 
45
45
  # The username to be used for authentication when syncing.
46
46
  attr_accessor :username
47
47
 
48
- # The password to be used for authentication when syncing.
48
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
49
49
  attr_accessor :password
50
50
 
51
51
  attr_accessor :pulp_labels