pulp_rpm_client 3.28.0 → 3.29.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 +27 -4
- data/docs/ContentAdvisoriesApi.md +152 -2
- data/docs/ContentDistributionTreesApi.md +148 -0
- data/docs/ContentModulemdDefaultsApi.md +150 -2
- data/docs/ContentModulemdObsoletesApi.md +148 -0
- data/docs/ContentModulemdsApi.md +150 -2
- data/docs/ContentPackagecategoriesApi.md +148 -0
- data/docs/ContentPackageenvironmentsApi.md +148 -0
- data/docs/ContentPackagegroupsApi.md +148 -0
- data/docs/ContentPackagelangpacksApi.md +148 -0
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentRepoMetadataFilesApi.md +148 -0
- data/docs/LayoutEnum.md +15 -0
- data/docs/PatchedrpmRpmRepository.md +3 -1
- data/docs/RpmModulemd.md +2 -0
- data/docs/RpmModulemdDefaults.md +2 -0
- data/docs/RpmModulemdDefaultsResponse.md +2 -0
- data/docs/RpmModulemdObsolete.md +2 -0
- data/docs/RpmModulemdObsoleteResponse.md +2 -0
- data/docs/RpmModulemdResponse.md +2 -0
- data/docs/RpmPackageCategoryResponse.md +2 -0
- data/docs/RpmPackageEnvironmentResponse.md +2 -0
- data/docs/RpmPackageGroupResponse.md +2 -0
- data/docs/RpmPackageLangpacksResponse.md +2 -0
- data/docs/RpmPackageResponse.md +2 -0
- data/docs/RpmRepoMetadataFileResponse.md +2 -0
- data/docs/RpmRpmPublication.md +3 -1
- data/docs/RpmRpmPublicationResponse.md +3 -1
- data/docs/RpmRpmRepository.md +3 -1
- data/docs/RpmRpmRepositoryResponse.md +3 -1
- data/docs/RpmUpdateRecordResponse.md +2 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
- data/lib/pulp_rpm_client/models/layout_enum.rb +40 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +16 -5
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +15 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +15 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +16 -5
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +16 -5
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
- data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
- data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +1 -0
- data/spec/api/content_advisories_api_spec.rb +29 -1
- data/spec/api/content_distribution_trees_api_spec.rb +27 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
- data/spec/api/content_modulemds_api_spec.rb +28 -1
- data/spec/api/content_packagecategories_api_spec.rb +27 -0
- data/spec/api/content_packageenvironments_api_spec.rb +27 -0
- data/spec/api/content_packagegroups_api_spec.rb +27 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
- data/spec/models/layout_enum_spec.rb +30 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_package_category_response_spec.rb +6 -0
- data/spec/models/rpm_package_environment_response_spec.rb +6 -0
- data/spec/models/rpm_package_group_response_spec.rb +6 -0
- data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
- data/spec/models/rpm_package_response_spec.rb +6 -0
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_publication_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_publication_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_spec.rb +6 -0
- data/spec/models/rpm_update_record_response_spec.rb +6 -0
- metadata +83 -79
@@ -18,6 +18,7 @@
|
|
18
18
|
| **sqlite_metadata** | **Boolean** | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release | [optional][readonly][default to false] |
|
19
19
|
| **repo_config** | **Object** | A JSON document describing config.repo file | [optional] |
|
20
20
|
| **compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
|
21
|
+
| **layout** | [**LayoutEnum**](LayoutEnum.md) | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
|
21
22
|
|
22
23
|
## Example
|
23
24
|
|
@@ -38,7 +39,8 @@ instance = PulpRpmClient::RpmRpmPublicationResponse.new(
|
|
38
39
|
repo_gpgcheck: null,
|
39
40
|
sqlite_metadata: null,
|
40
41
|
repo_config: null,
|
41
|
-
compression_type: null
|
42
|
+
compression_type: null,
|
43
|
+
layout: null
|
42
44
|
)
|
43
45
|
```
|
44
46
|
|
data/docs/RpmRpmRepository.md
CHANGED
@@ -21,6 +21,7 @@
|
|
21
21
|
| **repo_gpgcheck** | **Integer** | DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata. | [optional] |
|
22
22
|
| **repo_config** | **Object** | A JSON document describing config.repo file | [optional] |
|
23
23
|
| **compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
|
24
|
+
| **layout** | [**LayoutEnum**](LayoutEnum.md) | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
|
24
25
|
|
25
26
|
## Example
|
26
27
|
|
@@ -44,7 +45,8 @@ instance = PulpRpmClient::RpmRpmRepository.new(
|
|
44
45
|
gpgcheck: null,
|
45
46
|
repo_gpgcheck: null,
|
46
47
|
repo_config: null,
|
47
|
-
compression_type: null
|
48
|
+
compression_type: null,
|
49
|
+
layout: null
|
48
50
|
)
|
49
51
|
```
|
50
52
|
|
@@ -28,6 +28,7 @@
|
|
28
28
|
| **sqlite_metadata** | **Boolean** | REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release | [optional][readonly][default to false] |
|
29
29
|
| **repo_config** | **Object** | A JSON document describing config.repo file | [optional] |
|
30
30
|
| **compression_type** | [**CompressionTypeEnum**](CompressionTypeEnum.md) | The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz | [optional] |
|
31
|
+
| **layout** | [**LayoutEnum**](LayoutEnum.md) | How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat | [optional] |
|
31
32
|
|
32
33
|
## Example
|
33
34
|
|
@@ -58,7 +59,8 @@ instance = PulpRpmClient::RpmRpmRepositoryResponse.new(
|
|
58
59
|
repo_gpgcheck: null,
|
59
60
|
sqlite_metadata: null,
|
60
61
|
repo_config: null,
|
61
|
-
compression_type: null
|
62
|
+
compression_type: null,
|
63
|
+
layout: null
|
62
64
|
)
|
63
65
|
```
|
64
66
|
|
@@ -8,6 +8,7 @@
|
|
8
8
|
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
9
9
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
10
10
|
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
11
|
+
| **pulp_labels** | **Hash<String, String>** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
11
12
|
| **id** | **String** | Update id (short update name, e.g. RHEA-2013:1777) | [optional][readonly] |
|
12
13
|
| **updated_date** | **String** | Date when the update was updated (e.g. '2013-12-02 00:00:00') | [optional][readonly] |
|
13
14
|
| **description** | **String** | Update description | [optional][readonly] |
|
@@ -37,6 +38,7 @@ instance = PulpRpmClient::RpmUpdateRecordResponse.new(
|
|
37
38
|
prn: null,
|
38
39
|
pulp_created: null,
|
39
40
|
pulp_last_updated: null,
|
41
|
+
pulp_labels: null,
|
40
42
|
id: null,
|
41
43
|
updated_date: null,
|
42
44
|
description: null,
|
@@ -23,6 +23,7 @@ module PulpRpmClient
|
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
26
27
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
27
28
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
28
29
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
@@ -36,6 +37,7 @@ module PulpRpmClient
|
|
36
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
39
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
|
+
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
39
41
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
40
42
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
41
43
|
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
@@ -67,6 +69,7 @@ module PulpRpmClient
|
|
67
69
|
# form parameters
|
68
70
|
form_params = opts[:form_params] || {}
|
69
71
|
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
72
|
+
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
70
73
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
71
74
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
72
75
|
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
@@ -104,11 +107,12 @@ module PulpRpmClient
|
|
104
107
|
# @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
|
105
108
|
# @option opts [Integer] :limit Number of results to return per page.
|
106
109
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
107
|
-
# @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) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
110
|
+
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
108
111
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
109
112
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
110
113
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
111
114
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
115
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
112
116
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
113
117
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
114
118
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -137,11 +141,12 @@ module PulpRpmClient
|
|
137
141
|
# @option opts [Array<String>] :id__in Filter results where id is in a comma-separated list of values
|
138
142
|
# @option opts [Integer] :limit Number of results to return per page.
|
139
143
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
140
|
-
# @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) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
144
|
+
# @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) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `id` - Id * `-id` - Id (descending) * `updated_date` - Updated date * `-updated_date` - Updated date (descending) * `description` - Description * `-description` - Description (descending) * `issued_date` - Issued date * `-issued_date` - Issued date (descending) * `fromstr` - Fromstr * `-fromstr` - Fromstr (descending) * `status` - Status * `-status` - Status (descending) * `title` - Title * `-title` - Title (descending) * `summary` - Summary * `-summary` - Summary (descending) * `version` - Version * `-version` - Version (descending) * `type` - Type * `-type` - Type (descending) * `severity` - Severity * `-severity` - Severity (descending) * `solution` - Solution * `-solution` - Solution (descending) * `release` - Release * `-release` - Release (descending) * `rights` - Rights * `-rights` - Rights (descending) * `reboot_suggested` - Reboot suggested * `-reboot_suggested` - Reboot suggested (descending) * `pushcount` - Pushcount * `-pushcount` - Pushcount (descending) * `digest` - Digest * `-digest` - Digest (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
141
145
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
142
146
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
143
147
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
144
148
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
149
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
145
150
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
146
151
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
147
152
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -162,7 +167,7 @@ module PulpRpmClient
|
|
162
167
|
if @api_client.config.debugging
|
163
168
|
@api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.list ...'
|
164
169
|
end
|
165
|
-
allowable_values = ["-description", "-digest", "-fromstr", "-id", "-issued_date", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-pushcount", "-reboot_suggested", "-release", "-rights", "-severity", "-solution", "-status", "-summary", "-timestamp_of_interest", "-title", "-type", "-updated_date", "-upstream_id", "-version", "description", "digest", "fromstr", "id", "issued_date", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "pushcount", "reboot_suggested", "release", "rights", "severity", "solution", "status", "summary", "timestamp_of_interest", "title", "type", "updated_date", "upstream_id", "version"]
|
170
|
+
allowable_values = ["-description", "-digest", "-fromstr", "-id", "-issued_date", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pushcount", "-reboot_suggested", "-release", "-rights", "-severity", "-solution", "-status", "-summary", "-timestamp_of_interest", "-title", "-type", "-updated_date", "-upstream_id", "-version", "description", "digest", "fromstr", "id", "issued_date", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pushcount", "reboot_suggested", "release", "rights", "severity", "solution", "status", "summary", "timestamp_of_interest", "title", "type", "updated_date", "upstream_id", "version"]
|
166
171
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
167
172
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
168
173
|
end
|
@@ -180,6 +185,7 @@ module PulpRpmClient
|
|
180
185
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
181
186
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
182
187
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
188
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
183
189
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
184
190
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
185
191
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -298,5 +304,153 @@ module PulpRpmClient
|
|
298
304
|
end
|
299
305
|
return data, status_code, headers
|
300
306
|
end
|
307
|
+
|
308
|
+
# Set a label
|
309
|
+
# Set a single pulp_label on the object to a specific value or null.
|
310
|
+
# @param rpm_update_record_href [String]
|
311
|
+
# @param set_label [SetLabel]
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [SetLabelResponse]
|
314
|
+
def set_label(rpm_update_record_href, set_label, opts = {})
|
315
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_update_record_href, set_label, opts)
|
316
|
+
data
|
317
|
+
end
|
318
|
+
|
319
|
+
# Set a label
|
320
|
+
# Set a single pulp_label on the object to a specific value or null.
|
321
|
+
# @param rpm_update_record_href [String]
|
322
|
+
# @param set_label [SetLabel]
|
323
|
+
# @param [Hash] opts the optional parameters
|
324
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
325
|
+
def set_label_with_http_info(rpm_update_record_href, set_label, opts = {})
|
326
|
+
if @api_client.config.debugging
|
327
|
+
@api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.set_label ...'
|
328
|
+
end
|
329
|
+
# verify the required parameter 'rpm_update_record_href' is set
|
330
|
+
if @api_client.config.client_side_validation && rpm_update_record_href.nil?
|
331
|
+
fail ArgumentError, "Missing the required parameter 'rpm_update_record_href' when calling ContentAdvisoriesApi.set_label"
|
332
|
+
end
|
333
|
+
# verify the required parameter 'set_label' is set
|
334
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
335
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentAdvisoriesApi.set_label"
|
336
|
+
end
|
337
|
+
# resource path
|
338
|
+
local_var_path = '{rpm_update_record_href}set_label/'.sub('{' + 'rpm_update_record_href' + '}', CGI.escape(rpm_update_record_href.to_s).gsub('%2F', '/'))
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = opts[:query_params] || {}
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = opts[:header_params] || {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
349
|
+
if !content_type.nil?
|
350
|
+
header_params['Content-Type'] = content_type
|
351
|
+
end
|
352
|
+
|
353
|
+
# form parameters
|
354
|
+
form_params = opts[:form_params] || {}
|
355
|
+
|
356
|
+
# http body (model)
|
357
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
358
|
+
|
359
|
+
# return_type
|
360
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
361
|
+
|
362
|
+
# auth_names
|
363
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
364
|
+
|
365
|
+
new_options = opts.merge(
|
366
|
+
:operation => :"ContentAdvisoriesApi.set_label",
|
367
|
+
:header_params => header_params,
|
368
|
+
:query_params => query_params,
|
369
|
+
:form_params => form_params,
|
370
|
+
:body => post_body,
|
371
|
+
:auth_names => auth_names,
|
372
|
+
:return_type => return_type
|
373
|
+
)
|
374
|
+
|
375
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
376
|
+
if @api_client.config.debugging
|
377
|
+
@api_client.config.logger.debug "API called: ContentAdvisoriesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
378
|
+
end
|
379
|
+
return data, status_code, headers
|
380
|
+
end
|
381
|
+
|
382
|
+
# Unset a label
|
383
|
+
# Unset a single pulp_label on the object.
|
384
|
+
# @param rpm_update_record_href [String]
|
385
|
+
# @param unset_label [UnsetLabel]
|
386
|
+
# @param [Hash] opts the optional parameters
|
387
|
+
# @return [UnsetLabelResponse]
|
388
|
+
def unset_label(rpm_update_record_href, unset_label, opts = {})
|
389
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_update_record_href, unset_label, opts)
|
390
|
+
data
|
391
|
+
end
|
392
|
+
|
393
|
+
# Unset a label
|
394
|
+
# Unset a single pulp_label on the object.
|
395
|
+
# @param rpm_update_record_href [String]
|
396
|
+
# @param unset_label [UnsetLabel]
|
397
|
+
# @param [Hash] opts the optional parameters
|
398
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
399
|
+
def unset_label_with_http_info(rpm_update_record_href, unset_label, opts = {})
|
400
|
+
if @api_client.config.debugging
|
401
|
+
@api_client.config.logger.debug 'Calling API: ContentAdvisoriesApi.unset_label ...'
|
402
|
+
end
|
403
|
+
# verify the required parameter 'rpm_update_record_href' is set
|
404
|
+
if @api_client.config.client_side_validation && rpm_update_record_href.nil?
|
405
|
+
fail ArgumentError, "Missing the required parameter 'rpm_update_record_href' when calling ContentAdvisoriesApi.unset_label"
|
406
|
+
end
|
407
|
+
# verify the required parameter 'unset_label' is set
|
408
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
409
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentAdvisoriesApi.unset_label"
|
410
|
+
end
|
411
|
+
# resource path
|
412
|
+
local_var_path = '{rpm_update_record_href}unset_label/'.sub('{' + 'rpm_update_record_href' + '}', CGI.escape(rpm_update_record_href.to_s).gsub('%2F', '/'))
|
413
|
+
|
414
|
+
# query parameters
|
415
|
+
query_params = opts[:query_params] || {}
|
416
|
+
|
417
|
+
# header parameters
|
418
|
+
header_params = opts[:header_params] || {}
|
419
|
+
# HTTP header 'Accept' (if needed)
|
420
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
421
|
+
# HTTP header 'Content-Type'
|
422
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
423
|
+
if !content_type.nil?
|
424
|
+
header_params['Content-Type'] = content_type
|
425
|
+
end
|
426
|
+
|
427
|
+
# form parameters
|
428
|
+
form_params = opts[:form_params] || {}
|
429
|
+
|
430
|
+
# http body (model)
|
431
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
432
|
+
|
433
|
+
# return_type
|
434
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
435
|
+
|
436
|
+
# auth_names
|
437
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
438
|
+
|
439
|
+
new_options = opts.merge(
|
440
|
+
:operation => :"ContentAdvisoriesApi.unset_label",
|
441
|
+
:header_params => header_params,
|
442
|
+
:query_params => query_params,
|
443
|
+
:form_params => form_params,
|
444
|
+
:body => post_body,
|
445
|
+
:auth_names => auth_names,
|
446
|
+
:return_type => return_type
|
447
|
+
)
|
448
|
+
|
449
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
450
|
+
if @api_client.config.debugging
|
451
|
+
@api_client.config.logger.debug "API called: ContentAdvisoriesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
+
end
|
453
|
+
return data, status_code, headers
|
454
|
+
end
|
301
455
|
end
|
302
456
|
end
|
@@ -29,6 +29,7 @@ module PulpRpmClient
|
|
29
29
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
30
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
31
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
32
33
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
33
34
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
34
35
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -51,6 +52,7 @@ module PulpRpmClient
|
|
51
52
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
52
53
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
54
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
54
56
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
55
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
56
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -78,6 +80,7 @@ module PulpRpmClient
|
|
78
80
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
79
81
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
80
82
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
83
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
81
84
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
82
85
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
83
86
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -187,5 +190,153 @@ module PulpRpmClient
|
|
187
190
|
end
|
188
191
|
return data, status_code, headers
|
189
192
|
end
|
193
|
+
|
194
|
+
# Set a label
|
195
|
+
# Set a single pulp_label on the object to a specific value or null.
|
196
|
+
# @param rpm_distribution_tree_href [String]
|
197
|
+
# @param set_label [SetLabel]
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [SetLabelResponse]
|
200
|
+
def set_label(rpm_distribution_tree_href, set_label, opts = {})
|
201
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_distribution_tree_href, set_label, opts)
|
202
|
+
data
|
203
|
+
end
|
204
|
+
|
205
|
+
# Set a label
|
206
|
+
# Set a single pulp_label on the object to a specific value or null.
|
207
|
+
# @param rpm_distribution_tree_href [String]
|
208
|
+
# @param set_label [SetLabel]
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
211
|
+
def set_label_with_http_info(rpm_distribution_tree_href, set_label, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.set_label ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'rpm_distribution_tree_href' is set
|
216
|
+
if @api_client.config.client_side_validation && rpm_distribution_tree_href.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_tree_href' when calling ContentDistributionTreesApi.set_label"
|
218
|
+
end
|
219
|
+
# verify the required parameter 'set_label' is set
|
220
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentDistributionTreesApi.set_label"
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '{rpm_distribution_tree_href}set_label/'.sub('{' + 'rpm_distribution_tree_href' + '}', CGI.escape(rpm_distribution_tree_href.to_s).gsub('%2F', '/'))
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = opts[:query_params] || {}
|
228
|
+
|
229
|
+
# header parameters
|
230
|
+
header_params = opts[:header_params] || {}
|
231
|
+
# HTTP header 'Accept' (if needed)
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
233
|
+
# HTTP header 'Content-Type'
|
234
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
235
|
+
if !content_type.nil?
|
236
|
+
header_params['Content-Type'] = content_type
|
237
|
+
end
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = opts[:form_params] || {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
244
|
+
|
245
|
+
# return_type
|
246
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
247
|
+
|
248
|
+
# auth_names
|
249
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
250
|
+
|
251
|
+
new_options = opts.merge(
|
252
|
+
:operation => :"ContentDistributionTreesApi.set_label",
|
253
|
+
:header_params => header_params,
|
254
|
+
:query_params => query_params,
|
255
|
+
:form_params => form_params,
|
256
|
+
:body => post_body,
|
257
|
+
:auth_names => auth_names,
|
258
|
+
:return_type => return_type
|
259
|
+
)
|
260
|
+
|
261
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "API called: ContentDistributionTreesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Unset a label
|
269
|
+
# Unset a single pulp_label on the object.
|
270
|
+
# @param rpm_distribution_tree_href [String]
|
271
|
+
# @param unset_label [UnsetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [UnsetLabelResponse]
|
274
|
+
def unset_label(rpm_distribution_tree_href, unset_label, opts = {})
|
275
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_distribution_tree_href, unset_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Unset a label
|
280
|
+
# Unset a single pulp_label on the object.
|
281
|
+
# @param rpm_distribution_tree_href [String]
|
282
|
+
# @param unset_label [UnsetLabel]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
285
|
+
def unset_label_with_http_info(rpm_distribution_tree_href, unset_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentDistributionTreesApi.unset_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'rpm_distribution_tree_href' is set
|
290
|
+
if @api_client.config.client_side_validation && rpm_distribution_tree_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'rpm_distribution_tree_href' when calling ContentDistributionTreesApi.unset_label"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'unset_label' is set
|
294
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentDistributionTreesApi.unset_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{rpm_distribution_tree_href}unset_label/'.sub('{' + 'rpm_distribution_tree_href' + '}', CGI.escape(rpm_distribution_tree_href.to_s).gsub('%2F', '/'))
|
299
|
+
|
300
|
+
# query parameters
|
301
|
+
query_params = opts[:query_params] || {}
|
302
|
+
|
303
|
+
# header parameters
|
304
|
+
header_params = opts[:header_params] || {}
|
305
|
+
# HTTP header 'Accept' (if needed)
|
306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
307
|
+
# HTTP header 'Content-Type'
|
308
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
309
|
+
if !content_type.nil?
|
310
|
+
header_params['Content-Type'] = content_type
|
311
|
+
end
|
312
|
+
|
313
|
+
# form parameters
|
314
|
+
form_params = opts[:form_params] || {}
|
315
|
+
|
316
|
+
# http body (model)
|
317
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"ContentDistributionTreesApi.unset_label",
|
327
|
+
:header_params => header_params,
|
328
|
+
:query_params => query_params,
|
329
|
+
:form_params => form_params,
|
330
|
+
:body => post_body,
|
331
|
+
:auth_names => auth_names,
|
332
|
+
:return_type => return_type
|
333
|
+
)
|
334
|
+
|
335
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "API called: ContentDistributionTreesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
190
341
|
end
|
191
342
|
end
|