pulpcore_client 3.45.2 → 3.47.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20a44faee87151339906683474f5840c72248389d373a49e67c5f797f2886c1e
4
- data.tar.gz: 071a87d055070722552052898c0af39f2f81593b474652067635374afe9210d8
3
+ metadata.gz: 927ce9505677c1bc18adfbc85b100d0a042e4c9334341e113e350af1442bd6ef
4
+ data.tar.gz: 934a040a157a62c8de91556ae0154d05ccb6eae3d94510e93aa49ef20aeb4373
5
5
  SHA512:
6
- metadata.gz: 2b2d42759b80eea849bfc9e9084c7f925350ef3310cbef98aa09631c814d83f85f84ded47e45ebf3c0b17b18ccc9ac5b967ac27adfe4122d9cef1d8e4ec4271d
7
- data.tar.gz: 52f9026bdd44be930e63a9c59760a748f752289754f4580e084d72b90ab059ccd0f0f7d3496aff396db876d857a369f518dc716ee07d1271e874ff2dbf577824
6
+ metadata.gz: 6cdd361c89b067194e8b4199413b4c0bd03377b0a5f92e22710ccfae7ad5d4e009881d56a2ecc8e9b037f25b9a0a47f94a56c8d59a51c50b4457d1da5772de32
7
+ data.tar.gz: cff04e16cab0894f2d8c90ccaf2c201df4e6c5bc7cea2ede1c25c631f1fcf575eea7ae4409a830899fb994c8b77d1f4cb8ac08b565146181ce6c24dd1e7b2bc6
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.45.2
10
+ - Package version: 3.47.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.45.2.gem
27
+ gem install ./pulpcore_client-3.47.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulpcore_client-3.45.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulpcore_client-3.47.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.45.2'
36
+ gem 'pulpcore_client', '~> 3.47.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
- **pulp_labels** | **Hash<String, String>** | | [optional]
8
- **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\") |
9
- **pulp_href** | **String** | | [optional] [readonly]
7
+ **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
10
8
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
12
9
  **content_guard** | **String** | An optional content-guard. | [optional]
10
+ **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\") |
13
11
  **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional] [readonly]
