pulp_deb_client 2.20.1 → 2.20.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGenericContentsApi.md +14 -10
  4. data/docs/ContentInstallerFileIndicesApi.md +14 -10
  5. data/docs/ContentInstallerPackagesApi.md +20 -16
  6. data/docs/ContentPackageIndicesApi.md +14 -10
  7. data/docs/ContentPackageReleaseComponentsApi.md +16 -12
  8. data/docs/ContentPackagesApi.md +20 -16
  9. data/docs/ContentReleaseArchitecturesApi.md +15 -11
  10. data/docs/ContentReleaseComponentsApi.md +15 -11
  11. data/docs/ContentReleaseFilesApi.md +14 -10
  12. data/docs/ContentReleasesApi.md +14 -10
  13. data/docs/DebAptDistribution.md +1 -1
  14. data/docs/DebAptDistributionResponse.md +1 -1
  15. data/docs/DebAptRemote.md +2 -2
  16. data/docs/DebAptRemoteResponse.md +4 -2
  17. data/docs/DebAptRemoteResponseHiddenFields.md +19 -0
  18. data/docs/DebAptRepository.md +2 -2
  19. data/docs/DebAptRepositoryResponse.md +2 -2
  20. data/docs/DebInstallerFileIndex.md +0 -2
  21. data/docs/DebInstallerFileIndexResponse.md +0 -2
  22. data/docs/DebPackageIndex.md +0 -2
  23. data/docs/DebPackageIndexResponse.md +0 -2
  24. data/docs/DistributionsAptApi.md +22 -14
  25. data/docs/PatcheddebAptDistribution.md +1 -1
  26. data/docs/PatcheddebAptRemote.md +2 -2
  27. data/docs/PatcheddebAptRepository.md +2 -2
  28. data/docs/PublicationsAptApi.md +16 -12
  29. data/docs/PublicationsVerbatimApi.md +16 -12
  30. data/docs/RemotesAptApi.md +18 -14
  31. data/docs/RepositoriesAptApi.md +33 -13
  32. data/docs/RepositoriesAptVersionsApi.md +16 -14
  33. data/docs/RepositoryAddRemoveContent.md +2 -2
  34. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +21 -15
  35. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +21 -15
  36. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +27 -21
  37. data/lib/pulp_deb_client/api/content_package_indices_api.rb +21 -15
  38. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +21 -15
  39. data/lib/pulp_deb_client/api/content_packages_api.rb +27 -21
  40. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +21 -15
  41. data/lib/pulp_deb_client/api/content_release_components_api.rb +21 -15
  42. data/lib/pulp_deb_client/api/content_release_files_api.rb +21 -15
  43. data/lib/pulp_deb_client/api/content_releases_api.rb +21 -15
  44. data/lib/pulp_deb_client/api/distributions_apt_api.rb +31 -19
  45. data/lib/pulp_deb_client/api/publications_apt_api.rb +23 -17
  46. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +23 -17
  47. data/lib/pulp_deb_client/api/remotes_apt_api.rb +25 -19
  48. data/lib/pulp_deb_client/api/repositories_apt_api.rb +47 -17
  49. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +22 -19
  50. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +4 -2
  51. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +4 -2
  52. data/lib/pulp_deb_client/models/deb_apt_remote.rb +5 -3
  53. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +18 -4
  54. data/lib/pulp_deb_client/models/deb_apt_remote_response_hidden_fields.rb +215 -0
  55. data/lib/pulp_deb_client/models/deb_apt_repository.rb +5 -3
  56. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +5 -3
  57. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -16
  58. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -16
  59. data/lib/pulp_deb_client/models/deb_package_index.rb +1 -16
  60. data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -16
  61. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +4 -2
  62. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +5 -3
  63. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +5 -3
  64. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +2 -2
  65. data/lib/pulp_deb_client/version.rb +1 -1
  66. data/lib/pulp_deb_client.rb +1 -0
  67. data/spec/api/content_generic_contents_api_spec.rb +7 -5
  68. data/spec/api/content_installer_file_indices_api_spec.rb +7 -5
  69. data/spec/api/content_installer_packages_api_spec.rb +10 -8
  70. data/spec/api/content_package_indices_api_spec.rb +7 -5
  71. data/spec/api/content_package_release_components_api_spec.rb +7 -5
  72. data/spec/api/content_packages_api_spec.rb +10 -8
  73. data/spec/api/content_release_architectures_api_spec.rb +7 -5
  74. data/spec/api/content_release_components_api_spec.rb +7 -5
  75. data/spec/api/content_release_files_api_spec.rb +7 -5
  76. data/spec/api/content_releases_api_spec.rb +7 -5
  77. data/spec/api/distributions_apt_api_spec.rb +11 -7
  78. data/spec/api/publications_apt_api_spec.rb +8 -6
  79. data/spec/api/publications_verbatim_api_spec.rb +8 -6
  80. data/spec/api/remotes_apt_api_spec.rb +9 -7
  81. data/spec/api/repositories_apt_api_spec.rb +16 -6
  82. data/spec/api/repositories_apt_versions_api_spec.rb +8 -7
  83. data/spec/models/deb_apt_remote_response_hidden_fields_spec.rb +47 -0
  84. data/spec/models/deb_apt_remote_response_spec.rb +6 -0
  85. data/spec/models/deb_installer_file_index_response_spec.rb +0 -6
  86. data/spec/models/deb_installer_file_index_spec.rb +0 -6
  87. data/spec/models/deb_package_index_response_spec.rb +0 -6
  88. data/spec/models/deb_package_index_spec.rb +0 -6
  89. metadata +57 -53
@@ -88,22 +88,23 @@ module PulpDebClient
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
95
95
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
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
- # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
98
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
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>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
107
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
108
  # @return [PaginatedRepositoryVersionResponseList]
108
109
  def list(deb_apt_repository_href, opts = {})
109
110
  data, _status_code, _headers = list_with_http_info(deb_apt_repository_href, opts)
@@ -117,22 +118,23 @@ module PulpDebClient
117
118
  # @option opts [String] :content Content Unit referenced by HREF
118
119
  # @option opts [String] :content__in Content Unit referenced by HREF
119
120
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
121
+ # @option opts [Integer] :number Filter results where number matches value
121
122
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
123
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
124
  # @option opts [Integer] :number__lt Filter results where number is less than value
124
125
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
126
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
127
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
129
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
129
130
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
131
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
132
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
133
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
134
  # @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.
135
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
136
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
137
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
138
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
139
  def list_with_http_info(deb_apt_repository_href, opts = {})
138
140
  if @api_client.config.debugging
@@ -142,7 +144,7 @@ module PulpDebClient
142
144
  if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
143
145
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptVersionsApi.list"
144
146
  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"]
147
+ 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
148
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
149
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
150
  end
@@ -168,8 +170,9 @@ module PulpDebClient
168
170
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
171
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
172
  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?
173
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
174
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
176
 
174
177
  # header parameters
175
178
  header_params = opts[:header_params] || {}
@@ -208,8 +211,8 @@ module PulpDebClient
208
211
  # An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
209
212
  # @param deb_apt_repository_version_href [String]
210
213
  # @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.
214
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
215
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
216
  # @return [RepositoryVersionResponse]
214
217
  def read(deb_apt_repository_version_href, opts = {})
215
218
  data, _status_code, _headers = read_with_http_info(deb_apt_repository_version_href, opts)
@@ -220,8 +223,8 @@ module PulpDebClient
220
223
  # An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
221
224
  # @param deb_apt_repository_version_href [String]
222
225
  # @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.
226
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
227
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
228
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
229
  def read_with_http_info(deb_apt_repository_version_href, opts = {})
227
230
  if @api_client.config.debugging
@@ -236,8 +239,8 @@ module PulpDebClient
236
239
 
237
240
  # query parameters
238
241
  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?
242
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
243
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
244
 
242
245
  # header parameters
243
246
  header_params = opts[:header_params] || {}
@@ -49,7 +49,7 @@ module PulpDebClient
49
49
  {
50
50
  :'base_path' => :'String',
51
51
  :'content_guard' => :'String',
52
- :'pulp_labels' => :'Object',
52
+ :'pulp_labels' => :'Hash<String, String>',
53
53
  :'name' => :'String',
54
54
  :'repository' => :'String',
55
55
  :'publication' => :'String'
@@ -89,7 +89,9 @@ module PulpDebClient
89
89
  end
90
90
 
91
91
  if attributes.key?(:'pulp_labels')
92
- self.pulp_labels = attributes[:'pulp_labels']
92
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
93
+ self.pulp_labels = value
94
+ end
93
95
  end
94
96
 
95
97
  if attributes.key?(:'name')
@@ -63,7 +63,7 @@ module PulpDebClient
63
63
  :'base_path' => :'String',
64
64
  :'base_url' => :'String',
65
65
  :'content_guard' => :'String',
66
- :'pulp_labels' => :'Object',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
67
  :'name' => :'String',
68
68
  :'repository' => :'String',
69
69
  :'publication' => :'String'
@@ -115,7 +115,9 @@ module PulpDebClient
115
115
  end
116
116
 
117
117
  if attributes.key?(:'pulp_labels')
118
- self.pulp_labels = attributes[:'pulp_labels']
118
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
+ self.pulp_labels = value
120
+ end
119
121
  end
120
122
 
121
123
  if attributes.key?(:'name')
@@ -56,7 +56,7 @@ module PulpDebClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
59
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -150,7 +150,7 @@ module PulpDebClient
150
150
  :'proxy_password' => :'String',
151
151
  :'username' => :'String',
152
152
  :'password' => :'String',
153
- :'pulp_labels' => :'Object',
153
+ :'pulp_labels' => :'Hash<String, String>',
154
154
  :'download_concurrency' => :'Integer',
155
155
  :'max_retries' => :'Integer',
156
156
  :'policy' => :'PolicyEnum',
@@ -255,7 +255,9 @@ module PulpDebClient
255
255
  end
256
256
 
257
257
  if attributes.key?(:'pulp_labels')
258
- self.pulp_labels = attributes[:'pulp_labels']
258
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
259
+ self.pulp_labels = value
260
+ end
259
261
  end
260
262
 
261
263
  if attributes.key?(:'download_concurrency')
@@ -49,7 +49,7 @@ module PulpDebClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
52
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -70,6 +70,9 @@ module PulpDebClient
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
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
74
77
  attr_accessor :distributions
75
78
 
@@ -116,6 +119,7 @@ module PulpDebClient
116
119
  :'sock_read_timeout' => :'sock_read_timeout',
117
120
  :'headers' => :'headers',
118
121
  :'rate_limit' => :'rate_limit',
122
+ :'hidden_fields' => :'hidden_fields',
119
123
  :'distributions' => :'distributions',
120
124
  :'components' => :'components',
121
125
  :'architectures' => :'architectures',
@@ -138,7 +142,7 @@ module PulpDebClient
138
142
  :'client_cert' => :'String',
139
143
  :'tls_validation' => :'Boolean',
140
144
  :'proxy_url' => :'String',
141
- :'pulp_labels' => :'Object',
145
+ :'pulp_labels' => :'Hash<String, String>',
142
146
  :'pulp_last_updated' => :'DateTime',
143
147
  :'download_concurrency' => :'Integer',
144
148
  :'max_retries' => :'Integer',
@@ -149,6 +153,7 @@ module PulpDebClient
149
153
  :'sock_read_timeout' => :'Float',
150
154
  :'headers' => :'Array<Object>',
151
155
  :'rate_limit' => :'Integer',
156
+ :'hidden_fields' => :'Array<DebAptRemoteResponseHiddenFields>',
152
157
  :'distributions' => :'String',
153
158
  :'components' => :'String',
154
159
  :'architectures' => :'String',
@@ -227,7 +232,9 @@ module PulpDebClient
227
232
  end
228
233
 
229
234
  if attributes.key?(:'pulp_labels')
230
- self.pulp_labels = attributes[:'pulp_labels']
235
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
236
+ self.pulp_labels = value
237
+ end
231
238
  end
232
239
 
233
240
  if attributes.key?(:'pulp_last_updated')
@@ -272,6 +279,12 @@ module PulpDebClient
272
279
  self.rate_limit = attributes[:'rate_limit']
273
280
  end
274
281
 
282
+ if attributes.key?(:'hidden_fields')
283
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
284
+ self.hidden_fields = value
285
+ end
286
+ end
287
+
275
288
  if attributes.key?(:'distributions')
276
289
  self.distributions = attributes[:'distributions']
277
290
  end
@@ -432,6 +445,7 @@ module PulpDebClient
432
445
  sock_read_timeout == o.sock_read_timeout &&
433
446
  headers == o.headers &&
434
447
  rate_limit == o.rate_limit &&
448
+ hidden_fields == o.hidden_fields &&
435
449
  distributions == o.distributions &&
436
450
  components == o.components &&
437
451
  architectures == o.architectures &&
@@ -451,7 +465,7 @@ module PulpDebClient
451
465
  # Calculates hash code according to all attributes.
452
466
  # @return [Integer] Hash code
453
467
  def hash
454
- [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
468
+ [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, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
455
469
  end
456
470
 
457
471
  # 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 PulpDebClient
16
+ class DebAptRemoteResponseHiddenFields
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 `PulpDebClient::DebAptRemoteResponseHiddenFields` 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 `PulpDebClient::DebAptRemoteResponseHiddenFields`. 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
+ PulpDebClient.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
@@ -23,7 +23,7 @@ module PulpDebClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
@@ -43,7 +43,7 @@ module PulpDebClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Object',
46
+ :'pulp_labels' => :'Hash<String, String>',
47
47
  :'name' => :'String',
48
48
  :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
@@ -76,7 +76,9 @@ module PulpDebClient
76
76
  }
77
77
 
78
78
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
84
  if attributes.key?(:'name')
@@ -32,7 +32,7 @@ module PulpDebClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
35
+ # Retain X versions of the repository. Default is null which retains all versions.
36
36
  attr_accessor :retain_repo_versions
37
37
 
38
38
  # An optional remote to use by default when syncing.
@@ -59,7 +59,7 @@ module PulpDebClient
59
59
  :'pulp_href' => :'String',
60
60
  :'pulp_created' => :'DateTime',
61
61
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'pulp_labels' => :'Hash<String, String>',
63
63
  :'latest_version_href' => :'String',
64
64
  :'name' => :'String',
65
65
  :'description' => :'String',
@@ -105,7 +105,9 @@ module PulpDebClient
105
105
  end
106
106
 
107
107
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
109
111
  end
110
112
 
111
113
  if attributes.key?(:'latest_version_href')
@@ -18,9 +18,6 @@ module PulpDebClient
18
18
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
19
19
  attr_accessor :artifacts
20
20
 
21
- # Release this index file belongs to.
22
- attr_accessor :release
23
-
24
21
  # Component of the component - architecture combination.
25
22
  attr_accessor :component
26
23
 
@@ -34,7 +31,6 @@ module PulpDebClient
34
31
  def self.attribute_map
35
32
  {
36
33
  :'artifacts' => :'artifacts',
37
- :'release' => :'release',
38
34
  :'component' => :'component',
39
35
  :'architecture' => :'architecture',
40
36
  :'relative_path' => :'relative_path'
@@ -45,7 +41,6 @@ module PulpDebClient
45
41
  def self.openapi_types
46
42
  {
47
43
  :'artifacts' => :'Object',
48
- :'release' => :'String',
49
44
  :'component' => :'String',
50
45
  :'architecture' => :'String',
51
46
  :'relative_path' => :'String'
@@ -77,10 +72,6 @@ module PulpDebClient
77
72
  self.artifacts = attributes[:'artifacts']
78
73
  end
79
74
 
80
- if attributes.key?(:'release')
81
- self.release = attributes[:'release']
82
- end
83
-
84
75
  if attributes.key?(:'component')
85
76
  self.component = attributes[:'component']
86
77
  end
@@ -102,10 +93,6 @@ module PulpDebClient
102
93
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
94
  end
104
95
 
105
- if @release.nil?
106
- invalid_properties.push('invalid value for "release", release cannot be nil.')
107
- end
108
-
109
96
  if @component.nil?
110
97
  invalid_properties.push('invalid value for "component", component cannot be nil.')
111
98
  end
@@ -133,7 +120,6 @@ module PulpDebClient
133
120
  # @return true if the model is valid
134
121
  def valid?
135
122
  return false if @artifacts.nil?
136
- return false if @release.nil?
137
123
  return false if @component.nil?
138
124
  return false if @component.to_s.length < 1
139
125
  return false if @architecture.nil?
@@ -186,7 +172,6 @@ module PulpDebClient
186
172
  return true if self.equal?(o)
187
173
  self.class == o.class &&
188
174
  artifacts == o.artifacts &&
189
- release == o.release &&
190
175
  component == o.component &&
191
176
  architecture == o.architecture &&
192
177
  relative_path == o.relative_path
@@ -201,7 +186,7 @@ module PulpDebClient
201
186
  # Calculates hash code according to all attributes.
202
187
  # @return [Integer] Hash code
203
188
  def hash
204
- [artifacts, release, component, architecture, relative_path].hash
189
+ [artifacts, component, architecture, relative_path].hash
205
190
  end
206
191
 
207
192
  # Builds the object from hash