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,28 +15,25 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # A PEM encoded client certificate used for authentication.
19
- attr_accessor :client_cert
18
+ attr_accessor :pulp_href
20
19
 
21
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
22
- attr_accessor :ca_cert
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ # Limits total download rate in requests per second
24
+ attr_accessor :rate_limit
23
25
 
24
26
  # Timestamp of the most recent update of the remote.
25
27
  attr_accessor :pulp_last_updated
26
28
 
27
- attr_accessor :pulp_href
28
-
29
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
- attr_accessor :connect_timeout
31
-
32
- # Headers for aiohttp.Clientsession
33
- attr_accessor :headers
29
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
30
+ attr_accessor :max_retries
34
31
 
35
- # A unique name for this remote.
36
- attr_accessor :name
32
+ # 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.
33
+ attr_accessor :sock_connect_timeout
37
34
 
38
- # If True, TLS peer validation must be performed.
39
- attr_accessor :tls_validation
35
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
+ attr_accessor :ca_cert
40
37
 
41
38
  # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
@@ -44,95 +41,103 @@ module PulpAnsibleClient
44
41
  # 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
42
  attr_accessor :sock_read_timeout
46
43
 
47
- attr_accessor :pulp_labels
44
+ # A PEM encoded client certificate used for authentication.
45
+ attr_accessor :client_cert
48
46
 
49
- # Total number of simultaneous connections. If not set then the default value will be used.
50
- attr_accessor :download_concurrency
47
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
+ attr_accessor :total_timeout
51
49
 
52
- # The URL of an external content source.
53
- attr_accessor :url
50
+ # Headers for aiohttp.Clientsession
51
+ attr_accessor :headers
54
52
 
55
- # Limits total download rate in requests per second
56
- attr_accessor :rate_limit
53
+ # aiohttp.ClientTimeout.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 :connect_timeout
57
55
 
58
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
59
- attr_accessor :max_retries
56
+ # A unique name for this remote.
57
+ attr_accessor :name
60
58
 
61
- # Timestamp of creation.
62
- attr_accessor :pulp_created
59
+ # Total number of simultaneous connections. If not set then the default value will be used.
60
+ attr_accessor :download_concurrency
63
61
 
64
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
- attr_accessor :total_timeout
62
+ attr_accessor :pulp_labels
66
63
 
67
- # 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.
68
- attr_accessor :sock_connect_timeout
64
+ # If True, TLS peer validation must be performed.
65
+ attr_accessor :tls_validation
66
+
67
+ # The URL of an external content source.
68
+ attr_accessor :url
69
69
 
70
70
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
71
71
  attr_accessor :metadata_only
72
72
 
73
+ # A git ref. e.g.: branch, tag, or commit sha.
74
+ attr_accessor :git_ref
75
+
73
76
  # Attribute mapping from ruby-style variable name to JSON key.
74
77
  def self.attribute_map
75
78
  {
76
- :'client_cert' => :'client_cert',
77
- :'ca_cert' => :'ca_cert',
78
- :'pulp_last_updated' => :'pulp_last_updated',
79
79
  :'pulp_href' => :'pulp_href',
80
- :'connect_timeout' => :'connect_timeout',
81
- :'headers' => :'headers',
82
- :'name' => :'name',
83
- :'tls_validation' => :'tls_validation',
80
+ :'pulp_created' => :'pulp_created',
81
+ :'rate_limit' => :'rate_limit',
82
+ :'pulp_last_updated' => :'pulp_last_updated',
83
+ :'max_retries' => :'max_retries',
84
+ :'sock_connect_timeout' => :'sock_connect_timeout',
85
+ :'ca_cert' => :'ca_cert',
84
86
  :'proxy_url' => :'proxy_url',
85
87
  :'sock_read_timeout' => :'sock_read_timeout',
86
- :'pulp_labels' => :'pulp_labels',
88
+ :'client_cert' => :'client_cert',
89
+ :'total_timeout' => :'total_timeout',
90
+ :'headers' => :'headers',
91
+ :'connect_timeout' => :'connect_timeout',
92
+ :'name' => :'name',
87
93
  :'download_concurrency' => :'download_concurrency',
94
+ :'pulp_labels' => :'pulp_labels',
95
+ :'tls_validation' => :'tls_validation',
88
96
  :'url' => :'url',
89
- :'rate_limit' => :'rate_limit',
90
- :'max_retries' => :'max_retries',
91
- :'pulp_created' => :'pulp_created',
92
- :'total_timeout' => :'total_timeout',
93
- :'sock_connect_timeout' => :'sock_connect_timeout',
94
- :'metadata_only' => :'metadata_only'
97
+ :'metadata_only' => :'metadata_only',
98
+ :'git_ref' => :'git_ref'
95
99
  }
