pulp_ostree_client 2.4.5 → 2.4.7
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 +29 -12
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentCommitsApi.md +228 -47
- data/docs/ContentConfigsApi.md +227 -46
- data/docs/ContentContentApi.md +255 -57
- data/docs/ContentObjectsApi.md +228 -47
- data/docs/ContentRefsApi.md +238 -57
- data/docs/ContentSummariesApi.md +227 -46
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsOstreeApi.md +387 -182
- data/docs/MyPermissionsResponse.md +8 -7
- data/docs/NestedRole.md +12 -11
- data/docs/NestedRoleResponse.md +12 -11
- data/docs/ObjectRolesResponse.md +8 -7
- data/docs/OstreeImportAll.md +10 -9
- data/docs/OstreeImportCommitsToRef.md +12 -11
- data/docs/OstreeOstreeCommitResponse.md +26 -23
- data/docs/OstreeOstreeConfigResponse.md +20 -17
- data/docs/OstreeOstreeContent.md +16 -13
- data/docs/OstreeOstreeContentResponse.md +22 -19
- data/docs/OstreeOstreeDistribution.md +20 -19
- data/docs/OstreeOstreeDistributionResponse.md +32 -31
- data/docs/OstreeOstreeObjectResponse.md +24 -21
- data/docs/OstreeOstreeRefResponse.md +26 -23
- data/docs/OstreeOstreeRemote.md +54 -53
- data/docs/OstreeOstreeRemoteResponse.md +54 -53
- data/docs/OstreeOstreeRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/OstreeOstreeRepository.md +18 -17
- data/docs/OstreeOstreeRepositoryResponse.md +30 -29
- data/docs/OstreeOstreeSummaryResponse.md +20 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeCommitResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeConfigResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeContentResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeObjectResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRefResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +14 -13
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +14 -13
- data/docs/PatchedostreeOstreeDistribution.md +20 -19
- data/docs/PatchedostreeOstreeRemote.md +54 -53
- data/docs/PatchedostreeOstreeRepository.md +18 -17
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesOstreeApi.md +389 -184
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesOstreeApi.md +502 -231
- data/docs/RepositoriesOstreeVersionsApi.md +152 -82
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -21
- data/docs/SetLabel.md +10 -9
- data/docs/SetLabelResponse.md +10 -9
- data/docs/UnsetLabel.md +8 -7
- data/docs/UnsetLabelResponse.md +10 -9
- data/lib/pulp_ostree_client/api/content_commits_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_configs_api.rb +162 -9
- data/lib/pulp_ostree_client/api/content_content_api.rb +171 -14
- data/lib/pulp_ostree_client/api/content_objects_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_refs_api.rb +165 -12
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +162 -9
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +95 -59
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +104 -68
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +125 -76
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +40 -30
- data/lib/pulp_ostree_client/api_client.rb +137 -102
- data/lib/pulp_ostree_client/api_error.rb +2 -1
- data/lib/pulp_ostree_client/configuration.rb +162 -21
- data/lib/pulp_ostree_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_ostree_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_ostree_client/models/my_permissions_response.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role.rb +32 -22
- data/lib/pulp_ostree_client/models/nested_role_response.rb +32 -22
- data/lib/pulp_ostree_client/models/object_roles_response.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_import_all.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_import_commits_to_ref.rb +36 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +49 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +49 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +51 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +34 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +36 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +53 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +61 -23
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +64 -26
- data/lib/pulp_ostree_client/models/{ostree_ostree_remote_response_hidden_fields.rb → ostree_ostree_remote_response_hidden_fields_inner.rb} +37 -25
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +32 -22
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +34 -24
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +49 -25
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +34 -22
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +40 -24
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +67 -25
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +35 -23
- data/lib/pulp_ostree_client/models/policy_enum.rb +8 -4
- data/lib/pulp_ostree_client/models/repair.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_ostree_client/models/repository_version_response.rb +32 -24
- data/lib/pulp_ostree_client/models/set_label.rb +34 -22
- data/lib/pulp_ostree_client/models/set_label_response.rb +34 -22
- data/lib/pulp_ostree_client/models/unset_label.rb +33 -23
- data/lib/pulp_ostree_client/models/unset_label_response.rb +33 -23
- data/lib/pulp_ostree_client/version.rb +2 -2
- data/lib/pulp_ostree_client.rb +2 -2
- data/pulp_ostree_client.gemspec +9 -6
- data/spec/api/content_commits_api_spec.rb +31 -4
- data/spec/api/content_configs_api_spec.rb +30 -3
- data/spec/api/content_content_api_spec.rb +31 -4
- data/spec/api/content_objects_api_spec.rb +31 -4
- data/spec/api/content_refs_api_spec.rb +31 -4
- data/spec/api/content_summaries_api_spec.rb +30 -3
- data/spec/api/distributions_ostree_api_spec.rb +15 -14
- data/spec/api/remotes_ostree_api_spec.rb +20 -19
- data/spec/api/repositories_ostree_api_spec.rb +17 -17
- data/spec/api/repositories_ostree_versions_api_spec.rb +12 -11
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/my_permissions_response_spec.rb +7 -12
- data/spec/models/nested_role_response_spec.rb +9 -14
- data/spec/models/nested_role_spec.rb +9 -14
- data/spec/models/object_roles_response_spec.rb +7 -12
- data/spec/models/ostree_import_all_spec.rb +8 -13
- data/spec/models/ostree_import_commits_to_ref_spec.rb +9 -14
- data/spec/models/ostree_ostree_commit_response_spec.rb +21 -20
- data/spec/models/ostree_ostree_config_response_spec.rb +18 -17
- data/spec/models/ostree_ostree_content_response_spec.rb +19 -18
- data/spec/models/ostree_ostree_content_spec.rb +16 -15
- data/spec/models/ostree_ostree_distribution_response_spec.rb +19 -24
- data/spec/models/ostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/ostree_ostree_object_response_spec.rb +20 -19
- data/spec/models/ostree_ostree_ref_response_spec.rb +21 -20
- data/spec/models/{ostree_ostree_remote_response_hidden_fields_spec.rb → ostree_ostree_remote_response_hidden_fields_inner_spec.rb} +11 -16
- data/spec/models/ostree_ostree_remote_response_spec.rb +30 -35
- data/spec/models/ostree_ostree_remote_spec.rb +30 -35
- data/spec/models/ostree_ostree_repository_response_spec.rb +18 -23
- data/spec/models/ostree_ostree_repository_spec.rb +12 -17
- data/spec/models/ostree_ostree_summary_response_spec.rb +18 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +10 -15
- data/spec/models/patchedostree_ostree_distribution_spec.rb +13 -18
- data/spec/models/patchedostree_ostree_remote_spec.rb +30 -35
- data/spec/models/patchedostree_ostree_repository_spec.rb +12 -17
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +14 -19
- data/spec/models/set_label_response_spec.rb +8 -13
- data/spec/models/set_label_spec.rb +8 -13
- data/spec/models/unset_label_response_spec.rb +8 -13
- data/spec/models/unset_label_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- metadata +83 -59
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +0 -19
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,11 +34,12 @@ module PulpOstreeClient
|
|
34
34
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
35
35
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
36
36
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
37
|
-
# @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) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
37
|
+
# @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) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
38
38
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
39
39
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
40
40
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
41
41
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
42
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
42
43
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
43
44
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
44
45
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -66,11 +67,12 @@ module PulpOstreeClient
|
|
66
67
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
67
68
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
68
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
69
|
-
# @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) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
70
|
+
# @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) * `name` - Name * `-name` - Name (descending) * `relative_path` - Relative path * `-relative_path` - Relative path (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
70
71
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
71
72
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
72
73
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
73
74
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
75
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
74
76
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
75
77
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
76
78
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -82,7 +84,7 @@ module PulpOstreeClient
|
|
82
84
|
if @api_client.config.debugging
|
83
85
|
@api_client.config.logger.debug 'Calling API: ContentRefsApi.list ...'
|
84
86
|
end
|
85
|
-
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-timestamp_of_interest", "-upstream_id", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "timestamp_of_interest", "upstream_id"]
|
87
|
+
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-timestamp_of_interest", "-upstream_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "timestamp_of_interest", "upstream_id"]
|
86
88
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
87
89
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
88
90
|
end
|
@@ -108,6 +110,7 @@ module PulpOstreeClient
|
|
108
110
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
109
111
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
110
112
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
113
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
111
114
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
112
115
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
113
116
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -118,21 +121,22 @@ module PulpOstreeClient
|
|
118
121
|
# header parameters
|
119
122
|
header_params = opts[:header_params] || {}
|
120
123
|
# HTTP header 'Accept' (if needed)
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
122
125
|
|
123
126
|
# form parameters
|
124
127
|
form_params = opts[:form_params] || {}
|
125
128
|
|
126
129
|
# http body (model)
|
127
|
-
post_body = opts[:
|
130
|
+
post_body = opts[:debug_body]
|
128
131
|
|
129
132
|
# return_type
|
130
|
-
return_type = opts[:
|
133
|
+
return_type = opts[:debug_return_type] || 'PaginatedostreeOstreeRefResponseList'
|
131
134
|
|
132
135
|
# auth_names
|
133
|
-
auth_names = opts[:
|
136
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
134
137
|
|
135
138
|
new_options = opts.merge(
|
139
|
+
:operation => :"ContentRefsApi.list",
|
136
140
|
:header_params => header_params,
|
137
141
|
:query_params => query_params,
|
138
142
|
:form_params => form_params,
|
@@ -186,21 +190,22 @@ module PulpOstreeClient
|
|
186
190
|
# header parameters
|
187
191
|
header_params = opts[:header_params] || {}
|
188
192
|
# HTTP header 'Accept' (if needed)
|
189
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
190
194
|
|
191
195
|
# form parameters
|
192
196
|
form_params = opts[:form_params] || {}
|
193
197
|
|
194
198
|
# http body (model)
|
195
|
-
post_body = opts[:
|
199
|
+
post_body = opts[:debug_body]
|
196
200
|
|
197
201
|
# return_type
|
198
|
-
return_type = opts[:
|
202
|
+
return_type = opts[:debug_return_type] || 'OstreeOstreeRefResponse'
|
199
203
|
|
200
204
|
# auth_names
|
201
|
-
auth_names = opts[:
|
205
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
202
206
|
|
203
207
|
new_options = opts.merge(
|
208
|
+
:operation => :"ContentRefsApi.read",
|
204
209
|
:header_params => header_params,
|
205
210
|
:query_params => query_params,
|
206
211
|
:form_params => form_params,
|
@@ -215,5 +220,153 @@ module PulpOstreeClient
|
|
215
220
|
end
|
216
221
|
return data, status_code, headers
|
217
222
|
end
|
223
|
+
|
224
|
+
# Set a label
|
225
|
+
# Set a single pulp_label on the object to a specific value or null.
|
226
|
+
# @param ostree_ostree_ref_href [String]
|
227
|
+
# @param set_label [SetLabel]
|
228
|
+
# @param [Hash] opts the optional parameters
|
229
|
+
# @return [SetLabelResponse]
|
230
|
+
def set_label(ostree_ostree_ref_href, set_label, opts = {})
|
231
|
+
data, _status_code, _headers = set_label_with_http_info(ostree_ostree_ref_href, set_label, opts)
|
232
|
+
data
|
233
|
+
end
|
234
|
+
|
235
|
+
# Set a label
|
236
|
+
# Set a single pulp_label on the object to a specific value or null.
|
237
|
+
# @param ostree_ostree_ref_href [String]
|
238
|
+
# @param set_label [SetLabel]
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
241
|
+
def set_label_with_http_info(ostree_ostree_ref_href, set_label, opts = {})
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug 'Calling API: ContentRefsApi.set_label ...'
|
244
|
+
end
|
245
|
+
# verify the required parameter 'ostree_ostree_ref_href' is set
|
246
|
+
if @api_client.config.client_side_validation && ostree_ostree_ref_href.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_ref_href' when calling ContentRefsApi.set_label"
|
248
|
+
end
|
249
|
+
# verify the required parameter 'set_label' is set
|
250
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentRefsApi.set_label"
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = '{ostree_ostree_ref_href}set_label/'.sub('{' + 'ostree_ostree_ref_href' + '}', CGI.escape(ostree_ostree_ref_href.to_s).gsub('%2F', '/'))
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = opts[:query_params] || {}
|
258
|
+
|
259
|
+
# header parameters
|
260
|
+
header_params = opts[:header_params] || {}
|
261
|
+
# HTTP header 'Accept' (if needed)
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
263
|
+
# HTTP header 'Content-Type'
|
264
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
265
|
+
if !content_type.nil?
|
266
|
+
header_params['Content-Type'] = content_type
|
267
|
+
end
|
268
|
+
|
269
|
+
# form parameters
|
270
|
+
form_params = opts[:form_params] || {}
|
271
|
+
|
272
|
+
# http body (model)
|
273
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
274
|
+
|
275
|
+
# return_type
|
276
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
277
|
+
|
278
|
+
# auth_names
|
279
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
280
|
+
|
281
|
+
new_options = opts.merge(
|
282
|
+
:operation => :"ContentRefsApi.set_label",
|
283
|
+
:header_params => header_params,
|
284
|
+
:query_params => query_params,
|
285
|
+
:form_params => form_params,
|
286
|
+
:body => post_body,
|
287
|
+
:auth_names => auth_names,
|
288
|
+
:return_type => return_type
|
289
|
+
)
|
290
|
+
|
291
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
292
|
+
if @api_client.config.debugging
|
293
|
+
@api_client.config.logger.debug "API called: ContentRefsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
294
|
+
end
|
295
|
+
return data, status_code, headers
|
296
|
+
end
|
297
|
+
|
298
|
+
# Unset a label
|
299
|
+
# Unset a single pulp_label on the object.
|
300
|
+
# @param ostree_ostree_ref_href [String]
|
301
|
+
# @param unset_label [UnsetLabel]
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @return [UnsetLabelResponse]
|
304
|
+
def unset_label(ostree_ostree_ref_href, unset_label, opts = {})
|
305
|
+
data, _status_code, _headers = unset_label_with_http_info(ostree_ostree_ref_href, unset_label, opts)
|
306
|
+
data
|
307
|
+
end
|
308
|
+
|
309
|
+
# Unset a label
|
310
|
+
# Unset a single pulp_label on the object.
|
311
|
+
# @param ostree_ostree_ref_href [String]
|
312
|
+
# @param unset_label [UnsetLabel]
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
315
|
+
def unset_label_with_http_info(ostree_ostree_ref_href, unset_label, opts = {})
|
316
|
+
if @api_client.config.debugging
|
317
|
+
@api_client.config.logger.debug 'Calling API: ContentRefsApi.unset_label ...'
|
318
|
+
end
|
319
|
+
# verify the required parameter 'ostree_ostree_ref_href' is set
|
320
|
+
if @api_client.config.client_side_validation && ostree_ostree_ref_href.nil?
|
321
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_ref_href' when calling ContentRefsApi.unset_label"
|
322
|
+
end
|
323
|
+
# verify the required parameter 'unset_label' is set
|
324
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
325
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentRefsApi.unset_label"
|
326
|
+
end
|
327
|
+
# resource path
|
328
|
+
local_var_path = '{ostree_ostree_ref_href}unset_label/'.sub('{' + 'ostree_ostree_ref_href' + '}', CGI.escape(ostree_ostree_ref_href.to_s).gsub('%2F', '/'))
|
329
|
+
|
330
|
+
# query parameters
|
331
|
+
query_params = opts[:query_params] || {}
|
332
|
+
|
333
|
+
# header parameters
|
334
|
+
header_params = opts[:header_params] || {}
|
335
|
+
# HTTP header 'Accept' (if needed)
|
336
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
337
|
+
# HTTP header 'Content-Type'
|
338
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
339
|
+
if !content_type.nil?
|
340
|
+
header_params['Content-Type'] = content_type
|
341
|
+
end
|
342
|
+
|
343
|
+
# form parameters
|
344
|
+
form_params = opts[:form_params] || {}
|
345
|
+
|
346
|
+
# http body (model)
|
347
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
348
|
+
|
349
|
+
# return_type
|
350
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
351
|
+
|
352
|
+
# auth_names
|
353
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
354
|
+
|
355
|
+
new_options = opts.merge(
|
356
|
+
:operation => :"ContentRefsApi.unset_label",
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => return_type
|
363
|
+
)
|
364
|
+
|
365
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug "API called: ContentRefsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
368
|
+
end
|
369
|
+
return data, status_code, headers
|
370
|
+
end
|
218
371
|
end
|
219
372
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,6 +29,7 @@ module PulpOstreeClient
|
|
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 PulpOstreeClient
|
|
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 PulpOstreeClient
|
|
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?
|
@@ -88,21 +91,22 @@ module PulpOstreeClient
|
|
88
91
|
# header parameters
|
89
92
|
header_params = opts[:header_params] || {}
|
90
93
|
# HTTP header 'Accept' (if needed)
|
91
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
92
95
|
|
93
96
|
# form parameters
|
94
97
|
form_params = opts[:form_params] || {}
|
95
98
|
|
96
99
|
# http body (model)
|
97
|
-
post_body = opts[:
|
100
|
+
post_body = opts[:debug_body]
|
98
101
|
|
99
102
|
# return_type
|
100
|
-
return_type = opts[:
|
103
|
+
return_type = opts[:debug_return_type] || 'PaginatedostreeOstreeSummaryResponseList'
|
101
104
|
|
102
105
|
# auth_names
|
103
|
-
auth_names = opts[:
|
106
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
104
107
|
|
105
108
|
new_options = opts.merge(
|
109
|
+
:operation => :"ContentSummariesApi.list",
|
106
110
|
:header_params => header_params,
|
107
111
|
:query_params => query_params,
|
108
112
|
:form_params => form_params,
|
@@ -156,21 +160,22 @@ module PulpOstreeClient
|
|
156
160
|
# header parameters
|
157
161
|
header_params = opts[:header_params] || {}
|
158
162
|
# HTTP header 'Accept' (if needed)
|
159
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
160
164
|
|
161
165
|
# form parameters
|
162
166
|
form_params = opts[:form_params] || {}
|
163
167
|
|
164
168
|
# http body (model)
|
165
|
-
post_body = opts[:
|
169
|
+
post_body = opts[:debug_body]
|
166
170
|
|
167
171
|
# return_type
|
168
|
-
return_type = opts[:
|
172
|
+
return_type = opts[:debug_return_type] || 'OstreeOstreeSummaryResponse'
|
169
173
|
|
170
174
|
# auth_names
|
171
|
-
auth_names = opts[:
|
175
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
172
176
|
|
173
177
|
new_options = opts.merge(
|
178
|
+
:operation => :"ContentSummariesApi.read",
|
174
179
|
:header_params => header_params,
|
175
180
|
:query_params => query_params,
|
176
181
|
:form_params => form_params,
|
@@ -185,5 +190,153 @@ module PulpOstreeClient
|
|
185
190
|
end
|
186
191
|
return data, status_code, headers
|
187
192
|
end
|
193
|
+
|
194
|
+
# Set a label
|
195
|
+
# Set a single pulp_label on the object to a specific value or null.
|
196
|
+
# @param ostree_ostree_summary_href [String]
|
197
|
+
# @param set_label [SetLabel]
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [SetLabelResponse]
|
200
|
+
def set_label(ostree_ostree_summary_href, set_label, opts = {})
|
201
|
+
data, _status_code, _headers = set_label_with_http_info(ostree_ostree_summary_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 ostree_ostree_summary_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(ostree_ostree_summary_href, set_label, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: ContentSummariesApi.set_label ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'ostree_ostree_summary_href' is set
|
216
|
+
if @api_client.config.client_side_validation && ostree_ostree_summary_href.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_summary_href' when calling ContentSummariesApi.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 ContentSummariesApi.set_label"
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '{ostree_ostree_summary_href}set_label/'.sub('{' + 'ostree_ostree_summary_href' + '}', CGI.escape(ostree_ostree_summary_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 => :"ContentSummariesApi.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: ContentSummariesApi#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 ostree_ostree_summary_href [String]
|
271
|
+
# @param unset_label [UnsetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [UnsetLabelResponse]
|
274
|
+
def unset_label(ostree_ostree_summary_href, unset_label, opts = {})
|
275
|
+
data, _status_code, _headers = unset_label_with_http_info(ostree_ostree_summary_href, unset_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Unset a label
|
280
|
+
# Unset a single pulp_label on the object.
|
281
|
+
# @param ostree_ostree_summary_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(ostree_ostree_summary_href, unset_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentSummariesApi.unset_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'ostree_ostree_summary_href' is set
|
290
|
+
if @api_client.config.client_side_validation && ostree_ostree_summary_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_summary_href' when calling ContentSummariesApi.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 ContentSummariesApi.unset_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{ostree_ostree_summary_href}unset_label/'.sub('{' + 'ostree_ostree_summary_href' + '}', CGI.escape(ostree_ostree_summary_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 => :"ContentSummariesApi.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: ContentSummariesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
188
341
|
end
|
189
342
|
end
|