pulp_container_client 2.15.0.dev1671505567 → 2.15.0.dev1671591925

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

@@ -15,13 +15,10 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- attr_accessor :pulp_labels
19
-
20
18
  # A unique name for this repository.
21
19
  attr_accessor :name
22
20
 
23
- # An optional description.
24
- attr_accessor :description
21
+ attr_accessor :pulp_labels
25
22
 
26
23
  # A reference to an associated signing service.
27
24
  attr_accessor :manifest_signing_service
@@ -29,34 +26,37 @@ module PulpContainerClient
29
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
30
27
  attr_accessor :retain_repo_versions
31
28
 
29
+ # An optional description.
30
+ attr_accessor :description
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_labels' => :'pulp_labels',
36
35
  :'name' => :'name',
37
- :'description' => :'description',
36
+ :'pulp_labels' => :'pulp_labels',
38
37
  :'manifest_signing_service' => :'manifest_signing_service',
39
- :'retain_repo_versions' => :'retain_repo_versions'
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'description' => :'description'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Hash<String, String>',
47
46
  :'name' => :'String',
48
- :'description' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
49
48
  :'manifest_signing_service' => :'String',
50
- :'retain_repo_versions' => :'Integer'
49
+ :'retain_repo_versions' => :'Integer',
50
+ :'description' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'description',
58
57
  :'manifest_signing_service',
59
- :'retain_repo_versions'
58
+ :'retain_repo_versions',
59
+ :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -75,18 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'pulp_labels')
79
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
- self.pulp_labels = value
81
- end
82
- end
83
-
84
78
  if attributes.key?(:'name')
85
79
  self.name = attributes[:'name']
86
80
  end
87
81
 
88
- if attributes.key?(:'description')
89
- self.description = attributes[:'description']
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
90
86
  end
91
87
 
92
88
  if attributes.key?(:'manifest_signing_service')
@@ -96,6 +92,10 @@ module PulpContainerClient
96
92
  if attributes.key?(:'retain_repo_versions')
97
93
  self.retain_repo_versions = attributes[:'retain_repo_versions']
98
94
  end
95
+
96
+ if attributes.key?(:'description')
97
+ self.description = attributes[:'description']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,14 +106,14 @@ module PulpContainerClient
106
106
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
107
  end
108
108
 
109
- if !@description.nil? && @description.to_s.length < 1
110
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
- end
112
-
113
109
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
110
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
111
  end
116
112
 
113
+ if !@description.nil? && @description.to_s.length < 1
114
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
@@ -121,8 +121,8 @@ module PulpContainerClient
121
121
  # @return true if the model is valid
122
122
  def valid?
123
123
  return false if !@name.nil? && @name.to_s.length < 1
124
- return false if !@description.nil? && @description.to_s.length < 1
125
124
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
+ return false if !@description.nil? && @description.to_s.length < 1
126
126
  true
127
127
  end
128
128
 
@@ -136,16 +136,6 @@ module PulpContainerClient
136
136
  @name = name
137
137
  end
138
138
 
139
- # Custom attribute writer method with validation
140
- # @param [Object] description Value to be assigned
141
- def description=(description)
142
- if !description.nil? && description.to_s.length < 1
143
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
144
- end
145
-
146
- @description = description
147
- end
148
-
149
139
  # Custom attribute writer method with validation
150
140
  # @param [Object] retain_repo_versions Value to be assigned
151
141
  def retain_repo_versions=(retain_repo_versions)
@@ -156,16 +146,26 @@ module PulpContainerClient
156
146
  @retain_repo_versions = retain_repo_versions
157
147
  end
158
148
 
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] description Value to be assigned
151
+ def description=(description)
152
+ if !description.nil? && description.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @description = description
157
+ end
158
+
159
159
  # Checks equality by comparing each attribute.
160
160
  # @param [Object] Object to be compared
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
- pulp_labels == o.pulp_labels &&
165
164
  name == o.name &&
166
- description == o.description &&
165
+ pulp_labels == o.pulp_labels &&
167
166
  manifest_signing_service == o.manifest_signing_service &&
168
- retain_repo_versions == o.retain_repo_versions
167
+ retain_repo_versions == o.retain_repo_versions &&
168
+ description == o.description
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module PulpContainerClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [pulp_labels, name, description, manifest_signing_service, retain_repo_versions].hash
180
+ [name, pulp_labels, manifest_signing_service, retain_repo_versions, description].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.15.0.dev1671505567'
14
+ VERSION = '2.15.0.dev1671591925'
15
15
  end
@@ -32,43 +32,43 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
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 "name"' do
41
+ describe 'test attribute "base_path"' 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 "base_path"' do
47
+ describe 'test attribute "pulp_labels"' 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 "pulp_href"' 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 "pulp_created"' do
59
+ describe 'test attribute "repository"' 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 "repository"' 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 "content_guard"' 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
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
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 "name"' do
41
+ describe 'test attribute "base_path"' 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 "base_path"' do
47
+ describe 'test attribute "pulp_labels"' 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 "repository"' 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 "content_guard"' do
59
+ describe 'test attribute "repository"' 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
@@ -32,7 +32,7 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "versions_href"' do
35
+ describe 'test attribute "name"' 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
@@ -44,31 +44,31 @@ describe 'ContainerContainerPushRepositoryResponse' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "name"' do
47
+ describe 'test attribute "manifest_signing_service"' 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 "pulp_href"' do
53
+ describe 'test attribute "latest_version_href"' 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 "description"' do
59
+ describe 'test attribute "retain_repo_versions"' 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 "latest_version_href"' 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 "manifest_signing_service"' do
71
+ describe 'test attribute "versions_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
@@ -80,7 +80,7 @@ describe 'ContainerContainerPushRepositoryResponse' do
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "retain_repo_versions"' do
83
+ describe 'test attribute "description"' 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
@@ -32,31 +32,31 @@ describe 'ContainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
35
+ describe 'test attribute "name"' 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 "name"' do
41
+ describe 'test attribute "pulp_labels"' 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 "description"' do
47
+ describe 'test attribute "manifest_signing_service"' 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 "manifest_signing_service"' do
53
+ describe 'test attribute "retain_repo_versions"' 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 "retain_repo_versions"' do
59
+ describe 'test attribute "description"' 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
@@ -32,31 +32,31 @@ describe 'PatchedcontainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
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 "name"' do
41
+ describe 'test attribute "base_path"' 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 "base_path"' do
47
+ describe 'test attribute "pulp_labels"' 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 "repository"' 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 "content_guard"' do
59
+ describe 'test attribute "repository"' 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
@@ -32,31 +32,31 @@ describe 'PatchedcontainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
35
+ describe 'test attribute "name"' 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 "name"' do
41
+ describe 'test attribute "pulp_labels"' 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 "description"' do
47
+ describe 'test attribute "manifest_signing_service"' 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 "manifest_signing_service"' do
53
+ describe 'test attribute "retain_repo_versions"' 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 "retain_repo_versions"' do
59
+ describe 'test attribute "description"' 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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_container_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0.dev1671505567
4
+ version: 2.15.0.dev1671591925
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-20 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday