pulpcore_client 3.45.3 → 3.46.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 +4 -4
- data/docs/ArtifactDistributionResponse.md +12 -12
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +48 -48
- data/lib/pulpcore_client/models/domain.rb +9 -0
- data/lib/pulpcore_client/models/domain_response.rb +9 -0
- data/lib/pulpcore_client/models/patched_domain.rb +9 -0
- data/lib/pulpcore_client/version.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: 05a2486c3bb75d63e301a9ea188148430ef68b28530faed9b6accf8d5f45f658
|
4
|
+
data.tar.gz: bfcd51bf09a8d3d9d931d3b3d9c93f64c20667ed23f408ff75c5e524fe6b848b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6fc4983eef47e4be2669c8eca55b9bd99e73ccab6e6524c1fdeec68736cc863aaa13d4a2c0cd1073ab6a7fd935bf3d96cb1a1285b14fefac8d192de8f31495b
|
7
|
+
data.tar.gz: e86f1702f10467127b0415f4f2b4057305b543a7980a5027840cd15519957051767721b6f085c2773fef2965e7f8a2930da8585af5b36995da13cf40d03ef097
|
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.
|
10
|
+
- Package version: 3.46.0
|
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.
|
27
|
+
gem install ./pulpcore_client-3.46.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.46.0.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.
|
36
|
+
gem 'pulpcore_client', '~> 3.46.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,28 +4,28 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**content_guard** | **String** | An optional content-guard. | [optional]
|
8
|
-
**pulp_labels** | **Hash<String, String>** | | [optional]
|
9
|
-
**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\") |
|
10
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
11
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
12
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
13
7
|
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**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\") |
|
10
|
+
**content_guard** | **String** | An optional content-guard. | [optional]
|
14
11
|
**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
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
14
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
15
15
|
|
16
16
|
## Code Sample
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpcoreClient'
|
20
20
|
|
21
|
-
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
22
|
-
|
21
|
+
instance = PulpcoreClient::ArtifactDistributionResponse.new(hidden: null,
|
22
|
+
pulp_created: null,
|
23
23
|
base_path: null,
|
24
|
-
|
24
|
+
content_guard: null,
|
25
|
+
base_url: null,
|
25
26
|
name: null,
|
26
|
-
|
27
|
-
|
28
|
-
base_url: null)
|
27
|
+
pulp_href: null,
|
28
|
+
pulp_labels: null)
|
29
29
|
```
|
30
30
|
|
31
31
|
|
@@ -15,53 +15,53 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
20
|
|
21
|
-
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
22
23
|
|
23
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
25
|
attr_accessor :base_path
|
25
26
|
|
26
|
-
|
27
|
+
# An optional content-guard.
|
28
|
+
attr_accessor :content_guard
|
29
|
+
|
30
|
+
# The URL for accessing the publication as defined by this distribution.
|
31
|
+
attr_accessor :base_url
|
27
32
|
|
28
33
|
# A unique name. Ex, `rawhide` and `stable`.
|
29
34
|
attr_accessor :name
|
30
35
|
|
31
|
-
|
32
|
-
attr_accessor :pulp_created
|
33
|
-
|
34
|
-
# Whether this distribution should be shown in the content app.
|
35
|
-
attr_accessor :hidden
|
36
|
+
attr_accessor :pulp_href
|
36
37
|
|
37
|
-
|
38
|
-
attr_accessor :base_url
|
38
|
+
attr_accessor :pulp_labels
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'
|
44
|
-
:'
|
43
|
+
:'hidden' => :'hidden',
|
44
|
+
:'pulp_created' => :'pulp_created',
|
45
45
|
:'base_path' => :'base_path',
|
46
|
-
:'
|
46
|
+
:'content_guard' => :'content_guard',
|
47
|
+
:'base_url' => :'base_url',
|
47
48
|
:'name' => :'name',
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'base_url' => :'base_url'
|
49
|
+
:'pulp_href' => :'pulp_href',
|
50
|
+
:'pulp_labels' => :'pulp_labels'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'
|
58
|
-
:'
|
57
|
+
:'hidden' => :'Boolean',
|
58
|
+
:'pulp_created' => :'DateTime',
|
59
59
|
:'base_path' => :'String',
|
60
|
-
:'
|
60
|
+
:'content_guard' => :'String',
|
61
|
+
:'base_url' => :'String',
|
61
62
|
:'name' => :'String',
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'base_url' => :'String'
|
63
|
+
:'pulp_href' => :'String',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -87,40 +87,40 @@ module PulpcoreClient
|
|
87
87
|
h[k.to_sym] = v
|
88
88
|
}
|
89
89
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
90
|
+
if attributes.key?(:'hidden')
|
91
|
+
self.hidden = attributes[:'hidden']
|
92
|
+
else
|
93
|
+
self.hidden = false
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
96
|
+
if attributes.key?(:'pulp_created')
|
97
|
+
self.pulp_created = attributes[:'pulp_created']
|
98
98
|
end
|
99
99
|
|
100
100
|
if attributes.key?(:'base_path')
|
101
101
|
self.base_path = attributes[:'base_path']
|
102
102
|
end
|
103
103
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
104
|
+
if attributes.key?(:'content_guard')
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
106
106
|
end
|
107
107
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
108
|
+
if attributes.key?(:'base_url')
|
109
|
+
self.base_url = attributes[:'base_url']
|
110
110
|
end
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'name')
|
113
|
+
self.name = attributes[:'name']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
118
|
-
else
|
119
|
-
self.hidden = false
|
116
|
+
if attributes.key?(:'pulp_href')
|
117
|
+
self.pulp_href = attributes[:'pulp_href']
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -152,14 +152,14 @@ module PulpcoreClient
|
|
152
152
|
def ==(o)
|
153
153
|
return true if self.equal?(o)
|
154
154
|
self.class == o.class &&
|
155
|
-
|
156
|
-
|
155
|
+
hidden == o.hidden &&
|
156
|
+
pulp_created == o.pulp_created &&
|
157
157
|
base_path == o.base_path &&
|
158
|
-
|
158
|
+
content_guard == o.content_guard &&
|
159
|
+
base_url == o.base_url &&
|
159
160
|
name == o.name &&
|
160
|
-
|
161
|
-
|
162
|
-
base_url == o.base_url
|
161
|
+
pulp_href == o.pulp_href &&
|
162
|
+
pulp_labels == o.pulp_labels
|
163
163
|
end
|
164
164
|
|
165
165
|
# @see the `==` method
|
@@ -171,7 +171,7 @@ module PulpcoreClient
|
|
171
171
|
# Calculates hash code according to all attributes.
|
172
172
|
# @return [Integer] Hash code
|
173
173
|
def hash
|
174
|
-
[
|
174
|
+
[hidden, pulp_created, base_path, content_guard, base_url, name, pulp_href, pulp_labels].hash
|
175
175
|
end
|
176
176
|
|
177
177
|
# Builds the object from hash
|
@@ -116,6 +116,10 @@ module PulpcoreClient
|
|
116
116
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
117
117
|
end
|
118
118
|
|
119
|
+
if @name.to_s.length > 50
|
120
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
121
|
+
end
|
122
|
+
|
119
123
|
if @name.to_s.length < 1
|
120
124
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
121
125
|
end
|
@@ -144,6 +148,7 @@ module PulpcoreClient
|
|
144
148
|
# @return true if the model is valid
|
145
149
|
def valid?
|
146
150
|
return false if @name.nil?
|
151
|
+
return false if @name.to_s.length > 50
|
147
152
|
return false if @name.to_s.length < 1
|
148
153
|
return false if @name !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
149
154
|
return false if !@description.nil? && @description.to_s.length < 1
|
@@ -159,6 +164,10 @@ module PulpcoreClient
|
|
159
164
|
fail ArgumentError, 'name cannot be nil'
|
160
165
|
end
|
161
166
|
|
167
|
+
if name.to_s.length > 50
|
168
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
169
|
+
end
|
170
|
+
|
162
171
|
if name.to_s.length < 1
|
163
172
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
164
173
|
end
|
@@ -133,6 +133,10 @@ module PulpcoreClient
|
|
133
133
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
134
134
|
end
|
135
135
|
|
136
|
+
if @name.to_s.length > 50
|
137
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
138
|
+
end
|
139
|
+
|
136
140
|
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
137
141
|
if @name !~ pattern
|
138
142
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
@@ -153,6 +157,7 @@ module PulpcoreClient
|
|
153
157
|
# @return true if the model is valid
|
154
158
|
def valid?
|
155
159
|
return false if @name.nil?
|
160
|
+
return false if @name.to_s.length > 50
|
156
161
|
return false if @name !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
157
162
|
return false if @storage_class.nil?
|
158
163
|
return false if @storage_settings.nil?
|
@@ -166,6 +171,10 @@ module PulpcoreClient
|
|
166
171
|
fail ArgumentError, 'name cannot be nil'
|
167
172
|
end
|
168
173
|
|
174
|
+
if name.to_s.length > 50
|
175
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
176
|
+
end
|
177
|
+
|
169
178
|
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
170
179
|
if name !~ pattern
|
171
180
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
@@ -112,6 +112,10 @@ module PulpcoreClient
|
|
112
112
|
# @return Array for valid properties with the reasons
|
113
113
|
def list_invalid_properties
|
114
114
|
invalid_properties = Array.new
|
115
|
+
if !@name.nil? && @name.to_s.length > 50
|
116
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
117
|
+
end
|
118
|
+
|
115
119
|
if !@name.nil? && @name.to_s.length < 1
|
116
120
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
117
121
|
end
|
@@ -131,6 +135,7 @@ module PulpcoreClient
|
|
131
135
|
# Check to see if the all the properties in the model are valid
|
132
136
|
# @return true if the model is valid
|
133
137
|
def valid?
|
138
|
+
return false if !@name.nil? && @name.to_s.length > 50
|
134
139
|
return false if !@name.nil? && @name.to_s.length < 1
|
135
140
|
return false if !@name.nil? && @name !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
136
141
|
return false if !@description.nil? && @description.to_s.length < 1
|
@@ -140,6 +145,10 @@ module PulpcoreClient
|
|
140
145
|
# Custom attribute writer method with validation
|
141
146
|
# @param [Object] name Value to be assigned
|
142
147
|
def name=(name)
|
148
|
+
if !name.nil? && name.to_s.length > 50
|
149
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.'
|
150
|
+
end
|
151
|
+
|
143
152
|
if !name.nil? && name.to_s.length < 1
|
144
153
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
145
154
|
end
|
@@ -32,13 +32,13 @@ 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 "hidden"' 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
|
@@ -50,31 +50,31 @@ describe 'ArtifactDistributionResponse' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "content_guard"' 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_href"' 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_labels"' 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
|
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.
|
4
|
+
version: 3.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|