pulp_deb_client 2.21.2 → 3.0.1
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 +15 -5
- data/docs/ContentGenericContentsApi.md +3 -1
- data/docs/ContentInstallerFileIndicesApi.md +3 -1
- data/docs/ContentInstallerPackagesApi.md +3 -1
- data/docs/ContentPackageIndicesApi.md +3 -1
- data/docs/ContentPackageReleaseComponentsApi.md +3 -1
- data/docs/ContentPackagesApi.md +7 -1
- data/docs/ContentReleaseArchitecturesApi.md +5 -7
- data/docs/ContentReleaseComponentsApi.md +7 -7
- data/docs/ContentReleaseFilesApi.md +3 -1
- data/docs/ContentReleasesApi.md +13 -3
- data/docs/DebAptPublication.md +4 -2
- data/docs/DebAptPublicationResponse.md +4 -2
- data/docs/DebAptRepository.md +7 -1
- data/docs/DebAptRepositoryResponse.md +7 -1
- data/docs/DebCopyApi.md +1 -1
- data/docs/DebRelease.md +9 -1
- data/docs/DebReleaseArchitecture.md +1 -5
- data/docs/DebReleaseArchitectureResponse.md +1 -5
- data/docs/DebReleaseComponent.md +1 -5
- data/docs/DebReleaseComponentResponse.md +1 -5
- data/docs/DebReleaseFile.md +3 -3
- data/docs/DebReleaseFileResponse.md +3 -3
- data/docs/DebReleaseResponse.md +9 -1
- data/docs/DistributionsAptApi.md +123 -1
- data/docs/PatcheddebAptRepository.md +7 -1
- data/docs/PublicationsAptApi.md +3 -1
- data/docs/PublicationsVerbatimApi.md +3 -1
- data/docs/RemotesAptApi.md +123 -1
- data/docs/RepositoriesAptApi.md +123 -1
- data/docs/RepositoriesAptVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +9 -0
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +6 -9
- data/lib/pulp_deb_client/api/content_release_components_api.rb +9 -9
- data/lib/pulp_deb_client/api/content_release_files_api.rb +3 -0
- data/lib/pulp_deb_client/api/content_releases_api.rb +18 -3
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/publications_apt_api.rb +3 -0
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +3 -0
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +155 -0
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +3 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
- data/lib/pulp_deb_client/models/deb_release.rb +104 -4
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
- data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
- data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
- data/lib/pulp_deb_client/models/set_label.rb +252 -0
- data/lib/pulp_deb_client/models/set_label_response.rb +243 -0
- data/lib/pulp_deb_client/models/unset_label.rb +242 -0
- data/lib/pulp_deb_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +4 -0
- data/spec/api/content_generic_contents_api_spec.rb +1 -0
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +1 -0
- data/spec/api/content_package_indices_api_spec.rb +1 -0
- data/spec/api/content_package_release_components_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +3 -0
- data/spec/api/content_release_architectures_api_spec.rb +2 -3
- data/spec/api/content_release_components_api_spec.rb +3 -3
- data/spec/api/content_release_files_api_spec.rb +1 -0
- data/spec/api/content_releases_api_spec.rb +6 -1
- data/spec/api/distributions_apt_api_spec.rb +31 -0
- data/spec/api/publications_apt_api_spec.rb +1 -0
- data/spec/api/publications_verbatim_api_spec.rb +1 -0
- data/spec/api/remotes_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_api_spec.rb +31 -0
- data/spec/api/repositories_apt_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_publication_spec.rb +6 -0
- data/spec/models/deb_apt_repository_response_spec.rb +18 -0
- data/spec/models/deb_apt_repository_spec.rb +18 -0
- data/spec/models/deb_release_architecture_response_spec.rb +0 -12
- data/spec/models/deb_release_architecture_spec.rb +0 -12
- data/spec/models/deb_release_component_response_spec.rb +0 -12
- data/spec/models/deb_release_component_spec.rb +0 -12
- data/spec/models/deb_release_response_spec.rb +24 -0
- data/spec/models/deb_release_spec.rb +24 -0
- data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +72 -56
|
@@ -92,6 +92,7 @@ module PulpDebClient
|
|
|
92
92
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
93
93
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
94
94
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
95
|
+
# @option opts [String] :q
|
|
95
96
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
|
96
97
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
97
98
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
@@ -115,6 +116,7 @@ module PulpDebClient
|
|
|
115
116
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `components` - Components * `-components` - Components (descending) * `architectures` - Architectures * `-architectures` - Architectures (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `sha256` - Sha256 * `-sha256` - Sha256 (descending) * `artifact_set_sha256` - Artifact set sha256 * `-artifact_set_sha256` - Artifact set sha256 (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
116
117
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
117
118
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
119
|
+
# @option opts [String] :q
|
|
118
120
|
# @option opts [String] :relative_path Filter results where relative_path matches value
|
|
119
121
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
120
122
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
@@ -143,6 +145,7 @@ module PulpDebClient
|
|
|
143
145
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
144
146
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
145
147
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
148
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
146
149
|
query_params[:'relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
|
147
150
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
148
151
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
@@ -88,15 +88,20 @@ module PulpDebClient
|
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @option opts [String] :codename Filter results where codename matches value
|
|
90
90
|
# @option opts [String] :distribution Filter results where distribution matches value
|
|
91
|
+
# @option opts [String] :label Filter results where label matches value
|
|
91
92
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
92
93
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
93
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
94
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
95
|
+
# @option opts [String] :origin Filter results where origin matches value
|
|
96
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
|
94
97
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
95
98
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
99
|
+
# @option opts [String] :q
|
|
96
100
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
97
101
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
98
102
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
99
103
|
# @option opts [String] :suite Filter results where suite matches value
|
|
104
|
+
# @option opts [String] :version Filter results where version matches value
|
|
100
105
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
101
106
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
102
107
|
# @return [PaginateddebReleaseResponseList]
|
|
@@ -110,15 +115,20 @@ module PulpDebClient
|
|
|
110
115
|
# @param [Hash] opts the optional parameters
|
|
111
116
|
# @option opts [String] :codename Filter results where codename matches value
|
|
112
117
|
# @option opts [String] :distribution Filter results where distribution matches value
|
|
118
|
+
# @option opts [String] :label Filter results where label matches value
|
|
113
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
114
120
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
115
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
121
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `codename` - Codename * `-codename` - Codename (descending) * `suite` - Suite * `-suite` - Suite (descending) * `distribution` - Distribution * `-distribution` - Distribution (descending) * `version` - Version * `-version` - Version (descending) * `origin` - Origin * `-origin` - Origin (descending) * `label` - Label * `-label` - Label (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
122
|
+
# @option opts [String] :origin Filter results where origin matches value
|
|
123
|
+
# @option opts [String] :package Must be a comma-separated string: \"package_href,repository_or_repository_version_href\" package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
|
|
116
124
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
117
125
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
126
|
+
# @option opts [String] :q
|
|
118
127
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
119
128
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
120
129
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
121
130
|
# @option opts [String] :suite Filter results where suite matches value
|
|
131
|
+
# @option opts [String] :version Filter results where version matches value
|
|
122
132
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
123
133
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
124
134
|
# @return [Array<(PaginateddebReleaseResponseList, Integer, Hash)>] PaginateddebReleaseResponseList data, response status code and response headers
|
|
@@ -126,7 +136,7 @@ module PulpDebClient
|
|
|
126
136
|
if @api_client.config.debugging
|
|
127
137
|
@api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
|
|
128
138
|
end
|
|
129
|
-
allowable_values = ["-codename", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "codename", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id"]
|
|
139
|
+
allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
|
|
130
140
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
131
141
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
132
142
|
end
|
|
@@ -137,15 +147,20 @@ module PulpDebClient
|
|
|
137
147
|
query_params = opts[:query_params] || {}
|
|
138
148
|
query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
|
|
139
149
|
query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
|
150
|
+
query_params[:'label'] = opts[:'label'] if !opts[:'label'].nil?
|
|
140
151
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
141
152
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
142
153
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
154
|
+
query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
|
|
155
|
+
query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
|
|
143
156
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
144
157
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
158
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
145
159
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
146
160
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
147
161
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
148
162
|
query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
|
|
163
|
+
query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
|
|
149
164
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
150
165
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
151
166
|
|
|
@@ -156,13 +156,18 @@ module PulpDebClient
|
|
|
156
156
|
# @option opts [String] :name Filter results where name matches value
|
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
159
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
159
160
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
161
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
162
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
163
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
160
164
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
161
165
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
162
166
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
163
167
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
164
168
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
165
169
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
170
|
+
# @option opts [String] :q
|
|
166
171
|
# @option opts [String] :repository Filter results where repository matches value
|
|
167
172
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
168
173
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -185,13 +190,18 @@ module PulpDebClient
|
|
|
185
190
|
# @option opts [String] :name Filter results where name matches value
|
|
186
191
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
187
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
193
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
188
194
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
195
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
196
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
197
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
189
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
190
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
191
200
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
192
201
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
193
202
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
194
203
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
204
|
+
# @option opts [String] :q
|
|
195
205
|
# @option opts [String] :repository Filter results where repository matches value
|
|
196
206
|
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
|
197
207
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
@@ -219,13 +229,18 @@ module PulpDebClient
|
|
|
219
229
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
220
230
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
221
231
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
232
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
|
222
233
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
234
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
|
235
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
|
236
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
|
223
237
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
224
238
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
225
239
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
226
240
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
227
241
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
228
242
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
243
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
229
244
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
230
245
|
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
|
231
246
|
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
|
@@ -403,6 +418,146 @@ module PulpDebClient
|
|
|
403
418
|
return data, status_code, headers
|
|
404
419
|
end
|
|
405
420
|
|
|
421
|
+
# Set a label
|
|
422
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
423
|
+
# @param deb_apt_distribution_href [String]
|
|
424
|
+
# @param set_label [SetLabel]
|
|
425
|
+
# @param [Hash] opts the optional parameters
|
|
426
|
+
# @return [SetLabelResponse]
|
|
427
|
+
def set_label(deb_apt_distribution_href, set_label, opts = {})
|
|
428
|
+
data, _status_code, _headers = set_label_with_http_info(deb_apt_distribution_href, set_label, opts)
|
|
429
|
+
data
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Set a label
|
|
433
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
434
|
+
# @param deb_apt_distribution_href [String]
|
|
435
|
+
# @param set_label [SetLabel]
|
|
436
|
+
# @param [Hash] opts the optional parameters
|
|
437
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
|
438
|
+
def set_label_with_http_info(deb_apt_distribution_href, set_label, opts = {})
|
|
439
|
+
if @api_client.config.debugging
|
|
440
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.set_label ...'
|
|
441
|
+
end
|
|
442
|
+
# verify the required parameter 'deb_apt_distribution_href' is set
|
|
443
|
+
if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
|
|
444
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.set_label"
|
|
445
|
+
end
|
|
446
|
+
# verify the required parameter 'set_label' is set
|
|
447
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling DistributionsAptApi.set_label"
|
|
449
|
+
end
|
|
450
|
+
# resource path
|
|
451
|
+
local_var_path = '{deb_apt_distribution_href}set_label/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
|
|
452
|
+
|
|
453
|
+
# query parameters
|
|
454
|
+
query_params = opts[:query_params] || {}
|
|
455
|
+
|
|
456
|
+
# header parameters
|
|
457
|
+
header_params = opts[:header_params] || {}
|
|
458
|
+
# HTTP header 'Accept' (if needed)
|
|
459
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
460
|
+
# HTTP header 'Content-Type'
|
|
461
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
462
|
+
|
|
463
|
+
# form parameters
|
|
464
|
+
form_params = opts[:form_params] || {}
|
|
465
|
+
|
|
466
|
+
# http body (model)
|
|
467
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
|
468
|
+
|
|
469
|
+
# return_type
|
|
470
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
|
471
|
+
|
|
472
|
+
# auth_names
|
|
473
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
474
|
+
|
|
475
|
+
new_options = opts.merge(
|
|
476
|
+
:header_params => header_params,
|
|
477
|
+
:query_params => query_params,
|
|
478
|
+
:form_params => form_params,
|
|
479
|
+
:body => post_body,
|
|
480
|
+
:auth_names => auth_names,
|
|
481
|
+
:return_type => return_type
|
|
482
|
+
)
|
|
483
|
+
|
|
484
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
485
|
+
if @api_client.config.debugging
|
|
486
|
+
@api_client.config.logger.debug "API called: DistributionsAptApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
487
|
+
end
|
|
488
|
+
return data, status_code, headers
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Unset a label
|
|
492
|
+
# Unset a single pulp_label on the object.
|
|
493
|
+
# @param deb_apt_distribution_href [String]
|
|
494
|
+
# @param unset_label [UnsetLabel]
|
|
495
|
+
# @param [Hash] opts the optional parameters
|
|
496
|
+
# @return [UnsetLabelResponse]
|
|
497
|
+
def unset_label(deb_apt_distribution_href, unset_label, opts = {})
|
|
498
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_apt_distribution_href, unset_label, opts)
|
|
499
|
+
data
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# Unset a label
|
|
503
|
+
# Unset a single pulp_label on the object.
|
|
504
|
+
# @param deb_apt_distribution_href [String]
|
|
505
|
+
# @param unset_label [UnsetLabel]
|
|
506
|
+
# @param [Hash] opts the optional parameters
|
|
507
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
|
508
|
+
def unset_label_with_http_info(deb_apt_distribution_href, unset_label, opts = {})
|
|
509
|
+
if @api_client.config.debugging
|
|
510
|
+
@api_client.config.logger.debug 'Calling API: DistributionsAptApi.unset_label ...'
|
|
511
|
+
end
|
|
512
|
+
# verify the required parameter 'deb_apt_distribution_href' is set
|
|
513
|
+
if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
|
|
514
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.unset_label"
|
|
515
|
+
end
|
|
516
|
+
# verify the required parameter 'unset_label' is set
|
|
517
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
|
518
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling DistributionsAptApi.unset_label"
|
|
519
|
+
end
|
|
520
|
+
# resource path
|
|
521
|
+
local_var_path = '{deb_apt_distribution_href}unset_label/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
|
|
522
|
+
|
|
523
|
+
# query parameters
|
|
524
|
+
query_params = opts[:query_params] || {}
|
|
525
|
+
|
|
526
|
+
# header parameters
|
|
527
|
+
header_params = opts[:header_params] || {}
|
|
528
|
+
# HTTP header 'Accept' (if needed)
|
|
529
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
530
|
+
# HTTP header 'Content-Type'
|
|
531
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
532
|
+
|
|
533
|
+
# form parameters
|
|
534
|
+
form_params = opts[:form_params] || {}
|
|
535
|
+
|
|
536
|
+
# http body (model)
|
|
537
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
|
538
|
+
|
|
539
|
+
# return_type
|
|
540
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
|
541
|
+
|
|
542
|
+
# auth_names
|
|
543
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
544
|
+
|
|
545
|
+
new_options = opts.merge(
|
|
546
|
+
:header_params => header_params,
|
|
547
|
+
:query_params => query_params,
|
|
548
|
+
:form_params => form_params,
|
|
549
|
+
:body => post_body,
|
|
550
|
+
:auth_names => auth_names,
|
|
551
|
+
:return_type => return_type
|
|
552
|
+
)
|
|
553
|
+
|
|
554
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
555
|
+
if @api_client.config.debugging
|
|
556
|
+
@api_client.config.logger.debug "API called: DistributionsAptApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
557
|
+
end
|
|
558
|
+
return data, status_code, headers
|
|
559
|
+
end
|
|
560
|
+
|
|
406
561
|
# Update an apt distribution
|
|
407
562
|
# Trigger an asynchronous update task
|
|
408
563
|
# @param deb_apt_distribution_href [String]
|
|
@@ -159,6 +159,7 @@ module PulpDebClient
|
|
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
160
160
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
161
161
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
162
|
+
# @option opts [String] :q
|
|
162
163
|
# @option opts [String] :repository Repository referenced by HREF
|
|
163
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
164
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -185,6 +186,7 @@ module PulpDebClient
|
|
|
185
186
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
186
187
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
187
188
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
189
|
+
# @option opts [String] :q
|
|
188
190
|
# @option opts [String] :repository Repository referenced by HREF
|
|
189
191
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
190
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -216,6 +218,7 @@ module PulpDebClient
|
|
|
216
218
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
|
217
219
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
218
220
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
221
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
219
222
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
220
223
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
221
224
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
@@ -159,6 +159,7 @@ module PulpDebClient
|
|
|
159
159
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
160
160
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
161
161
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
162
|
+
# @option opts [String] :q
|
|
162
163
|
# @option opts [String] :repository Repository referenced by HREF
|
|
163
164
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
164
165
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -185,6 +186,7 @@ module PulpDebClient
|
|
|
185
186
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
186
187
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
187
188
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
189
|
+
# @option opts [String] :q
|
|
188
190
|
# @option opts [String] :repository Repository referenced by HREF
|
|
189
191
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
190
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -216,6 +218,7 @@ module PulpDebClient
|
|
|
216
218
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
|
217
219
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
218
220
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
221
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
219
222
|
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
220
223
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
221
224
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
@@ -152,7 +152,11 @@ module PulpDebClient
|
|
|
152
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
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
155
156
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
157
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
158
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
159
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
156
160
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
157
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
158
162
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -165,6 +169,7 @@ module PulpDebClient
|
|
|
165
169
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
166
170
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
167
171
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
172
|
+
# @option opts [String] :q
|
|
168
173
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
169
174
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
170
175
|
# @return [PaginateddebAptRemoteResponseList]
|
|
@@ -180,7 +185,11 @@ module PulpDebClient
|
|
|
180
185
|
# @option opts [String] :name Filter results where name matches value
|
|
181
186
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
182
187
|
# @option opts [String] :name__icontains Filter results where name contains value
|
|
188
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
183
189
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
190
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
191
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
192
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
184
193
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
185
194
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
186
195
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
@@ -193,6 +202,7 @@ module PulpDebClient
|
|
|
193
202
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
194
203
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
195
204
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
205
|
+
# @option opts [String] :q
|
|
196
206
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
197
207
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
198
208
|
# @return [Array<(PaginateddebAptRemoteResponseList, Integer, Hash)>] PaginateddebAptRemoteResponseList data, response status code and response headers
|
|
@@ -213,7 +223,11 @@ module PulpDebClient
|
|
|
213
223
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
214
224
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
215
225
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
226
|
+
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
|
216
227
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
228
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
|
229
|
+
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
|
230
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
|
217
231
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
218
232
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
219
233
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
@@ -226,6 +240,7 @@ module PulpDebClient
|
|
|
226
240
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
|
227
241
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
|
228
242
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
|
243
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
229
244
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
230
245
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
231
246
|
|
|
@@ -400,6 +415,146 @@ module PulpDebClient
|
|
|
400
415
|
return data, status_code, headers
|
|
401
416
|
end
|
|
402
417
|
|
|
418
|
+
# Set a label
|
|
419
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
420
|
+
# @param deb_apt_remote_href [String]
|
|
421
|
+
# @param set_label [SetLabel]
|
|
422
|
+
# @param [Hash] opts the optional parameters
|
|
423
|
+
# @return [SetLabelResponse]
|
|
424
|
+
def set_label(deb_apt_remote_href, set_label, opts = {})
|
|
425
|
+
data, _status_code, _headers = set_label_with_http_info(deb_apt_remote_href, set_label, opts)
|
|
426
|
+
data
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Set a label
|
|
430
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
431
|
+
# @param deb_apt_remote_href [String]
|
|
432
|
+
# @param set_label [SetLabel]
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
|
435
|
+
def set_label_with_http_info(deb_apt_remote_href, set_label, opts = {})
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: RemotesAptApi.set_label ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'deb_apt_remote_href' is set
|
|
440
|
+
if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.set_label"
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'set_label' is set
|
|
444
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesAptApi.set_label"
|
|
446
|
+
end
|
|
447
|
+
# resource path
|
|
448
|
+
local_var_path = '{deb_apt_remote_href}set_label/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
|
|
449
|
+
|
|
450
|
+
# query parameters
|
|
451
|
+
query_params = opts[:query_params] || {}
|
|
452
|
+
|
|
453
|
+
# header parameters
|
|
454
|
+
header_params = opts[:header_params] || {}
|
|
455
|
+
# HTTP header 'Accept' (if needed)
|
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
457
|
+
# HTTP header 'Content-Type'
|
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
459
|
+
|
|
460
|
+
# form parameters
|
|
461
|
+
form_params = opts[:form_params] || {}
|
|
462
|
+
|
|
463
|
+
# http body (model)
|
|
464
|
+
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
|
465
|
+
|
|
466
|
+
# return_type
|
|
467
|
+
return_type = opts[:return_type] || 'SetLabelResponse'
|
|
468
|
+
|
|
469
|
+
# auth_names
|
|
470
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
471
|
+
|
|
472
|
+
new_options = opts.merge(
|
|
473
|
+
:header_params => header_params,
|
|
474
|
+
:query_params => query_params,
|
|
475
|
+
:form_params => form_params,
|
|
476
|
+
:body => post_body,
|
|
477
|
+
:auth_names => auth_names,
|
|
478
|
+
:return_type => return_type
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
482
|
+
if @api_client.config.debugging
|
|
483
|
+
@api_client.config.logger.debug "API called: RemotesAptApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
484
|
+
end
|
|
485
|
+
return data, status_code, headers
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Unset a label
|
|
489
|
+
# Unset a single pulp_label on the object.
|
|
490
|
+
# @param deb_apt_remote_href [String]
|
|
491
|
+
# @param unset_label [UnsetLabel]
|
|
492
|
+
# @param [Hash] opts the optional parameters
|
|
493
|
+
# @return [UnsetLabelResponse]
|
|
494
|
+
def unset_label(deb_apt_remote_href, unset_label, opts = {})
|
|
495
|
+
data, _status_code, _headers = unset_label_with_http_info(deb_apt_remote_href, unset_label, opts)
|
|
496
|
+
data
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# Unset a label
|
|
500
|
+
# Unset a single pulp_label on the object.
|
|
501
|
+
# @param deb_apt_remote_href [String]
|
|
502
|
+
# @param unset_label [UnsetLabel]
|
|
503
|
+
# @param [Hash] opts the optional parameters
|
|
504
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
|
505
|
+
def unset_label_with_http_info(deb_apt_remote_href, unset_label, opts = {})
|
|
506
|
+
if @api_client.config.debugging
|
|
507
|
+
@api_client.config.logger.debug 'Calling API: RemotesAptApi.unset_label ...'
|
|
508
|
+
end
|
|
509
|
+
# verify the required parameter 'deb_apt_remote_href' is set
|
|
510
|
+
if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
|
|
511
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.unset_label"
|
|
512
|
+
end
|
|
513
|
+
# verify the required parameter 'unset_label' is set
|
|
514
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
|
515
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesAptApi.unset_label"
|
|
516
|
+
end
|
|
517
|
+
# resource path
|
|
518
|
+
local_var_path = '{deb_apt_remote_href}unset_label/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
|
|
519
|
+
|
|
520
|
+
# query parameters
|
|
521
|
+
query_params = opts[:query_params] || {}
|
|
522
|
+
|
|
523
|
+
# header parameters
|
|
524
|
+
header_params = opts[:header_params] || {}
|
|
525
|
+
# HTTP header 'Accept' (if needed)
|
|
526
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
527
|
+
# HTTP header 'Content-Type'
|
|
528
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
529
|
+
|
|
530
|
+
# form parameters
|
|
531
|
+
form_params = opts[:form_params] || {}
|
|
532
|
+
|
|
533
|
+
# http body (model)
|
|
534
|
+
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
|
535
|
+
|
|
536
|
+
# return_type
|
|
537
|
+
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
|
538
|
+
|
|
539
|
+
# auth_names
|
|
540
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
541
|
+
|
|
542
|
+
new_options = opts.merge(
|
|
543
|
+
:header_params => header_params,
|
|
544
|
+
:query_params => query_params,
|
|
545
|
+
:form_params => form_params,
|
|
546
|
+
:body => post_body,
|
|
547
|
+
:auth_names => auth_names,
|
|
548
|
+
:return_type => return_type
|
|
549
|
+
)
|
|
550
|
+
|
|
551
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
552
|
+
if @api_client.config.debugging
|
|
553
|
+
@api_client.config.logger.debug "API called: RemotesAptApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
554
|
+
end
|
|
555
|
+
return data, status_code, headers
|
|
556
|
+
end
|
|
557
|
+
|
|
403
558
|
# Update an apt remote
|
|
404
559
|
# Trigger an asynchronous update task
|
|
405
560
|
# @param deb_apt_remote_href [String]
|