pulpcore_client 3.21.29 → 3.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -5
  3. data/docs/AccessPoliciesApi.md +2 -2
  4. data/docs/ArtifactDistributionResponse.md +29 -0
  5. data/docs/ContentSettingsResponse.md +19 -0
  6. data/docs/ContentguardsApi.md +2 -2
  7. data/docs/ContentguardsContentRedirectApi.md +2 -2
  8. data/docs/ContentguardsRbacApi.md +2 -2
  9. data/docs/DistributionResponse.md +1 -1
  10. data/docs/DistributionsApi.md +5 -5
  11. data/docs/DistributionsArtifactsApi.md +154 -0
  12. data/docs/ExportersFilesystemApi.md +2 -2
  13. data/docs/ExportersPulpApi.md +2 -2
  14. data/docs/FilesystemExport.md +1 -3
  15. data/docs/ImportersPulpApi.md +2 -2
  16. data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
  17. data/docs/PublicationsApi.md +2 -2
  18. data/docs/RemoteResponse.md +4 -2
  19. data/docs/RemoteResponseHiddenFields.md +19 -0
  20. data/docs/RemotesApi.md +4 -4
  21. data/docs/RepositoriesApi.md +3 -3
  22. data/docs/RepositoryResponse.md +1 -1
  23. data/docs/RepositoryVersionsApi.md +4 -4
  24. data/docs/SigningServicesApi.md +4 -2
  25. data/docs/StatusResponse.md +3 -1
  26. data/docs/TaskGroupsApi.md +0 -2
  27. data/docs/TaskSchedulesApi.md +4 -4
  28. data/docs/TasksApi.md +32 -18
  29. data/docs/UploadsApi.md +10 -0
  30. data/docs/UserResponse.md +3 -1
  31. data/docs/WorkersApi.md +4 -4
  32. data/lib/pulpcore_client/api/access_policies_api.rb +3 -3
  33. data/lib/pulpcore_client/api/artifacts_api.rb +1 -1
  34. data/lib/pulpcore_client/api/contentguards_api.rb +3 -3
  35. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +3 -3
  36. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +3 -3
  37. data/lib/pulpcore_client/api/distributions_api.rb +7 -7
  38. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
  39. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +3 -3
  40. data/lib/pulpcore_client/api/exporters_pulp_api.rb +3 -3
  41. data/lib/pulpcore_client/api/groups_api.rb +1 -1
  42. data/lib/pulpcore_client/api/importers_pulp_api.rb +3 -3
  43. data/lib/pulpcore_client/api/publications_api.rb +3 -3
  44. data/lib/pulpcore_client/api/remotes_api.rb +5 -5
  45. data/lib/pulpcore_client/api/repositories_api.rb +3 -3
  46. data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
  47. data/lib/pulpcore_client/api/roles_api.rb +1 -1
  48. data/lib/pulpcore_client/api/signing_services_api.rb +9 -2
  49. data/lib/pulpcore_client/api/task_groups_api.rb +0 -7
  50. data/lib/pulpcore_client/api/task_schedules_api.rb +5 -5
  51. data/lib/pulpcore_client/api/tasks_api.rb +40 -19
  52. data/lib/pulpcore_client/api/uploads_api.rb +19 -0
  53. data/lib/pulpcore_client/api/users_api.rb +1 -1
  54. data/lib/pulpcore_client/api/workers_api.rb +5 -5
  55. data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
  56. data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
  57. data/lib/pulpcore_client/models/distribution_response.rb +4 -2
  58. data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
  59. data/lib/pulpcore_client/models/group_role.rb +19 -0
  60. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
  61. data/lib/pulpcore_client/models/remote_response.rb +21 -7
  62. data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
  63. data/lib/pulpcore_client/models/repository_response.rb +4 -2
  64. data/lib/pulpcore_client/models/status_response.rb +19 -4
  65. data/lib/pulpcore_client/models/user_response.rb +16 -4
  66. data/lib/pulpcore_client/models/user_role.rb +19 -0
  67. data/lib/pulpcore_client/version.rb +1 -1
  68. data/lib/pulpcore_client.rb +5 -0
  69. data/spec/api/access_policies_api_spec.rb +1 -1
  70. data/spec/api/contentguards_api_spec.rb +1 -1
  71. data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
  72. data/spec/api/contentguards_rbac_api_spec.rb +1 -1
  73. data/spec/api/distributions_api_spec.rb +3 -3
  74. data/spec/api/distributions_artifacts_api_spec.rb +76 -0
  75. data/spec/api/exporters_filesystem_api_spec.rb +1 -1
  76. data/spec/api/exporters_pulp_api_spec.rb +1 -1
  77. data/spec/api/importers_pulp_api_spec.rb +1 -1
  78. data/spec/api/publications_api_spec.rb +1 -1
  79. data/spec/api/remotes_api_spec.rb +2 -2
  80. data/spec/api/repositories_api_spec.rb +1 -1
  81. data/spec/api/repository_versions_api_spec.rb +2 -2
  82. data/spec/api/signing_services_api_spec.rb +2 -1
  83. data/spec/api/task_groups_api_spec.rb +0 -1
  84. data/spec/api/task_schedules_api_spec.rb +2 -2
  85. data/spec/api/tasks_api_spec.rb +16 -9
  86. data/spec/api/uploads_api_spec.rb +5 -0
  87. data/spec/api/workers_api_spec.rb +2 -2
  88. data/spec/models/artifact_distribution_response_spec.rb +77 -0
  89. data/spec/models/content_settings_response_spec.rb +47 -0
  90. data/spec/models/filesystem_export_spec.rb +0 -6
  91. data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
  92. data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
  93. data/spec/models/remote_response_spec.rb +6 -0
  94. data/spec/models/status_response_spec.rb +6 -0
  95. data/spec/models/user_response_spec.rb +6 -0
  96. metadata +148 -128
@@ -0,0 +1,215 @@
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 'date'
14
+
15
+ module PulpcoreClient
16
+ class RemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::RemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::RemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpcoreClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -59,7 +59,7 @@ module PulpcoreClient
59
59
  :'pulp_href' => :'String',
60
60
  :'pulp_created' => :'DateTime',
61
61
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'pulp_labels' => :'Hash<String, String>',
63
63
  :'latest_version_href' => :'String',
64
64
  :'name' => :'String',
65
65
  :'description' => :'String',
@@ -105,7 +105,9 @@ module PulpcoreClient
105
105
  end
106
106
 
107
107
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
109
111
  end
110
112
 
111
113
  if attributes.key?(:'latest_version_href')
@@ -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.29'
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