14
- **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
12
+ **pulp_href** | **String** | | [optional] [readonly]
13
+ **pulp_created** | **DateTime** | Timestamp of creation. | [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(pulp_labels: null,
22
- base_path: null,
23
- pulp_href: null,
21
+ instance = PulpcoreClient::ArtifactDistributionResponse.new(hidden: null,
24
22
  name: null,
25
- pulp_created: null,
26
23
  content_guard: null,
24
+ base_path: null,
27
25
  base_url: null,
28
- hidden: null)
26
+ pulp_href: null,
27
+ pulp_created: null,
28
+ pulp_labels: null)
29
29
  ```
30
30
 
31
31
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | | [optional]
8
- **is_set** | **Boolean** | | [optional]
7
+ **name** | **String** | |
8
+ **is_set** | **Boolean** | |
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -15,53 +15,53 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # A serializer for ArtifactDistribution.
17
17
  class ArtifactDistributionResponse
18
- attr_accessor :pulp_labels
19
-
20
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
21
- attr_accessor :base_path
22
-
23
- attr_accessor :pulp_href
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
24
20
 
25
21
  # A unique name. Ex, `rawhide` and `stable`.
26
22
  attr_accessor :name
27
23
 
28
- # Timestamp of creation.
29
- attr_accessor :pulp_created
30
-
31
24
  # An optional content-guard.
32
25
  attr_accessor :content_guard
33
26
 
27
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
+ attr_accessor :base_path
29
+
34
30
  # The URL for accessing the publication as defined by this distribution.
35
31
  attr_accessor :base_url
36
32
 
37
- # Whether this distribution should be shown in the content app.
38
- attr_accessor :hidden
33
+ attr_accessor :pulp_href
34
+
35
+ # Timestamp of creation.
36
+ attr_accessor :pulp_created
37
+
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
- :'pulp_labels' => :'pulp_labels',
44
- :'base_path' => :'base_path',
45
- :'pulp_href' => :'pulp_href',
43
+ :'hidden' => :'hidden',
46
44
  :'name' => :'name',
47
- :'pulp_created' => :'pulp_created',
48
45
  :'content_guard' => :'content_guard',
46
+ :'base_path' => :'base_path',
49
47
  :'base_url' => :'base_url',
50
- :'hidden' => :'hidden'
48
+ :'pulp_href' => :'pulp_href',
49
+ :'pulp_created' => :'pulp_created',
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
- :'pulp_labels' => :'Hash<String, String>',
58
- :'base_path' => :'String',
59
- :'pulp_href' => :'String',
57
+ :'hidden' => :'Boolean',
60
58
  :'name' => :'String',
61
- :'pulp_created' => :'DateTime',
62
59
  :'content_guard' => :'String',
60
+ :'base_path' => :'String',
63
61
  :'base_url' => :'String',
64
- :'hidden' => :'Boolean'
62
+ :'pulp_href' => :'String',
63
+ :'pulp_created' => :'DateTime',
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?(:'pulp_labels')
91
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
- self.pulp_labels = value
93
- end
94
- end
95
-
96
- if attributes.key?(:'base_path')
97
- self.base_path = attributes[:'base_path']
98
- end
99
-
100
- if attributes.key?(:'pulp_href')
101
- self.pulp_href = attributes[:'pulp_href']
90
+ if attributes.key?(:'hidden')
91
+ self.hidden = attributes[:'hidden']
92
+ else
93
+ self.hidden = false
102
94
  end
103
95
 
104
96
  if attributes.key?(:'name')
105
97
  self.name = attributes[:'name']
106
98
  end
107
99
 
108
- if attributes.key?(:'pulp_created')
109
- self.pulp_created = attributes[:'pulp_created']
110
- end
111
-
112
100
  if attributes.key?(:'content_guard')
113
101
  self.content_guard = attributes[:'content_guard']
114
102
  end
115
103
 
104
+ if attributes.key?(:'base_path')
105
+ self.base_path = attributes[:'base_path']
106
+ end
107
+
116
108
  if attributes.key?(:'base_url')
117
109
  self.base_url = attributes[:'base_url']
118
110
  end
119
111
 
120
- if attributes.key?(:'hidden')
121
- self.hidden = attributes[:'hidden']
122
- else
123
- self.hidden = false
112
+ if attributes.key?(:'pulp_href')
113
+ self.pulp_href = attributes[:'pulp_href']
114
+ end
115
+
116
+ if attributes.key?(:'pulp_created')
117
+ self.pulp_created = attributes[:'pulp_created']
118
+ end
119
+
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
 
@@ -128,22 +128,22 @@ module PulpcoreClient
128
128
  # @return Array for valid properties with the reasons
129
129
  def list_invalid_properties
130
130
  invalid_properties = Array.new
131
- if @base_path.nil?
132
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
133
- end
134
-
135
131
  if @name.nil?
136
132
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
133
  end
138
134
 
135
+ if @base_path.nil?
136
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
137
+ end
138
+
139
139
  invalid_properties
140
140
  end
141
141
 
142
142
  # Check to see if the all the properties in the model are valid
143
143
  # @return true if the model is valid
144
144
  def valid?
145
- return false if @base_path.nil?
146
145
  return false if @name.nil?
146
+ return false if @base_path.nil?
147
147
  true
148
148
  end
149
149
 
@@ -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
- pulp_labels == o.pulp_labels &&
156
- base_path == o.base_path &&
157
- pulp_href == o.pulp_href &&
155
+ hidden == o.hidden &&
158
156
  name == o.name &&
159
- pulp_created == o.pulp_created &&
160
157
  content_guard == o.content_guard &&
158
+ base_path == o.base_path &&
161
159
  base_url == o.base_url &&
162
- hidden == o.hidden
160
+ pulp_href == o.pulp_href &&
161
+ pulp_created == o.pulp_created &&
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
- [pulp_labels, base_path, pulp_href, name, pulp_created, content_guard, base_url, hidden].hash
174
+ [hidden, name, content_guard, base_path, base_url, pulp_href, pulp_created, 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
@@ -68,12 +68,22 @@ 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
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @is_set.nil?
77
87
  true
78
88
  end
79
89
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.45.2'
14
+ VERSION = '3.47.0'
15
15
  end
@@ -32,49 +32,49 @@ describe 'ArtifactDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
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 "base_path"' do
41
+ describe 'test attribute "name"' 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 "content_guard"' 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 "name"' do
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 "pulp_created"' do
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 "content_guard"' do
65
+ describe 'test attribute "pulp_href"' 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_url"' do
71
+ describe 'test attribute "pulp_created"' 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 "hidden"' do
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.45.2
4
+ version: 3.47.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-02-13 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday