pulp_python_client 3.7.3 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +8 -8
  4. data/docs/DistributionsPypiApi.md +12 -12
  5. data/docs/PatchedpythonPythonDistribution.md +1 -1
  6. data/docs/PatchedpythonPythonRemote.md +1 -1
  7. data/docs/PatchedpythonPythonRepository.md +1 -1
  8. data/docs/PublicationsPypiApi.md +10 -10
  9. data/docs/PypiApi.md +4 -4
  10. data/docs/PypiMetadataApi.md +4 -4
  11. data/docs/PypiSimpleApi.md +8 -8
  12. data/docs/PythonPythonDistribution.md +1 -1
  13. data/docs/PythonPythonDistributionResponse.md +1 -1
  14. data/docs/PythonPythonRemote.md +1 -1
  15. data/docs/PythonPythonRemoteResponse.md +3 -1
  16. data/docs/PythonPythonRemoteResponseHiddenFields.md +19 -0
  17. data/docs/PythonPythonRepository.md +1 -1
  18. data/docs/PythonPythonRepositoryResponse.md +1 -1
  19. data/docs/RemotesPythonApi.md +12 -12
  20. data/docs/RepositoriesPythonApi.md +11 -11
  21. data/docs/RepositoriesPythonVersionsApi.md +12 -12
  22. data/lib/pulp_python_client/api/content_packages_api.rb +13 -13
  23. data/lib/pulp_python_client/api/distributions_pypi_api.rb +17 -17
  24. data/lib/pulp_python_client/api/publications_pypi_api.rb +15 -15
  25. data/lib/pulp_python_client/api/pypi_api.rb +6 -6
  26. data/lib/pulp_python_client/api/pypi_metadata_api.rb +6 -6
  27. data/lib/pulp_python_client/api/pypi_simple_api.rb +12 -12
  28. data/lib/pulp_python_client/api/remotes_python_api.rb +17 -17
  29. data/lib/pulp_python_client/api/repositories_python_api.rb +15 -15
  30. data/lib/pulp_python_client/api/repositories_python_versions_api.rb +17 -17
  31. data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +4 -2
  32. data/lib/pulp_python_client/models/patchedpython_python_remote.rb +4 -2
  33. data/lib/pulp_python_client/models/patchedpython_python_repository.rb +4 -2
  34. data/lib/pulp_python_client/models/python_python_distribution.rb +4 -2
  35. data/lib/pulp_python_client/models/python_python_distribution_response.rb +4 -2
  36. data/lib/pulp_python_client/models/python_python_remote.rb +4 -2
  37. data/lib/pulp_python_client/models/python_python_remote_response.rb +17 -3
  38. data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +215 -0
  39. data/lib/pulp_python_client/models/python_python_repository.rb +4 -2
  40. data/lib/pulp_python_client/models/python_python_repository_response.rb +4 -2
  41. data/lib/pulp_python_client/version.rb +1 -1
  42. data/lib/pulp_python_client.rb +1 -0
  43. data/spec/api/content_packages_api_spec.rb +4 -4
  44. data/spec/api/distributions_pypi_api_spec.rb +6 -6
  45. data/spec/api/publications_pypi_api_spec.rb +5 -5
  46. data/spec/api/pypi_api_spec.rb +2 -2
  47. data/spec/api/pypi_metadata_api_spec.rb +2 -2
  48. data/spec/api/pypi_simple_api_spec.rb +4 -4
  49. data/spec/api/remotes_python_api_spec.rb +6 -6
  50. data/spec/api/repositories_python_api_spec.rb +5 -5
  51. data/spec/api/repositories_python_versions_api_spec.rb +6 -6
  52. data/spec/models/python_python_remote_response_hidden_fields_spec.rb +47 -0
  53. data/spec/models/python_python_remote_response_spec.rb +6 -0
  54. metadata +35 -31
@@ -149,7 +149,7 @@ module PulpPythonClient
149
149
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
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
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -158,8 +158,8 @@ module PulpPythonClient
158
158
  # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :remote Foreign Key referenced by HREF
161
- # @option opts [String] :fields A list of fields to include in the response.
162
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
162
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
163
163
  # @return [PaginatedpythonPythonRepositoryResponseList]
164
164
  def list(opts = {})
165
165
  data, _status_code, _headers = list_with_http_info(opts)
@@ -170,7 +170,7 @@ module PulpPythonClient
170
170
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
171
171
  # @param [Hash] opts the optional parameters
172
172
  # @option opts [Integer] :limit Number of results to return per page.
173
- # @option opts [String] :name
173
+ # @option opts [String] :name Filter results where name matches value
174
174
  # @option opts [String] :name__contains Filter results where name contains value
175
175
  # @option opts [String] :name__icontains Filter results where name contains value
176
176
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -179,14 +179,14 @@ module PulpPythonClient
179
179
  # @option opts [Array<String>] :ordering Ordering
180
180
  # @option opts [String] :pulp_label_select Filter labels by search string
181
181
  # @option opts [String] :remote Foreign Key referenced by HREF
182
- # @option opts [String] :fields A list of fields to include in the response.
183
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
183
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
184
184
  # @return [Array<(PaginatedpythonPythonRepositoryResponseList, Integer, Hash)>] PaginatedpythonPythonRepositoryResponseList data, response status code and response headers
185
185
  def list_with_http_info(opts = {})
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: RepositoriesPythonApi.list ...'
188
188
  end
189
- allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-python_pythonrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "python_pythonrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
189
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
190
190
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
191
191
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
192
192
  end
@@ -205,8 +205,8 @@ module PulpPythonClient
205
205
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
206
206
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
207
207
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
208
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
209
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
208
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
209
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
210
210
 
211
211
  # header parameters
212
212
  header_params = opts[:header_params] || {}
@@ -385,8 +385,8 @@ module PulpPythonClient
385
385
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
386
386
  # @param python_python_repository_href [String]
387
387
  # @param [Hash] opts the optional parameters
388
- # @option opts [String] :fields A list of fields to include in the response.
389
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
388
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
389
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
390
390
  # @return [PythonPythonRepositoryResponse]
391
391
  def read(python_python_repository_href, opts = {})
392
392
  data, _status_code, _headers = read_with_http_info(python_python_repository_href, opts)
@@ -397,8 +397,8 @@ module PulpPythonClient
397
397
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
398
398
  # @param python_python_repository_href [String]
399
399
  # @param [Hash] opts the optional parameters
400
- # @option opts [String] :fields A list of fields to include in the response.
401
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
400
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
401
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
402
402
  # @return [Array<(PythonPythonRepositoryResponse, Integer, Hash)>] PythonPythonRepositoryResponse data, response status code and response headers
403
403
  def read_with_http_info(python_python_repository_href, opts = {})
404
404
  if @api_client.config.debugging
@@ -413,8 +413,8 @@ module PulpPythonClient
413
413
 
414
414
  # query parameters
415
415
  query_params = opts[:query_params] || {}
416
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
417
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
416
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
417
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
418
418
 
419
419
  # header parameters
420
420
  header_params = opts[:header_params] || {}
@@ -88,7 +88,7 @@ module PulpPythonClient
88
88
  # @option opts [String] :content Content Unit referenced by HREF
