pulp_container_client 2.9.9 → 2.9.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,59 +15,59 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- attr_accessor :pulp_href
22
-
23
18
  attr_accessor :latest_version_href
24
19
 
25
- # An optional description.
26
- attr_accessor :description
20
+ # A unique name for this repository.
21
+ attr_accessor :name
27
22
 
28
23
  attr_accessor :versions_href
29
24
 
25
+ # Timestamp of creation.
26
+ attr_accessor :pulp_created
27
+
30
28
  # 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.
31
29
  attr_accessor :retain_repo_versions
32
30
 
33
- # A unique name for this repository.
34
- attr_accessor :name
31
+ attr_accessor :pulp_href
35
32
 
36
33
  attr_accessor :pulp_labels
37
34
 
35
+ # An optional description.
36
+ attr_accessor :description
37
+
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_created' => :'pulp_created',
42
- :'pulp_href' => :'pulp_href',
43
41
  :'latest_version_href' => :'latest_version_href',
44
- :'description' => :'description',
42
+ :'name' => :'name',
45
43
  :'versions_href' => :'versions_href',
44
+ :'pulp_created' => :'pulp_created',
46
45
  :'retain_repo_versions' => :'retain_repo_versions',
47
- :'name' => :'name',
48
- :'pulp_labels' => :'pulp_labels'
46
+ :'pulp_href' => :'pulp_href',
47
+ :'pulp_labels' => :'pulp_labels',
48
+ :'description' => :'description'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_created' => :'DateTime',
56
- :'pulp_href' => :'String',
57
55
  :'latest_version_href' => :'String',
58
- :'description' => :'String',
56
+ :'name' => :'String',
59
57
  :'versions_href' => :'String',
58
+ :'pulp_created' => :'DateTime',
60
59
  :'retain_repo_versions' => :'Integer',
61
- :'name' => :'String',
62
- :'pulp_labels' => :'Object'
60
+ :'pulp_href' => :'String',
61
+ :'pulp_labels' => :'Object',
62
+ :'description' => :'String'
63
63
  }
64
64
  end
65
65
 
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
- :'description',
70
69
  :'retain_repo_versions',
70
+ :'description'
71
71
  ])
72
72
  end
73
73
 
@@ -86,59 +86,59 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'pulp_created')
90
- self.pulp_created = attributes[:'pulp_created']
91
- end
92
-
93
- if attributes.key?(:'pulp_href')
94
- self.pulp_href = attributes[:'pulp_href']
95
- end
96
-
97
89
  if attributes.key?(:'latest_version_href')
98
90
  self.latest_version_href = attributes[:'latest_version_href']
99
91
  end
100
92
 
101
- if attributes.key?(:'description')
102
- self.description = attributes[:'description']
93
+ if attributes.key?(:'name')
94
+ self.name = attributes[:'name']
103
95
  end
104
96
 
105
97
  if attributes.key?(:'versions_href')
106
98
  self.versions_href = attributes[:'versions_href']
107
99
  end
108
100
 
101
+ if attributes.key?(:'pulp_created')
102
+ self.pulp_created = attributes[:'pulp_created']
103
+ end
104
+
109
105
  if attributes.key?(:'retain_repo_versions')
110
106
  self.retain_repo_versions = attributes[:'retain_repo_versions']
111
107
  end
112
108
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
109
+ if attributes.key?(:'pulp_href')
110
+ self.pulp_href = attributes[:'pulp_href']
115
111
  end
116
112
 
117
113
  if attributes.key?(:'pulp_labels')
118
114
  self.pulp_labels = attributes[:'pulp_labels']
119
115
  end
116
+
117
+ if attributes.key?(:'description')
118
+ self.description = attributes[:'description']
119
+ end
120
120
  end
121
121
 
122
122
  # Show invalid properties with the reasons. Usually used together with valid?
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
- end
129
-
130
126
  if @name.nil?
131
127
  invalid_properties.push('invalid value for "name", name cannot be nil.')
132
128
  end
133
129
 
130
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
137
137
  # Check to see if the all the properties in the model are valid
138
138
  # @return true if the model is valid
139
139
  def valid?
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
140
  return false if @name.nil?
141
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
142
142
  true
143
143
  end
144
144
 
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
- pulp_created == o.pulp_created &&
161
- pulp_href == o.pulp_href &&
162
160
  latest_version_href == o.latest_version_href &&
163
- description == o.description &&
161
+ name == o.name &&
164
162
  versions_href == o.versions_href &&
163
+ pulp_created == o.pulp_created &&
165
164
  retain_repo_versions == o.retain_repo_versions &&
166
- name == o.name &&
167
- pulp_labels == o.pulp_labels
165
+ pulp_href == o.pulp_href &&
166
+ pulp_labels == o.pulp_labels &&
167
+ description == o.description
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [pulp_created, pulp_href, latest_version_href, description, versions_href, retain_repo_versions, name, pulp_labels].hash
179
+ [latest_version_href, name, versions_href, pulp_created, retain_repo_versions, pulp_href, pulp_labels, description].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -18,9 +18,6 @@ module PulpContainerClient
18
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
19
  attr_accessor :base_path
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
21
  # The latest RepositoryVersion for this Repository will be served.
25
22
  attr_accessor :repository
26
23
 
@@ -29,6 +26,9 @@ module PulpContainerClient
29
26
 
30
27
  attr_accessor :pulp_labels
31
28
 
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
+
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -42,10 +42,10 @@ module PulpContainerClient
42
42
  def self.attribute_map
43
43
  {
44
44
  :'base_path' => :'base_path',
45
- :'content_guard' => :'content_guard',
46
45
  :'repository' => :'repository',
47
46
  :'name' => :'name',
48
47
  :'pulp_labels' => :'pulp_labels',
48
+ :'content_guard' => :'content_guard',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -56,10 +56,10 @@ module PulpContainerClient
56
56
  def self.openapi_types
57
57
  {
58
58
  :'base_path' => :'String',
59
- :'content_guard' => :'String',
60
59
  :'repository' => :'String',
61
60
  :'name' => :'String',
62
61
  :'pulp_labels' => :'Object',
62
+ :'content_guard' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -94,10 +94,6 @@ module PulpContainerClient
94
94
  self.base_path = attributes[:'base_path']
95
95
  end
96
96
 
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
99
- end
100
-
101
97
  if attributes.key?(:'repository')
102
98
  self.repository = attributes[:'repository']
103
99
  end
@@ -110,6 +106,10 @@ module PulpContainerClient
110
106
  self.pulp_labels = attributes[:'pulp_labels']
111
107
  end
112
108
 
109
+ if attributes.key?(:'content_guard')
110
+ self.content_guard = attributes[:'content_guard']
111
+ end
112
+
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  end
@@ -142,10 +142,10 @@ module PulpContainerClient
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
144
  base_path == o.base_path &&
145
- content_guard == o.content_guard &&
146
145
  repository == o.repository &&
147
146
  name == o.name &&
148
147
  pulp_labels == o.pulp_labels &&
148
+ content_guard == o.content_guard &&
149
149
  repository_version == o.repository_version &&
150
150
  private == o.private &&
151
151
  description == o.description
@@ -160,7 +160,7 @@ module PulpContainerClient
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Integer] Hash code
162
162
  def hash
163
- [base_path, content_guard, repository, name, pulp_labels, repository_version, private, description].hash
163
+ [base_path, repository, name, pulp_labels, content_guard, repository_version, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash
@@ -15,42 +15,42 @@ 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
+ # A unique name for this repository.
19
+ attr_accessor :name
20
20
 
21
21
  # 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.
22
22
  attr_accessor :retain_repo_versions
23
23
 
24
- # A unique name for this repository.
25
- attr_accessor :name
26
-
27
24
  attr_accessor :pulp_labels
28
25
 
26
+ # An optional description.
27
+ attr_accessor :description
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'description' => :'description',
33
- :'retain_repo_versions' => :'retain_repo_versions',
34
32
  :'name' => :'name',
35
- :'pulp_labels' => :'pulp_labels'
33
+ :'retain_repo_versions' => :'retain_repo_versions',
34
+ :'pulp_labels' => :'pulp_labels',
35
+ :'description' => :'description'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'description' => :'String',
43
- :'retain_repo_versions' => :'Integer',
44
42
  :'name' => :'String',
45
- :'pulp_labels' => :'Object'
43
+ :'retain_repo_versions' => :'Integer',
44
+ :'pulp_labels' => :'Object',
45
+ :'description' => :'String'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
- :'description',
53
52
  :'retain_repo_versions',
53
+ :'description'
54
54
  ])
55
55
  end
56
56
 
@@ -69,21 +69,21 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'description')
73
- self.description = attributes[:'description']
72
+ if attributes.key?(:'name')
73
+ self.name = attributes[:'name']
74
74
  end
75
75
 
76
76
  if attributes.key?(:'retain_repo_versions')
77
77
  self.retain_repo_versions = attributes[:'retain_repo_versions']
78
78
  end
79
79
 
80
- if attributes.key?(:'name')
81
- self.name = attributes[:'name']
82
- end
83
-
84
80
  if attributes.key?(:'pulp_labels')
85
81
  self.pulp_labels = attributes[:'pulp_labels']
86
82
  end
83
+
84
+ if attributes.key?(:'description')
85
+ self.description = attributes[:'description']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,10 +119,10 @@ module PulpContainerClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- description == o.description &&
123
- retain_repo_versions == o.retain_repo_versions &&
124
122
  name == o.name &&
125
- pulp_labels == o.pulp_labels
123
+ retain_repo_versions == o.retain_repo_versions &&
124
+ pulp_labels == o.pulp_labels &&
125
+ description == o.description
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module PulpContainerClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [description, retain_repo_versions, name, pulp_labels].hash
137
+ [name, retain_repo_versions, pulp_labels, description].hash
138
138
  end
139
139
 
140
140
  # 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.9.9'
14
+ VERSION = '2.9.10'
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_created"' do
35
+ describe 'test attribute "base_path"' 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 "repository"' 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 "name"' 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 "content_guard"' do
53
+ describe 'test attribute "pulp_created"' 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 "repository"' do
59
+ describe 'test attribute "pulp_href"' 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 "name"' do
65
+ describe 'test attribute "pulp_labels"' 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_labels"' do
71
+ describe 'test attribute "content_guard"' 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
@@ -38,25 +38,25 @@ describe 'ContainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "content_guard"' do
41
+ describe 'test attribute "repository"' 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 "repository"' do
47
+ describe 'test attribute "name"' 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 "pulp_labels"' 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_labels"' do
59
+ describe 'test attribute "content_guard"' 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,49 +32,49 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_created"' do
35
+ describe 'test attribute "latest_version_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_href"' 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 "latest_version_href"' do
47
+ describe 'test attribute "versions_href"' 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 "description"' do
53
+ describe 'test attribute "pulp_created"' 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 "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 "retain_repo_versions"' 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 "name"' do
71
+ describe 'test attribute "pulp_labels"' 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 "pulp_labels"' do
77
+ describe 'test attribute "description"' 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
@@ -32,7 +32,7 @@ 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 "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,13 +44,13 @@ describe 'ContainerContainerPushRepository' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "name"' 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_labels"' do
53
+ describe 'test attribute "description"' 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
@@ -38,25 +38,25 @@ describe 'PatchedcontainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "content_guard"' do
41
+ describe 'test attribute "repository"' 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 "repository"' do
47
+ describe 'test attribute "name"' 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 "pulp_labels"' 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_labels"' do
59
+ describe 'test attribute "content_guard"' 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 '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 "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,13 +44,13 @@ describe 'PatchedcontainerContainerPushRepository' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "name"' 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_labels"' do
53
+ describe 'test attribute "description"' 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