pulpcore_client 3.45.2 → 3.46.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: 05a2486c3bb75d63e301a9ea188148430ef68b28530faed9b6accf8d5f45f658
4
+ data.tar.gz: bfcd51bf09a8d3d9d931d3b3d9c93f64c20667ed23f408ff75c5e524fe6b848b
5
5
  SHA512:
6
- metadata.gz: 2b2d42759b80eea849bfc9e9084c7f925350ef3310cbef98aa09631c814d83f85f84ded47e45ebf3c0b17b18ccc9ac5b967ac27adfe4122d9cef1d8e4ec4271d
7
- data.tar.gz: 52f9026bdd44be930e63a9c59760a748f752289754f4580e084d72b90ab059ccd0f0f7d3496aff396db876d857a369f518dc716ee07d1271e874ff2dbf577824
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.45.2
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.45.2.gem
27
+ gem install ./pulpcore_client-3.46.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.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.45.2'
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
- **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]
10
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
7
+ **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
11
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\") |
12
10
  **content_guard** | **String** | An optional content-guard. | [optional]
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
+ **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(pulp_labels: null,
22
- base_path: null,
23
- pulp_href: null,
24
- name: null,
21
+ instance = PulpcoreClient::ArtifactDistributionResponse.new(hidden: null,
25
22
  pulp_created: null,
23
+ base_path: null,
26
24
  content_guard: null,
27
25
  base_url: null,
28
- hidden: null)
26
+ name: 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
- 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
24
-
25
- # A unique name. Ex, `rawhide` and `stable`.
26
- attr_accessor :name
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
27
20
 
28
21
  # Timestamp of creation.
29
22
  attr_accessor :pulp_created
30
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\")
25
+ attr_accessor :base_path
26
+
31
27
  # An optional content-guard.
32
28
  attr_accessor :content_guard
33
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
+ # A unique name. Ex, `rawhide` and `stable`.
34
+ attr_accessor :name
35
+
36
+ attr_accessor :pulp_href
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',
46
- :'name' => :'name',
43
+ :'hidden' => :'hidden',
47
44
  :'pulp_created' => :'pulp_created',
45
+ :'base_path' => :'base_path',
48
46
  :'content_guard' => :'content_guard',
49
47
  :'base_url' => :'base_url',
50
- :'hidden' => :'hidden'
48
+ :'name' => :'name',
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
- :'pulp_labels' => :'Hash<String, String>',
58
- :'base_path' => :'String',
59
- :'pulp_href' => :'String',
60
- :'name' => :'String',
57
+ :'hidden' => :'Boolean',
61
58
  :'pulp_created' => :'DateTime',
59
+ :'base_path' => :'String',
62
60
  :'content_guard' => :'String',
63
61
  :'base_url' => :'String',
64
- :'hidden' => :'Boolean'
62
+ :'name' => :'String',
63
+ :'pulp_href' => :'String',
64
+ :'pulp_labels' => :'Hash<String, String>'
65
65
  }
66
66
  end
67
67
 
@@ -87,28 +87,20 @@ 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']
102
- end
103
-
104
- if attributes.key?(:'name')
105
- self.name = attributes[:'name']
90
+ if attributes.key?(:'hidden')
91
+ self.hidden = attributes[:'hidden']
92
+ else
93
+ self.hidden = false
106
94
  end
107
95
 
108
96
  if attributes.key?(:'pulp_created')
109
97
  self.pulp_created = attributes[:'pulp_created']
110
98
  end
111
99
 
100
+ if attributes.key?(:'base_path')
101
+ self.base_path = attributes[:'base_path']
102
+ end
103
+
112
104
  if attributes.key?(:'content_guard')
113
105
  self.content_guard = attributes[:'content_guard']
114
106
  end
@@ -117,10 +109,18 @@ module PulpcoreClient
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?(:'name')
113
+ self.name = attributes[:'name']
114
+ end
115
+
116
+ if attributes.key?(:'pulp_href')
117
+ self.pulp_href = attributes[:'pulp_href']
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
 
@@ -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 &&
158
- name == o.name &&
155
+ hidden == o.hidden &&
159
156
  pulp_created == o.pulp_created &&
157
+ base_path == o.base_path &&
160
158
  content_guard == o.content_guard &&
161
159
  base_url == o.base_url &&
162
- hidden == o.hidden
160
+ name == o.name &&
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
- [pulp_labels, base_path, pulp_href, name, pulp_created, content_guard, base_url, hidden].hash
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
@@ -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.46.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 "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
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_href"' do
47
+ describe 'test attribute "base_path"' 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 "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 "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 "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 "base_url"' do
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 "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,7 +1,7 @@
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.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator