pulpcore_client 3.21.33 → 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 +161 -141
@@ -33,6 +33,9 @@ module PulpcoreClient
33
33
  # Storage information
34
34
  attr_accessor :storage
35
35
 
36
+ # Content-app settings
37
+ attr_accessor :content_settings
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module PulpcoreClient
41
44
  :'online_content_apps' => :'online_content_apps',
42
45
  :'database_connection' => :'database_connection',
43
46
  :'redis_connection' => :'redis_connection',
44
- :'storage' => :'storage'
47
+ :'storage' => :'storage',
48
+ :'content_settings' => :'content_settings'
45
49
  }
46
50
  end
47
51
 
@@ -53,7 +57,8 @@ module PulpcoreClient
53
57
  :'online_content_apps' => :'Array<ContentAppStatusResponse>',
54
58
  :'database_connection' => :'DatabaseConnectionResponse',
55
59
  :'redis_connection' => :'RedisConnectionResponse',
56
- :'storage' => :'StorageResponse'
60
+ :'storage' => :'StorageResponse',
61
+ :'content_settings' => :'ContentSettingsResponse'
57
62
  }
58
63
  end
59
64
 
@@ -107,6 +112,10 @@ module PulpcoreClient
107
112
  if attributes.key?(:'storage')
108
113
  self.storage = attributes[:'storage']
109
114
  end
115
+
116
+ if attributes.key?(:'content_settings')
117
+ self.content_settings = attributes[:'content_settings']
118
+ end
110
119
  end
111
120
 
112
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,6 +138,10 @@ module PulpcoreClient
129
138
  invalid_properties.push('invalid value for "database_connection", database_connection cannot be nil.')
130
139
  end
131
140
 
141
+ if @content_settings.nil?
142
+ invalid_properties.push('invalid value for "content_settings", content_settings cannot be nil.')
143
+ end
144
+
132
145
  invalid_properties
133
146
  end
134
147
 
@@ -139,6 +152,7 @@ module PulpcoreClient
139
152
  return false if @online_workers.nil?
140
153
  return false if @online_content_apps.nil?
141
154
  return false if @database_connection.nil?
155
+ return false if @content_settings.nil?
142
156
  true
143
157
  end
144
158
 
@@ -152,7 +166,8 @@ module PulpcoreClient
152
166
  online_content_apps == o.online_content_apps &&
153
167
  database_connection == o.database_connection &&
154
168
  redis_connection == o.redis_connection &&
155
- storage == o.storage
169
+ storage == o.storage &&
170
+ content_settings == o.content_settings
156
171
  end
157
172
 
158
173
  # @see the `==` method
@@ -164,7 +179,7 @@ module PulpcoreClient
164
179
  # Calculates hash code according to all attributes.
165
180
  # @return [Integer] Hash code
166
181
  def hash
167
- [versions, online_workers, online_content_apps, database_connection, redis_connection, storage].hash
182
+ [versions, online_workers, online_content_apps, database_connection, redis_connection, storage, content_settings].hash
168
183
  end
169
184
 
170
185
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpcoreClient
42
42
 
43
43
  attr_accessor :groups
44
44
 
45
+ # List of hidden (write only) fields
46
+ attr_accessor :hidden_fields
47
+
45
48
  # Attribute mapping from ruby-style variable name to JSON key.
46
49
  def self.attribute_map
47
50
  {
@@ -54,7 +57,8 @@ module PulpcoreClient
54
57
  :'is_staff' => :'is_staff',
55
58
  :'is_active' => :'is_active',
56
59
  :'date_joined' => :'date_joined',
57
- :'groups' => :'groups'
60
+ :'groups' => :'groups',
61
+ :'hidden_fields' => :'hidden_fields'
58
62
  }
59
63
  end
60
64
 
@@ -70,7 +74,8 @@ module PulpcoreClient
70
74
  :'is_staff' => :'Boolean',
71
75
  :'is_active' => :'Boolean',
72
76
  :'date_joined' => :'DateTime',
73
- :'groups' => :'Array<UserGroupResponse>'
77
+ :'groups' => :'Array<UserGroupResponse>',
78
+ :'hidden_fields' => :'Array<RemoteResponseHiddenFields>'
74
79
  }
75
80
  end
76
81
 
@@ -140,6 +145,12 @@ module PulpcoreClient
140
145
  self.groups = value
141
146
  end
142
147
  end
148
+
149
+ if attributes.key?(:'hidden_fields')
150
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
151
+ self.hidden_fields = value
152
+ end
153
+ end
143
154
  end
144
155
 
145
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -223,7 +234,8 @@ module PulpcoreClient
223
234
  is_staff == o.is_staff &&
224
235
  is_active == o.is_active &&
225
236
  date_joined == o.date_joined &&
226
- groups == o.groups
237
+ groups == o.groups &&
238
+ hidden_fields == o.hidden_fields
227
239
  end
228
240
 
229
241
  # @see the `==` method
@@ -235,7 +247,7 @@ module PulpcoreClient
235
247
  # Calculates hash code according to all attributes.
236
248
  # @return [Integer] Hash code
237
249
  def hash
238
- [pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups].hash
250
+ [pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups, hidden_fields].hash
239
251
  end
240
252
 
241
253
  # Builds the object from hash
@@ -75,6 +75,10 @@ module PulpcoreClient
75
75
  invalid_properties.push('invalid value for "role", role cannot be nil.')
76
76
  end
77
77
 
78
+ if @role.to_s.length < 1
79
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
80
+ end
81
+
78
82
  if @content_object.to_s.length < 1
79
83
  invalid_properties.push('invalid value for "content_object", the character length must be great than or equal to 1.')
80
84
  end
@@ -86,10 +90,25 @@ module PulpcoreClient
86
90
  # @return true if the model is valid
87
91
  def valid?
88
92
  return false if @role.nil?
93
+ return false if @role.to_s.length < 1
89
94
  return false if @content_object.to_s.length < 1
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] role Value to be assigned
100
+ def role=(role)
101
+ if role.nil?
102
+ fail ArgumentError, 'role cannot be nil'
103
+ end
104
+
105
+ if role.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @role = role
110
+ end
111
+
93
112
  # Custom attribute writer method with validation
94
113
  # @param [Object] content_object Value to be assigned
95
114
  def content_object=(content_object)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.21.33'
14
+ VERSION = '3.22.0'
15
15
  end
@@ -20,12 +20,14 @@ require 'pulpcore_client/configuration'
20
20
  require 'pulpcore_client/models/access_policy'
21
21
  require 'pulpcore_client/models/access_policy_response'
22
22
  require 'pulpcore_client/models/artifact'
23
+ require 'pulpcore_client/models/artifact_distribution_response'
23
24
  require 'pulpcore_client/models/artifact_response'
24
25
  require 'pulpcore_client/models/async_operation_response'
25
26
  require 'pulpcore_client/models/content_app_status_response'
26
27
  require 'pulpcore_client/models/content_guard_response'
27
28
  require 'pulpcore_client/models/content_redirect_content_guard'
28
29
  require 'pulpcore_client/models/content_redirect_content_guard_response'
30
+ require 'pulpcore_client/models/content_settings_response'
29
31
  require 'pulpcore_client/models/content_summary_response'
30
32
  require 'pulpcore_client/models/database_connection_response'
31
33
  require 'pulpcore_client/models/distribution_response'
@@ -51,6 +53,7 @@ require 'pulpcore_client/models/nested_role_response'
51
53
  require 'pulpcore_client/models/object_roles_response'
52
54
  require 'pulpcore_client/models/orphans_cleanup'
53
55
  require 'pulpcore_client/models/paginated_access_policy_response_list'
56
+ require 'pulpcore_client/models/paginated_artifact_distribution_response_list'
54
57
  require 'pulpcore_client/models/paginated_artifact_response_list'
55
58
  require 'pulpcore_client/models/paginated_content_guard_response_list'
56
59
  require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
@@ -107,6 +110,7 @@ require 'pulpcore_client/models/rbac_content_guard_response'
107
110
  require 'pulpcore_client/models/reclaim_space'
108
111
  require 'pulpcore_client/models/redis_connection_response'
109
112
  require 'pulpcore_client/models/remote_response'
113
+ require 'pulpcore_client/models/remote_response_hidden_fields'
110
114
  require 'pulpcore_client/models/repair'
111
115
  require 'pulpcore_client/models/repository_response'
112
116
  require 'pulpcore_client/models/repository_version_response'
@@ -143,6 +147,7 @@ require 'pulpcore_client/api/contentguards_api'
143
147
  require 'pulpcore_client/api/contentguards_content_redirect_api'
144
148
  require 'pulpcore_client/api/contentguards_rbac_api'
145
149
  require 'pulpcore_client/api/distributions_api'
150
+ require 'pulpcore_client/api/distributions_artifacts_api'
146
151
  require 'pulpcore_client/api/exporters_filesystem_api'
147
152
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
148
153
  require 'pulpcore_client/api/exporters_pulp_api'
@@ -36,7 +36,7 @@ describe 'AccessPoliciesApi' do
36
36
  # List access policys
37
37
  # ViewSet for AccessPolicy. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [Boolean] :customized
39
+ # @option opts [Boolean] :customized Filter results where customized matches value
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
41
  # @option opts [Integer] :offset The initial index from which to return the results.
42
42
  # @option opts [Array<String>] :ordering Ordering
@@ -37,7 +37,7 @@ describe 'ContentguardsApi' do
37
37
  # Endpoint to list all contentguards.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [String] :name
40
+ # @option opts [String] :name Filter results where name matches value
41
41
  # @option opts [String] :name__contains Filter results where name contains value
42
42
  # @option opts [String] :name__icontains Filter results where name contains value
43
43
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -73,7 +73,7 @@ describe 'ContentguardsContentRedirectApi' do
73
73
  # Content guard to protect preauthenticated redirects to the content app.
74
74
  # @param [Hash] opts the optional parameters
75
75
  # @option opts [Integer] :limit Number of results to return per page.
76
- # @option opts [String] :name
76
+ # @option opts [String] :name Filter results where name matches value
77
77
  # @option opts [String] :name__contains Filter results where name contains value
78
78
  # @option opts [String] :name__icontains Filter results where name contains value
79
79
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -73,7 +73,7 @@ describe 'ContentguardsRbacApi' do
73
73
  # 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.
74
74
  # @param [Hash] opts the optional parameters
75
75
  # @option opts [Integer] :limit Number of results to return per page.
76
- # @option opts [String] :name
76
+ # @option opts [String] :name Filter results where name matches value
77
77
  # @option opts [String] :name__contains Filter results where name contains value
78
78
  # @option opts [String] :name__icontains Filter results where name contains value
79
79
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -34,14 +34,14 @@ describe 'DistributionsApi' do
34
34
 
35
35
  # unit tests for list
36
36
  # List distributions
37
- # 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.
37
+ # Provides base viewset for Distributions.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :base_path
39
+ # @option opts [String] :base_path Filter results where base_path matches value
40
40
  # @option opts [String] :base_path__contains Filter results where base_path contains value
41
41
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
42
42
  # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
43
43
  # @option opts [Integer] :limit Number of results to return per page.
44
- # @option opts [String] :name
44
+ # @option opts [String] :name Filter results where name matches value
45
45
  # @option opts [String] :name__contains Filter results where name contains value
46
46
  # @option opts [String] :name__icontains Filter results where name contains value
47
47
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -0,0 +1,76 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::DistributionsArtifactsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DistributionsArtifactsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::DistributionsArtifactsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DistributionsArtifactsApi' do
30
+ it 'should create an instance of DistributionsArtifactsApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::DistributionsArtifactsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # List artifact distributions
37
+ # ViewSet for ArtifactDistribution.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :base_path Filter results where base_path matches value
40
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
41
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
42
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
43
+ # @option opts [Integer] :limit Number of results to return per page.
44
+ # @option opts [String] :name Filter results where name matches value
45
+ # @option opts [String] :name__contains Filter results where name contains value
46
+ # @option opts [String] :name__icontains Filter results where name contains value
47
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
48
+ # @option opts [String] :name__startswith Filter results where name starts with value
49
+ # @option opts [Integer] :offset The initial index from which to return the results.
50
+ # @option opts [Array<String>] :ordering Ordering
51
+ # @option opts [String] :pulp_label_select Filter labels by search string
52
+ # @option opts [String] :with_content Filter distributions based on the content served by them
53
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
54
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
55
+ # @return [PaginatedArtifactDistributionResponseList]
56
+ describe 'list test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ # unit tests for read
63
+ # Inspect an artifact distribution
64
+ # ViewSet for ArtifactDistribution.
65
+ # @param artifact_distribution_href
66
+ # @param [Hash] opts the optional parameters
67
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
68
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
69
+ # @return [ArtifactDistributionResponse]
70
+ describe 'read test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -61,7 +61,7 @@ describe 'ExportersFilesystemApi' do
61
61
  # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name
64
+ # @option opts [String] :name Filter results where name matches value
65
65
  # @option opts [String] :name__contains Filter results where name contains value
66
66
  # @option opts [String] :name__icontains Filter results where name contains value
67
67
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -61,7 +61,7 @@ describe 'ExportersPulpApi' do
61
61
  # ViewSet for viewing PulpExporters.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name
64
+ # @option opts [String] :name Filter results where name matches value
65
65
  # @option opts [String] :name__contains Filter results where name contains value
66
66
  # @option opts [String] :name__icontains Filter results where name contains value
67
67
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -61,7 +61,7 @@ describe 'ImportersPulpApi' do
61
61
  # ViewSet for PulpImporters.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name
64
+ # @option opts [String] :name Filter results where name matches value
65
65
  # @option opts [String] :name__contains Filter results where name contains value
66
66
  # @option opts [String] :name__icontains Filter results where name contains value
67
67
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -41,7 +41,7 @@ describe 'PublicationsApi' do
41
41
  # @option opts [Integer] :limit Number of results to return per page.
42
42
  # @option opts [Integer] :offset The initial index from which to return the results.
43
43
  # @option opts [Array<String>] :ordering Ordering
44
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
44
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
45
45
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
46
46
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
47
47
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
@@ -37,7 +37,7 @@ describe 'RemotesApi' do
37
37
  # 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.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [String] :name
40
+ # @option opts [String] :name Filter results where name matches value
41
41
  # @option opts [String] :name__contains Filter results where name contains value
42
42
  # @option opts [String] :name__icontains Filter results where name contains value
43
43
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -45,7 +45,7 @@ describe 'RemotesApi' do
45
45
  # @option opts [Integer] :offset The initial index from which to return the results.
46
46
  # @option opts [Array<String>] :ordering Ordering
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
- # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
48
+ # @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
49
49
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
50
50
  # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
51
51
  # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
@@ -37,7 +37,7 @@ describe 'RepositoriesApi' do
37
37
  # Endpoint to list all repositories.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [String] :name
40
+ # @option opts [String] :name Filter results where name matches value
41
41
  # @option opts [String] :name__contains Filter results where name contains value
42
42
  # @option opts [String] :name__icontains Filter results where name contains value
43
43
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -38,7 +38,7 @@ describe 'RepositoryVersionsApi' do
38
38
  # @option opts [String] :content Content Unit referenced by HREF
39
39
  # @option opts [String] :content__in Content Unit referenced by HREF
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
- # @option opts [Integer] :number
41
+ # @option opts [Integer] :number Filter results where number matches value
42
42
  # @option opts [Integer] :number__gt Filter results where number is greater than value
43
43
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
44
44
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -46,7 +46,7 @@ describe 'RepositoryVersionsApi' do
46
46
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
47
47
  # @option opts [Integer] :offset The initial index from which to return the results.
48
48
  # @option opts [Array<String>] :ordering Ordering
49
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
49
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
50
50
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
51
51
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
52
52
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
@@ -37,8 +37,9 @@ describe 'SigningServicesApi' do
37
37
  # A ViewSet that supports browsing of existing signing services.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [String] :name
40
+ # @option opts [String] :name Filter results where name matches value
41
41
  # @option opts [Integer] :offset The initial index from which to return the results.
42
+ # @option opts [Array<String>] :ordering Ordering
42
43
  # @option opts [Array<String>] :fields A list of fields to include in the response.
43
44
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
44
45
  # @return [PaginatedSigningServiceResponseList]
@@ -38,7 +38,6 @@ describe 'TaskGroupsApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
40
  # @option opts [Integer] :offset The initial index from which to return the results.
41
- # @option opts [Array<String>] :ordering Ordering
42
41
  # @option opts [Array<String>] :fields A list of fields to include in the response.
43
42
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
44
43
  # @return [PaginatedTaskGroupResponseList]
@@ -49,11 +49,11 @@ describe 'TaskSchedulesApi' do
49
49
  # ViewSet to monitor task schedules. NOTE: This feature is in tech-preview and may change in backwards incompatible ways.
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 [Integer] :offset The initial index from which to return the results.
55
55
  # @option opts [Array<String>] :ordering Ordering
56
- # @option opts [String] :task_name
56
+ # @option opts [String] :task_name Filter results where task_name matches value
57
57
  # @option opts [String] :task_name__contains Filter results where task_name contains value
58
58
  # @option opts [Array<String>] :fields A list of fields to include in the response.
59
59
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -60,33 +60,40 @@ describe 'TasksApi' do
60
60
  # List tasks
61
61
  # 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.
62
62
  # @param [Hash] opts the optional parameters
63
- # @option opts [String] :child_tasks Foreign Key referenced by HREF
63
+ # @option opts [String] :child_tasks Filter results where child_tasks matches value
64
64
  # @option opts [String] :created_resources
65
- # @option opts [DateTime] :finished_at ISO 8601 formatted dates are supported
65
+ # @option opts [String] :exclusive_resources
66
+ # @option opts [Array<String>] :exclusive_resources__in Multiple values may be separated by commas.
67
+ # @option opts [DateTime] :finished_at Filter results where finished_at matches value
66
68
  # @option opts [DateTime] :finished_at__gt Filter results where finished_at is greater than value
67
69
  # @option opts [DateTime] :finished_at__gte Filter results where finished_at is greater than or equal to value
68
70
  # @option opts [DateTime] :finished_at__lt Filter results where finished_at is less than value
69
71
  # @option opts [DateTime] :finished_at__lte Filter results where finished_at is less than or equal to value
70
72
  # @option opts [Array<DateTime>] :finished_at__range Filter results where finished_at is between two comma separated values
71
73
  # @option opts [Integer] :limit Number of results to return per page.
72
- # @option opts [String] :logging_cid
74
+ # @option opts [String] :logging_cid Filter results where logging_cid matches value
73
75
  # @option opts [String] :logging_cid__contains Filter results where logging_cid contains value
74
- # @option opts [String] :name
76
+ # @option opts [String] :name Filter results where name matches value
75
77
  # @option opts [String] :name__contains Filter results where name contains value
78
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
76
79
  # @option opts [Integer] :offset The initial index from which to return the results.
77
80
  # @option opts [Array<String>] :ordering Ordering
78
- # @option opts [String] :parent_task Foreign Key referenced by HREF
81
+ # @option opts [String] :parent_task Filter results where parent_task matches value
82
+ # @option opts [String] :reserved_resources
83
+ # @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
79
84
  # @option opts [Array<String>] :reserved_resources_record
80
- # @option opts [DateTime] :started_at ISO 8601 formatted dates are supported
85
+ # @option opts [String] :shared_resources
86
+ # @option opts [Array<String>] :shared_resources__in Multiple values may be separated by commas.
87
+ # @option opts [DateTime] :started_at Filter results where started_at matches value
81
88
  # @option opts [DateTime] :started_at__gt Filter results where started_at is greater than value
82
89
  # @option opts [DateTime] :started_at__gte Filter results where started_at is greater than or equal to value
83
90
  # @option opts [DateTime] :started_at__lt Filter results where started_at is less than value
84
91
  # @option opts [DateTime] :started_at__lte Filter results where started_at is less than or equal to value
85
92
  # @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
86
- # @option opts [String] :state
93
+ # @option opts [String] :state Filter results where state matches value
87
94
  # @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
88
- # @option opts [String] :task_group Foreign Key referenced by HREF
89
- # @option opts [String] :worker Foreign Key referenced by HREF
95
+ # @option opts [String] :task_group Filter results where task_group matches value
96
+ # @option opts [String] :worker Filter results where worker matches value
90
97
  # @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
91
98
  # @option opts [Array<String>] :fields A list of fields to include in the response.
92
99
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -87,6 +87,11 @@ describe 'UploadsApi' do
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @option opts [Integer] :limit Number of results to return per page.
89
89
  # @option opts [Integer] :offset The initial index from which to return the results.
90
+ # @option opts [Array<String>] :ordering Ordering
91
+ # @option opts [Integer] :size Filter results where size matches value
92
+ # @option opts [Integer] :size__gt Filter results where size is greater than value
93
+ # @option opts [Integer] :size__lt Filter results where size is less than value
94
+ # @option opts [Array<Integer>] :size__range Filter results where size is between two comma separated values
90
95
  # @option opts [Array<String>] :fields A list of fields to include in the response.
91
96
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
92
97
  # @return [PaginatedUploadResponseList]
@@ -36,7 +36,7 @@ describe 'WorkersApi' do
36
36
  # List workers
37
37
  # 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.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [DateTime] :last_heartbeat ISO 8601 formatted dates are supported
39
+ # @option opts [DateTime] :last_heartbeat Filter results where last_heartbeat matches value
40
40
  # @option opts [DateTime] :last_heartbeat__gt Filter results where last_heartbeat is greater than value
41
41
  # @option opts [DateTime] :last_heartbeat__gte Filter results where last_heartbeat is greater than or equal to value
42
42
  # @option opts [DateTime] :last_heartbeat__lt Filter results where last_heartbeat is less than value
@@ -44,7 +44,7 @@ describe 'WorkersApi' do
44
44
  # @option opts [Array<DateTime>] :last_heartbeat__range Filter results where last_heartbeat is between two comma separated values
45
45
  # @option opts [Integer] :limit Number of results to return per page.
46
46
  # @option opts [Boolean] :missing
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
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://localhost:24817")
21
+ # uri = URI.parse("https://pulp")
22
22
  # PulpcoreClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://localhost:24817")
31
+ # expect(config.base_url).to eq("https://pulp")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://localhost:24817")
38
+ # expect(config.base_url).to eq("https://pulp")
39
39
  end
40
40
  end
41
41
  end