pulpcore_client 3.60.0 → 3.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ArtifactDistributionResponse.md +12 -12
- data/docs/DomainBackendMigrator.md +19 -0
- data/docs/DomainsApi.md +54 -0
- data/docs/PatchedUpstreamPulp.md +2 -2
- data/docs/PublicationsApi.md +2 -2
- data/docs/RepositoryVersionsApi.md +2 -2
- data/docs/UpstreamPulp.md +2 -2
- data/docs/UpstreamPulpResponse.md +2 -2
- data/docs/UpstreamPulpsApi.md +56 -0
- data/lib/pulpcore_client/api/domains_api.rb +64 -0
- data/lib/pulpcore_client/api/publications_api.rb +3 -3
- data/lib/pulpcore_client/api/repository_versions_api.rb +3 -3
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +88 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +50 -50
- data/lib/pulpcore_client/models/domain_backend_migrator.rb +228 -0
- data/lib/pulpcore_client/models/patched_upstream_pulp.rb +9 -9
- data/lib/pulpcore_client/models/upstream_pulp.rb +9 -9
- data/lib/pulpcore_client/models/upstream_pulp_response.rb +9 -9
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +1 -0
- data/spec/api/domains_api_spec.rb +12 -0
- data/spec/api/publications_api_spec.rb +1 -1
- data/spec/api/repository_versions_api_spec.rb +1 -1
- data/spec/api/upstream_pulps_api_spec.rb +28 -0
- data/spec/models/artifact_distribution_response_spec.rb +10 -10
- data/spec/models/domain_backend_migrator_spec.rb +47 -0
- data/spec/models/patched_upstream_pulp_spec.rb +1 -1
- data/spec/models/upstream_pulp_response_spec.rb +1 -1
- data/spec/models/upstream_pulp_spec.rb +1 -1
- metadata +156 -152
@@ -45,8 +45,8 @@ module PulpcoreClient
|
|
45
45
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
46
46
|
attr_accessor :password
|
47
47
|
|
48
|
-
#
|
49
|
-
attr_accessor :
|
48
|
+
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
49
|
+
attr_accessor :q_select
|
50
50
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
@@ -61,7 +61,7 @@ module PulpcoreClient
|
|
61
61
|
:'tls_validation' => :'tls_validation',
|
62
62
|
:'username' => :'username',
|
63
63
|
:'password' => :'password',
|
64
|
-
:'
|
64
|
+
:'q_select' => :'q_select'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -78,7 +78,7 @@ module PulpcoreClient
|
|
78
78
|
:'tls_validation' => :'Boolean',
|
79
79
|
:'username' => :'String',
|
80
80
|
:'password' => :'String',
|
81
|
-
:'
|
81
|
+
:'q_select' => :'String'
|
82
82
|
}
|
83
83
|
end
|
84
84
|
|
@@ -91,7 +91,7 @@ module PulpcoreClient
|
|
91
91
|
:'client_key',
|
92
92
|
:'username',
|
93
93
|
:'password',
|
94
|
-
:'
|
94
|
+
:'q_select'
|
95
95
|
])
|
96
96
|
end
|
97
97
|
|
@@ -150,8 +150,8 @@ module PulpcoreClient
|
|
150
150
|
self.password = attributes[:'password']
|
151
151
|
end
|
152
152
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
self.
|
153
|
+
if attributes.key?(:'q_select')
|
154
|
+
self.q_select = attributes[:'q_select']
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -345,7 +345,7 @@ module PulpcoreClient
|
|
345
345
|
tls_validation == o.tls_validation &&
|
346
346
|
username == o.username &&
|
347
347
|
password == o.password &&
|
348
|
-
|
348
|
+
q_select == o.q_select
|
349
349
|
end
|
350
350
|
|
351
351
|
# @see the `==` method
|
@@ -357,7 +357,7 @@ module PulpcoreClient
|
|
357
357
|
# Calculates hash code according to all attributes.
|
358
358
|
# @return [Integer] Hash code
|
359
359
|
def hash
|
360
|
-
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password,
|
360
|
+
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select].hash
|
361
361
|
end
|
362
362
|
|
363
363
|
# Builds the object from hash
|
@@ -47,8 +47,8 @@ module PulpcoreClient
|
|
47
47
|
# List of hidden (write only) fields
|
48
48
|
attr_accessor :hidden_fields
|
49
49
|
|
50
|
-
#
|
51
|
-
attr_accessor :
|
50
|
+
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
51
|
+
attr_accessor :q_select
|
52
52
|
|
53
53
|
# Timestamp of the last replication that occurred. Equals to 'null' if no replication task has been executed.
|
54
54
|
attr_accessor :last_replication
|
@@ -67,7 +67,7 @@ module PulpcoreClient
|
|
67
67
|
:'client_cert' => :'client_cert',
|
68
68
|
:'tls_validation' => :'tls_validation',
|
69
69
|
:'hidden_fields' => :'hidden_fields',
|
70
|
-
:'
|
70
|
+
:'q_select' => :'q_select',
|
71
71
|
:'last_replication' => :'last_replication'
|
72
72
|
}
|
73
73
|
end
|
@@ -86,7 +86,7 @@ module PulpcoreClient
|
|
86
86
|
:'client_cert' => :'String',
|
87
87
|
:'tls_validation' => :'Boolean',
|
88
88
|
:'hidden_fields' => :'Array<RemoteResponseHiddenFields>',
|
89
|
-
:'
|
89
|
+
:'q_select' => :'String',
|
90
90
|
:'last_replication' => :'DateTime'
|
91
91
|
}
|
92
92
|
end
|
@@ -97,7 +97,7 @@ module PulpcoreClient
|
|
97
97
|
:'domain',
|
98
98
|
:'ca_cert',
|
99
99
|
:'client_cert',
|
100
|
-
:'
|
100
|
+
:'q_select',
|
101
101
|
])
|
102
102
|
end
|
103
103
|
|
@@ -162,8 +162,8 @@ module PulpcoreClient
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
self.
|
165
|
+
if attributes.key?(:'q_select')
|
166
|
+
self.q_select = attributes[:'q_select']
|
167
167
|
end
|
168
168
|
|
169
169
|
if attributes.key?(:'last_replication')
|
@@ -215,7 +215,7 @@ module PulpcoreClient
|
|
215
215
|
client_cert == o.client_cert &&
|
216
216
|
tls_validation == o.tls_validation &&
|
217
217
|
hidden_fields == o.hidden_fields &&
|
218
|
-
|
218
|
+
q_select == o.q_select &&
|
219
219
|
last_replication == o.last_replication
|
220
220
|
end
|
221
221
|
|
@@ -228,7 +228,7 @@ module PulpcoreClient
|
|
228
228
|
# Calculates hash code according to all attributes.
|
229
229
|
# @return [Integer] Hash code
|
230
230
|
def hash
|
231
|
-
[pulp_href, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, hidden_fields,
|
231
|
+
[pulp_href, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, hidden_fields, q_select, last_replication].hash
|
232
232
|
end
|
233
233
|
|
234
234
|
# Builds the object from hash
|
data/lib/pulpcore_client.rb
CHANGED
@@ -35,6 +35,7 @@ require 'pulpcore_client/models/content_summary_response'
|
|
35
35
|
require 'pulpcore_client/models/database_connection_response'
|
36
36
|
require 'pulpcore_client/models/distribution_response'
|
37
37
|
require 'pulpcore_client/models/domain'
|
38
|
+
require 'pulpcore_client/models/domain_backend_migrator'
|
38
39
|
require 'pulpcore_client/models/domain_response'
|
39
40
|
require 'pulpcore_client/models/evaluation_response'
|
40
41
|
require 'pulpcore_client/models/filesystem_export'
|
@@ -84,6 +84,18 @@ describe 'DomainsApi' do
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
# unit tests for migrate
|
88
|
+
# Migrate storage backend
|
89
|
+
# Migrate the domain's storage backend to a new one. Launches a background task to copy the domain's artifacts over to the supplied storage backend. Then updates the domain's storage settings to the new storage backend. This task does not delete the stored files of the artifacts from the previous backend. **IMPORTANT** This task will block all other tasks within the domain until the migration is completed, essentially putting the domain into a read only state. Content will still be served from the old storage backend until the migration has completed, so don't remove the old backend until then. Note, this endpoint is not allowed on the default domain. This feature is in Tech Preview and is subject to future change and thus not guaranteed to be backwards compatible.
|
90
|
+
# @param domain_backend_migrator
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [AsyncOperationResponse]
|
93
|
+
describe 'migrate test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
87
99
|
# unit tests for partial_update
|
88
100
|
# Update a domain
|
89
101
|
# Trigger an asynchronous partial update task
|
@@ -37,7 +37,7 @@ describe 'PublicationsApi' do
|
|
37
37
|
# A base class for any publication viewset.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :content Content Unit referenced by HREF
|
40
|
-
# @option opts [String] :content__in
|
40
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
@@ -37,7 +37,7 @@ describe 'RepositoryVersionsApi' do
|
|
37
37
|
# A mixin to hold the shared get_queryset logic used by RepositoryVersionViewSets.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :content Content Unit referenced by HREF
|
40
|
-
# @option opts [String] :content__in
|
40
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
42
42
|
# @option opts [Integer] :number Filter results where number matches value
|
43
43
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -73,8 +73,36 @@ describe 'UpstreamPulpsApi' do
|
|
73
73
|
# List upstream pulps
|
74
74
|
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [String] :base_url Filter results where base_url matches value
|
77
|
+
# @option opts [String] :base_url__contains Filter results where base_url contains value
|
78
|
+
# @option opts [String] :base_url__icontains Filter results where base_url contains value
|
79
|
+
# @option opts [String] :base_url__iexact Filter results where base_url matches value
|
80
|
+
# @option opts [Array<String>] :base_url__in Filter results where base_url is in a comma-separated list of values
|
81
|
+
# @option opts [String] :base_url__iregex Filter results where base_url matches regex value
|
82
|
+
# @option opts [String] :base_url__istartswith Filter results where base_url starts with value
|
83
|
+
# @option opts [String] :base_url__regex Filter results where base_url matches regex value
|
84
|
+
# @option opts [String] :base_url__startswith Filter results where base_url starts with value
|
85
|
+
# @option opts [DateTime] :last_replication Filter results where last_replication matches value
|
86
|
+
# @option opts [DateTime] :last_replication__gt Filter results where last_replication is greater than value
|
87
|
+
# @option opts [DateTime] :last_replication__gte Filter results where last_replication is greater than or equal to value
|
88
|
+
# @option opts [DateTime] :last_replication__lt Filter results where last_replication is less than value
|
89
|
+
# @option opts [DateTime] :last_replication__lte Filter results where last_replication is less than or equal to value
|
90
|
+
# @option opts [Array<DateTime>] :last_replication__range Filter results where last_replication is between two comma separated values
|
76
91
|
# @option opts [Integer] :limit Number of results to return per page.
|
92
|
+
# @option opts [String] :name Filter results where name matches value
|
93
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
94
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
95
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
96
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
97
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
98
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
99
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
100
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
77
101
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
102
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `base_url` - Base url * `-base_url` - Base url (descending) * `api_root` - Api root * `-api_root` - Api root (descending) * `domain` - Domain * `-domain` - Domain (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `pulp_label_select` - Pulp label select * `-pulp_label_select` - Pulp label select (descending) * `q_select` - Q select * `-q_select` - Q select (descending) * `last_replication` - Last replication * `-last_replication` - Last replication (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
103
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
104
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
105
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
78
106
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
107
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
108
|
# @return [PaginatedUpstreamPulpResponseList]
|
@@ -32,61 +32,61 @@ 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_labels"' 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 "no_content_change_since"' 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 "base_url"' 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 "name"' 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 "pulp_created"' 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 "pulp_last_updated"' 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
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "pulp_href"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "content_guard"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "hidden"' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
@@ -0,0 +1,47 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::DomainBackendMigrator
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'DomainBackendMigrator' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpcoreClient::DomainBackendMigrator.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of DomainBackendMigrator' do
|
31
|
+
it 'should create an instance of DomainBackendMigrator' do
|
32
|
+
expect(@instance).to be_instance_of(PulpcoreClient::DomainBackendMigrator)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "storage_class"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "storage_settings"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -92,7 +92,7 @@ describe 'PatchedUpstreamPulp' do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "q_select"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
end
|
@@ -98,7 +98,7 @@ describe 'UpstreamPulpResponse' do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "q_select"' do
|
102
102
|
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
104
|
end
|
@@ -92,7 +92,7 @@ describe 'UpstreamPulp' do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "q_select"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
end
|