pulpcore_client 3.23.9 → 3.23.11
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ArtifactDistributionResponse.md +9 -9
- data/docs/UpstreamPulpsApi.md +2 -2
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +44 -44
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/upstream_pulps_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a9f31256050b82c723d4f7cf230778d79bb3e98ada038054e4b841de83c8df'
|
4
|
+
data.tar.gz: 3e6a6a052511671eed66f5ad81f39f7d144d7b732635f17dab2b7ce6e786be42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 810c5a9a6e48f723187b695ab2da47ad588b46fde1e31ea6942963a63bbdd356ed8d84f0ef90eb382035fcd74f14735f874094c90eb22b7e2b3c86f001a93684
|
7
|
+
data.tar.gz: 7bbe5d8040a9d47ac18fc8d4020d72529af2952957a1fa15cc4d6d1ebdde475719fd1968d38fc322db7d761494701cb415a4cf1b676f5079e0546518230b47e4
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v3
|
10
|
-
- Package version: 3.23.
|
10
|
+
- Package version: 3.23.11
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulpcore_client-3.23.
|
27
|
+
gem install ./pulpcore_client-3.23.11.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.23.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.23.11.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulpcore_client', '~> 3.23.
|
36
|
+
gem 'pulpcore_client', '~> 3.23.11'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,26 +4,26 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
7
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
9
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
9
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
11
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
10
12
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
11
13
|
**base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
14
14
|
|
15
15
|
## Code Sample
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
require 'PulpcoreClient'
|
19
19
|
|
20
|
-
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
21
|
-
pulp_created: null,
|
20
|
+
instance = PulpcoreClient::ArtifactDistributionResponse.new(content_guard: null,
|
22
21
|
pulp_href: null,
|
23
|
-
|
24
|
-
|
22
|
+
pulp_created: null,
|
23
|
+
pulp_labels: null,
|
25
24
|
name: null,
|
26
|
-
|
25
|
+
base_path: null,
|
26
|
+
base_url: null)
|
27
27
|
```
|
28
28
|
|
29
29
|
|
data/docs/UpstreamPulpsApi.md
CHANGED
@@ -296,7 +296,7 @@ Name | Type | Description | Notes
|
|
296
296
|
|
297
297
|
## replicate
|
298
298
|
|
299
|
-
>
|
299
|
+
> TaskGroupOperationResponse replicate(upstream_pulp_href)
|
300
300
|
|
301
301
|
Replicate
|
302
302
|
|
@@ -335,7 +335,7 @@ Name | Type | Description | Notes
|
|
335
335
|
|
336
336
|
### Return type
|
337
337
|
|
338
|
-
[**
|
338
|
+
[**TaskGroupOperationResponse**](TaskGroupOperationResponse.md)
|
339
339
|
|
340
340
|
### Authorization
|
341
341
|
|
@@ -353,7 +353,7 @@ module PulpcoreClient
|
|
353
353
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
354
354
|
# @param upstream_pulp_href [String]
|
355
355
|
# @param [Hash] opts the optional parameters
|
356
|
-
# @return [
|
356
|
+
# @return [TaskGroupOperationResponse]
|
357
357
|
def replicate(upstream_pulp_href, opts = {})
|
358
358
|
data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, opts)
|
359
359
|
data
|
@@ -363,7 +363,7 @@ module PulpcoreClient
|
|
363
363
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
364
364
|
# @param upstream_pulp_href [String]
|
365
365
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @return [Array<(
|
366
|
+
# @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
|
367
367
|
def replicate_with_http_info(upstream_pulp_href, opts = {})
|
368
368
|
if @api_client.config.debugging
|
369
369
|
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
|
@@ -390,7 +390,7 @@ module PulpcoreClient
|
|
390
390
|
post_body = opts[:body]
|
391
391
|
|
392
392
|
# return_type
|
393
|
-
return_type = opts[:return_type] || '
|
393
|
+
return_type = opts[:return_type] || 'TaskGroupOperationResponse'
|
394
394
|
|
395
395
|
# auth_names
|
396
396
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -15,12 +15,18 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
|
18
|
+
# An optional content-guard.
|
19
|
+
attr_accessor :content_guard
|
20
|
+
|
21
|
+
attr_accessor :pulp_href
|
19
22
|
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
23
|
-
attr_accessor :
|
26
|
+
attr_accessor :pulp_labels
|
27
|
+
|
28
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
29
|
+
attr_accessor :name
|
24
30
|
|
25
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\")
|
26
32
|
attr_accessor :base_path
|
@@ -28,42 +34,36 @@ module PulpcoreClient
|
|
28
34
|
# The URL for accessing the publication as defined by this distribution.
|
29
35
|
attr_accessor :base_url
|
30
36
|
|
31
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
32
|
-
attr_accessor :name
|
33
|
-
|
34
|
-
# An optional content-guard.
|
35
|
-
attr_accessor :content_guard
|
36
|
-
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'
|
41
|
-
:'pulp_created' => :'pulp_created',
|
40
|
+
:'content_guard' => :'content_guard',
|
42
41
|
:'pulp_href' => :'pulp_href',
|
43
|
-
:'
|
44
|
-
:'
|
42
|
+
:'pulp_created' => :'pulp_created',
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
45
44
|
:'name' => :'name',
|
46
|
-
:'
|
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
|
-
:'
|
54
|
-
:'pulp_created' => :'DateTime',
|
53
|
+
:'content_guard' => :'String',
|
55
54
|
:'pulp_href' => :'String',
|
56
|
-
:'
|
57
|
-
:'
|
55
|
+
:'pulp_created' => :'DateTime',
|
56
|
+
:'pulp_labels' => :'Hash<String, String>',
|
58
57
|
:'name' => :'String',
|
59
|
-
:'
|
58
|
+
:'base_path' => :'String',
|
59
|
+
:'base_url' => :'String'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
63
|
# List of attributes with nullable: true
|
64
64
|
def self.openapi_nullable
|
65
65
|
Set.new([
|
66
|
-
:'content_guard'
|
66
|
+
:'content_guard',
|
67
67
|
])
|
68
68
|
end
|
69
69
|
|
@@ -82,34 +82,34 @@ module PulpcoreClient
|
|
82
82
|
h[k.to_sym] = v
|
83
83
|
}
|
84
84
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
|
87
|
-
self.pulp_labels = value
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.key?(:'pulp_created')
|
92
|
-
self.pulp_created = attributes[:'pulp_created']
|
85
|
+
if attributes.key?(:'content_guard')
|
86
|
+
self.content_guard = attributes[:'content_guard']
|
93
87
|
end
|
94
88
|
|
95
89
|
if attributes.key?(:'pulp_href')
|
96
90
|
self.pulp_href = attributes[:'pulp_href']
|
97
91
|
end
|
98
92
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
93
|
+
if attributes.key?(:'pulp_created')
|
94
|
+
self.pulp_created = attributes[:'pulp_created']
|
101
95
|
end
|
102
96
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
|
97
|
+
if attributes.key?(:'pulp_labels')
|
98
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
99
|
+
self.pulp_labels = value
|
100
|
+
end
|
105
101
|
end
|
106
102
|
|
107
103
|
if attributes.key?(:'name')
|
108
104
|
self.name = attributes[:'name']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
107
|
+
if attributes.key?(:'base_path')
|
108
|
+
self.base_path = attributes[:'base_path']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'base_url')
|
112
|
+
self.base_url = attributes[:'base_url']
|
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 @base_path.nil?
|
121
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
120
|
if @name.nil?
|
125
121
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
126
122
|
end
|
127
123
|
|
124
|
+
if @base_path.nil?
|
125
|
+
invalid_properties.push('invalid value for "base_path", base_path 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 @base_path.nil?
|
135
134
|
return false if @name.nil?
|
135
|
+
return false if @base_path.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
|
-
|
145
|
-
pulp_created == o.pulp_created &&
|
144
|
+
content_guard == o.content_guard &&
|
146
145
|
pulp_href == o.pulp_href &&
|
147
|
-
|
148
|
-
|
146
|
+
pulp_created == o.pulp_created &&
|
147
|
+
pulp_labels == o.pulp_labels &&
|
149
148
|
name == o.name &&
|
150
|
-
|
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
|
+
[content_guard, pulp_href, pulp_created, pulp_labels, name, base_path, base_url].hash
|
163
163
|
end
|
164
164
|
|
165
165
|
# Builds the object from hash
|
@@ -103,7 +103,7 @@ describe 'UpstreamPulpsApi' do
|
|
103
103
|
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
104
104
|
# @param upstream_pulp_href
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [
|
106
|
+
# @return [TaskGroupOperationResponse]
|
107
107
|
describe 'replicate test' do
|
108
108
|
it 'should work' do
|
109
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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_href"' 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_created"' 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_labels"' 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 "name"' 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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulpcore_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.23.
|
4
|
+
version: 3.23.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|