pulpcore_client 3.22.35 → 3.23.0.dev1676344322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulpcore_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccessPoliciesApi.md +1 -1
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +1 -1
- data/docs/ContentApi.md +1 -1
- data/docs/ContentguardsApi.md +1 -1
- data/docs/ContentguardsContentRedirectApi.md +1 -1
- data/docs/ContentguardsRbacApi.md +1 -1
- data/docs/DistributionsApi.md +5 -1
- data/docs/DistributionsArtifactsApi.md +5 -1
- data/docs/ExportersFilesystemApi.md +1 -1
- data/docs/ExportersFilesystemExportsApi.md +1 -1
- data/docs/ExportersPulpApi.md +1 -1
- data/docs/ExportersPulpExportsApi.md +1 -1
- data/docs/GroupsApi.md +1 -1
- data/docs/GroupsRolesApi.md +1 -1
- data/docs/GroupsUsersApi.md +1 -1
- data/docs/ImportersPulpApi.md +1 -1
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +1 -1
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanupApi.md +1 -1
- data/docs/PublicationsApi.md +1 -1
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +1 -1
- data/docs/RepairApi.md +1 -1
- data/docs/RepositoriesApi.md +17 -1
- data/docs/RepositoriesReclaimSpaceApi.md +1 -1
- data/docs/RepositoryVersionsApi.md +1 -1
- data/docs/RolesApi.md +1 -1
- data/docs/SigningServicesApi.md +1 -1
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +1 -1
- data/docs/TaskSchedulesApi.md +1 -1
- data/docs/TasksApi.md +1 -1
- data/docs/UploadsApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/docs/UsersRolesApi.md +1 -1
- data/docs/WorkersApi.md +1 -1
- data/lib/pulpcore_client/api/distributions_api.rb +6 -0
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +6 -0
- data/lib/pulpcore_client/api/repositories_api.rb +24 -0
- data/lib/pulpcore_client/api/workers_api.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +34 -34
- data/lib/pulpcore_client/models/nested_role.rb +19 -0
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +0 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/distributions_api_spec.rb +2 -0
- data/spec/api/distributions_artifacts_api_spec.rb +2 -0
- data/spec/api/repositories_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- metadata +150 -150
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# An optional content-guard.
|
22
|
-
attr_accessor :content_guard
|
23
|
-
|
24
|
-
# The URL for accessing the publication as defined by this distribution.
|
25
|
-
attr_accessor :base_url
|
26
|
-
|
27
18
|
attr_accessor :pulp_href
|
28
19
|
|
29
20
|
attr_accessor :pulp_labels
|
30
21
|
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
23
|
+
attr_accessor :name
|
24
|
+
|
31
25
|
# Timestamp of creation.
|
32
26
|
attr_accessor :pulp_created
|
33
27
|
|
28
|
+
# An optional content-guard.
|
29
|
+
attr_accessor :content_guard
|
30
|
+
|
34
31
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
32
|
attr_accessor :base_path
|
36
33
|
|
34
|
+
# The URL for accessing the publication as defined by this distribution.
|
35
|
+
attr_accessor :base_url
|
36
|
+
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'name' => :'name',
|
41
|
-
:'content_guard' => :'content_guard',
|
42
|
-
:'base_url' => :'base_url',
|
43
40
|
:'pulp_href' => :'pulp_href',
|
44
41
|
:'pulp_labels' => :'pulp_labels',
|
42
|
+
:'name' => :'name',
|
45
43
|
:'pulp_created' => :'pulp_created',
|
46
|
-
:'
|
44
|
+
:'content_guard' => :'content_guard',
|
45
|
+
:'base_path' => :'base_path',
|
46
|
+
:'base_url' => :'base_url'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
50
50
|
# Attribute type mapping.
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:'name' => :'String',
|
54
|
-
:'content_guard' => :'String',
|
55
|
-
:'base_url' => :'String',
|
56
53
|
:'pulp_href' => :'String',
|
57
54
|
:'pulp_labels' => :'Hash<String, String>',
|
55
|
+
:'name' => :'String',
|
58
56
|
:'pulp_created' => :'DateTime',
|
59
|
-
:'
|
57
|
+
:'content_guard' => :'String',
|
58
|
+
:'base_path' => :'String',
|
59
|
+
:'base_url' => :'String'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -82,18 +82,6 @@ module PulpcoreClient
|
|
82
82
|
h[k.to_sym] = v
|
83
83
|
}
|
84
84
|
|
85
|
-
if attributes.key?(:'name')
|
86
|
-
self.name = attributes[:'name']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.key?(:'content_guard')
|
90
|
-
self.content_guard = attributes[:'content_guard']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'base_url')
|
94
|
-
self.base_url = attributes[:'base_url']
|
95
|
-
end
|
96
|
-
|
97
85
|
if attributes.key?(:'pulp_href')
|
98
86
|
self.pulp_href = attributes[:'pulp_href']
|
99
87
|
end
|
@@ -104,13 +92,25 @@ module PulpcoreClient
|
|
104
92
|
end
|
105
93
|
end
|
106
94
|
|
95
|
+
if attributes.key?(:'name')
|
96
|
+
self.name = attributes[:'name']
|
97
|
+
end
|
98
|
+
|
107
99
|
if attributes.key?(:'pulp_created')
|
108
100
|
self.pulp_created = attributes[:'pulp_created']
|
109
101
|
end
|
110
102
|
|
103
|
+
if attributes.key?(:'content_guard')
|
104
|
+
self.content_guard = attributes[:'content_guard']
|
105
|
+
end
|
106
|
+
|
111
107
|
if attributes.key?(:'base_path')
|
112
108
|
self.base_path = attributes[:'base_path']
|
113
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'base_url')
|
112
|
+
self.base_url = attributes[:'base_url']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -141,13 +141,13 @@ module PulpcoreClient
|
|
141
141
|
def ==(o)
|
142
142
|
return true if self.equal?(o)
|
143
143
|
self.class == o.class &&
|
144
|
-
name == o.name &&
|
145
|
-
content_guard == o.content_guard &&
|
146
|
-
base_url == o.base_url &&
|
147
144
|
pulp_href == o.pulp_href &&
|
148
145
|
pulp_labels == o.pulp_labels &&
|
146
|
+
name == o.name &&
|
149
147
|
pulp_created == o.pulp_created &&
|
150
|
-
|
148
|
+
content_guard == o.content_guard &&
|
149
|
+
base_path == o.base_path &&
|
150
|
+
base_url == o.base_url
|
151
151
|
end
|
152
152
|
|
153
153
|
# @see the `==` method
|
@@ -159,7 +159,7 @@ module PulpcoreClient
|
|
159
159
|
# Calculates hash code according to all attributes.
|
160
160
|
# @return [Integer] Hash code
|
161
161
|
def hash
|
162
|
-
[
|
162
|
+
[pulp_href, pulp_labels, name, pulp_created, content_guard, base_path, base_url].hash
|
163
163
|
end
|
164
164
|
|
165
165
|
# Builds the object from hash
|
@@ -85,6 +85,10 @@ module PulpcoreClient
|
|
85
85
|
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
86
86
|
end
|
87
87
|
|
88
|
+
if @role.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
88
92
|
invalid_properties
|
89
93
|
end
|
90
94
|
|
@@ -92,9 +96,24 @@ module PulpcoreClient
|
|
92
96
|
# @return true if the model is valid
|
93
97
|
def valid?
|
94
98
|
return false if @role.nil?
|
99
|
+
return false if @role.to_s.length < 1
|
95
100
|
true
|
96
101
|
end
|
97
102
|
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param [Object] role Value to be assigned
|
105
|
+
def role=(role)
|
106
|
+
if role.nil?
|
107
|
+
fail ArgumentError, 'role cannot be nil'
|
108
|
+
end
|
109
|
+
|
110
|
+
if role.to_s.length < 1
|
111
|
+
fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
|
112
|
+
end
|
113
|
+
|
114
|
+
@role = role
|
115
|
+
end
|
116
|
+
|
98
117
|
# Checks equality by comparing each attribute.
|
99
118
|
# @param [Object] Object to be compared
|
100
119
|
def ==(o)
|
@@ -68,22 +68,12 @@ module PulpcoreClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -49,6 +49,8 @@ describe 'DistributionsApi' do
|
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
50
50
|
# @option opts [Array<String>] :ordering Ordering
|
51
51
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
52
|
+
# @option opts [String] :repository Filter results where repository matches value
|
53
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
52
54
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
53
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
54
56
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -49,6 +49,8 @@ describe 'DistributionsArtifactsApi' do
|
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
50
50
|
# @option opts [Array<String>] :ordering Ordering
|
51
51
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
52
|
+
# @option opts [String] :repository Filter results where repository matches value
|
53
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
52
54
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
53
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
54
56
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -46,6 +46,14 @@ describe 'RepositoriesApi' do
|
|
46
46
|
# @option opts [Array<String>] :ordering Ordering
|
47
47
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
48
48
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
49
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
50
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
51
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
52
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
53
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
54
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
55
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
56
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
49
57
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
50
58
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
51
59
|
# @return [PaginatedRepositoryResponseList]
|
data/spec/configuration_spec.rb
CHANGED
@@ -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("
|
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("
|
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("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -32,43 +32,43 @@ describe 'ArtifactDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_href"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_labels"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "name"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "pulp_created"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "content_guard"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "base_path"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "base_url"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|