pulp_ansible_client 0.11.0.dev1637118956 → 0.11.0.dev1637205359

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +3 -3
  4. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  5. data/docs/AnsibleGitRemote.md +33 -31
  6. data/docs/AnsibleGitRemoteResponse.md +29 -27
  7. data/docs/AnsibleRoleResponse.md +2 -2
  8. data/docs/CollectionVersionResponse.md +4 -0
  9. data/docs/ContentCollectionVersionsApi.md +3 -3
  10. data/docs/PatchedansibleGitRemote.md +33 -31
  11. data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
  12. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  13. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  14. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -16
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +180 -170
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +160 -150
  17. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  18. data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +176 -166
  20. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  23. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  24. data/spec/models/ansible_collection_version_spec.rb +2 -2
  25. data/spec/models/ansible_git_remote_response_spec.rb +24 -18
  26. data/spec/models/ansible_git_remote_spec.rb +25 -19
  27. data/spec/models/ansible_role_response_spec.rb +2 -2
  28. data/spec/models/collection_version_response_spec.rb +12 -0
  29. data/spec/models/patchedansible_git_remote_spec.rb +25 -19
  30. data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
  31. metadata +2 -2
@@ -15,140 +15,145 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # A PEM encoded client certificate used for authentication.
19
- attr_accessor :client_cert
18
+ # Limits total download rate in requests per second
19
+ attr_accessor :rate_limit
20
20
 
21
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
22
- attr_accessor :ca_cert
21
+ # The password to be used for authentication when syncing.
22
+ attr_accessor :password
23
23
 
24
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
- attr_accessor :connect_timeout
24
+ # A PEM encoded private key used for authentication.
25
+ attr_accessor :client_key
26
26
 
27
- # Headers for aiohttp.Clientsession
28
- attr_accessor :headers
27
+ # The password to authenticte to the proxy.
28
+ attr_accessor :proxy_password
29
29
 
30
- # A unique name for this remote.
31
- attr_accessor :name
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
32
 
33
- # The username to authenticte to the proxy.
34
- attr_accessor :proxy_username
33
+ # 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.
34
+ attr_accessor :sock_connect_timeout
35
35
 
36
- # If True, TLS peer validation must be performed.
37
- attr_accessor :tls_validation
36
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
+ attr_accessor :ca_cert
38
38
 
39
39
  # The proxy URL. Format: scheme://host:port
40
40
  attr_accessor :proxy_url
41
41
 
42
- # A PEM encoded private key used for authentication.
43
- attr_accessor :client_key
44
-
45
- # The password to authenticte to the proxy.
46
- attr_accessor :proxy_password
42
+ # The username to be used for authentication when syncing.
43
+ attr_accessor :username
47
44
 
48
45
  # 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.
49
46
  attr_accessor :sock_read_timeout
50
47
 
51
- attr_accessor :pulp_labels
48
+ # A PEM encoded client certificate used for authentication.
49
+ attr_accessor :client_cert
52
50
 
53
- # Total number of simultaneous connections. If not set then the default value will be used.
54
- attr_accessor :download_concurrency
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
52
+ attr_accessor :total_timeout
55
53
 
56
- # The URL of an external content source.
57
- attr_accessor :url
54
+ # Headers for aiohttp.Clientsession
55
+ attr_accessor :headers
58
56
 
59
- # The password to be used for authentication when syncing.
60
- attr_accessor :password
57
+ # The username to authenticte to the proxy.
58
+ attr_accessor :proxy_username
61
59
 
62
- # Limits total download rate in requests per second
63
- attr_accessor :rate_limit
60
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
61
+ attr_accessor :connect_timeout
64
62
 
65
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
66
- attr_accessor :max_retries
63
+ # A unique name for this remote.
64
+ attr_accessor :name
67
65
 
68
- # The username to be used for authentication when syncing.
69
- attr_accessor :username
66
+ # Total number of simultaneous connections. If not set then the default value will be used.
67
+ attr_accessor :download_concurrency
70
68
 
71
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
72
- attr_accessor :total_timeout
69
+ attr_accessor :pulp_labels
73
70
 
74
- # 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.
75
- attr_accessor :sock_connect_timeout
71
+ # If True, TLS peer validation must be performed.
72
+ attr_accessor :tls_validation
73
+
74
+ # The URL of an external content source.
75
+ attr_accessor :url
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
79
79
 
80
+ # A git ref. e.g.: branch, tag, or commit sha.
81
+ attr_accessor :git_ref
82
+
80
83
  # Attribute mapping from ruby-style variable name to JSON key.
81
84
  def self.attribute_map
82
85
  {
83
- :'client_cert' => :'client_cert',
84
- :'ca_cert' => :'ca_cert',
85
- :'connect_timeout' => :'connect_timeout',
86
- :'headers' => :'headers',
87
- :'name' => :'name',
88
- :'proxy_username' => :'proxy_username',
89
- :'tls_validation' => :'tls_validation',
90
- :'proxy_url' => :'proxy_url',
86
+ :'rate_limit' => :'rate_limit',
87
+ :'password' => :'password',
91
88
  :'client_key' => :'client_key',
92
89
  :'proxy_password' => :'proxy_password',
93
- :'sock_read_timeout' => :'sock_read_timeout',
94
- :'pulp_labels' => :'pulp_labels',
95
- :'download_concurrency' => :'download_concurrency',
96
- :'url' => :'url',
97
- :'password' => :'password',
98
- :'rate_limit' => :'rate_limit',
99
90
  :'max_retries' => :'max_retries',
91
+ :'sock_connect_timeout' => :'sock_connect_timeout',
92
+ :'ca_cert' => :'ca_cert',
93
+ :'proxy_url' => :'proxy_url',
100
94
  :'username' => :'username',
95
+ :'sock_read_timeout' => :'sock_read_timeout',
96
+ :'client_cert' => :'client_cert',
101
97
  :'total_timeout' => :'total_timeout',
102
- :'sock_connect_timeout' => :'sock_connect_timeout',
103
- :'metadata_only' => :'metadata_only'
98
+ :'headers' => :'headers',
99
+ :'proxy_username' => :'proxy_username',
100
+ :'connect_timeout' => :'connect_timeout',
101
+ :'name' => :'name',
102
+ :'download_concurrency' => :'download_concurrency',
103
+ :'pulp_labels' => :'pulp_labels',
104
+ :'tls_validation' => :'tls_validation',
105
+ :'url' => :'url',
106
+ :'metadata_only' => :'metadata_only',
107
+ :'git_ref' => :'git_ref'
104
108
  }
105
109
  end
106
110
 
107
111
  # Attribute type mapping.
108
112
  def self.openapi_types
109
113
  {
110
- :'client_cert' => :'String',
111
- :'ca_cert' => :'String',
112
- :'connect_timeout' => :'Float',
113
- :'headers' => :'Array<Object>',
114
- :'name' => :'String',
115
- :'proxy_username' => :'String',
116
- :'tls_validation' => :'Boolean',
117
- :'proxy_url' => :'String',
114
+ :'rate_limit' => :'Integer',
115
+ :'password' => :'String',
118
116
  :'client_key' => :'String',
119
117
  :'proxy_password' => :'String',
120
- :'sock_read_timeout' => :'Float',
121
- :'pulp_labels' => :'Object',
122
- :'download_concurrency' => :'Integer',
123
- :'url' => :'String',
124
- :'password' => :'String',
125
- :'rate_limit' => :'Integer',
126
118
  :'max_retries' => :'Integer',
119
+ :'sock_connect_timeout' => :'Float',
120
+ :'ca_cert' => :'String',
121
+ :'proxy_url' => :'String',
127
122
  :'username' => :'String',
123
+ :'sock_read_timeout' => :'Float',
124
+ :'client_cert' => :'String',
128
125
  :'total_timeout' => :'Float',
129
- :'sock_connect_timeout' => :'Float',
130
- :'metadata_only' => :'Boolean'
126
+ :'headers' => :'Array<Object>',
127
+ :'proxy_username' => :'String',
128
+ :'connect_timeout' => :'Float',
129
+ :'name' => :'String',
130
+ :'download_concurrency' => :'Integer',
131
+ :'pulp_labels' => :'Object',
132
+ :'tls_validation' => :'Boolean',
133
+ :'url' => :'String',
134
+ :'metadata_only' => :'Boolean',
135
+ :'git_ref' => :'String'
131
136
  }
132
137
  end
133
138
 
134
139
  # List of attributes with nullable: true
135
140
  def self.openapi_nullable
136
141
  Set.new([
137
- :'client_cert',
138
- :'ca_cert',
139
- :'connect_timeout',
140
- :'proxy_username',
141
- :'proxy_url',
142
+ :'rate_limit',
143
+ :'password',
142
144
  :'client_key',
143
145
  :'proxy_password',
144
- :'sock_read_timeout',
145
- :'download_concurrency',
146
- :'password',
147
- :'rate_limit',
148
146
  :'max_retries',
147
+ :'sock_connect_timeout',
148
+ :'ca_cert',
149
+ :'proxy_url',
149
150
  :'username',
151
+ :'sock_read_timeout',
152
+ :'client_cert',
150
153
  :'total_timeout',
151
- :'sock_connect_timeout',
154
+ :'proxy_username',
155
+ :'connect_timeout',
156
+ :'download_concurrency',
152
157
  ])
153
158
  end
154
159
 
@@ -167,115 +172,119 @@ module PulpAnsibleClient
167
172
  h[k.to_sym] = v
168
173
  }
169
174
 
170
- if attributes.key?(:'client_cert')
171
- self.client_cert = attributes[:'client_cert']
175
+ if attributes.key?(:'rate_limit')
176
+ self.rate_limit = attributes[:'rate_limit']
172
177
  end
173
178
 
174
- if attributes.key?(:'ca_cert')
175
- self.ca_cert = attributes[:'ca_cert']
179
+ if attributes.key?(:'password')
180
+ self.password = attributes[:'password']
176
181
  end
177
182
 
178
- if attributes.key?(:'connect_timeout')
179
- self.connect_timeout = attributes[:'connect_timeout']
183
+ if attributes.key?(:'client_key')
184
+ self.client_key = attributes[:'client_key']
180
185
  end
181
186
 
182
- if attributes.key?(:'headers')
183
- if (value = attributes[:'headers']).is_a?(Array)
184
- self.headers = value
185
- end
187
+ if attributes.key?(:'proxy_password')
188
+ self.proxy_password = attributes[:'proxy_password']
186
189
  end
187
190
 
188
- if attributes.key?(:'name')
189
- self.name = attributes[:'name']
191
+ if attributes.key?(:'max_retries')
192
+ self.max_retries = attributes[:'max_retries']
190
193
  end
191
194
 
192
- if attributes.key?(:'proxy_username')
193
- self.proxy_username = attributes[:'proxy_username']
195
+ if attributes.key?(:'sock_connect_timeout')
196
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
194
197
  end
195
198
 
196
- if attributes.key?(:'tls_validation')
197
- self.tls_validation = attributes[:'tls_validation']
199
+ if attributes.key?(:'ca_cert')
200
+ self.ca_cert = attributes[:'ca_cert']
198
201
  end
199
202
 
200
203
  if attributes.key?(:'proxy_url')
201
204
  self.proxy_url = attributes[:'proxy_url']
202
205
  end
203
206
 
204
- if attributes.key?(:'client_key')
205
- self.client_key = attributes[:'client_key']
206
- end
207
-
208
- if attributes.key?(:'proxy_password')
209
- self.proxy_password = attributes[:'proxy_password']
207
+ if attributes.key?(:'username')
208
+ self.username = attributes[:'username']
210
209
  end
211
210
 
212
211
  if attributes.key?(:'sock_read_timeout')
213
212
  self.sock_read_timeout = attributes[:'sock_read_timeout']
214
213
  end
215
214
 
216
- if attributes.key?(:'pulp_labels')
217
- self.pulp_labels = attributes[:'pulp_labels']
215
+ if attributes.key?(:'client_cert')
216
+ self.client_cert = attributes[:'client_cert']
218
217
  end
219
218
 
220
- if attributes.key?(:'download_concurrency')
221
- self.download_concurrency = attributes[:'download_concurrency']
219
+ if attributes.key?(:'total_timeout')
220
+ self.total_timeout = attributes[:'total_timeout']
222
221
  end
223
222
 
224
- if attributes.key?(:'url')
225
- self.url = attributes[:'url']
223
+ if attributes.key?(:'headers')
224
+ if (value = attributes[:'headers']).is_a?(Array)
225
+ self.headers = value
226
+ end
226
227
  end
227
228
 
228
- if attributes.key?(:'password')
229
- self.password = attributes[:'password']
229
+ if attributes.key?(:'proxy_username')
230
+ self.proxy_username = attributes[:'proxy_username']
230
231
  end
231
232
 
232
- if attributes.key?(:'rate_limit')
233
- self.rate_limit = attributes[:'rate_limit']
233
+ if attributes.key?(:'connect_timeout')
234
+ self.connect_timeout = attributes[:'connect_timeout']
234
235
  end
235
236
 
236
- if attributes.key?(:'max_retries')
237
- self.max_retries = attributes[:'max_retries']
237
+ if attributes.key?(:'name')
238
+ self.name = attributes[:'name']
238
239
  end
239
240
 
240
- if attributes.key?(:'username')
241
- self.username = attributes[:'username']
241
+ if attributes.key?(:'download_concurrency')
242
+ self.download_concurrency = attributes[:'download_concurrency']
242
243
  end
243
244
 
244
- if attributes.key?(:'total_timeout')
245
- self.total_timeout = attributes[:'total_timeout']
245
+ if attributes.key?(:'pulp_labels')
246
+ self.pulp_labels = attributes[:'pulp_labels']
246
247
  end
247
248
 
248
- if attributes.key?(:'sock_connect_timeout')
249
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
249
+ if attributes.key?(:'tls_validation')
250
+ self.tls_validation = attributes[:'tls_validation']
251
+ end
252
+
253
+ if attributes.key?(:'url')
254
+ self.url = attributes[:'url']
250
255
  end
251
256
 
252
257
  if attributes.key?(:'metadata_only')
253
258
  self.metadata_only = attributes[:'metadata_only']
254
259
  end
260
+
261
+ if attributes.key?(:'git_ref')
262
+ self.git_ref = attributes[:'git_ref']
263
+ end
255
264
  end
256
265
 
257
266
  # Show invalid properties with the reasons. Usually used together with valid?
258
267
  # @return Array for valid properties with the reasons
259
268
  def list_invalid_properties
260
269
  invalid_properties = Array.new
261
- if !@connect_timeout.nil? && @connect_timeout < 0.0
262
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
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.')
263
272
  end
264
273
 
265
274
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
266
275
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
267
276
  end
268
277
 
269
- if !@download_concurrency.nil? && @download_concurrency < 1
270
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
271
- end
272
-
273
278
  if !@total_timeout.nil? && @total_timeout < 0.0
274
279
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
275
280
  end
276
281
 
277
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
278
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
282
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
283
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
284
+ end
285
+
286
+ if !@download_concurrency.nil? && @download_concurrency < 1
287
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
279
288
  end
280
289
 
281
290
  invalid_properties
@@ -284,22 +293,22 @@ module PulpAnsibleClient
284
293
  # Check to see if the all the properties in the model are valid
285
294
  # @return true if the model is valid
286
295
  def valid?
287
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
288
297
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
289
- return false if !@download_concurrency.nil? && @download_concurrency < 1
290
298
  return false if !@total_timeout.nil? && @total_timeout < 0.0
291
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
300
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
292
301
  true
293
302
  end
294
303
 
295
304
  # Custom attribute writer method with validation
296
- # @param [Object] connect_timeout Value to be assigned
297
- def connect_timeout=(connect_timeout)
298
- if !connect_timeout.nil? && connect_timeout < 0.0
299
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
305
+ # @param [Object] sock_connect_timeout Value to be assigned
306
+ def sock_connect_timeout=(sock_connect_timeout)
307
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
300
309
  end
301
310
 
302
- @connect_timeout = connect_timeout
311
+ @sock_connect_timeout = sock_connect_timeout
303
312
  end
304
313
 
305
314
  # Custom attribute writer method with validation
@@ -312,16 +321,6 @@ module PulpAnsibleClient
312
321
  @sock_read_timeout = sock_read_timeout
313
322
  end
314
323
 
315
- # Custom attribute writer method with validation
316
- # @param [Object] download_concurrency Value to be assigned
317
- def download_concurrency=(download_concurrency)
318
- if !download_concurrency.nil? && download_concurrency < 1
319
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
320
- end
321
-
322
- @download_concurrency = download_concurrency
323
- end
324
-
325
324
  # Custom attribute writer method with validation
326
325
  # @param [Object] total_timeout Value to be assigned
327
326
  def total_timeout=(total_timeout)
@@ -333,13 +332,23 @@ module PulpAnsibleClient
333
332
  end
334
333
 
335
334
  # Custom attribute writer method with validation
336
- # @param [Object] sock_connect_timeout Value to be assigned
337
- def sock_connect_timeout=(sock_connect_timeout)
338
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
339
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
335
+ # @param [Object] connect_timeout Value to be assigned
336
+ def connect_timeout=(connect_timeout)
337
+ if !connect_timeout.nil? && connect_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
340
339
  end
341
340
 
342
- @sock_connect_timeout = sock_connect_timeout
341
+ @connect_timeout = connect_timeout
342
+ end
343
+
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] download_concurrency Value to be assigned
346
+ def download_concurrency=(download_concurrency)
347
+ if !download_concurrency.nil? && download_concurrency < 1
348
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
349
+ end
350
+
351
+ @download_concurrency = download_concurrency
343
352
  end
344
353
 
345
354
  # Checks equality by comparing each attribute.
@@ -347,27 +356,28 @@ module PulpAnsibleClient
347
356
  def ==(o)
348
357
  return true if self.equal?(o)
349
358
  self.class == o.class &&
350
- client_cert == o.client_cert &&
351
- ca_cert == o.ca_cert &&
352
- connect_timeout == o.connect_timeout &&
353
- headers == o.headers &&
354
- name == o.name &&
355
- proxy_username == o.proxy_username &&
356
- tls_validation == o.tls_validation &&
357
- proxy_url == o.proxy_url &&
359
+ rate_limit == o.rate_limit &&
360
+ password == o.password &&
358
361
  client_key == o.client_key &&
359
362
  proxy_password == o.proxy_password &&
360
- sock_read_timeout == o.sock_read_timeout &&
361
- pulp_labels == o.pulp_labels &&
362
- download_concurrency == o.download_concurrency &&
363
- url == o.url &&
364
- password == o.password &&
365
- rate_limit == o.rate_limit &&
366
363
  max_retries == o.max_retries &&
364
+ sock_connect_timeout == o.sock_connect_timeout &&
365
+ ca_cert == o.ca_cert &&
366
+ proxy_url == o.proxy_url &&
367
367
  username == o.username &&
368
+ sock_read_timeout == o.sock_read_timeout &&
369
+ client_cert == o.client_cert &&
368
370
  total_timeout == o.total_timeout &&
369
- sock_connect_timeout == o.sock_connect_timeout &&
370
- metadata_only == o.metadata_only
371
+ headers == o.headers &&
372
+ proxy_username == o.proxy_username &&
373
+ connect_timeout == o.connect_timeout &&
374
+ name == o.name &&
375
+ download_concurrency == o.download_concurrency &&
376
+ pulp_labels == o.pulp_labels &&
377
+ tls_validation == o.tls_validation &&
378
+ url == o.url &&
379
+ metadata_only == o.metadata_only &&
380
+ git_ref == o.git_ref
371
381
  end
372
382
 
373
383
  # @see the `==` method
@@ -379,7 +389,7 @@ module PulpAnsibleClient
379
389
  # Calculates hash code according to all attributes.
380
390
  # @return [Integer] Hash code
381
391
  def hash
382
- [client_cert, ca_cert, connect_timeout, headers, name, proxy_username, tls_validation, proxy_url, client_key, proxy_password, sock_read_timeout, pulp_labels, download_concurrency, url, password, rate_limit, max_retries, username, total_timeout, sock_connect_timeout, metadata_only].hash
392
+ [rate_limit, password, client_key, proxy_password, max_retries, sock_connect_timeout, ca_cert, proxy_url, username, sock_read_timeout, client_cert, total_timeout, headers, proxy_username, connect_timeout, name, download_concurrency, pulp_labels, tls_validation, url, metadata_only, git_ref].hash
383
393
  end
384
394
 
385
395
  # Builds the object from hash
@@ -37,6 +37,10 @@ module PulpAnsibleClient
37
37
 
38
38
  attr_accessor :metadata
39
39
 
40
+ attr_accessor :git_url
41
+
42
+ attr_accessor :git_commit_sha
43
+
40
44
  # Attribute mapping from ruby-style variable name to JSON key.
41
45
  def self.attribute_map
42
46
  {
@@ -50,7 +54,9 @@ module PulpAnsibleClient
50
54
  :'download_url' => :'download_url',
51
55
  :'name' => :'name',
52
56
  :'namespace' => :'namespace',
53
- :'metadata' => :'metadata'
57
+ :'metadata' => :'metadata',
58
+ :'git_url' => :'git_url',
59
+ :'git_commit_sha' => :'git_commit_sha'
54
60
  }
55
61
  end
56
62
 
@@ -67,7 +73,9 @@ module PulpAnsibleClient
67
73
  :'download_url' => :'String',
68
74
  :'name' => :'String',
69
75
  :'namespace' => :'CollectionNamespaceResponse',
70
- :'metadata' => :'CollectionMetadataResponse'
76
+ :'metadata' => :'CollectionMetadataResponse',
77
+ :'git_url' => :'String',
78
+ :'git_commit_sha' => :'String'
71
79
  }
72
80
  end
73
81
 
@@ -136,6 +144,14 @@ module PulpAnsibleClient
136
144
  if attributes.key?(:'metadata')
137
145
  self.metadata = attributes[:'metadata']
138
146
  end
147
+
148
+ if attributes.key?(:'git_url')
149
+ self.git_url = attributes[:'git_url']
150
+ end
151
+
152
+ if attributes.key?(:'git_commit_sha')
153
+ self.git_commit_sha = attributes[:'git_commit_sha']
154
+ end
139
155
  end
140
156
 
141
157
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,7 +207,9 @@ module PulpAnsibleClient
191
207
  download_url == o.download_url &&
192
208
  name == o.name &&
193
209
  namespace == o.namespace &&
194
- metadata == o.metadata
210
+ metadata == o.metadata &&
211
+ git_url == o.git_url &&
212
+ git_commit_sha == o.git_commit_sha
195
213
  end
196
214
 
197
215
  # @see the `==` method
@@ -203,7 +221,7 @@ module PulpAnsibleClient
203
221
  # Calculates hash code according to all attributes.
204
222
  # @return [Integer] Hash code
205
223
  def hash
206
- [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata].hash
224
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, git_url, git_commit_sha].hash
207
225
  end
208
226
 
209
227
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.11.0.dev1637118956'
14
+ VERSION = '0.11.0.dev1637205359'
15
15
  end
@@ -39,8 +39,8 @@ describe 'ContentCollectionVersionsApi' do
39
39
  # @param namespace The namespace of the collection.
40
40
  # @param version The version of the collection.
41
41
  # @param [Hash] opts the optional parameters
42
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
42
  # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
44
  # @return [AsyncOperationResponse]
45
45
  describe 'create test' do
46
46
  it 'should work' do
@@ -38,13 +38,13 @@ describe 'AnsibleCollectionVersionResponse' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "artifact"' do
47
+ describe 'test attribute "pulp_created"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -32,13 +32,13 @@ describe 'AnsibleCollectionVersion' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersion)
33
33
  end
34
34
  end
35
- describe 'test attribute "repository"' do
35
+ describe 'test attribute "file"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "file"' do
41
+ describe 'test attribute "repository"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end