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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/ArtifactDistributionResponse.md +12 -12
  4. data/docs/DomainBackendMigrator.md +19 -0
  5. data/docs/DomainsApi.md +54 -0
  6. data/docs/PatchedUpstreamPulp.md +2 -2
  7. data/docs/PublicationsApi.md +2 -2
  8. data/docs/RepositoryVersionsApi.md +2 -2
  9. data/docs/UpstreamPulp.md +2 -2
  10. data/docs/UpstreamPulpResponse.md +2 -2
  11. data/docs/UpstreamPulpsApi.md +56 -0
  12. data/lib/pulpcore_client/api/domains_api.rb +64 -0
  13. data/lib/pulpcore_client/api/publications_api.rb +3 -3
  14. data/lib/pulpcore_client/api/repository_versions_api.rb +3 -3
  15. data/lib/pulpcore_client/api/upstream_pulps_api.rb +88 -0
  16. data/lib/pulpcore_client/models/artifact_distribution_response.rb +50 -50
  17. data/lib/pulpcore_client/models/domain_backend_migrator.rb +228 -0
  18. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +9 -9
  19. data/lib/pulpcore_client/models/upstream_pulp.rb +9 -9
  20. data/lib/pulpcore_client/models/upstream_pulp_response.rb +9 -9
  21. data/lib/pulpcore_client/version.rb +1 -1
  22. data/lib/pulpcore_client.rb +1 -0
  23. data/spec/api/domains_api_spec.rb +12 -0
  24. data/spec/api/publications_api_spec.rb +1 -1
  25. data/spec/api/repository_versions_api_spec.rb +1 -1
  26. data/spec/api/upstream_pulps_api_spec.rb +28 -0
  27. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  28. data/spec/models/domain_backend_migrator_spec.rb +47 -0
  29. data/spec/models/patched_upstream_pulp_spec.rb +1 -1
  30. data/spec/models/upstream_pulp_response_spec.rb +1 -1
  31. data/spec/models/upstream_pulp_spec.rb +1 -1
  32. 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
- # One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \"foo=bar,key=val\" or \"foo,key\"
49
- attr_accessor :pulp_label_select
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
- :'pulp_label_select' => :'pulp_label_select'
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
- :'pulp_label_select' => :'String'
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
- :'pulp_label_select'
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?(:'pulp_label_select')
154
- self.pulp_label_select = attributes[:'pulp_label_select']
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
- pulp_label_select == o.pulp_label_select
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, pulp_label_select].hash
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
- # One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \"foo=bar,key=val\" or \"foo,key\"
51
- attr_accessor :pulp_label_select
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
- :'pulp_label_select' => :'pulp_label_select',
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
- :'pulp_label_select' => :'String',
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
- :'pulp_label_select',
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?(:'pulp_label_select')
166
- self.pulp_label_select = attributes[:'pulp_label_select']
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
- pulp_label_select == o.pulp_label_select &&
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, pulp_label_select, last_replication].hash
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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.60.0'
14
+ VERSION = '3.62.0'
15
15
  end
@@ -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&#39;s storage backend to a new one. Launches a background task to copy the domain&#39;s artifacts over to the supplied storage backend. Then updates the domain&#39;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&#39;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 Content Unit referenced by HREF
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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 Content Unit referenced by HREF
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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;base_url&#x60; - Base url * &#x60;-base_url&#x60; - Base url (descending) * &#x60;api_root&#x60; - Api root * &#x60;-api_root&#x60; - Api root (descending) * &#x60;domain&#x60; - Domain * &#x60;-domain&#x60; - Domain (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;pulp_label_select&#x60; - Pulp label select * &#x60;-pulp_label_select&#x60; - Pulp label select (descending) * &#x60;q_select&#x60; - Q select * &#x60;-q_select&#x60; - Q select (descending) * &#x60;last_replication&#x60; - Last replication * &#x60;-last_replication&#x60; - Last replication (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 "pulp_last_updated"' do
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 "pulp_labels"' do
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 "pulp_href"' do
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 "content_guard"' do
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 "no_content_change_since"' do
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 "name"' do
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 "base_path"' do
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 "pulp_created"' do
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 "hidden"' do
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 "base_url"' do
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 "pulp_label_select"' do
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 "pulp_label_select"' do
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 "pulp_label_select"' do
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