pulpcore_client 3.21.35 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -6
  3. data/docs/AccessPoliciesApi.md +3 -3
  4. data/docs/ArtifactDistributionResponse.md +29 -0
  5. data/docs/ArtifactsApi.md +1 -1
  6. data/docs/ContentApi.md +1 -1
  7. data/docs/ContentSettingsResponse.md +19 -0
  8. data/docs/ContentguardsApi.md +3 -3
  9. data/docs/ContentguardsContentRedirectApi.md +3 -3
  10. data/docs/ContentguardsRbacApi.md +3 -3
  11. data/docs/DistributionResponse.md +1 -1
  12. data/docs/DistributionsApi.md +6 -6
  13. data/docs/DistributionsArtifactsApi.md +154 -0
  14. data/docs/ExportersFilesystemApi.md +3 -3
  15. data/docs/ExportersFilesystemExportsApi.md +1 -1
  16. data/docs/ExportersPulpApi.md +3 -3
  17. data/docs/ExportersPulpExportsApi.md +1 -1
  18. data/docs/FilesystemExport.md +1 -3
  19. data/docs/GroupsApi.md +1 -1
  20. data/docs/GroupsRolesApi.md +1 -1
  21. data/docs/GroupsUsersApi.md +1 -1
  22. data/docs/ImportersPulpApi.md +3 -3
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +1 -1
  25. data/docs/OrphansApi.md +1 -1
  26. data/docs/OrphansCleanupApi.md +1 -1
  27. data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
  28. data/docs/PublicationsApi.md +3 -3
  29. data/docs/RemoteResponse.md +4 -2
  30. data/docs/RemoteResponseHiddenFields.md +19 -0
  31. data/docs/RemotesApi.md +5 -5
  32. data/docs/RepairApi.md +1 -1
  33. data/docs/RepositoriesApi.md +4 -4
  34. data/docs/RepositoriesReclaimSpaceApi.md +1 -1
  35. data/docs/RepositoryResponse.md +1 -1
  36. data/docs/RepositoryVersionsApi.md +5 -5
  37. data/docs/RolesApi.md +1 -1
  38. data/docs/SigningServicesApi.md +5 -3
  39. data/docs/StatusApi.md +1 -1
  40. data/docs/StatusResponse.md +3 -1
  41. data/docs/TaskGroupsApi.md +1 -3
  42. data/docs/TaskSchedulesApi.md +5 -5
  43. data/docs/TasksApi.md +33 -19
  44. data/docs/UploadsApi.md +11 -1
  45. data/docs/UserResponse.md +3 -1
  46. data/docs/UsersApi.md +1 -1
  47. data/docs/UsersRolesApi.md +1 -1
  48. data/docs/WorkersApi.md +5 -5
  49. data/lib/pulpcore_client/api/access_policies_api.rb +3 -3
  50. data/lib/pulpcore_client/api/artifacts_api.rb +1 -1
  51. data/lib/pulpcore_client/api/contentguards_api.rb +3 -3
  52. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +3 -3
  53. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +3 -3
  54. data/lib/pulpcore_client/api/distributions_api.rb +7 -7
  55. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
  56. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +3 -3
  57. data/lib/pulpcore_client/api/exporters_pulp_api.rb +3 -3
  58. data/lib/pulpcore_client/api/groups_api.rb +1 -1
  59. data/lib/pulpcore_client/api/importers_pulp_api.rb +3 -3
  60. data/lib/pulpcore_client/api/publications_api.rb +3 -3
  61. data/lib/pulpcore_client/api/remotes_api.rb +5 -5
  62. data/lib/pulpcore_client/api/repositories_api.rb +3 -3
  63. data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
  64. data/lib/pulpcore_client/api/roles_api.rb +1 -1
  65. data/lib/pulpcore_client/api/signing_services_api.rb +9 -2
  66. data/lib/pulpcore_client/api/task_groups_api.rb +0 -7
  67. data/lib/pulpcore_client/api/task_schedules_api.rb +5 -5
  68. data/lib/pulpcore_client/api/tasks_api.rb +40 -19
  69. data/lib/pulpcore_client/api/uploads_api.rb +19 -0
  70. data/lib/pulpcore_client/api/users_api.rb +1 -1
  71. data/lib/pulpcore_client/api/workers_api.rb +5 -5
  72. data/lib/pulpcore_client/configuration.rb +3 -3
  73. data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
  74. data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
  75. data/lib/pulpcore_client/models/distribution_response.rb +4 -2
  76. data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
  77. data/lib/pulpcore_client/models/group_role.rb +19 -0
  78. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
  79. data/lib/pulpcore_client/models/remote_response.rb +41 -27
  80. data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
  81. data/lib/pulpcore_client/models/repository_response.rb +4 -2
  82. data/lib/pulpcore_client/models/status_response.rb +19 -4
  83. data/lib/pulpcore_client/models/user_response.rb +16 -4
  84. data/lib/pulpcore_client/models/user_role.rb +19 -0
  85. data/lib/pulpcore_client/version.rb +1 -1
  86. data/lib/pulpcore_client.rb +5 -0
  87. data/spec/api/access_policies_api_spec.rb +1 -1
  88. data/spec/api/contentguards_api_spec.rb +1 -1
  89. data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
  90. data/spec/api/contentguards_rbac_api_spec.rb +1 -1
  91. data/spec/api/distributions_api_spec.rb +3 -3
  92. data/spec/api/distributions_artifacts_api_spec.rb +76 -0
  93. data/spec/api/exporters_filesystem_api_spec.rb +1 -1
  94. data/spec/api/exporters_pulp_api_spec.rb +1 -1
  95. data/spec/api/importers_pulp_api_spec.rb +1 -1
  96. data/spec/api/publications_api_spec.rb +1 -1
  97. data/spec/api/remotes_api_spec.rb +2 -2
  98. data/spec/api/repositories_api_spec.rb +1 -1
  99. data/spec/api/repository_versions_api_spec.rb +2 -2
  100. data/spec/api/signing_services_api_spec.rb +2 -1
  101. data/spec/api/task_groups_api_spec.rb +0 -1
  102. data/spec/api/task_schedules_api_spec.rb +2 -2
  103. data/spec/api/tasks_api_spec.rb +16 -9
  104. data/spec/api/uploads_api_spec.rb +5 -0
  105. data/spec/api/workers_api_spec.rb +2 -2
  106. data/spec/configuration_spec.rb +3 -3
  107. data/spec/models/artifact_distribution_response_spec.rb +77 -0
  108. data/spec/models/content_settings_response_spec.rb +47 -0
  109. data/spec/models/filesystem_export_spec.rb +0 -6
  110. data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
  111. data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
  112. data/spec/models/remote_response_spec.rb +6 -0
  113. data/spec/models/status_response_spec.rb +6 -0
  114. data/spec/models/user_response_spec.rb +6 -0
  115. metadata +159 -139
@@ -22,7 +22,7 @@ module PulpcoreClient
22
22
  # List access policys
23
23
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [Boolean] :customized
25
+ # @option opts [Boolean] :customized Filter results where customized matches value
26
26
  # @option opts [Integer] :limit Number of results to return per page.
27
27
  # @option opts [Integer] :offset The initial index from which to return the results.
28
28
  # @option opts [Array<String>] :ordering Ordering
@@ -42,7 +42,7 @@ module PulpcoreClient
42
42
  # List access policys
43
43
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
44
44
  # @param [Hash] opts the optional parameters
45
- # @option opts [Boolean] :customized
45
+ # @option opts [Boolean] :customized Filter results where customized matches value
46
46
  # @option opts [Integer] :limit Number of results to return per page.
47
47
  # @option opts [Integer] :offset The initial index from which to return the results.
48
48
  # @option opts [Array<String>] :ordering Ordering
@@ -58,7 +58,7 @@ module PulpcoreClient
58
58
  if @api_client.config.debugging
59
59
  @api_client.config.logger.debug 'Calling API: AccessPoliciesApi.list ...'
60
60
  end
61
- allowable_values = ["-creation_hooks", "-customized", "-group_roles", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-queryset_scoping", "-statements", "-user_roles", "-viewset_name", "creation_hooks", "customized", "group_roles", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "queryset_scoping", "statements", "user_roles", "viewset_name"]
61
+ allowable_values = ["-creation_hooks", "-customized", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-queryset_scoping", "-statements", "-viewset_name", "creation_hooks", "customized", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "queryset_scoping", "statements", "viewset_name"]
62
62
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
63
63
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
64
64
  end
@@ -230,7 +230,7 @@ module PulpcoreClient
230
230
  if @api_client.config.debugging
231
231
  @api_client.config.logger.debug 'Calling API: ArtifactsApi.list ...'
232
232
  end
233
- allowable_values = ["-content", "-content_memberships", "-file", "-group_roles", "-md5", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-sha1", "-sha224", "-sha256", "-sha384", "-sha512", "-size", "-timestamp_of_interest", "-user_roles", "content", "content_memberships", "file", "group_roles", "md5", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "sha1", "sha224", "sha256", "sha384", "sha512", "size", "timestamp_of_interest", "user_roles"]
233
+ allowable_values = ["-file", "-md5", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-sha1", "-sha224", "-sha256", "-sha384", "-sha512", "-size", "-timestamp_of_interest", "file", "md5", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "sha1", "sha224", "sha256", "sha384", "sha512", "size", "timestamp_of_interest"]
234
234
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
235
235
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
236
236
  end
@@ -23,7 +23,7 @@ module PulpcoreClient
23
23
  # Endpoint to list all contentguards.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
- # @option opts [String] :name
26
+ # @option opts [String] :name Filter results where name matches value
27
27
  # @option opts [String] :name__contains Filter results where name contains value
28
28
  # @option opts [String] :name__icontains Filter results where name contains value
29
29
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -42,7 +42,7 @@ module PulpcoreClient
42
42
  # Endpoint to list all contentguards.
43
43
  # @param [Hash] opts the optional parameters
44
44
  # @option opts [Integer] :limit Number of results to return per page.
45
- # @option opts [String] :name
45
+ # @option opts [String] :name Filter results where name matches value
46
46
  # @option opts [String] :name__contains Filter results where name contains value
47
47
  # @option opts [String] :name__icontains Filter results where name contains value
48
48
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -56,7 +56,7 @@ module PulpcoreClient
56
56
  if @api_client.config.debugging
57
57
  @api_client.config.logger.debug 'Calling API: ContentguardsApi.list ...'
58
58
  end
59
- allowable_values = ["-basedistribution", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
59
+ allowable_values = ["-description", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "description", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
60
60
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
61
61
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
62
62
  end
@@ -215,7 +215,7 @@ module PulpcoreClient
215
215
  # Content guard to protect preauthenticated redirects to the content app.
216
216
  # @param [Hash] opts the optional parameters
217
217
  # @option opts [Integer] :limit Number of results to return per page.
218
- # @option opts [String] :name
218
+ # @option opts [String] :name Filter results where name matches value
219
219
  # @option opts [String] :name__contains Filter results where name contains value
220
220
  # @option opts [String] :name__icontains Filter results where name contains value
221
221
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -234,7 +234,7 @@ module PulpcoreClient
234
234
  # Content guard to protect preauthenticated redirects to the content app.
235
235
  # @param [Hash] opts the optional parameters
236
236
  # @option opts [Integer] :limit Number of results to return per page.
237
- # @option opts [String] :name
237
+ # @option opts [String] :name Filter results where name matches value
238
238
  # @option opts [String] :name__contains Filter results where name contains value
239
239
  # @option opts [String] :name__icontains Filter results where name contains value
240
240
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -248,7 +248,7 @@ module PulpcoreClient
248
248
  if @api_client.config.debugging
249
249
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.list ...'
250
250
  end
251
- allowable_values = ["-basedistribution", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
251
+ allowable_values = ["-description", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "description", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
252
252
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
253
253
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
254
254
  end
@@ -215,7 +215,7 @@ module PulpcoreClient
215
215
  # Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
216
216
  # @param [Hash] opts the optional parameters
217
217
  # @option opts [Integer] :limit Number of results to return per page.
218
- # @option opts [String] :name
218
+ # @option opts [String] :name Filter results where name matches value
219
219
  # @option opts [String] :name__contains Filter results where name contains value
220
220
  # @option opts [String] :name__icontains Filter results where name contains value
221
221
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -234,7 +234,7 @@ module PulpcoreClient
234
234
  # Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
235
235
  # @param [Hash] opts the optional parameters
236
236
  # @option opts [Integer] :limit Number of results to return per page.
237
- # @option opts [String] :name
237
+ # @option opts [String] :name Filter results where name matches value
238
238
  # @option opts [String] :name__contains Filter results where name contains value
239
239
  # @option opts [String] :name__icontains Filter results where name contains value
240
240
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -248,7 +248,7 @@ module PulpcoreClient
248
248
  if @api_client.config.debugging
249
249
  @api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.list ...'
250
250
  end
251
- allowable_values = ["-basedistribution", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
251
+ allowable_values = ["-description", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "description", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
252
252
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
253
253
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
254
254
  end
@@ -20,14 +20,14 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # List distributions
23
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
23
+ # Provides base viewset for Distributions.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :base_path
25
+ # @option opts [String] :base_path Filter results where base_path matches value
26
26
  # @option opts [String] :base_path__contains Filter results where base_path contains value
27
27
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
28
28
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
29
29
  # @option opts [Integer] :limit Number of results to return per page.
30
- # @option opts [String] :name
30
+ # @option opts [String] :name Filter results where name matches value
31
31
  # @option opts [String] :name__contains Filter results where name contains value
32
32
  # @option opts [String] :name__icontains Filter results where name contains value
33
33
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -45,14 +45,14 @@ module PulpcoreClient
45
45
  end
46
46
 
47
47
  # List distributions
48
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
48
+ # Provides base viewset for Distributions.
49
49
  # @param [Hash] opts the optional parameters
50
- # @option opts [String] :base_path
50
+ # @option opts [String] :base_path Filter results where base_path matches value
51
51
  # @option opts [String] :base_path__contains Filter results where base_path contains value
52
52
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
53
53
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
54
54
  # @option opts [Integer] :limit Number of results to return per page.
55
- # @option opts [String] :name
55
+ # @option opts [String] :name Filter results where name matches value
56
56
  # @option opts [String] :name__contains Filter results where name contains value
57
57
  # @option opts [String] :name__icontains Filter results where name contains value
58
58
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -68,7 +68,7 @@ module PulpcoreClient
68
68
  if @api_client.config.debugging
69
69
  @api_client.config.logger.debug 'Calling API: DistributionsApi.list ...'
70
70
  end
71
- allowable_values = ["-base_path", "-content_guard", "-group_roles", "-name", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "name", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
71
+ allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
72
72
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
73
73
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
74
74
  end
@@ -0,0 +1,198 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class DistributionsArtifactsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List artifact distributions
23
+ # ViewSet for ArtifactDistribution.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :base_path Filter results where base_path matches value
26
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
27
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
28
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
29
+ # @option opts [Integer] :limit Number of results to return per page.
30
+ # @option opts [String] :name Filter results where name matches value
31
+ # @option opts [String] :name__contains Filter results where name contains value
32
+ # @option opts [String] :name__icontains Filter results where name contains value
33
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
34
+ # @option opts [String] :name__startswith Filter results where name starts with value
35
+ # @option opts [Integer] :offset The initial index from which to return the results.
36
+ # @option opts [Array<String>] :ordering Ordering
37
+ # @option opts [String] :pulp_label_select Filter labels by search string
38
+ # @option opts [String] :with_content Filter distributions based on the content served by them
39
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
40
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
41
+ # @return [PaginatedArtifactDistributionResponseList]
42
+ def list(opts = {})
43
+ data, _status_code, _headers = list_with_http_info(opts)
44
+ data
45
+ end
46
+
47
+ # List artifact distributions
48
+ # ViewSet for ArtifactDistribution.
49
+ # @param [Hash] opts the optional parameters
50
+ # @option opts [String] :base_path Filter results where base_path matches value
51
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
52
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
53
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
54
+ # @option opts [Integer] :limit Number of results to return per page.
55
+ # @option opts [String] :name Filter results where name matches value
56
+ # @option opts [String] :name__contains Filter results where name contains value
57
+ # @option opts [String] :name__icontains Filter results where name contains value
58
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
59
+ # @option opts [String] :name__startswith Filter results where name starts with value
60
+ # @option opts [Integer] :offset The initial index from which to return the results.
61
+ # @option opts [Array<String>] :ordering Ordering
62
+ # @option opts [String] :pulp_label_select Filter labels by search string
63
+ # @option opts [String] :with_content Filter distributions based on the content served by them
64
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
65
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
66
+ # @return [Array<(PaginatedArtifactDistributionResponseList, Integer, Hash)>] PaginatedArtifactDistributionResponseList data, response status code and response headers
67
+ def list_with_http_info(opts = {})
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.list ...'
70
+ end
71
+ allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
72
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
73
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
74
+ end
75
+ # resource path
76
+ local_var_path = '/pulp/api/v3/distributions/core/artifacts/'
77
+
78
+ # query parameters
79
+ query_params = opts[:query_params] || {}
80
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
81
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
82
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
83
+ query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
84
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
85
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
86
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
87
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
88
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
89
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
90
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
91
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
92
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
93
+ query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
94
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
95
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
96
+
97
+ # header parameters
98
+ header_params = opts[:header_params] || {}
99
+ # HTTP header 'Accept' (if needed)
100
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
101
+
102
+ # form parameters
103
+ form_params = opts[:form_params] || {}
104
+
105
+ # http body (model)
106
+ post_body = opts[:body]
107
+
108
+ # return_type
109
+ return_type = opts[:return_type] || 'PaginatedArtifactDistributionResponseList'
110
+
111
+ # auth_names
112
+ auth_names = opts[:auth_names] || ['basicAuth']
113
+
114
+ new_options = opts.merge(
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => return_type
121
+ )
122
+
123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug "API called: DistributionsArtifactsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
126
+ end
127
+ return data, status_code, headers
128
+ end
129
+
130
+ # Inspect an artifact distribution
131
+ # ViewSet for ArtifactDistribution.
132
+ # @param artifact_distribution_href [String]
133
+ # @param [Hash] opts the optional parameters
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
+ # @return [ArtifactDistributionResponse]
137
+ def read(artifact_distribution_href, opts = {})
138
+ data, _status_code, _headers = read_with_http_info(artifact_distribution_href, opts)
139
+ data
140
+ end
141
+
142
+ # Inspect an artifact distribution
143
+ # ViewSet for ArtifactDistribution.
144
+ # @param artifact_distribution_href [String]
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
147
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
148
+ # @return [Array<(ArtifactDistributionResponse, Integer, Hash)>] ArtifactDistributionResponse data, response status code and response headers
149
+ def read_with_http_info(artifact_distribution_href, opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: DistributionsArtifactsApi.read ...'
152
+ end
153
+ # verify the required parameter 'artifact_distribution_href' is set
154
+ if @api_client.config.client_side_validation && artifact_distribution_href.nil?
155
+ fail ArgumentError, "Missing the required parameter 'artifact_distribution_href' when calling DistributionsArtifactsApi.read"
156
+ end
157
+ # resource path
158
+ local_var_path = '{artifact_distribution_href}'.sub('{' + 'artifact_distribution_href' + '}', CGI.escape(artifact_distribution_href.to_s).gsub('%2F', '/'))
159
+
160
+ # query parameters
161
+ query_params = opts[:query_params] || {}
162
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
163
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
164
+
165
+ # header parameters
166
+ header_params = opts[:header_params] || {}
167
+ # HTTP header 'Accept' (if needed)
168
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
+
170
+ # form parameters
171
+ form_params = opts[:form_params] || {}
172
+
173
+ # http body (model)
174
+ post_body = opts[:body]
175
+
176
+ # return_type
177
+ return_type = opts[:return_type] || 'ArtifactDistributionResponse'
178
+
179
+ # auth_names
180
+ auth_names = opts[:auth_names] || ['basicAuth']
181
+
182
+ new_options = opts.merge(
183
+ :header_params => header_params,
184
+ :query_params => query_params,
185
+ :form_params => form_params,
186
+ :body => post_body,
187
+ :auth_names => auth_names,
188
+ :return_type => return_type
189
+ )
190
+
191
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug "API called: DistributionsArtifactsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
194
+ end
195
+ return data, status_code, headers
196
+ end
197
+ end
198
+ end
@@ -149,7 +149,7 @@ module PulpcoreClient
149
149
  # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -168,7 +168,7 @@ module PulpcoreClient
168
168
  # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @option opts [Integer] :limit Number of results to return per page.
171
- # @option opts [String] :name
171
+ # @option opts [String] :name Filter results where name matches value
172
172
  # @option opts [String] :name__contains Filter results where name contains value
173
173
  # @option opts [String] :name__icontains Filter results where name contains value
174
174
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -182,7 +182,7 @@ module PulpcoreClient
182
182
  if @api_client.config.debugging
183
183
  @api_client.config.logger.debug 'Calling API: ExportersFilesystemApi.list ...'
184
184
  end
185
- allowable_values = ["-core_fs_exporter", "-core_pulp_exporter", "-export", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_fs_exporter", "core_pulp_exporter", "export", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
185
+ allowable_values = ["-method", "-name", "-path", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "method", "name", "path", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
186
186
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
187
187
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
188
188
  end
@@ -149,7 +149,7 @@ module PulpcoreClient
149
149
  # ViewSet for viewing PulpExporters.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name
152
+ # @option opts [String] :name Filter results where name matches value
153
153
  # @option opts [String] :name__contains Filter results where name contains value
154
154
  # @option opts [String] :name__icontains Filter results where name contains value
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -168,7 +168,7 @@ module PulpcoreClient
168
168
  # ViewSet for viewing PulpExporters.
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @option opts [Integer] :limit Number of results to return per page.
171
- # @option opts [String] :name
171
+ # @option opts [String] :name Filter results where name matches value
172
172
  # @option opts [String] :name__contains Filter results where name contains value
173
173
  # @option opts [String] :name__icontains Filter results where name contains value
174
174
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -182,7 +182,7 @@ module PulpcoreClient
182
182
  if @api_client.config.debugging
183
183
  @api_client.config.logger.debug 'Calling API: ExportersPulpApi.list ...'
184
184
  end
185
- allowable_values = ["-core_fs_exporter", "-core_pulp_exporter", "-export", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_fs_exporter", "core_pulp_exporter", "export", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
185
+ allowable_values = ["-name", "-path", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "name", "path", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
186
186
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
187
187
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
188
188
  end
@@ -252,7 +252,7 @@ module PulpcoreClient
252
252
  if @api_client.config.debugging
253
253
  @api_client.config.logger.debug 'Calling API: GroupsApi.list ...'
254
254
  end
255
- allowable_values = ["-id", "-name", "-object_roles", "-permissions", "-pk", "-user", "id", "name", "object_roles", "permissions", "pk", "user"]
255
+ allowable_values = ["-id", "-name", "-pk", "id", "name", "pk"]
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
@@ -147,7 +147,7 @@ module PulpcoreClient
147
147
  # ViewSet for PulpImporters.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [Integer] :limit Number of results to return per page.
150
- # @option opts [String] :name
150
+ # @option opts [String] :name Filter results where name matches value
151
151
  # @option opts [String] :name__contains Filter results where name contains value
152
152
  # @option opts [String] :name__icontains Filter results where name contains value
153
153
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -166,7 +166,7 @@ module PulpcoreClient
166
166
  # ViewSet for PulpImporters.
167
167
  # @param [Hash] opts the optional parameters
168
168
  # @option opts [Integer] :limit Number of results to return per page.
169
- # @option opts [String] :name
169
+ # @option opts [String] :name Filter results where name matches value
170
170
  # @option opts [String] :name__contains Filter results where name contains value
171
171
  # @option opts [String] :name__icontains Filter results where name contains value
172
172
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -180,7 +180,7 @@ module PulpcoreClient
180
180
  if @api_client.config.debugging
181
181
  @api_client.config.logger.debug 'Calling API: ImportersPulpApi.list ...'
182
182
  end
183
- allowable_values = ["-core_pulp_importer", "-group_roles", "-import", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "core_pulp_importer", "group_roles", "import", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
183
+ allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
184
184
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
185
185
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
186
186
  end
@@ -27,7 +27,7 @@ module PulpcoreClient
27
27
  # @option opts [Integer] :limit Number of results to return per page.
28
28
  # @option opts [Integer] :offset The initial index from which to return the results.
29
29
  # @option opts [Array<String>] :ordering Ordering
30
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
30
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
31
31
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
32
32
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
33
33
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
@@ -51,7 +51,7 @@ module PulpcoreClient
51
51
  # @option opts [Integer] :limit Number of results to return per page.
52
52
  # @option opts [Integer] :offset The initial index from which to return the results.
53
53
  # @option opts [Array<String>] :ordering Ordering
54
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
54
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
55
55
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
56
56
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
57
57
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
@@ -66,7 +66,7 @@ module PulpcoreClient
66
66
  if @api_client.config.debugging
67
67
  @api_client.config.logger.debug 'Calling API: PublicationsApi.list ...'
68
68
  end
69
- allowable_values = ["-complete", "-distribution", "-group_roles", "-pass_through", "-pk", "-published_artifact", "-published_metadata", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repository_version", "-user_roles", "complete", "distribution", "group_roles", "pass_through", "pk", "published_artifact", "published_metadata", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repository_version", "user_roles"]
69
+ allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
70
70
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
71
71
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
72
72
  end
@@ -23,7 +23,7 @@ module PulpcoreClient
23
23
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
- # @option opts [String] :name
26
+ # @option opts [String] :name Filter results where name matches value
27
27
  # @option opts [String] :name__contains Filter results where name contains value
28
28
  # @option opts [String] :name__icontains Filter results where name contains value
29
29
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -31,7 +31,7 @@ module PulpcoreClient
31
31
  # @option opts [Integer] :offset The initial index from which to return the results.
32
32
  # @option opts [Array<String>] :ordering Ordering
33
33
  # @option opts [String] :pulp_label_select Filter labels by search string
34
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
34
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
35
35
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
36
36
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
37
37
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -49,7 +49,7 @@ module PulpcoreClient
49
49
  # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
50
50
  # @param [Hash] opts the optional parameters
51
51
  # @option opts [Integer] :limit Number of results to return per page.
52
- # @option opts [String] :name
52
+ # @option opts [String] :name Filter results where name matches value
53
53
  # @option opts [String] :name__contains Filter results where name contains value
54
54
  # @option opts [String] :name__icontains Filter results where name contains value
55
55
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -57,7 +57,7 @@ module PulpcoreClient
57
57
  # @option opts [Integer] :offset The initial index from which to return the results.
58
58
  # @option opts [Array<String>] :ordering Ordering
59
59
  # @option opts [String] :pulp_label_select Filter labels by search string
60
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
60
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
61
61
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
62
62
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
63
63
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -70,7 +70,7 @@ module PulpcoreClient
70
70
  if @api_client.config.debugging
71
71
  @api_client.config.logger.debug 'Calling API: RemotesApi.list ...'
72
72
  end
73
- allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
73
+ allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
74
74
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
75
75
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
76
76
  end
@@ -23,7 +23,7 @@ module PulpcoreClient
23
23
  # Endpoint to list all repositories.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
- # @option opts [String] :name
26
+ # @option opts [String] :name Filter results where name matches value
27
27
  # @option opts [String] :name__contains Filter results where name contains value
28
28
  # @option opts [String] :name__icontains Filter results where name contains value
29
29
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -44,7 +44,7 @@ module PulpcoreClient
44
44
  # Endpoint to list all repositories.
45
45
  # @param [Hash] opts the optional parameters
46
46
  # @option opts [Integer] :limit Number of results to return per page.
47
- # @option opts [String] :name
47
+ # @option opts [String] :name Filter results where name matches value
48
48
  # @option opts [String] :name__contains Filter results where name contains value
49
49
  # @option opts [String] :name__icontains Filter results where name contains value
50
50
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -60,7 +60,7 @@ module PulpcoreClient
60
60
  if @api_client.config.debugging
61
61
  @api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
62
62
  end
63
- allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
63
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
64
64
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
65
65
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
66
66
  end