89
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 [Integer] :number
91
+ # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
93
93
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
94
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -96,14 +96,14 @@ module PulpPythonClient
96
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 [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
99
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(python_python_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(python_python_repository_href, opts)
@@ -117,7 +117,7 @@ module PulpPythonClient
117
117
  # @option opts [String] :content Content Unit referenced by HREF
118
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 [Integer] :number
120
+ # @option opts [Integer] :number Filter results where number matches value
121
121
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
122
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
123
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -125,14 +125,14 @@ module PulpPythonClient
125
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 [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<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
137
137
  def list_with_http_info(python_python_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -142,7 +142,7 @@ module PulpPythonClient
142
142
  if @api_client.config.client_side_validation && python_python_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'python_python_repository_href' when calling RepositoriesPythonVersionsApi.list"
144
144
  end
145
- allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-info", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "info", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
145
+ allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -168,8 +168,8 @@ module PulpPythonClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpPythonClient
208
208
  # PythonRepositoryVersion represents a single Python repository version.
209
209
  # @param python_python_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(python_python_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(python_python_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpPythonClient
220
220
  # PythonRepositoryVersion represents a single Python repository version.
221
221
  # @param python_python_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(python_python_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpPythonClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -57,7 +57,7 @@ module PulpPythonClient
57
57
  {
58
58
  :'base_path' => :'String',
59
59
  :'content_guard' => :'String',
60
- :'pulp_labels' => :'Object',
60
+ :'pulp_labels' => :'Hash<String, String>',
61
61
  :'name' => :'String',
62
62
  :'repository' => :'String',
63
63
  :'publication' => :'String',
@@ -100,7 +100,9 @@ module PulpPythonClient
100
100
  end
101
101
 
102
102
  if attributes.key?(:'pulp_labels')
103
- self.pulp_labels = attributes[:'pulp_labels']
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
104
106
  end
105
107
 
106
108
  if attributes.key?(:'name')
@@ -142,7 +142,7 @@ module PulpPythonClient
142
142
  :'proxy_password' => :'String',
143
143
  :'username' => :'String',
144
144
  :'password' => :'String',
145
- :'pulp_labels' => :'Object',
145
+ :'pulp_labels' => :'Hash<String, String>',
146
146
  :'download_concurrency' => :'Integer',
147
147
  :'max_retries' => :'Integer',
148
148
  :'policy' => :'PolicyEnum',
@@ -242,7 +242,9 @@ module PulpPythonClient
242
242
  end
243
243
 
244
244
  if attributes.key?(:'pulp_labels')
245
- self.pulp_labels = attributes[:'pulp_labels']
245
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
246
+ self.pulp_labels = value
247
+ end
246
248
  end
247
249
 
248
250
  if attributes.key?(:'download_concurrency')
@@ -47,7 +47,7 @@ module PulpPythonClient
47
47
  # Attribute type mapping.
48
48
  def self.openapi_types
49
49
  {
50
- :'pulp_labels' => :'Object',
50
+ :'pulp_labels' => :'Hash<String, String>',
51
51
  :'name' => :'String',
52
52
  :'description' => :'String',
53
53
  :'retain_repo_versions' => :'Integer',
@@ -81,7 +81,9 @@ module PulpPythonClient
81
81
  }
82
82
 
83
83
  if attributes.key?(:'pulp_labels')
84
- self.pulp_labels = attributes[:'pulp_labels']
84
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
85
+ self.pulp_labels = value
86
+ end
85
87
  end
86
88
 
87
89
  if attributes.key?(:'name')
@@ -57,7 +57,7 @@ module PulpPythonClient
57
57
  {
58
58
  :'base_path' => :'String',
59
59
  :'content_guard' => :'String',
60
- :'pulp_labels' => :'Object',
60
+ :'pulp_labels' => :'Hash<String, String>',
61
61
  :'name' => :'String',
62
62
  :'repository' => :'String',
63
63
  :'publication' => :'String',
@@ -100,7 +100,9 @@ module PulpPythonClient
100
100
  end
101
101
 
102
102
  if attributes.key?(:'pulp_labels')
103
- self.pulp_labels = attributes[:'pulp_labels']
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
104
106
  end
105
107
 
106
108
  if attributes.key?(:'name')
@@ -70,7 +70,7 @@ module PulpPythonClient
70
70
  :'base_path' => :'String',
71
71
  :'base_url' => :'String',
72
72
  :'content_guard' => :'String',
73
- :'pulp_labels' => :'Object',
73
+ :'pulp_labels' => :'Hash<String, String>',
74
74
  :'name' => :'String',
75
75
  :'repository' => :'String',
76
76
  :'publication' => :'String',
@@ -125,7 +125,9 @@ module PulpPythonClient
125
125
  end
126
126
 
127
127
  if attributes.key?(:'pulp_labels')
128
- self.pulp_labels = attributes[:'pulp_labels']
128
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
+ self.pulp_labels = value
130
+ end
129
131
  end
130
132
 
131
133
  if attributes.key?(:'name')
@@ -142,7 +142,7 @@ module PulpPythonClient
142
142
  :'proxy_password' => :'String',
143
143
  :'username' => :'String',
144
144
  :'password' => :'String',
145
- :'pulp_labels' => :'Object',
145
+ :'pulp_labels' => :'Hash<String, String>',
146
146
  :'download_concurrency' => :'Integer',
147
147
  :'max_retries' => :'Integer',
148
148
  :'policy' => :'PolicyEnum',
@@ -242,7 +242,9 @@ module PulpPythonClient
242
242
  end
243
243
 
244
244
  if attributes.key?(:'pulp_labels')
245
- self.pulp_labels = attributes[:'pulp_labels']
245
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
246
+ self.pulp_labels = value
247
+ end
246
248
  end
247
249
 
248
250
  if attributes.key?(:'download_concurrency')
@@ -70,6 +70,9 @@ module PulpPythonClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # A JSON list containing project specifiers for Python packages to include.
74
77
  attr_accessor :includes
75
78
 
@@ -110,6 +113,7 @@ module PulpPythonClient
110
113
  :'sock_read_timeout' => :'sock_read_timeout',
111
114
  :'headers' => :'headers',
112
115
  :'rate_limit' => :'rate_limit',
116
+ :'hidden_fields' => :'hidden_fields',
113
117
  :'includes' => :'includes',
114
118
  :'excludes' => :'excludes',
115
119
  :'prereleases' => :'prereleases',
@@ -130,7 +134,7 @@ module PulpPythonClient
130
134
  :'client_cert' => :'String',
131
135
  :'tls_validation' => :'Boolean',
132
136
  :'proxy_url' => :'String',
133
- :'pulp_labels' => :'Object',
137
+ :'pulp_labels' => :'Hash<String, String>',
134
138
  :'pulp_last_updated' => :'DateTime',
135
139
  :'download_concurrency' => :'Integer',
136
140
  :'max_retries' => :'Integer',
@@ -141,6 +145,7 @@ module PulpPythonClient
141
145
  :'sock_read_timeout' => :'Float',
142
146
  :'headers' => :'Array<Object>',
143
147
  :'rate_limit' => :'Integer',
148
+ :'hidden_fields' => :'Array<PythonPythonRemoteResponseHiddenFields>',
144
149
  :'includes' => :'Object',
145
150
  :'excludes' => :'Object',
146
151
  :'prereleases' => :'Boolean',
@@ -214,7 +219,9 @@ module PulpPythonClient
214
219
  end
215
220
 
216
221
  if attributes.key?(:'pulp_labels')
217
- self.pulp_labels = attributes[:'pulp_labels']
222
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
223
+ self.pulp_labels = value
224
+ end
218
225
  end
219
226
 
220
227
  if attributes.key?(:'pulp_last_updated')
@@ -259,6 +266,12 @@ module PulpPythonClient
259
266
  self.rate_limit = attributes[:'rate_limit']
260
267
  end
261
268
 
269
+ if attributes.key?(:'hidden_fields')
270
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
271
+ self.hidden_fields = value
272
+ end
273
+ end
274
+
262
275
  if attributes.key?(:'includes')
263
276
  self.includes = attributes[:'includes']
264
277
  end
@@ -412,6 +425,7 @@ module PulpPythonClient
412
425
  sock_read_timeout == o.sock_read_timeout &&
413
426
  headers == o.headers &&
414
427
  rate_limit == o.rate_limit &&
428
+ hidden_fields == o.hidden_fields &&
415
429
  includes == o.includes &&
416
430
  excludes == o.excludes &&
417
431
  prereleases == o.prereleases &&
@@ -429,7 +443,7 @@ module PulpPythonClient
429
443
  # Calculates hash code according to all attributes.
430
444
  # @return [Integer] Hash code
431
445
  def hash
432
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
446
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
433
447
  end
434
448
 
435
449
  # Builds the object from hash
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpPythonClient
16
+ class PythonPythonRemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::PythonPythonRemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::PythonPythonRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpPythonClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -47,7 +47,7 @@ module PulpPythonClient
47
47
  # Attribute type mapping.
48
48
  def self.openapi_types
49
49
  {
50
- :'pulp_labels' => :'Object',
50
+ :'pulp_labels' => :'Hash<String, String>',
51
51
  :'name' => :'String',
52
52
  :'description' => :'String',
53
53
  :'retain_repo_versions' => :'Integer',
@@ -81,7 +81,9 @@ module PulpPythonClient
81
81
  }
82
82
 
83
83
  if attributes.key?(:'pulp_labels')
84
- self.pulp_labels = attributes[:'pulp_labels']
84
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
85
+ self.pulp_labels = value
86
+ end
85
87
  end
86
88
 
87
89
  if attributes.key?(:'name')
@@ -63,7 +63,7 @@ module PulpPythonClient
63
63
  :'pulp_href' => :'String',
64
64
  :'pulp_created' => :'DateTime',
65
65
  :'versions_href' => :'String',
66
- :'pulp_labels' => :'Object',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
67
  :'latest_version_href' => :'String',
68
68
  :'name' => :'String',
69
69
  :'description' => :'String',
@@ -110,7 +110,9 @@ module PulpPythonClient
110
110
  end
111
111
 
112
112
  if attributes.key?(:'pulp_labels')
113
- self.pulp_labels = attributes[:'pulp_labels']
113
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
+ self.pulp_labels = value
115
+ end
114
116
  end
115
117
 
116
118
  if attributes.key?(:'latest_version_href')