pulp_container_client 2.15.0.dev1667014467 → 2.15.0.dev1667101371

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,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- # An optional description.
19
- attr_accessor :description
18
+ attr_accessor :pulp_labels
20
19
 
21
- # A unique name for this repository.
22
- attr_accessor :name
20
+ # A reference to an associated signing service.
21
+ attr_accessor :manifest_signing_service
23
22
 
24
- attr_accessor :pulp_labels
23
+ # An optional description.
24
+ attr_accessor :description
25
25
 
26
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.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
- # A reference to an associated signing service.
30
- attr_accessor :manifest_signing_service
29
+ # A unique name for this repository.
30
+ attr_accessor :name
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'description' => :'description',
36
- :'name' => :'name',
37
35
  :'pulp_labels' => :'pulp_labels',
36
+ :'manifest_signing_service' => :'manifest_signing_service',
37
+ :'description' => :'description',
38
38
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'manifest_signing_service' => :'manifest_signing_service'
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'description' => :'String',
47
- :'name' => :'String',
48
46
  :'pulp_labels' => :'Object',
47
+ :'manifest_signing_service' => :'String',
48
+ :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
50
- :'manifest_signing_service' => :'String'
50
+ :'name' => :'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
+ :'manifest_signing_service',
57
58
  :'description',
58
59
  :'retain_repo_versions',
59
- :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,24 +75,24 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
78
+ if attributes.key?(:'pulp_labels')
79
+ self.pulp_labels = attributes[:'pulp_labels']
80
80
  end
81
81
 
82
- if attributes.key?(:'name')
83
- self.name = attributes[:'name']
82
+ if attributes.key?(:'manifest_signing_service')
83
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
84
84
  end
85
85
 
86
- if attributes.key?(:'pulp_labels')
87
- self.pulp_labels = attributes[:'pulp_labels']
86
+ if attributes.key?(:'description')
87
+ self.description = attributes[:'description']
88
88
  end
89
89
 
90
90
  if attributes.key?(:'retain_repo_versions')
91
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
92
92
  end
93
93
 
94
- if attributes.key?(:'manifest_signing_service')
95
- self.manifest_signing_service = attributes[:'manifest_signing_service']
94
+ if attributes.key?(:'name')
95
+ self.name = attributes[:'name']
96
96
  end
97
97
  end
98
98
 
@@ -104,14 +104,14 @@ module PulpContainerClient
104
104
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
105
105
  end
106
106
 
107
- if !@name.nil? && @name.to_s.length < 1
108
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
- end
110
-
111
107
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
112
108
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
113
109
  end
114
110
 
111
+ if !@name.nil? && @name.to_s.length < 1
112
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
113
+ end
114
+
115
115
  invalid_properties
116
116
  end
117
117
 
@@ -119,8 +119,8 @@ module PulpContainerClient
119
119
  # @return true if the model is valid
120
120
  def valid?
121
121
  return false if !@description.nil? && @description.to_s.length < 1
122
- return false if !@name.nil? && @name.to_s.length < 1
123
122
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
123
+ return false if !@name.nil? && @name.to_s.length < 1
124
124
  true
125
125
  end
126
126
 
@@ -134,16 +134,6 @@ module PulpContainerClient
134
134
  @description = description
135
135
  end
136
136
 
137
- # Custom attribute writer method with validation
138
- # @param [Object] name Value to be assigned
139
- def name=(name)
140
- if !name.nil? && name.to_s.length < 1
141
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
142
- end
143
-
144
- @name = name
145
- end
146
-
147
137
  # Custom attribute writer method with validation
148
138
  # @param [Object] retain_repo_versions Value to be assigned
149
139
  def retain_repo_versions=(retain_repo_versions)
@@ -154,16 +144,26 @@ module PulpContainerClient
154
144
  @retain_repo_versions = retain_repo_versions
155
145
  end
156
146
 
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] name Value to be assigned
149
+ def name=(name)
150
+ if !name.nil? && name.to_s.length < 1
151
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
152
+ end
153
+
154
+ @name = name
155
+ end
156
+
157
157
  # Checks equality by comparing each attribute.
158
158
  # @param [Object] Object to be compared
159
159
  def ==(o)
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
- description == o.description &&
163
- name == o.name &&
164
162
  pulp_labels == o.pulp_labels &&
163
+ manifest_signing_service == o.manifest_signing_service &&
164
+ description == o.description &&
165
165
  retain_repo_versions == o.retain_repo_versions &&
166
- manifest_signing_service == o.manifest_signing_service
166
+ name == o.name
167
167
  end
168
168
 
169
169
  # @see the `==` method
@@ -175,7 +175,7 @@ module PulpContainerClient
175
175
  # Calculates hash code according to all attributes.
176
176
  # @return [Integer] Hash code
177
177
  def hash
178
- [description, name, pulp_labels, retain_repo_versions, manifest_signing_service].hash
178
+ [pulp_labels, manifest_signing_service, description, retain_repo_versions, name].hash
179
179
  end
180
180
 
181
181
  # 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.dev1667014467'
14
+ VERSION = '2.15.0.dev1667101371'
15
15
  end
@@ -32,19 +32,19 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "name"' do
35
+ describe 'test attribute "pulp_href"' 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 "pulp_created"' 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 "base_path"' 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
@@ -56,19 +56,19 @@ describe 'ContainerContainerDistributionResponse' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "pulp_labels"' do
59
+ describe 'test attribute "pulp_created"' 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 "pulp_href"' do
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 "content_guard"' do
71
+ describe 'test attribute "name"' 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,13 +32,13 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "name"' do
35
+ describe 'test attribute "pulp_labels"' 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 "content_guard"' 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,13 +50,13 @@ describe 'ContainerContainerDistribution' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_labels"' 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 "content_guard"' do
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
@@ -32,43 +32,43 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "description"' do
35
+ describe 'test attribute "pulp_href"' 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 "latest_version_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 "pulp_created"' 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 "latest_version_href"' do
53
+ describe 'test attribute "manifest_signing_service"' 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 "versions_href"' 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
63
63
  end
64
64
 
65
- describe 'test attribute "pulp_labels"' do
65
+ describe 'test attribute "versions_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 "pulp_href"' 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
@@ -80,7 +80,7 @@ describe 'ContainerContainerPushRepositoryResponse' do
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "manifest_signing_service"' do
83
+ describe 'test attribute "name"' 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,19 +32,19 @@ describe 'ContainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "description"' do
35
+ describe 'test attribute "pulp_labels"' 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 "manifest_signing_service"' 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_labels"' do
47
+ describe 'test attribute "description"' 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
@@ -56,7 +56,7 @@ describe 'ContainerContainerPushRepository' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "manifest_signing_service"' do
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
@@ -32,13 +32,13 @@ describe 'PatchedcontainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "name"' do
35
+ describe 'test attribute "pulp_labels"' 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 "content_guard"' 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,13 +50,13 @@ describe 'PatchedcontainerContainerDistribution' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_labels"' 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 "content_guard"' do
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
@@ -32,19 +32,19 @@ describe 'PatchedcontainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "description"' do
35
+ describe 'test attribute "pulp_labels"' 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 "manifest_signing_service"' 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_labels"' do
47
+ describe 'test attribute "description"' 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
@@ -56,7 +56,7 @@ describe 'PatchedcontainerContainerPushRepository' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "manifest_signing_service"' do
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
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.dev1667014467
4
+ version: 2.15.0.dev1667101371
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-10-29 00:00:00.000000000 Z
11
+ date: 2022-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday