pulp_ansible_client 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/AnsibleCollectionRemote.md +7 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +3 -7
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleCollectionsApi.md +4 -4
  7. data/docs/AnsibleRoleRemote.md +7 -1
  8. data/docs/AnsibleRoleRemoteResponse.md +3 -7
  9. data/docs/AnsibleRoleResponse.md +3 -3
  10. data/docs/ContentCollectionVersionsApi.md +18 -18
  11. data/docs/ContentRolesApi.md +12 -12
  12. data/docs/ContentSummary.md +3 -3
  13. data/docs/ContentSummaryResponse.md +3 -3
  14. data/docs/DistributionsAnsibleApi.md +20 -20
  15. data/docs/PatchedansibleCollectionRemote.md +7 -1
  16. data/docs/PatchedansibleRoleRemote.md +7 -1
  17. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -6
  18. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +6 -24
  19. data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +18 -18
  20. data/docs/RemotesCollectionApi.md +24 -24
  21. data/docs/RemotesRoleApi.md +24 -24
  22. data/docs/RepositoriesAnsibleApi.md +12 -12
  23. data/docs/RepositoriesAnsibleVersionsApi.md +28 -28
  24. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +4 -4
  25. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +18 -18
  26. data/lib/pulp_ansible_client/api/content_roles_api.rb +12 -12
  27. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +22 -22
  28. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
  29. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +6 -33
  30. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +18 -18
  31. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +26 -26
  32. data/lib/pulp_ansible_client/api/remotes_role_api.rb +26 -26
  33. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +13 -13
  34. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +30 -30
  35. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +36 -2
  36. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -35
  37. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  38. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +36 -2
  39. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +14 -35
  40. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  41. data/lib/pulp_ansible_client/models/content_summary.rb +12 -6
  42. data/lib/pulp_ansible_client/models/content_summary_response.rb +12 -6
  43. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +36 -2
  44. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +36 -2
  45. data/lib/pulp_ansible_client/version.rb +1 -1
  46. data/spec/api/ansible_collections_api_spec.rb +2 -2
  47. data/spec/api/content_collection_versions_api_spec.rb +9 -9
  48. data/spec/api/content_roles_api_spec.rb +6 -6
  49. data/spec/api/distributions_ansible_api_spec.rb +10 -10
  50. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +3 -3
  51. data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +3 -12
  52. data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +9 -9
  53. data/spec/api/remotes_collection_api_spec.rb +12 -12
  54. data/spec/api/remotes_role_api_spec.rb +12 -12
  55. data/spec/api/repositories_ansible_api_spec.rb +6 -6
  56. data/spec/api/repositories_ansible_versions_api_spec.rb +14 -14
  57. data/spec/models/ansible_collection_remote_response_spec.rb +6 -18
  58. data/spec/models/ansible_collection_remote_spec.rb +18 -0
  59. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  60. data/spec/models/ansible_role_remote_response_spec.rb +6 -18
  61. data/spec/models/ansible_role_remote_spec.rb +18 -0
  62. data/spec/models/ansible_role_response_spec.rb +3 -3
  63. data/spec/models/patchedansible_collection_remote_spec.rb +18 -0
  64. data/spec/models/patchedansible_role_remote_spec.rb +18 -0
  65. metadata +65 -65
@@ -149,14 +149,14 @@ module PulpAnsibleClient
149
149
  # ViewSet for Ansible Repositories.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name name
153
- # @option opts [String] :name__contains name__contains
154
- # @option opts [String] :name__icontains name__icontains
155
- # @option opts [String] :name__in name__in
156
- # @option opts [String] :name__startswith name__startswith
152
+ # @option opts [String] :name
153
+ # @option opts [String] :name__contains Filter results where name contains value
154
+ # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
+ # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :pulp_label_select pulp_label_select
159
+ # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
162
  # @return [PaginatedansibleAnsibleRepositoryResponseList]
@@ -169,14 +169,14 @@ module PulpAnsibleClient
169
169
  # ViewSet for Ansible Repositories.
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Integer] :limit Number of results to return per page.
172
- # @option opts [String] :name name
173
- # @option opts [String] :name__contains name__contains
174
- # @option opts [String] :name__icontains name__icontains
175
- # @option opts [String] :name__in name__in
176
- # @option opts [String] :name__startswith name__startswith
172
+ # @option opts [String] :name
173
+ # @option opts [String] :name__contains Filter results where name contains value
174
+ # @option opts [String] :name__icontains Filter results where name contains value
175
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
+ # @option opts [String] :name__startswith Filter results where name starts with value
177
177
  # @option opts [Integer] :offset The initial index from which to return the results.
178
178
  # @option opts [String] :ordering Which field to use when ordering the results.
179
- # @option opts [String] :pulp_label_select pulp_label_select
179
+ # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
182
  # @return [Array<(PaginatedansibleAnsibleRepositoryResponseList, Integer, Hash)>] PaginatedansibleAnsibleRepositoryResponseList data, response status code and response headers
@@ -193,7 +193,7 @@ module PulpAnsibleClient
193
193
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
194
194
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
195
195
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
196
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
196
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
197
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
199
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -85,23 +85,23 @@ module PulpAnsibleClient
85
85
  # AnsibleRepositoryVersion represents a single file repository version.
86
86
  # @param ansible_ansible_repository_href [String]
87
87
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :content content
89
- # @option opts [String] :content__in content__in
88
+ # @option opts [String] :content Content Unit referenced by HREF
89
+ # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [String] :number number
92
- # @option opts [String] :number__gt number__gt
93
- # @option opts [String] :number__gte number__gte
94
- # @option opts [String] :number__lt number__lt
95
- # @option opts [String] :number__lte number__lte
96
- # @option opts [String] :number__range number__range
91
+ # @option opts [Integer] :number
92
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
93
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
+ # @option opts [Integer] :number__lt Filter results where number is less than value
95
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [String] :ordering Which field to use when ordering the results.
99
- # @option opts [String] :pulp_created pulp_created
100
- # @option opts [String] :pulp_created__gt pulp_created__gt
101
- # @option opts [String] :pulp_created__gte pulp_created__gte
102
- # @option opts [String] :pulp_created__lt pulp_created__lt
103
- # @option opts [String] :pulp_created__lte pulp_created__lte
104
- # @option opts [String] :pulp_created__range pulp_created__range
99
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [String] :fields A list of fields to include in the response.
106
106
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
@@ -114,23 +114,23 @@ module PulpAnsibleClient
114
114
  # AnsibleRepositoryVersion represents a single file repository version.
115
115
  # @param ansible_ansible_repository_href [String]
116
116
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :content content
118
- # @option opts [String] :content__in content__in
117
+ # @option opts [String] :content Content Unit referenced by HREF
118
+ # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [String] :number number
121
- # @option opts [String] :number__gt number__gt
122
- # @option opts [String] :number__gte number__gte
123
- # @option opts [String] :number__lt number__lt
124
- # @option opts [String] :number__lte number__lte
125
- # @option opts [String] :number__range number__range
120
+ # @option opts [Integer] :number
121
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
122
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
+ # @option opts [Integer] :number__lt Filter results where number is less than value
124
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [String] :ordering Which field to use when ordering the results.
128
- # @option opts [String] :pulp_created pulp_created
129
- # @option opts [String] :pulp_created__gt pulp_created__gt
130
- # @option opts [String] :pulp_created__gte pulp_created__gte
131
- # @option opts [String] :pulp_created__lt pulp_created__lt
132
- # @option opts [String] :pulp_created__lte pulp_created__lte
133
- # @option opts [String] :pulp_created__range pulp_created__range
128
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
134
  # @option opts [String] :fields A list of fields to include in the response.
135
135
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -155,7 +155,7 @@ module PulpAnsibleClient
155
155
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
156
156
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
157
157
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
- query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
158
+ query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
159
159
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
160
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
161
161
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
@@ -163,7 +163,7 @@ module PulpAnsibleClient
163
163
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
164
164
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
165
165
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
166
- query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
166
+ query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
167
167
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
168
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
169
 
@@ -33,9 +33,15 @@ module PulpAnsibleClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpAnsibleClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpAnsibleClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpAnsibleClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'requirements_file' => :'requirements_file',
98
110
  :'auth_url' => :'auth_url',
@@ -110,6 +122,8 @@ module PulpAnsibleClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpAnsibleClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'requirements_file' => :'String',
124
139
  :'auth_url' => :'String',
@@ -133,6 +148,8 @@ module PulpAnsibleClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -189,6 +206,14 @@ module PulpAnsibleClient
189
206
  self.proxy_url = attributes[:'proxy_url']
190
207
  end
191
208
 
209
+ if attributes.key?(:'proxy_username')
210
+ self.proxy_username = attributes[:'proxy_username']
211
+ end
212
+
213
+ if attributes.key?(:'proxy_password')
214
+ self.proxy_password = attributes[:'proxy_password']
215
+ end
216
+
192
217
  if attributes.key?(:'username')
193
218
  self.username = attributes[:'username']
194
219
  end
@@ -225,6 +250,12 @@ module PulpAnsibleClient
225
250
  self.sock_read_timeout = attributes[:'sock_read_timeout']
226
251
  end
227
252
 
253
+ if attributes.key?(:'headers')
254
+ if (value = attributes[:'headers']).is_a?(Array)
255
+ self.headers = value
256
+ end
257
+ end
258
+
228
259
  if attributes.key?(:'rate_limit')
229
260
  self.rate_limit = attributes[:'rate_limit']
230
261
  end
@@ -382,6 +413,8 @@ module PulpAnsibleClient
382
413
  client_key == o.client_key &&
383
414
  tls_validation == o.tls_validation &&
384
415
  proxy_url == o.proxy_url &&
416
+ proxy_username == o.proxy_username &&
417
+ proxy_password == o.proxy_password &&
385
418
  username == o.username &&
386
419
  password == o.password &&
387
420
  pulp_labels == o.pulp_labels &&
@@ -391,6 +424,7 @@ module PulpAnsibleClient
391
424
  connect_timeout == o.connect_timeout &&
392
425
  sock_connect_timeout == o.sock_connect_timeout &&
393
426
  sock_read_timeout == o.sock_read_timeout &&
427
+ headers == o.headers &&
394
428
  rate_limit == o.rate_limit &&
395
429
  requirements_file == o.requirements_file &&
396
430
  auth_url == o.auth_url &&
@@ -406,7 +440,7 @@ module PulpAnsibleClient
406
440
  # Calculates hash code according to all attributes.
407
441
  # @return [Integer] Hash code
408
442
  def hash
409
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
443
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token].hash
410
444
  end
411
445
 
412
446
  # Builds the object from hash
@@ -32,21 +32,12 @@ module PulpAnsibleClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
49
-
50
41
  attr_accessor :pulp_labels
51
42
 
52
43
  # Timestamp of the most recent update of the remote.
@@ -70,6 +61,9 @@ module PulpAnsibleClient
70
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
62
  attr_accessor :sock_read_timeout
72
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
73
67
  # Limits total download rate in requests per second
74
68
  attr_accessor :rate_limit
75
69
 
@@ -91,11 +85,8 @@ module PulpAnsibleClient
91
85
  :'url' => :'url',
92
86
  :'ca_cert' => :'ca_cert',
93
87
  :'client_cert' => :'client_cert',
94
- :'client_key' => :'client_key',
95
88
  :'tls_validation' => :'tls_validation',
96
89
  :'proxy_url' => :'proxy_url',
97
- :'username' => :'username',
98
- :'password' => :'password',
99
90
  :'pulp_labels' => :'pulp_labels',
100
91
  :'pulp_last_updated' => :'pulp_last_updated',
101
92
  :'download_concurrency' => :'download_concurrency',
@@ -104,6 +95,7 @@ module PulpAnsibleClient
104
95
  :'connect_timeout' => :'connect_timeout',
105
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
106
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
107
99
  :'rate_limit' => :'rate_limit',
108
100
  :'requirements_file' => :'requirements_file',
109
101
  :'auth_url' => :'auth_url',
@@ -120,11 +112,8 @@ module PulpAnsibleClient
120
112
  :'url' => :'String',
121
113
  :'ca_cert' => :'String',
122
114
  :'client_cert' => :'String',
123
- :'client_key' => :'String',
124
115
  :'tls_validation' => :'Boolean',
125
116
  :'proxy_url' => :'String',
126
- :'username' => :'String',
127
- :'password' => :'String',
128
117
  :'pulp_labels' => :'Object',
129
118
  :'pulp_last_updated' => :'DateTime',
130
119
  :'download_concurrency' => :'Integer',
@@ -133,6 +122,7 @@ module PulpAnsibleClient
133
122
  :'connect_timeout' => :'Float',
134
123
  :'sock_connect_timeout' => :'Float',
135
124
  :'sock_read_timeout' => :'Float',
125
+ :'headers' => :'Array<Object>',
136
126
  :'rate_limit' => :'Integer',
137
127
  :'requirements_file' => :'String',
138
128
  :'auth_url' => :'String',
@@ -145,10 +135,7 @@ module PulpAnsibleClient
145
135
  Set.new([
146
136
  :'ca_cert',
147
137
  :'client_cert',
148
- :'client_key',
149
138
  :'proxy_url',
150
- :'username',
151
- :'password',
152
139
  :'total_timeout',
153
140
  :'connect_timeout',
154
141
  :'sock_connect_timeout',
@@ -199,10 +186,6 @@ module PulpAnsibleClient
199
186
  self.client_cert = attributes[:'client_cert']
200
187
  end
201
188
 
202
- if attributes.key?(:'client_key')
203
- self.client_key = attributes[:'client_key']
204
- end
205
-
206
189
  if attributes.key?(:'tls_validation')
207
190
  self.tls_validation = attributes[:'tls_validation']
208
191
  end
@@ -211,14 +194,6 @@ module PulpAnsibleClient
211
194
  self.proxy_url = attributes[:'proxy_url']
212
195
  end
213
196
 
214
- if attributes.key?(:'username')
215
- self.username = attributes[:'username']
216
- end
217
-
218
- if attributes.key?(:'password')
219
- self.password = attributes[:'password']
220
- end
221
-
222
197
  if attributes.key?(:'pulp_labels')
223
198
  self.pulp_labels = attributes[:'pulp_labels']
224
199
  end
@@ -251,6 +226,12 @@ module PulpAnsibleClient
251
226
  self.sock_read_timeout = attributes[:'sock_read_timeout']
252
227
  end
253
228
 
229
+ if attributes.key?(:'headers')
230
+ if (value = attributes[:'headers']).is_a?(Array)
231
+ self.headers = value
232
+ end
233
+ end
234
+
254
235
  if attributes.key?(:'rate_limit')
255
236
  self.rate_limit = attributes[:'rate_limit']
256
237
  end
@@ -407,11 +388,8 @@ module PulpAnsibleClient
407
388
  url == o.url &&
408
389
  ca_cert == o.ca_cert &&
409
390
  client_cert == o.client_cert &&
410
- client_key == o.client_key &&
411
391
  tls_validation == o.tls_validation &&
412
392
  proxy_url == o.proxy_url &&
413
- username == o.username &&
414
- password == o.password &&
415
393
  pulp_labels == o.pulp_labels &&
416
394
  pulp_last_updated == o.pulp_last_updated &&
417
395
  download_concurrency == o.download_concurrency &&
@@ -420,6 +398,7 @@ module PulpAnsibleClient
420
398
  connect_timeout == o.connect_timeout &&
421
399
  sock_connect_timeout == o.sock_connect_timeout &&
422
400
  sock_read_timeout == o.sock_read_timeout &&
401
+ headers == o.headers &&
423
402
  rate_limit == o.rate_limit &&
424
403
  requirements_file == o.requirements_file &&
425
404
  auth_url == o.auth_url &&
@@ -435,7 +414,7 @@ module PulpAnsibleClient
435
414
  # Calculates hash code according to all attributes.
436
415
  # @return [Integer] Hash code
437
416
  def hash
438
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
417
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, token].hash
439
418
  end
440
419
 
441
420
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
18
  attr_accessor :pulp_href
22
19
 
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
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -97,9 +97,9 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
- :'pulp_created' => :'pulp_created',
101
100
  :'pulp_href' => :'pulp_href',
102
101
  :'artifact' => :'artifact',
102
+ :'pulp_created' => :'pulp_created',
103
103
  :'md5' => :'md5',
104
104
  :'sha1' => :'sha1',
105
105
  :'sha224' => :'sha224',
@@ -130,9 +130,9 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
- :'pulp_created' => :'DateTime',
134
133
  :'pulp_href' => :'String',
135
134
  :'artifact' => :'String',
135
+ :'pulp_created' => :'DateTime',
136
136
  :'md5' => :'String',
137
137
  :'sha1' => :'String',
138
138
  :'sha224' => :'String',
@@ -182,10 +182,6 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
- if attributes.key?(:'pulp_created')
186
- self.pulp_created = attributes[:'pulp_created']
187
- end
188
-
189
185
  if attributes.key?(:'pulp_href')
190
186
  self.pulp_href = attributes[:'pulp_href']
191
187
  end
@@ -194,6 +190,10 @@ module PulpAnsibleClient
194
190
  self.artifact = attributes[:'artifact']
195
191
  end
196
192
 
193
+ if attributes.key?(:'pulp_created')
194
+ self.pulp_created = attributes[:'pulp_created']
195
+ end
196
+
197
197
  if attributes.key?(:'md5')
198
198
  self.md5 = attributes[:'md5']
199
199
  end
@@ -550,9 +550,9 @@ module PulpAnsibleClient
550
550
  def ==(o)
551
551
  return true if self.equal?(o)
552
552
  self.class == o.class &&
553
- pulp_created == o.pulp_created &&
554
553
  pulp_href == o.pulp_href &&
555
554
  artifact == o.artifact &&
555
+ pulp_created == o.pulp_created &&
556
556
  md5 == o.md5 &&
557
557
  sha1 == o.sha1 &&
558
558
  sha224 == o.sha224 &&
@@ -588,7 +588,7 @@ module PulpAnsibleClient
588
588
  # Calculates hash code according to all attributes.
589
589
  # @return [Integer] Hash code
590
590
  def hash
591
- [pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
591
+ [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
592
592
  end
593
593
 
594
594
  # Builds the object from hash