96
100
  end
97
101
 
98
102
  # Attribute type mapping.
99
103
  def self.openapi_types
100
104
  {
101
- :'client_cert' => :'String',
102
- :'ca_cert' => :'String',
103
- :'pulp_last_updated' => :'DateTime',
104
105
  :'pulp_href' => :'String',
105
- :'connect_timeout' => :'Float',
106
- :'headers' => :'Array<Object>',
107
- :'name' => :'String',
108
- :'tls_validation' => :'Boolean',
106
+ :'pulp_created' => :'DateTime',
107
+ :'rate_limit' => :'Integer',
108
+ :'pulp_last_updated' => :'DateTime',
109
+ :'max_retries' => :'Integer',
110
+ :'sock_connect_timeout' => :'Float',
111
+ :'ca_cert' => :'String',
109
112
  :'proxy_url' => :'String',
110
113
  :'sock_read_timeout' => :'Float',
111
- :'pulp_labels' => :'Object',
114
+ :'client_cert' => :'String',
115
+ :'total_timeout' => :'Float',
116
+ :'headers' => :'Array<Object>',
117
+ :'connect_timeout' => :'Float',
118
+ :'name' => :'String',
112
119
  :'download_concurrency' => :'Integer',
120
+ :'pulp_labels' => :'Object',
121
+ :'tls_validation' => :'Boolean',
113
122
  :'url' => :'String',
114
- :'rate_limit' => :'Integer',
115
- :'max_retries' => :'Integer',
116
- :'pulp_created' => :'DateTime',
117
- :'total_timeout' => :'Float',
118
- :'sock_connect_timeout' => :'Float',
119
- :'metadata_only' => :'Boolean'
123
+ :'metadata_only' => :'Boolean',
124
+ :'git_ref' => :'String'
120
125
  }
121
126
  end
122
127
 
123
128
  # List of attributes with nullable: true
124
129
  def self.openapi_nullable
125
130
  Set.new([
126
- :'client_cert',
131
+ :'rate_limit',
132
+ :'max_retries',
133
+ :'sock_connect_timeout',
127
134
  :'ca_cert',
128
- :'connect_timeout',
129
135
  :'proxy_url',
130
136
  :'sock_read_timeout',
131
- :'download_concurrency',
132
- :'rate_limit',
133
- :'max_retries',
137
+ :'client_cert',
134
138
  :'total_timeout',
135
- :'sock_connect_timeout',
139
+ :'connect_timeout',
140
+ :'download_concurrency',
136
141
  ])
137
142
  end
138
143
 
@@ -151,38 +156,32 @@ module PulpAnsibleClient
151
156
  h[k.to_sym] = v
152
157
  }
153
158
 
154
- if attributes.key?(:'client_cert')
155
- self.client_cert = attributes[:'client_cert']
156
- end
157
-
158
- if attributes.key?(:'ca_cert')
159
- self.ca_cert = attributes[:'ca_cert']
159
+ if attributes.key?(:'pulp_href')
160
+ self.pulp_href = attributes[:'pulp_href']
160
161
  end
161
162
 
162
- if attributes.key?(:'pulp_last_updated')
163
- self.pulp_last_updated = attributes[:'pulp_last_updated']
163
+ if attributes.key?(:'pulp_created')
164
+ self.pulp_created = attributes[:'pulp_created']
164
165
  end
165
166
 
166
- if attributes.key?(:'pulp_href')
167
- self.pulp_href = attributes[:'pulp_href']
167
+ if attributes.key?(:'rate_limit')
168
+ self.rate_limit = attributes[:'rate_limit']
168
169
  end
169
170
 
170
- if attributes.key?(:'connect_timeout')
171
- self.connect_timeout = attributes[:'connect_timeout']
171
+ if attributes.key?(:'pulp_last_updated')
172
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
172
173
  end
173
174
 
174
- if attributes.key?(:'headers')
175
- if (value = attributes[:'headers']).is_a?(Array)
176
- self.headers = value
177
- end
175
+ if attributes.key?(:'max_retries')
176
+ self.max_retries = attributes[:'max_retries']
178
177
  end
179
178
 
180
- if attributes.key?(:'name')
181
- self.name = attributes[:'name']
179
+ if attributes.key?(:'sock_connect_timeout')
180
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
182
181
  end
183
182
 
184
- if attributes.key?(:'tls_validation')
185
- self.tls_validation = attributes[:'tls_validation']
183
+ if attributes.key?(:'ca_cert')
184
+ self.ca_cert = attributes[:'ca_cert']
186
185
  end
187
186
 
188
187
  if attributes.key?(:'proxy_url')
@@ -193,47 +192,69 @@ module PulpAnsibleClient
193
192
  self.sock_read_timeout = attributes[:'sock_read_timeout']
194
193
  end
195
194
 
196
- if attributes.key?(:'pulp_labels')
197
- self.pulp_labels = attributes[:'pulp_labels']
195
+ if attributes.key?(:'client_cert')
196
+ self.client_cert = attributes[:'client_cert']
198
197
  end
199
198
 
200
- if attributes.key?(:'download_concurrency')
201
- self.download_concurrency = attributes[:'download_concurrency']
199
+ if attributes.key?(:'total_timeout')
200
+ self.total_timeout = attributes[:'total_timeout']
202
201
  end
203
202
 
204
- if attributes.key?(:'url')
205
- self.url = attributes[:'url']
203
+ if attributes.key?(:'headers')
204
+ if (value = attributes[:'headers']).is_a?(Array)
205
+ self.headers = value
206
+ end
206
207
  end
207
208
 
208
- if attributes.key?(:'rate_limit')
209
- self.rate_limit = attributes[:'rate_limit']
209
+ if attributes.key?(:'connect_timeout')
210
+ self.connect_timeout = attributes[:'connect_timeout']
210
211
  end
211
212
 
212
- if attributes.key?(:'max_retries')
213
- self.max_retries = attributes[:'max_retries']
213
+ if attributes.key?(:'name')
214
+ self.name = attributes[:'name']
214
215
  end
215
216
 
216
- if attributes.key?(:'pulp_created')
217
- self.pulp_created = attributes[:'pulp_created']
217
+ if attributes.key?(:'download_concurrency')
218
+ self.download_concurrency = attributes[:'download_concurrency']
218
219
  end
219
220
 
220
- if attributes.key?(:'total_timeout')
221
- self.total_timeout = attributes[:'total_timeout']
221
+ if attributes.key?(:'pulp_labels')
222
+ self.pulp_labels = attributes[:'pulp_labels']
222
223
  end
223
224
 
224
- if attributes.key?(:'sock_connect_timeout')
225
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
225
+ if attributes.key?(:'tls_validation')
226
+ self.tls_validation = attributes[:'tls_validation']
227
+ end
228
+
229
+ if attributes.key?(:'url')
230
+ self.url = attributes[:'url']
226
231
  end
227
232
 
228
233
  if attributes.key?(:'metadata_only')
229
234
  self.metadata_only = attributes[:'metadata_only']
230
235
  end
236
+
237
+ if attributes.key?(:'git_ref')
238
+ self.git_ref = attributes[:'git_ref']
239
+ end
231
240
  end
232
241
 
233
242
  # Show invalid properties with the reasons. Usually used together with valid?
234
243
  # @return Array for valid properties with the reasons
235
244
  def list_invalid_properties
236
245
  invalid_properties = Array.new
246
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
247
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
248
+ end
249
+
250
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
251
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
252
+ end
253
+
254
+ if !@total_timeout.nil? && @total_timeout < 0.0
255
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
256
+ end
257
+
237
258
  if !@connect_timeout.nil? && @connect_timeout < 0.0
238
259
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
239
260
  end
@@ -242,10 +263,6 @@ module PulpAnsibleClient
242
263
  invalid_properties.push('invalid value for "name", name cannot be nil.')
243
264
  end
244
265
 
245
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
246
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
247
- end
248
-
249
266
  if !@download_concurrency.nil? && @download_concurrency < 1
250
267
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
251
268
  end
@@ -254,38 +271,30 @@ module PulpAnsibleClient
254
271
  invalid_properties.push('invalid value for "url", url cannot be nil.')
255
272
  end
256
273
 
257
- if !@total_timeout.nil? && @total_timeout < 0.0
258
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
259
- end
260
-
261
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
262
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
263
- end
264
-
265
274
  invalid_properties
266
275
  end
267
276
 
268
277
  # Check to see if the all the properties in the model are valid
269
278
  # @return true if the model is valid
270
279
  def valid?
280
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
281
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
282
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
271
283
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
272
284
  return false if @name.nil?
273
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
274
285
  return false if !@download_concurrency.nil? && @download_concurrency < 1
275
286
  return false if @url.nil?
276
- return false if !@total_timeout.nil? && @total_timeout < 0.0
277
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
278
287
  true
279
288
  end
280
289
 
281
290
  # Custom attribute writer method with validation
282
- # @param [Object] connect_timeout Value to be assigned
283
- def connect_timeout=(connect_timeout)
284
- if !connect_timeout.nil? && connect_timeout < 0.0
285
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
291
+ # @param [Object] sock_connect_timeout Value to be assigned
292
+ def sock_connect_timeout=(sock_connect_timeout)
293
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
294
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
286
295
  end
287
296
 
288
- @connect_timeout = connect_timeout
297
+ @sock_connect_timeout = sock_connect_timeout
289
298
  end
290
299
 
291
300
  # Custom attribute writer method with validation
@@ -298,16 +307,6 @@ module PulpAnsibleClient
298
307
  @sock_read_timeout = sock_read_timeout
299
308
  end
300
309
 
301
- # Custom attribute writer method with validation
302
- # @param [Object] download_concurrency Value to be assigned
303
- def download_concurrency=(download_concurrency)
304
- if !download_concurrency.nil? && download_concurrency < 1
305
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
306
- end
307
-
308
- @download_concurrency = download_concurrency
309
- end
310
-
311
310
  # Custom attribute writer method with validation
312
311
  # @param [Object] total_timeout Value to be assigned
313
312
  def total_timeout=(total_timeout)
@@ -319,13 +318,23 @@ module PulpAnsibleClient
319
318
  end
320
319
 
321
320
  # Custom attribute writer method with validation
322
- # @param [Object] sock_connect_timeout Value to be assigned
323
- def sock_connect_timeout=(sock_connect_timeout)
324
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
325
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
321
+ # @param [Object] connect_timeout Value to be assigned
322
+ def connect_timeout=(connect_timeout)
323
+ if !connect_timeout.nil? && connect_timeout < 0.0
324
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
326
325
  end
327
326
 
328
- @sock_connect_timeout = sock_connect_timeout
327
+ @connect_timeout = connect_timeout
328
+ end
329
+
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
329
338
  end
330
339
 
331
340
  # Checks equality by comparing each attribute.
@@ -333,25 +342,26 @@ module PulpAnsibleClient
333
342
  def ==(o)
334
343
  return true if self.equal?(o)
335
344
  self.class == o.class &&
336
- client_cert == o.client_cert &&
337
- ca_cert == o.ca_cert &&
338
- pulp_last_updated == o.pulp_last_updated &&
339
345
  pulp_href == o.pulp_href &&
340
- connect_timeout == o.connect_timeout &&
341
- headers == o.headers &&
342
- name == o.name &&
343
- tls_validation == o.tls_validation &&
346
+ pulp_created == o.pulp_created &&
347
+ rate_limit == o.rate_limit &&
348
+ pulp_last_updated == o.pulp_last_updated &&
349
+ max_retries == o.max_retries &&
350
+ sock_connect_timeout == o.sock_connect_timeout &&
351
+ ca_cert == o.ca_cert &&
344
352
  proxy_url == o.proxy_url &&
345
353
  sock_read_timeout == o.sock_read_timeout &&
346
- pulp_labels == o.pulp_labels &&
354
+ client_cert == o.client_cert &&
355
+ total_timeout == o.total_timeout &&
356
+ headers == o.headers &&
357
+ connect_timeout == o.connect_timeout &&
358
+ name == o.name &&
347
359
  download_concurrency == o.download_concurrency &&
360
+ pulp_labels == o.pulp_labels &&
361
+ tls_validation == o.tls_validation &&
348
362
  url == o.url &&
