pulpcore_client 3.34.0 → 3.36.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 +10 -4
- data/docs/AccessPoliciesApi.md +4 -0
- data/docs/ArtifactDistributionResponse.md +10 -10
- data/docs/ContentguardsApi.md +4 -0
- data/docs/ContentguardsContentRedirectApi.md +4 -0
- data/docs/ContentguardsRbacApi.md +4 -0
- data/docs/DistributionsApi.md +4 -0
- data/docs/DistributionsArtifactsApi.md +4 -0
- data/docs/DomainsApi.md +4 -0
- data/docs/ExportersFilesystemApi.md +4 -0
- data/docs/ExportersPulpApi.md +4 -0
- data/docs/ImportersPulpApi.md +4 -0
- data/docs/RemotesApi.md +4 -0
- data/docs/RepositoriesApi.md +4 -0
- data/docs/RolesApi.md +4 -0
- data/docs/TasksApi.md +2 -2
- data/docs/UpstreamPulpsApi.md +232 -0
- data/docs/WorkersApi.md +4 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +6 -0
- data/lib/pulpcore_client/api/contentguards_api.rb +6 -0
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +6 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +6 -0
- data/lib/pulpcore_client/api/distributions_api.rb +6 -0
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +6 -0
- data/lib/pulpcore_client/api/domains_api.rb +6 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +6 -0
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +6 -0
- data/lib/pulpcore_client/api/importers_pulp_api.rb +6 -0
- data/lib/pulpcore_client/api/remotes_api.rb +6 -0
- data/lib/pulpcore_client/api/repositories_api.rb +6 -0
- data/lib/pulpcore_client/api/roles_api.rb +6 -0
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +276 -0
- data/lib/pulpcore_client/api/workers_api.rb +6 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +47 -47
- data/lib/pulpcore_client/models/storage_response.rb +3 -27
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/access_policies_api_spec.rb +2 -0
- data/spec/api/contentguards_api_spec.rb +2 -0
- data/spec/api/contentguards_content_redirect_api_spec.rb +2 -0
- data/spec/api/contentguards_rbac_api_spec.rb +2 -0
- data/spec/api/distributions_api_spec.rb +2 -0
- data/spec/api/distributions_artifacts_api_spec.rb +2 -0
- data/spec/api/domains_api_spec.rb +2 -0
- data/spec/api/exporters_filesystem_api_spec.rb +2 -0
- data/spec/api/exporters_pulp_api_spec.rb +2 -0
- data/spec/api/importers_pulp_api_spec.rb +2 -0
- data/spec/api/remotes_api_spec.rb +2 -0
- data/spec/api/repositories_api_spec.rb +2 -0
- data/spec/api/roles_api_spec.rb +2 -0
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/api/upstream_pulps_api_spec.rb +54 -0
- data/spec/api/workers_api_spec.rb +2 -0
- data/spec/models/artifact_distribution_response_spec.rb +8 -8
- metadata +143 -143
@@ -28,7 +28,9 @@ module PulpcoreClient
|
|
28
28
|
# @option opts [String] :name__icontains Filter results where name contains value
|
29
29
|
# @option opts [String] :name__iexact Filter results where name matches value
|
30
30
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
31
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
31
32
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
33
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
32
34
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
33
35
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
34
36
|
# @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)
|
@@ -61,7 +63,9 @@ module PulpcoreClient
|
|
61
63
|
# @option opts [String] :name__icontains Filter results where name contains value
|
62
64
|
# @option opts [String] :name__iexact Filter results where name matches value
|
63
65
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
66
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
64
67
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
68
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
65
69
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
66
70
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
71
|
# @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)
|
@@ -107,7 +111,9 @@ module PulpcoreClient
|
|
107
111
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
108
112
|
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
109
113
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
114
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
110
115
|
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
116
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
111
117
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
112
118
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
113
119
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -29,7 +29,9 @@ module PulpcoreClient
|
|
29
29
|
# @option opts [String] :name__icontains Filter results where name contains value
|
30
30
|
# @option opts [String] :name__iexact Filter results where name matches value
|
31
31
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
32
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
32
33
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
34
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
33
35
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
34
36
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
35
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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -67,7 +69,9 @@ module PulpcoreClient
|
|
67
69
|
# @option opts [String] :name__icontains Filter results where name contains value
|
68
70
|
# @option opts [String] :name__iexact Filter results where name matches value
|
69
71
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
70
73
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
74
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
71
75
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
72
76
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
77
|
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -118,7 +122,9 @@ module PulpcoreClient
|
|
118
122
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
119
123
|
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
120
124
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
125
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
121
126
|
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
127
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
122
128
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
123
129
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
124
130
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -159,7 +159,9 @@ module PulpcoreClient
|
|
159
159
|
# @option opts [String] :name__icontains Filter results where name contains value
|
160
160
|
# @option opts [String] :name__iexact Filter results where name matches value
|
161
161
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
162
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
162
163
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
164
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
163
165
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
164
166
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
165
167
|
# @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) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `locked` - Locked * `-locked` - Locked (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -190,7 +192,9 @@ module PulpcoreClient
|
|
190
192
|
# @option opts [String] :name__icontains Filter results where name contains value
|
191
193
|
# @option opts [String] :name__iexact Filter results where name matches value
|
192
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
|
193
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
|
194
198
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
195
199
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
196
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) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `locked` - Locked * `-locked` - Locked (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -226,7 +230,9 @@ module PulpcoreClient
|
|
226
230
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
227
231
|
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
228
232
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
233
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
229
234
|
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
235
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
230
236
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
231
237
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
232
238
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
@@ -170,7 +170,7 @@ module PulpcoreClient
|
|
170
170
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
171
171
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
172
172
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
173
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
173
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
174
174
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
175
175
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
176
176
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -222,7 +222,7 @@ module PulpcoreClient
|
|
222
222
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
223
223
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
224
224
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
225
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
225
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `args` - Args * `-args` - Args (descending) * `kwargs` - Kwargs * `-kwargs` - Kwargs (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
226
226
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
227
227
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
228
228
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -252,7 +252,7 @@ module PulpcoreClient
|
|
252
252
|
if @api_client.config.debugging
|
253
253
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
254
254
|
end
|
255
|
-
allowable_values = ["-args", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-versions", "args", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "versions"]
|
255
|
+
allowable_values = ["-args", "-enc_args", "-enc_kwargs", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-versions", "args", "enc_args", "enc_kwargs", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "versions"]
|
256
256
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
257
257
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
258
258
|
end
|
@@ -19,6 +19,76 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param upstream_pulp_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(upstream_pulp_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(upstream_pulp_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param upstream_pulp_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(upstream_pulp_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'upstream_pulp_href' is set
|
44
|
+
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling UpstreamPulpsApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{upstream_pulp_href}add_role/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create an upstream pulp
|
23
93
|
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
24
94
|
# @param upstream_pulp [UpstreamPulp]
|
@@ -211,6 +281,142 @@ module PulpcoreClient
|
|
211
281
|
return data, status_code, headers
|
212
282
|
end
|
213
283
|
|
284
|
+
# List roles
|
285
|
+
# List roles assigned to this object.
|
286
|
+
# @param upstream_pulp_href [String]
|
287
|
+
# @param [Hash] opts the optional parameters
|
288
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
289
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
290
|
+
# @return [ObjectRolesResponse]
|
291
|
+
def list_roles(upstream_pulp_href, opts = {})
|
292
|
+
data, _status_code, _headers = list_roles_with_http_info(upstream_pulp_href, opts)
|
293
|
+
data
|
294
|
+
end
|
295
|
+
|
296
|
+
# List roles
|
297
|
+
# List roles assigned to this object.
|
298
|
+
# @param upstream_pulp_href [String]
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
301
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
302
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
303
|
+
def list_roles_with_http_info(upstream_pulp_href, opts = {})
|
304
|
+
if @api_client.config.debugging
|
305
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.list_roles ...'
|
306
|
+
end
|
307
|
+
# verify the required parameter 'upstream_pulp_href' is set
|
308
|
+
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
309
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.list_roles"
|
310
|
+
end
|
311
|
+
# resource path
|
312
|
+
local_var_path = '{upstream_pulp_href}list_roles/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
313
|
+
|
314
|
+
# query parameters
|
315
|
+
query_params = opts[:query_params] || {}
|
316
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
317
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
318
|
+
|
319
|
+
# header parameters
|
320
|
+
header_params = opts[:header_params] || {}
|
321
|
+
# HTTP header 'Accept' (if needed)
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
+
|
324
|
+
# form parameters
|
325
|
+
form_params = opts[:form_params] || {}
|
326
|
+
|
327
|
+
# http body (model)
|
328
|
+
post_body = opts[:body]
|
329
|
+
|
330
|
+
# return_type
|
331
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
332
|
+
|
333
|
+
# auth_names
|
334
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
335
|
+
|
336
|
+
new_options = opts.merge(
|
337
|
+
:header_params => header_params,
|
338
|
+
:query_params => query_params,
|
339
|
+
:form_params => form_params,
|
340
|
+
:body => post_body,
|
341
|
+
:auth_names => auth_names,
|
342
|
+
:return_type => return_type
|
343
|
+
)
|
344
|
+
|
345
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
346
|
+
if @api_client.config.debugging
|
347
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
|
+
end
|
349
|
+
return data, status_code, headers
|
350
|
+
end
|
351
|
+
|
352
|
+
# List user permissions
|
353
|
+
# List permissions available to the current user on this object.
|
354
|
+
# @param upstream_pulp_href [String]
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
357
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
358
|
+
# @return [MyPermissionsResponse]
|
359
|
+
def my_permissions(upstream_pulp_href, opts = {})
|
360
|
+
data, _status_code, _headers = my_permissions_with_http_info(upstream_pulp_href, opts)
|
361
|
+
data
|
362
|
+
end
|
363
|
+
|
364
|
+
# List user permissions
|
365
|
+
# List permissions available to the current user on this object.
|
366
|
+
# @param upstream_pulp_href [String]
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
369
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
370
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
371
|
+
def my_permissions_with_http_info(upstream_pulp_href, opts = {})
|
372
|
+
if @api_client.config.debugging
|
373
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.my_permissions ...'
|
374
|
+
end
|
375
|
+
# verify the required parameter 'upstream_pulp_href' is set
|
376
|
+
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.my_permissions"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '{upstream_pulp_href}my_permissions/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = opts[:query_params] || {}
|
384
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
385
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
386
|
+
|
387
|
+
# header parameters
|
388
|
+
header_params = opts[:header_params] || {}
|
389
|
+
# HTTP header 'Accept' (if needed)
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = opts[:form_params] || {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = opts[:body]
|
397
|
+
|
398
|
+
# return_type
|
399
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
400
|
+
|
401
|
+
# auth_names
|
402
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
403
|
+
|
404
|
+
new_options = opts.merge(
|
405
|
+
:header_params => header_params,
|
406
|
+
:query_params => query_params,
|
407
|
+
:form_params => form_params,
|
408
|
+
:body => post_body,
|
409
|
+
:auth_names => auth_names,
|
410
|
+
:return_type => return_type
|
411
|
+
)
|
412
|
+
|
413
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
414
|
+
if @api_client.config.debugging
|
415
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
416
|
+
end
|
417
|
+
return data, status_code, headers
|
418
|
+
end
|
419
|
+
|
214
420
|
# Update an upstream pulp
|
215
421
|
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
216
422
|
# @param upstream_pulp_href [String]
|
@@ -349,6 +555,76 @@ module PulpcoreClient
|
|
349
555
|
return data, status_code, headers
|
350
556
|
end
|
351
557
|
|
558
|
+
# Remove a role
|
559
|
+
# Remove a role for this object from users/groups.
|
560
|
+
# @param upstream_pulp_href [String]
|
561
|
+
# @param nested_role [NestedRole]
|
562
|
+
# @param [Hash] opts the optional parameters
|
563
|
+
# @return [NestedRoleResponse]
|
564
|
+
def remove_role(upstream_pulp_href, nested_role, opts = {})
|
565
|
+
data, _status_code, _headers = remove_role_with_http_info(upstream_pulp_href, nested_role, opts)
|
566
|
+
data
|
567
|
+
end
|
568
|
+
|
569
|
+
# Remove a role
|
570
|
+
# Remove a role for this object from users/groups.
|
571
|
+
# @param upstream_pulp_href [String]
|
572
|
+
# @param nested_role [NestedRole]
|
573
|
+
# @param [Hash] opts the optional parameters
|
574
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
575
|
+
def remove_role_with_http_info(upstream_pulp_href, nested_role, opts = {})
|
576
|
+
if @api_client.config.debugging
|
577
|
+
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.remove_role ...'
|
578
|
+
end
|
579
|
+
# verify the required parameter 'upstream_pulp_href' is set
|
580
|
+
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
581
|
+
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.remove_role"
|
582
|
+
end
|
583
|
+
# verify the required parameter 'nested_role' is set
|
584
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
585
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling UpstreamPulpsApi.remove_role"
|
586
|
+
end
|
587
|
+
# resource path
|
588
|
+
local_var_path = '{upstream_pulp_href}remove_role/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
589
|
+
|
590
|
+
# query parameters
|
591
|
+
query_params = opts[:query_params] || {}
|
592
|
+
|
593
|
+
# header parameters
|
594
|
+
header_params = opts[:header_params] || {}
|
595
|
+
# HTTP header 'Accept' (if needed)
|
596
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
597
|
+
# HTTP header 'Content-Type'
|
598
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
599
|
+
|
600
|
+
# form parameters
|
601
|
+
form_params = opts[:form_params] || {}
|
602
|
+
|
603
|
+
# http body (model)
|
604
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
605
|
+
|
606
|
+
# return_type
|
607
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
608
|
+
|
609
|
+
# auth_names
|
610
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
611
|
+
|
612
|
+
new_options = opts.merge(
|
613
|
+
:header_params => header_params,
|
614
|
+
:query_params => query_params,
|
615
|
+
:form_params => form_params,
|
616
|
+
:body => post_body,
|
617
|
+
:auth_names => auth_names,
|
618
|
+
:return_type => return_type
|
619
|
+
)
|
620
|
+
|
621
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
622
|
+
if @api_client.config.debugging
|
623
|
+
@api_client.config.logger.debug "API called: UpstreamPulpsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
624
|
+
end
|
625
|
+
return data, status_code, headers
|
626
|
+
end
|
627
|
+
|
352
628
|
# Replicate
|
353
629
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
354
630
|
# @param upstream_pulp_href [String]
|
@@ -35,7 +35,9 @@ module PulpcoreClient
|
|
35
35
|
# @option opts [String] :name__icontains Filter results where name contains value
|
36
36
|
# @option opts [String] :name__iexact Filter results where name matches value
|
37
37
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
38
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
38
39
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
40
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
39
41
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
40
42
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
41
43
|
# @option opts [Boolean] :online
|
@@ -67,7 +69,9 @@ module PulpcoreClient
|
|
67
69
|
# @option opts [String] :name__icontains Filter results where name contains value
|
68
70
|
# @option opts [String] :name__iexact Filter results where name matches value
|
69
71
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
70
73
|
# @option opts [String] :name__istartswith Filter results where name starts with value
|
74
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
71
75
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
72
76
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
77
|
# @option opts [Boolean] :online
|
@@ -104,7 +108,9 @@ module PulpcoreClient
|
|
104
108
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
105
109
|
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
106
110
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
111
|
+
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
107
112
|
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
113
|
+
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
108
114
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
109
115
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
110
116
|
query_params[:'online'] = opts[:'online'] if !opts[:'online'].nil?
|
@@ -15,6 +15,17 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
|
+
attr_accessor :base_path
|
20
|
+
|
21
|
+
# Whether this distribution should be shown in the content app.
|
22
|
+
attr_accessor :hidden
|
23
|
+
|
24
|
+
# Timestamp of creation.
|
25
|
+
attr_accessor :pulp_created
|
26
|
+
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
18
29
|
# An optional content-guard.
|
19
30
|
attr_accessor :content_guard
|
20
31
|
|
@@ -23,45 +34,34 @@ module PulpcoreClient
|
|
23
34
|
|
24
35
|
attr_accessor :pulp_href
|
25
36
|
|
26
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
|
-
attr_accessor :base_path
|
28
|
-
|
29
37
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
38
|
attr_accessor :name
|
31
39
|
|
32
|
-
# Timestamp of creation.
|
33
|
-
attr_accessor :pulp_created
|
34
|
-
|
35
|
-
# Whether this distribution should be shown in the content app.
|
36
|
-
attr_accessor :hidden
|
37
|
-
|
38
|
-
attr_accessor :pulp_labels
|
39
|
-
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
+
:'base_path' => :'base_path',
|
44
|
+
:'hidden' => :'hidden',
|
45
|
+
:'pulp_created' => :'pulp_created',
|
46
|
+
:'pulp_labels' => :'pulp_labels',
|
43
47
|
:'content_guard' => :'content_guard',
|
44
48
|
:'base_url' => :'base_url',
|
45
49
|
:'pulp_href' => :'pulp_href',
|
46
|
-
:'
|
47
|
-
:'name' => :'name',
|
48
|
-
:'pulp_created' => :'pulp_created',
|
49
|
-
:'hidden' => :'hidden',
|
50
|
-
:'pulp_labels' => :'pulp_labels'
|
50
|
+
:'name' => :'name'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
+
:'base_path' => :'String',
|
58
|
+
:'hidden' => :'Boolean',
|
59
|
+
:'pulp_created' => :'DateTime',
|
60
|
+
:'pulp_labels' => :'Hash<String, String>',
|
57
61
|
:'content_guard' => :'String',
|
58
62
|
:'base_url' => :'String',
|
59
63
|
:'pulp_href' => :'String',
|
60
|
-
:'
|
61
|
-
:'name' => :'String',
|
62
|
-
:'pulp_created' => :'DateTime',
|
63
|
-
:'hidden' => :'Boolean',
|
64
|
-
:'pulp_labels' => :'Hash<String, String>'
|
64
|
+
:'name' => :'String'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -87,41 +87,41 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'content_guard')
|
91
|
-
self.content_guard = attributes[:'content_guard']
|
92
|
-
end
|
93
|
-
|
94
|
-
if attributes.key?(:'base_url')
|
95
|
-
self.base_url = attributes[:'base_url']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes.key?(:'pulp_href')
|
99
|
-
self.pulp_href = attributes[:'pulp_href']
|
100
|
-
end
|
101
|
-
|
102
90
|
if attributes.key?(:'base_path')
|
103
91
|
self.base_path = attributes[:'base_path']
|
104
92
|
end
|
105
93
|
|
106
|
-
if attributes.key?(:'name')
|
107
|
-
self.name = attributes[:'name']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'pulp_created')
|
111
|
-
self.pulp_created = attributes[:'pulp_created']
|
112
|
-
end
|
113
|
-
|
114
94
|
if attributes.key?(:'hidden')
|
115
95
|
self.hidden = attributes[:'hidden']
|
116
96
|
else
|
117
97
|
self.hidden = false
|
118
98
|
end
|
119
99
|
|
100
|
+
if attributes.key?(:'pulp_created')
|
101
|
+
self.pulp_created = attributes[:'pulp_created']
|
102
|
+
end
|
103
|
+
|
120
104
|
if attributes.key?(:'pulp_labels')
|
121
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
106
|
self.pulp_labels = value
|
123
107
|
end
|
124
108
|
end
|
109
|
+
|
110
|
+
if attributes.key?(:'content_guard')
|
111
|
+
self.content_guard = attributes[:'content_guard']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'base_url')
|
115
|
+
self.base_url = attributes[:'base_url']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'pulp_href')
|
119
|
+
self.pulp_href = attributes[:'pulp_href']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
|
+
end
|
125
125
|
end
|
126
126
|
|
127
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
+
base_path == o.base_path &&
|
156
|
+
hidden == o.hidden &&
|
157
|
+
pulp_created == o.pulp_created &&
|
158
|
+
pulp_labels == o.pulp_labels &&
|
155
159
|
content_guard == o.content_guard &&
|
156
160
|
base_url == o.base_url &&
|
157
161
|
pulp_href == o.pulp_href &&
|
158
|
-
|
159
|
-
name == o.name &&
|
160
|
-
pulp_created == o.pulp_created &&
|
161
|
-
hidden == o.hidden &&
|
162
|
-
pulp_labels == o.pulp_labels
|
162
|
+
name == o.name
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[base_path, hidden, pulp_created, pulp_labels, content_guard, base_url, pulp_href, name].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|