pulpcore_client 3.22.35 → 3.23.0.dev1676517320
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 +10 -10
- 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 +45 -45
- 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
@@ -127,8 +127,8 @@ module PulpcoreClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
131
|
-
@host = '
|
130
|
+
@scheme = 'https'
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpcoreClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "https://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -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
18
|
# An optional content-guard.
|
22
19
|
attr_accessor :content_guard
|
23
20
|
|
24
|
-
# The URL for accessing the publication as defined by this distribution.
|
25
|
-
attr_accessor :base_url
|
26
|
-
|
27
|
-
attr_accessor :pulp_href
|
28
|
-
|
29
|
-
attr_accessor :pulp_labels
|
30
|
-
|
31
21
|
# Timestamp of creation.
|
32
22
|
attr_accessor :pulp_created
|
33
23
|
|
24
|
+
attr_accessor :pulp_href
|
25
|
+
|
34
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
27
|
attr_accessor :base_path
|
36
28
|
|
29
|
+
# The URL for accessing the publication as defined by this distribution.
|
30
|
+
attr_accessor :base_url
|
31
|
+
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
|
+
attr_accessor :pulp_labels
|
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
40
|
:'content_guard' => :'content_guard',
|
42
|
-
:'base_url' => :'base_url',
|
43
|
-
:'pulp_href' => :'pulp_href',
|
44
|
-
:'pulp_labels' => :'pulp_labels',
|
45
41
|
:'pulp_created' => :'pulp_created',
|
46
|
-
:'
|
42
|
+
:'pulp_href' => :'pulp_href',
|
43
|
+
:'base_path' => :'base_path',
|
44
|
+
:'base_url' => :'base_url',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'pulp_labels' => :'pulp_labels'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
50
50
|
# Attribute type mapping.
|
51
51
|
def self.openapi_types
|
52
52
|
{
|
53
|
-
:'name' => :'String',
|
54
53
|
:'content_guard' => :'String',
|
55
|
-
:'base_url' => :'String',
|
56
|
-
:'pulp_href' => :'String',
|
57
|
-
:'pulp_labels' => :'Hash<String, String>',
|
58
54
|
:'pulp_created' => :'DateTime',
|
59
|
-
:'
|
55
|
+
:'pulp_href' => :'String',
|
56
|
+
:'base_path' => :'String',
|
57
|
+
:'base_url' => :'String',
|
58
|
+
:'name' => :'String',
|
59
|
+
:'pulp_labels' => :'Hash<String, String>'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
@@ -82,34 +82,34 @@ 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
85
|
if attributes.key?(:'content_guard')
|
90
86
|
self.content_guard = attributes[:'content_guard']
|
91
87
|
end
|
92
88
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
89
|
+
if attributes.key?(:'pulp_created')
|
90
|
+
self.pulp_created = attributes[:'pulp_created']
|
95
91
|
end
|
96
92
|
|
97
93
|
if attributes.key?(:'pulp_href')
|
98
94
|
self.pulp_href = attributes[:'pulp_href']
|
99
95
|
end
|
100
96
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
|
103
|
-
self.pulp_labels = value
|
104
|
-
end
|
97
|
+
if attributes.key?(:'base_path')
|
98
|
+
self.base_path = attributes[:'base_path']
|
105
99
|
end
|
106
100
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
101
|
+
if attributes.key?(:'base_url')
|
102
|
+
self.base_url = attributes[:'base_url']
|
109
103
|
end
|
110
104
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
105
|
+
if attributes.key?(:'name')
|
106
|
+
self.name = attributes[:'name']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'pulp_labels')
|
110
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
111
|
+
self.pulp_labels = value
|
112
|
+
end
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
@@ -117,22 +117,22 @@ module PulpcoreClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @name.nil?
|
121
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
120
|
if @base_path.nil?
|
125
121
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
126
122
|
end
|
127
123
|
|
124
|
+
if @name.nil?
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
126
|
+
end
|
127
|
+
|
128
128
|
invalid_properties
|
129
129
|
end
|
130
130
|
|
131
131
|
# Check to see if the all the properties in the model are valid
|
132
132
|
# @return true if the model is valid
|
133
133
|
def valid?
|
134
|
-
return false if @name.nil?
|
135
134
|
return false if @base_path.nil?
|
135
|
+
return false if @name.nil?
|
136
136
|
true
|
137
137
|
end
|
138
138
|
|
@@ -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
144
|
content_guard == o.content_guard &&
|
146
|
-
base_url == o.base_url &&
|
147
|
-
pulp_href == o.pulp_href &&
|
148
|
-
pulp_labels == o.pulp_labels &&
|
149
145
|
pulp_created == o.pulp_created &&
|
150
|
-
|
146
|
+
pulp_href == o.pulp_href &&
|
147
|
+
base_path == o.base_path &&
|
148
|
+
base_url == o.base_url &&
|
149
|
+
name == o.name &&
|
150
|
+
pulp_labels == o.pulp_labels
|
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
|
+
[content_guard, pulp_created, pulp_href, base_path, base_url, name, pulp_labels].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 "content_guard"' 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_created"' 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 "pulp_href"' 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 "base_path"' 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 "base_url"' 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 "name"' 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 "pulp_labels"' 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
|