pulp_deb_client 2.18.3 → 2.19.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.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/ContentGenericContentsApi.md +5 -3
- data/docs/ContentInstallerFileIndicesApi.md +2 -2
- data/docs/ContentInstallerPackagesApi.md +5 -3
- data/docs/ContentPackageIndicesApi.md +2 -2
- data/docs/ContentPackageReleaseComponentsApi.md +2 -2
- data/docs/ContentPackagesApi.md +5 -3
- data/docs/ContentReleaseArchitecturesApi.md +2 -2
- data/docs/ContentReleaseComponentsApi.md +2 -2
- data/docs/ContentReleaseFilesApi.md +2 -2
- data/docs/ContentReleasesApi.md +2 -2
- data/docs/DebAptRemote.md +2 -2
- data/docs/DebBasePackage.md +3 -1
- data/docs/DebGenericContent.md +3 -1
- data/docs/DistributionsAptApi.md +2 -2
- data/docs/PatcheddebAptRemote.md +2 -2
- data/docs/PublicationsAptApi.md +4 -2
- data/docs/PublicationsVerbatimApi.md +4 -2
- data/docs/RemotesAptApi.md +2 -2
- data/docs/RepositoriesAptApi.md +2 -2
- data/docs/RepositoriesAptVersionsApi.md +2 -2
- data/git_push.sh +58 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +7 -3
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +10 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +10 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +7 -3
- data/lib/pulp_deb_client/api_client.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +2 -2
- data/lib/pulp_deb_client/models/deb_base_package.rb +14 -4
- data/lib/pulp_deb_client/models/deb_generic_content.rb +14 -4
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +2 -2
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +3 -3
- data/spec/api/content_generic_contents_api_spec.rb +2 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
- data/spec/api/content_installer_packages_api_spec.rb +2 -1
- data/spec/api/content_package_indices_api_spec.rb +1 -1
- data/spec/api/content_package_release_components_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -1
- data/spec/api/content_release_architectures_api_spec.rb +1 -1
- data/spec/api/content_release_components_api_spec.rb +1 -1
- data/spec/api/content_release_files_api_spec.rb +1 -1
- data/spec/api/content_releases_api_spec.rb +1 -1
- data/spec/api/distributions_apt_api_spec.rb +1 -1
- data/spec/api/publications_apt_api_spec.rb +2 -1
- data/spec/api/publications_verbatim_api_spec.rb +2 -1
- data/spec/api/remotes_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -1
- data/spec/models/deb_base_package_spec.rb +6 -0
- data/spec/models/deb_generic_content_spec.rb +6 -0
- metadata +64 -63
@@ -26,6 +26,7 @@ module PulpDebClient
|
|
26
26
|
# @option opts [String] :artifact Artifact file representing the physical content
|
27
27
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
28
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
29
30
|
# @return [AsyncOperationResponse]
|
30
31
|
def create(relative_path, opts = {})
|
31
32
|
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
@@ -39,6 +40,7 @@ module PulpDebClient
|
|
39
40
|
# @option opts [String] :artifact Artifact file representing the physical content
|
40
41
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
41
42
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
42
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
43
45
|
def create_with_http_info(relative_path, opts = {})
|
44
46
|
if @api_client.config.debugging
|
@@ -71,6 +73,7 @@ module PulpDebClient
|
|
71
73
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
72
74
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
73
75
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
76
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
74
77
|
|
75
78
|
# http body (model)
|
76
79
|
post_body = opts[:body]
|
@@ -102,7 +105,7 @@ module PulpDebClient
|
|
102
105
|
# @param [Hash] opts the optional parameters
|
103
106
|
# @option opts [Integer] :limit Number of results to return per page.
|
104
107
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
105
|
-
# @option opts [String] :ordering
|
108
|
+
# @option opts [Array<String>] :ordering Ordering
|
106
109
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
107
110
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
108
111
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -121,7 +124,7 @@ module PulpDebClient
|
|
121
124
|
# @param [Hash] opts the optional parameters
|
122
125
|
# @option opts [Integer] :limit Number of results to return per page.
|
123
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
124
|
-
# @option opts [String] :ordering
|
127
|
+
# @option opts [Array<String>] :ordering Ordering
|
125
128
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
126
129
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
127
130
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -134,6 +137,10 @@ module PulpDebClient
|
|
134
137
|
if @api_client.config.debugging
|
135
138
|
@api_client.config.logger.debug 'Calling API: ContentGenericContentsApi.list ...'
|
136
139
|
end
|
140
|
+
allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
141
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
142
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
143
|
+
end
|
137
144
|
# resource path
|
138
145
|
local_var_path = '/pulp/api/v3/content/deb/generic_contents/'
|
139
146
|
|
@@ -141,7 +148,7 @@ module PulpDebClient
|
|
141
148
|
query_params = opts[:query_params] || {}
|
142
149
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
143
150
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
144
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
151
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
145
152
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
146
153
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
147
154
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -90,7 +90,7 @@ module PulpDebClient
|
|
90
90
|
# @option opts [String] :component Filter results where component matches value
|
91
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
92
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
93
|
-
# @option opts [String] :ordering
|
93
|
+
# @option opts [Array<String>] :ordering Ordering
|
94
94
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
95
95
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
96
96
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -111,7 +111,7 @@ module PulpDebClient
|
|
111
111
|
# @option opts [String] :component Filter results where component matches value
|
112
112
|
# @option opts [Integer] :limit Number of results to return per page.
|
113
113
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
-
# @option opts [String] :ordering
|
114
|
+
# @option opts [Array<String>] :ordering Ordering
|
115
115
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
116
116
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
117
117
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -124,6 +124,10 @@ module PulpDebClient
|
|
124
124
|
if @api_client.config.debugging
|
125
125
|
@api_client.config.logger.debug 'Calling API: ContentInstallerFileIndicesApi.list ...'
|
126
126
|
end
|
127
|
+
allowable_values = ["-_artifacts", "-architecture", "-component", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-release", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "component", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "release", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
128
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
129
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
130
|
+
end
|
127
131
|
# resource path
|
128
132
|
local_var_path = '/pulp/api/v3/content/deb/installer_file_indices/'
|
129
133
|
|
@@ -133,7 +137,7 @@ module PulpDebClient
|
|
133
137
|
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
134
138
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
135
139
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
136
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
140
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
137
141
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
138
142
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
139
143
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -26,6 +26,7 @@ module PulpDebClient
|
|
26
26
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
27
27
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
28
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
29
30
|
# @return [AsyncOperationResponse]
|
30
31
|
def create(opts = {})
|
31
32
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -39,6 +40,7 @@ module PulpDebClient
|
|
39
40
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
40
41
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
41
42
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
42
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
43
45
|
def create_with_http_info(opts = {})
|
44
46
|
if @api_client.config.debugging
|
@@ -67,6 +69,7 @@ module PulpDebClient
|
|
67
69
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
68
70
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
69
71
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
72
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
70
73
|
|
71
74
|
# http body (model)
|
72
75
|
post_body = opts[:body]
|
@@ -106,7 +109,7 @@ module PulpDebClient
|
|
106
109
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
107
110
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
108
111
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
109
|
-
# @option opts [String] :ordering
|
112
|
+
# @option opts [Array<String>] :ordering Ordering
|
110
113
|
# @option opts [String] :origin Filter results where origin matches value
|
111
114
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
112
115
|
# @option opts [String] :package Filter results where package matches value
|
@@ -140,7 +143,7 @@ module PulpDebClient
|
|
140
143
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
141
144
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
142
145
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
143
|
-
# @option opts [String] :ordering
|
146
|
+
# @option opts [Array<String>] :ordering Ordering
|
144
147
|
# @option opts [String] :origin Filter results where origin matches value
|
145
148
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
146
149
|
# @option opts [String] :package Filter results where package matches value
|
@@ -172,6 +175,10 @@ module PulpDebClient
|
|
172
175
|
if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
|
173
176
|
fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
|
174
177
|
end
|
178
|
+
allowable_values = ["-_artifacts", "-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-content_ptr", "-contentartifact", "-custom_fields", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-group_roles", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-repositories", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "content_ptr", "contentartifact", "custom_fields", "depends", "description", "description_md5", "enhances", "essential", "group_roles", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "repositories", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
|
179
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
180
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
181
|
+
end
|
175
182
|
# resource path
|
176
183
|
local_var_path = '/pulp/api/v3/content/deb/installer_packages/'
|
177
184
|
|
@@ -187,7 +194,7 @@ module PulpDebClient
|
|
187
194
|
query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
|
188
195
|
query_params[:'multi_arch'] = opts[:'multi_arch'] if !opts[:'multi_arch'].nil?
|
189
196
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
190
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
197
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
191
198
|
query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
|
192
199
|
query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
|
193
200
|
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
@@ -90,7 +90,7 @@ module PulpDebClient
|
|
90
90
|
# @option opts [String] :component Filter results where component matches value
|
91
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
92
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
93
|
-
# @option opts [String] :ordering
|
93
|
+
# @option opts [Array<String>] :ordering Ordering
|
94
94
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
95
95
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
96
96
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -111,7 +111,7 @@ module PulpDebClient
|
|
111
111
|
# @option opts [String] :component Filter results where component matches value
|
112
112
|
# @option opts [Integer] :limit Number of results to return per page.
|
113
113
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
114
|
-
# @option opts [String] :ordering
|
114
|
+
# @option opts [Array<String>] :ordering Ordering
|
115
115
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
116
116
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
117
117
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -124,6 +124,10 @@ module PulpDebClient
|
|
124
124
|
if @api_client.config.debugging
|
125
125
|
@api_client.config.logger.debug 'Calling API: ContentPackageIndicesApi.list ...'
|
126
126
|
end
|
127
|
+
allowable_values = ["-_artifacts", "-architecture", "-artifact_set_sha256", "-component", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-release", "-repositories", "-sha256", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "artifact_set_sha256", "component", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "release", "repositories", "sha256", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
128
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
129
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
130
|
+
end
|
127
131
|
# resource path
|
128
132
|
local_var_path = '/pulp/api/v3/content/deb/package_indices/'
|
129
133
|
|
@@ -133,7 +137,7 @@ module PulpDebClient
|
|
133
137
|
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
134
138
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
135
139
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
136
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
140
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
137
141
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
138
142
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
139
143
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -88,7 +88,7 @@ module PulpDebClient
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @option opts [Integer] :limit Number of results to return per page.
|
90
90
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
91
|
-
# @option opts [String] :ordering
|
91
|
+
# @option opts [Array<String>] :ordering Ordering
|
92
92
|
# @option opts [String] :package Filter results where package matches value
|
93
93
|
# @option opts [String] :release_component Filter results where release_component matches value
|
94
94
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -107,7 +107,7 @@ module PulpDebClient
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
108
|
# @option opts [Integer] :limit Number of results to return per page.
|
109
109
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
110
|
-
# @option opts [String] :ordering
|
110
|
+
# @option opts [Array<String>] :ordering Ordering
|
111
111
|
# @option opts [String] :package Filter results where package matches value
|
112
112
|
# @option opts [String] :release_component Filter results where release_component matches value
|
113
113
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
@@ -120,6 +120,10 @@ module PulpDebClient
|
|
120
120
|
if @api_client.config.debugging
|
121
121
|
@api_client.config.logger.debug 'Calling API: ContentPackageReleaseComponentsApi.list ...'
|
122
122
|
end
|
123
|
+
allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-package", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release_component", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "package", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release_component", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
124
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
125
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
126
|
+
end
|
123
127
|
# resource path
|
124
128
|
local_var_path = '/pulp/api/v3/content/deb/package_release_components/'
|
125
129
|
|
@@ -127,7 +131,7 @@ module PulpDebClient
|
|
127
131
|
query_params = opts[:query_params] || {}
|
128
132
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
129
133
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
130
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
134
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
131
135
|
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
132
136
|
query_params[:'release_component'] = opts[:'release_component'] if !opts[:'release_component'].nil?
|
133
137
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
@@ -26,6 +26,7 @@ module PulpDebClient
|
|
26
26
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
27
27
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
28
28
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
29
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
29
30
|
# @return [AsyncOperationResponse]
|
30
31
|
def create(opts = {})
|
31
32
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -39,6 +40,7 @@ module PulpDebClient
|
|
39
40
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
40
41
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
41
42
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
42
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
43
45
|
def create_with_http_info(opts = {})
|
44
46
|
if @api_client.config.debugging
|
@@ -67,6 +69,7 @@ module PulpDebClient
|
|
67
69
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
68
70
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
69
71
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
72
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
70
73
|
|
71
74
|
# http body (model)
|
72
75
|
post_body = opts[:body]
|
@@ -106,7 +109,7 @@ module PulpDebClient
|
|
106
109
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
107
110
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
108
111
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
109
|
-
# @option opts [String] :ordering
|
112
|
+
# @option opts [Array<String>] :ordering Ordering
|
110
113
|
# @option opts [String] :origin Filter results where origin matches value
|
111
114
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
112
115
|
# @option opts [String] :package Filter results where package matches value
|
@@ -141,7 +144,7 @@ module PulpDebClient
|
|
141
144
|
# @option opts [String] :maintainer Filter results where maintainer matches value
|
142
145
|
# @option opts [String] :multi_arch Filter results where multi_arch matches value
|
143
146
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
144
|
-
# @option opts [String] :ordering
|
147
|
+
# @option opts [Array<String>] :ordering Ordering
|
145
148
|
# @option opts [String] :origin Filter results where origin matches value
|
146
149
|
# @option opts [String] :original_maintainer Filter results where original_maintainer matches value
|
147
150
|
# @option opts [String] :package Filter results where package matches value
|
@@ -174,6 +177,10 @@ module PulpDebClient
|
|
174
177
|
if @api_client.config.client_side_validation && opts[:'multi_arch'] && !allowable_values.include?(opts[:'multi_arch'])
|
175
178
|
fail ArgumentError, "invalid value for \"multi_arch\", must be one of #{allowable_values}"
|
176
179
|
end
|
180
|
+
allowable_values = ["-_artifacts", "-architecture", "-auto_built_package", "-breaks", "-bugs", "-build_essential", "-built_using", "-conflicts", "-content_ptr", "-contentartifact", "-custom_fields", "-deb_packagereleasecomponent", "-depends", "-description", "-description_md5", "-enhances", "-essential", "-group_roles", "-homepage", "-installed_size", "-maintainer", "-multi_arch", "-origin", "-original_maintainer", "-package", "-pk", "-pre_depends", "-priority", "-provides", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-recommends", "-relative_path", "-replaces", "-repositories", "-section", "-sha256", "-source", "-suggests", "-tag", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "architecture", "auto_built_package", "breaks", "bugs", "build_essential", "built_using", "conflicts", "content_ptr", "contentartifact", "custom_fields", "deb_packagereleasecomponent", "depends", "description", "description_md5", "enhances", "essential", "group_roles", "homepage", "installed_size", "maintainer", "multi_arch", "origin", "original_maintainer", "package", "pk", "pre_depends", "priority", "provides", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "recommends", "relative_path", "replaces", "repositories", "section", "sha256", "source", "suggests", "tag", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
|
181
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
182
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
183
|
+
end
|
177
184
|
# resource path
|
178
185
|
local_var_path = '/pulp/api/v3/content/deb/packages/'
|
179
186
|
|
@@ -189,7 +196,7 @@ module PulpDebClient
|
|
189
196
|
query_params[:'maintainer'] = opts[:'maintainer'] if !opts[:'maintainer'].nil?
|
190
197
|
query_params[:'multi_arch'] = opts[:'multi_arch'] if !opts[:'multi_arch'].nil?
|
191
198
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
192
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
199
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
193
200
|
query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
|
194
201
|
query_params[:'original_maintainer'] = opts[:'original_maintainer'] if !opts[:'original_maintainer'].nil?
|
195
202
|
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
@@ -89,7 +89,7 @@ module PulpDebClient
|
|
89
89
|
# @option opts [String] :architecture Filter results where architecture matches value
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
92
|
-
# @option opts [String] :ordering
|
92
|
+
# @option opts [Array<String>] :ordering Ordering
|
93
93
|
# @option opts [String] :release Filter results where release matches value
|
94
94
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
95
95
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -108,7 +108,7 @@ module PulpDebClient
|
|
108
108
|
# @option opts [String] :architecture Filter results where architecture matches value
|
109
109
|
# @option opts [Integer] :limit Number of results to return per page.
|
110
110
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
111
|
-
# @option opts [String] :ordering
|
111
|
+
# @option opts [Array<String>] :ordering Ordering
|
112
112
|
# @option opts [String] :release Filter results where release matches value
|
113
113
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
114
114
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -120,6 +120,10 @@ module PulpDebClient
|
|
120
120
|
if @api_client.config.debugging
|
121
121
|
@api_client.config.logger.debug 'Calling API: ContentReleaseArchitecturesApi.list ...'
|
122
122
|
end
|
123
|
+
allowable_values = ["-_artifacts", "-architecture", "-content_ptr", "-contentartifact", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architecture", "content_ptr", "contentartifact", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
124
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
125
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
126
|
+
end
|
123
127
|
# resource path
|
124
128
|
local_var_path = '/pulp/api/v3/content/deb/release_architectures/'
|
125
129
|
|
@@ -128,7 +132,7 @@ module PulpDebClient
|
|
128
132
|
query_params[:'architecture'] = opts[:'architecture'] if !opts[:'architecture'].nil?
|
129
133
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
130
134
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
131
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
135
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
132
136
|
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
133
137
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
134
138
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -89,7 +89,7 @@ module PulpDebClient
|
|
89
89
|
# @option opts [String] :component Filter results where component matches value
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
92
|
-
# @option opts [String] :ordering
|
92
|
+
# @option opts [Array<String>] :ordering Ordering
|
93
93
|
# @option opts [String] :release Filter results where release matches value
|
94
94
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
95
95
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -108,7 +108,7 @@ module PulpDebClient
|
|
108
108
|
# @option opts [String] :component Filter results where component matches value
|
109
109
|
# @option opts [Integer] :limit Number of results to return per page.
|
110
110
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
111
|
-
# @option opts [String] :ordering
|
111
|
+
# @option opts [Array<String>] :ordering Ordering
|
112
112
|
# @option opts [String] :release Filter results where release matches value
|
113
113
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
114
114
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -120,6 +120,10 @@ module PulpDebClient
|
|
120
120
|
if @api_client.config.debugging
|
121
121
|
@api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.list ...'
|
122
122
|
end
|
123
|
+
allowable_values = ["-_artifacts", "-component", "-content_ptr", "-contentartifact", "-deb_packagereleasecomponent", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-release", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "component", "content_ptr", "contentartifact", "deb_packagereleasecomponent", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "release", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
124
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
125
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
126
|
+
end
|
123
127
|
# resource path
|
124
128
|
local_var_path = '/pulp/api/v3/content/deb/release_components/'
|
125
129
|
|
@@ -128,7 +132,7 @@ module PulpDebClient
|
|
128
132
|
query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
|
129
133
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
130
134
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
131
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
135
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
132
136
|
query_params[:'release'] = opts[:'release'] if !opts[:'release'].nil?
|
133
137
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
134
138
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -89,7 +89,7 @@ module PulpDebClient
|
|
89
89
|
# @option opts [String] :codename Filter results where codename matches value
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
91
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
92
|
-
# @option opts [String] :ordering
|
92
|
+
# @option opts [Array<String>] :ordering Ordering
|
93
93
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
94
94
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
95
95
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -110,7 +110,7 @@ module PulpDebClient
|
|
110
110
|
# @option opts [String] :codename Filter results where codename matches value
|
111
111
|
# @option opts [Integer] :limit Number of results to return per page.
|
112
112
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
113
|
-
# @option opts [String] :ordering
|
113
|
+
# @option opts [Array<String>] :ordering Ordering
|
114
114
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
115
115
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
116
116
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
@@ -124,6 +124,10 @@ module PulpDebClient
|
|
124
124
|
if @api_client.config.debugging
|
125
125
|
@api_client.config.logger.debug 'Calling API: ContentReleaseFilesApi.list ...'
|
126
126
|
end
|
127
|
+
allowable_values = ["-_artifacts", "-architectures", "-artifact_set_sha256", "-codename", "-components", "-content_ptr", "-contentartifact", "-deb_installerfileindex", "-deb_packageindex", "-distribution", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-sha256", "-suite", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "architectures", "artifact_set_sha256", "codename", "components", "content_ptr", "contentartifact", "deb_installerfileindex", "deb_packageindex", "distribution", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "sha256", "suite", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
128
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
129
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
130
|
+
end
|
127
131
|
# resource path
|
128
132
|
local_var_path = '/pulp/api/v3/content/deb/release_files/'
|
129
133
|
|
@@ -132,7 +136,7 @@ module PulpDebClient
|
|
132
136
|
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
133
137
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
134
138
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
135
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
139
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
136
140
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
137
141
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
138
142
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -90,7 +90,7 @@ module PulpDebClient
|
|
90
90
|
# @option opts [String] :distribution Filter results where distribution matches value
|
91
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
92
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
93
|
-
# @option opts [String] :ordering
|
93
|
+
# @option opts [Array<String>] :ordering Ordering
|
94
94
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
95
95
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
96
96
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -110,7 +110,7 @@ module PulpDebClient
|
|
110
110
|
# @option opts [String] :distribution Filter results where distribution matches value
|
111
111
|
# @option opts [Integer] :limit Number of results to return per page.
|
112
112
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
113
|
-
# @option opts [String] :ordering
|
113
|
+
# @option opts [Array<String>] :ordering Ordering
|
114
114
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
115
115
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
116
116
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
@@ -122,6 +122,10 @@ module PulpDebClient
|
|
122
122
|
if @api_client.config.debugging
|
123
123
|
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
|
124
124
|
end
|
125
|
+
allowable_values = ["-_artifacts", "-codename", "-content_ptr", "-contentartifact", "-deb_releasearchitecture", "-deb_releasecomponent", "-distribution", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-suite", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "codename", "content_ptr", "contentartifact", "deb_releasearchitecture", "deb_releasecomponent", "distribution", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "suite", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
|
126
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
127
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
128
|
+
end
|
125
129
|
# resource path
|
126
130
|
local_var_path = '/pulp/api/v3/content/deb/releases/'
|
127
131
|
|
@@ -131,7 +135,7 @@ module PulpDebClient
|
|
131
135
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
132
136
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
133
137
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
134
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
138
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
135
139
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
136
140
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
137
141
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
@@ -159,7 +159,7 @@ module PulpDebClient
|
|
159
159
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
160
160
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
161
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
|
-
# @option opts [String] :ordering
|
162
|
+
# @option opts [Array<String>] :ordering Ordering
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
164
164
|
# @option opts [String] :fields A list of fields to include in the response.
|
165
165
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -183,7 +183,7 @@ module PulpDebClient
|
|
183
183
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
184
184
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
185
185
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
186
|
-
# @option opts [String] :ordering
|
186
|
+
# @option opts [Array<String>] :ordering Ordering
|
187
187
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
188
188
|
# @option opts [String] :fields A list of fields to include in the response.
|
189
189
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -192,6 +192,10 @@ module PulpDebClient
|
|
192
192
|
if @api_client.config.debugging
|
193
193
|
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.list ...'
|
194
194
|
end
|
195
|
+
allowable_values = ["-base_path", "-content_guard", "-deb_aptdistribution", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "deb_aptdistribution", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
|
196
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
197
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
198
|
+
end
|
195
199
|
# resource path
|
196
200
|
local_var_path = '/pulp/api/v3/distributions/deb/apt/'
|
197
201
|
|
@@ -208,7 +212,7 @@ module PulpDebClient
|
|
208
212
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
209
213
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
210
214
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
211
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
215
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
212
216
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
213
217
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
214
218
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
@@ -150,13 +150,14 @@ module PulpDebClient
|
|
150
150
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
152
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
-
# @option opts [String] :ordering
|
153
|
+
# @option opts [Array<String>] :ordering Ordering
|
154
154
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
155
155
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
156
156
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
157
157
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
158
158
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
|
+
# @option opts [String] :repository Repository referenced by HREF
|
160
161
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
161
162
|
# @option opts [String] :fields A list of fields to include in the response.
|
162
163
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -173,13 +174,14 @@ module PulpDebClient
|
|
173
174
|
# @option opts [String] :content__in Content Unit referenced by HREF
|
174
175
|
# @option opts [Integer] :limit Number of results to return per page.
|
175
176
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
|
-
# @option opts [String] :ordering
|
177
|
+
# @option opts [Array<String>] :ordering Ordering
|
177
178
|
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
178
179
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
179
180
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
180
181
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
181
182
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
182
183
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
184
|
+
# @option opts [String] :repository Repository referenced by HREF
|
183
185
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
184
186
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
187
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -188,6 +190,10 @@ module PulpDebClient
|
|
188
190
|
if @api_client.config.debugging
|
189
191
|
@api_client.config.logger.debug 'Calling API: PublicationsAptApi.list ...'
|
190
192
|
end
|
193
|
+
allowable_values = ["-complete", "-deb_aptpublication", "-deb_verbatimpublication", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-user_roles", "complete", "deb_aptpublication", "deb_verbatimpublication", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "user_roles"]
|
194
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
195
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
196
|
+
end
|
191
197
|
# resource path
|
192
198
|
local_var_path = '/pulp/api/v3/publications/deb/apt/'
|
193
199
|
|
@@ -197,13 +203,14 @@ module PulpDebClient
|
|
197
203
|
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
198
204
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
205
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
206
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
201
207
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
202
208
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
203
209
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
204
210
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
205
211
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
206
212
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
213
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
207
214
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
208
215
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
216
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|