349
- rate_limit == o.rate_limit &&
350
- max_retries == o.max_retries &&
351
- pulp_created == o.pulp_created &&
352
- total_timeout == o.total_timeout &&
353
- sock_connect_timeout == o.sock_connect_timeout &&
354
- metadata_only == o.metadata_only
363
+ metadata_only == o.metadata_only &&
364
+ git_ref == o.git_ref
355
365
  end
356
366
 
357
367
  # @see the `==` method
@@ -363,7 +373,7 @@ module PulpAnsibleClient
363
373
  # Calculates hash code according to all attributes.
364
374
  # @return [Integer] Hash code
365
375
  def hash
366
- [client_cert, ca_cert, pulp_last_updated, pulp_href, connect_timeout, headers, name, tls_validation, proxy_url, sock_read_timeout, pulp_labels, download_concurrency, url, rate_limit, max_retries, pulp_created, total_timeout, sock_connect_timeout, metadata_only].hash
376
+ [pulp_href, pulp_created, rate_limit, pulp_last_updated, max_retries, sock_connect_timeout, ca_cert, proxy_url, sock_read_timeout, client_cert, total_timeout, headers, connect_timeout, name, download_concurrency, pulp_labels, tls_validation, url, metadata_only, git_ref].hash
367
377
  end
368
378
 
369
379
  # Builds the object from hash
@@ -17,12 +17,12 @@ module PulpAnsibleClient
17
17
  class AnsibleRoleResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
22
-
23
20
  # Artifact file representing the physical content
24
21
  attr_accessor :artifact
25
22
 
23
+ # Timestamp of creation.
24
+ attr_accessor :pulp_created
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
  :'pulp_href' => :'pulp_href',
36
- :'pulp_created' => :'pulp_created',
37
36
  :'artifact' => :'artifact',
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
  :'pulp_href' => :'String',
48
- :'pulp_created' => :'DateTime',
49
48
  :'artifact' => :'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.pulp_href = attributes[:'pulp_href']
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?(:'artifact')
86
82
  self.artifact = attributes[:'artifact']
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
  pulp_href == o.pulp_href &&
141
- pulp_created == o.pulp_created &&
142
141
  artifact == o.artifact &&
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
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [pulp_href, artifact, pulp_created, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # 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
  # A JSON field holding MANIFEST.json data.
41
45
  attr_accessor :manifest
42
46
 
@@ -57,6 +61,8 @@ module PulpAnsibleClient
57
61
  :'name' => :'name',
58
62
  :'namespace' => :'namespace',
59
63
  :'metadata' => :'metadata',
64
+ :'git_url' => :'git_url',
65
+ :'git_commit_sha' => :'git_commit_sha',
60
66
  :'manifest' => :'manifest',
61
67
  :'files' => :'files'
62
68
  }
@@ -76,6 +82,8 @@ module PulpAnsibleClient
76
82
  :'name' => :'String',
77
83
  :'namespace' => :'CollectionNamespaceResponse',
78
84
  :'metadata' => :'CollectionMetadataResponse',
85
+ :'git_url' => :'String',
86
+ :'git_commit_sha' => :'String',
79
87
  :'manifest' => :'Object',
80
88
  :'files' => :'Object'
81
89
  }
@@ -147,6 +155,14 @@ module PulpAnsibleClient
147
155
  self.metadata = attributes[:'metadata']
148
156
  end
149
157
 
158
+ if attributes.key?(:'git_url')
159
+ self.git_url = attributes[:'git_url']
160
+ end
161
+
162
+ if attributes.key?(:'git_commit_sha')
163
+ self.git_commit_sha = attributes[:'git_commit_sha']
164
+ end
165
+
150
166
  if attributes.key?(:'manifest')
151
167
  self.manifest = attributes[:'manifest']
152
168
  end
@@ -210,6 +226,8 @@ module PulpAnsibleClient
210
226
  name == o.name &&
211
227
  namespace == o.namespace &&
212
228
  metadata == o.metadata &&
229
+ git_url == o.git_url &&
230
+ git_commit_sha == o.git_commit_sha &&
213
231
  manifest == o.manifest &&
214
232
  files == o.files
215
233
  end
@@ -223,7 +241,7 @@ module PulpAnsibleClient
223
241
  # Calculates hash code according to all attributes.
224
242
  # @return [Integer] Hash code
225
243
  def hash
226
- [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, manifest, files].hash
244
+ [version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, git_url, git_commit_sha, manifest, files].hash
227
245
  end
228
246
 
229
247
  # Builds the object from hash