pulp_container_client 2.13.1 → 2.13.3

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  7. data/docs/DistributionsContainerApi.md +2 -0
  8. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  9. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  10. data/docs/RepositoriesContainerApi.md +2 -0
  11. data/docs/RepositoriesContainerPushApi.md +2 -0
  12. data/lib/pulp_container_client/api/distributions_container_api.rb +3 -0
  13. data/lib/pulp_container_client/api/repositories_container_api.rb +3 -0
  14. data/lib/pulp_container_client/api/repositories_container_push_api.rb +3 -0
  15. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +1 -1
  16. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +1 -1
  17. data/lib/pulp_container_client/api_client.rb +1 -1
  18. data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
  19. data/lib/pulp_container_client/models/container_container_distribution_response.rb +31 -31
  20. data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -40
  21. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -48
  22. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
  23. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -40
  24. data/lib/pulp_container_client/version.rb +1 -1
  25. data/pulp_container_client.gemspec +1 -1
  26. data/spec/api/distributions_container_api_spec.rb +1 -0
  27. data/spec/api/repositories_container_api_spec.rb +1 -0
  28. data/spec/api/repositories_container_push_api_spec.rb +1 -0
  29. data/spec/models/container_container_distribution_response_spec.rb +5 -5
  30. data/spec/models/container_container_distribution_spec.rb +4 -4
  31. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  32. data/spec/models/container_container_push_repository_spec.rb +5 -5
  33. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  34. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  35. metadata +52 -52
@@ -15,24 +15,24 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
+ # The latest RepositoryVersion for this Repository will be served.
19
+ attr_accessor :repository
20
+
18
21
  # An optional content-guard. If none is specified, a default one will be used.
19
22
  attr_accessor :content_guard
20
23
 
21
- attr_accessor :pulp_labels
22
-
23
24
  # A unique name. Ex, `rawhide` and `stable`.
24
25
  attr_accessor :name
25
26
 
26
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
- attr_accessor :base_path
27
+ # Timestamp of creation.
28
+ attr_accessor :pulp_created
28
29
 
29
30
  attr_accessor :pulp_href
30
31
 
31
- # Timestamp of creation.
32
- attr_accessor :pulp_created
32
+ attr_accessor :pulp_labels
33
33
 
34
- # The latest RepositoryVersion for this Repository will be served.
35
- attr_accessor :repository
34
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
35
+ attr_accessor :base_path
36
36
 
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
+ :'repository' => :'repository',
55
56
  :'content_guard' => :'content_guard',
56
- :'pulp_labels' => :'pulp_labels',
57
57
  :'name' => :'name',
58
- :'base_path' => :'base_path',
59
- :'pulp_href' => :'pulp_href',
60
58
  :'pulp_created' => :'pulp_created',
61
- :'repository' => :'repository',
59
+ :'pulp_href' => :'pulp_href',
60
+ :'pulp_labels' => :'pulp_labels',
61
+ :'base_path' => :'base_path',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
@@ -70,13 +70,13 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
+ :'repository' => :'String',
73
74
  :'content_guard' => :'String',
74
- :'pulp_labels' => :'Object',
75
75
  :'name' => :'String',
76
- :'base_path' => :'String',
77
- :'pulp_href' => :'String',
78
76
  :'pulp_created' => :'DateTime',
79
- :'repository' => :'String',
77
+ :'pulp_href' => :'String',
78
+ :'pulp_labels' => :'Object',
79
+ :'base_path' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,32 +109,32 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'content_guard')
113
- self.content_guard = attributes[:'content_guard']
112
+ if attributes.key?(:'repository')
113
+ self.repository = attributes[:'repository']
114
114
  end
115
115
 
116
- if attributes.key?(:'pulp_labels')
117
- self.pulp_labels = attributes[:'pulp_labels']
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
118
118
  end
119
119
 
120
120
  if attributes.key?(:'name')
121
121
  self.name = attributes[:'name']
122
122
  end
123
123
 
124
- if attributes.key?(:'base_path')
125
- self.base_path = attributes[:'base_path']
124
+ if attributes.key?(:'pulp_created')
125
+ self.pulp_created = attributes[:'pulp_created']
126
126
  end
127
127
 
128
128
  if attributes.key?(:'pulp_href')
129
129
  self.pulp_href = attributes[:'pulp_href']
130
130
  end
131
131
 
132
- if attributes.key?(:'pulp_created')
133
- self.pulp_created = attributes[:'pulp_created']
132
+ if attributes.key?(:'pulp_labels')
133
+ self.pulp_labels = attributes[:'pulp_labels']
134
134
  end
135
135
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
136
+ if attributes.key?(:'base_path')
137
+ self.base_path = attributes[:'base_path']
138
138
  end
139
139
 
140
140
  if attributes.key?(:'repository_version')
@@ -186,13 +186,13 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
+ repository == o.repository &&
189
190
  content_guard == o.content_guard &&
190
- pulp_labels == o.pulp_labels &&
191
191
  name == o.name &&
192
- base_path == o.base_path &&
193
- pulp_href == o.pulp_href &&
194
192
  pulp_created == o.pulp_created &&
195
- repository == o.repository &&
193
+ pulp_href == o.pulp_href &&
194
+ pulp_labels == o.pulp_labels &&
195
+ base_path == o.base_path &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [content_guard, pulp_labels, name, base_path, pulp_href, pulp_created, repository, repository_version, registry_path, namespace, private, description].hash
212
+ [repository, content_guard, name, pulp_created, pulp_href, pulp_labels, base_path, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # 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.
19
- attr_accessor :retain_repo_versions
20
-
21
18
  # A reference to an associated signing service.
22
19
  attr_accessor :manifest_signing_service
23
20
 
24
- attr_accessor :pulp_labels
25
-
26
21
  # A unique name for this repository.
27
22
  attr_accessor :name
28
23
 
29
24
  # An optional description.
30
25
  attr_accessor :description
31
26
 
27
+ # 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.
28
+ attr_accessor :retain_repo_versions
29
+
30
+ attr_accessor :pulp_labels
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'retain_repo_versions' => :'retain_repo_versions',
36
35
  :'manifest_signing_service' => :'manifest_signing_service',
37
- :'pulp_labels' => :'pulp_labels',
38
36
  :'name' => :'name',
39
- :'description' => :'description'
37
+ :'description' => :'description',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'retain_repo_versions' => :'Integer',
47
46
  :'manifest_signing_service' => :'String',
48
- :'pulp_labels' => :'Object',
49
47
  :'name' => :'String',
50
- :'description' => :'String'
48
+ :'description' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
50
+ :'pulp_labels' => :'Object'
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
- :'retain_repo_versions',
58
57
  :'manifest_signing_service',
59
- :'description'
58
+ :'description',
59
+ :'retain_repo_versions',
60
60
  ])
61
61
  end
62
62
 
@@ -75,18 +75,10 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'retain_repo_versions')
79
- self.retain_repo_versions = attributes[:'retain_repo_versions']
80
- end
81
-
82
78
  if attributes.key?(:'manifest_signing_service')
83
79
  self.manifest_signing_service = attributes[:'manifest_signing_service']
84
80
  end
85
81
 
86
- if attributes.key?(:'pulp_labels')
87
- self.pulp_labels = attributes[:'pulp_labels']
88
- end
89
-
90
82
  if attributes.key?(:'name')
91
83
  self.name = attributes[:'name']
92
84
  end
@@ -94,16 +86,20 @@ module PulpContainerClient
94
86
  if attributes.key?(:'description')
95
87
  self.description = attributes[:'description']
96
88
  end
89
+
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
92
+ end
93
+
94
+ if attributes.key?(:'pulp_labels')
95
+ self.pulp_labels = attributes[:'pulp_labels']
96
+ end
97
97
  end
98
98
 
99
99
  # Show invalid properties with the reasons. Usually used together with valid?
100
100
  # @return Array for valid properties with the reasons
101
101
  def list_invalid_properties
102
102
  invalid_properties = Array.new
103
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
105
- end
106
-
107
103
  if @name.nil?
108
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
109
105
  end
@@ -116,29 +112,23 @@ module PulpContainerClient
116
112
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
117
113
  end
118
114
 
115
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
117
+ end
118
+
119
119
  invalid_properties
120
120
  end
121
121
 
122
122
  # Check to see if the all the properties in the model are valid
123
123
  # @return true if the model is valid
124
124
  def valid?
125
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
126
125
  return false if @name.nil?
127
126
  return false if @name.to_s.length < 1
128
127
  return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
129
  true
130
130
  end
131
131
 
132
- # Custom attribute writer method with validation
133
- # @param [Object] retain_repo_versions Value to be assigned
134
- def retain_repo_versions=(retain_repo_versions)
135
- if !retain_repo_versions.nil? && retain_repo_versions < 1
136
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
137
- end
138
-
139
- @retain_repo_versions = retain_repo_versions
140
- end
141
-
142
132
  # Custom attribute writer method with validation
143
133
  # @param [Object] name Value to be assigned
144
134
  def name=(name)
@@ -163,16 +153,26 @@ module PulpContainerClient
163
153
  @description = description
164
154
  end
165
155
 
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] retain_repo_versions Value to be assigned
158
+ def retain_repo_versions=(retain_repo_versions)
159
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
160
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
161
+ end
162
+
163
+ @retain_repo_versions = retain_repo_versions
164
+ end
165
+
166
166
  # Checks equality by comparing each attribute.
167
167
  # @param [Object] Object to be compared
168
168
  def ==(o)
169
169
  return true if self.equal?(o)
170
170
  self.class == o.class &&
171
- retain_repo_versions == o.retain_repo_versions &&
172
171
  manifest_signing_service == o.manifest_signing_service &&
173
- pulp_labels == o.pulp_labels &&
174
172
  name == o.name &&
175
- description == o.description
173
+ description == o.description &&
174
+ retain_repo_versions == o.retain_repo_versions &&
175
+ pulp_labels == o.pulp_labels
176
176
  end
177
177
 
178
178
  # @see the `==` method
@@ -184,7 +184,7 @@ module PulpContainerClient
184
184
  # Calculates hash code according to all attributes.
185
185
  # @return [Integer] Hash code
186
186
  def hash
187
- [retain_repo_versions, manifest_signing_service, pulp_labels, name, description].hash
187
+ [manifest_signing_service, name, description, retain_repo_versions, pulp_labels].hash
188
188
  end
189
189
 
190
190
  # Builds the object from hash
@@ -15,65 +15,65 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # 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.
19
- attr_accessor :retain_repo_versions
20
-
21
18
  # A reference to an associated signing service.
22
19
  attr_accessor :manifest_signing_service
23
20
 
24
- attr_accessor :pulp_labels
25
-
26
- attr_accessor :latest_version_href
27
-
28
21
  # A unique name for this repository.
29
22
  attr_accessor :name
30
23
 
31
- attr_accessor :pulp_href
32
-
33
24
  # Timestamp of creation.
34
25
  attr_accessor :pulp_created
35
26
 
27
+ attr_accessor :pulp_href
28
+
29
+ attr_accessor :versions_href
30
+
31
+ attr_accessor :latest_version_href
32
+
36
33
  # An optional description.
37
34
  attr_accessor :description
38
35
 
39
- attr_accessor :versions_href
36
+ # 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.
37
+ attr_accessor :retain_repo_versions
38
+
39
+ attr_accessor :pulp_labels
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'retain_repo_versions' => :'retain_repo_versions',
45
44
  :'manifest_signing_service' => :'manifest_signing_service',
46
- :'pulp_labels' => :'pulp_labels',
47
- :'latest_version_href' => :'latest_version_href',
48
45
  :'name' => :'name',
49
- :'pulp_href' => :'pulp_href',
50
46
  :'pulp_created' => :'pulp_created',
47
+ :'pulp_href' => :'pulp_href',
48
+ :'versions_href' => :'versions_href',
49
+ :'latest_version_href' => :'latest_version_href',
51
50
  :'description' => :'description',
52
- :'versions_href' => :'versions_href'
51
+ :'retain_repo_versions' => :'retain_repo_versions',
52
+ :'pulp_labels' => :'pulp_labels'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'retain_repo_versions' => :'Integer',
60
59
  :'manifest_signing_service' => :'String',
61
- :'pulp_labels' => :'Object',
62
- :'latest_version_href' => :'String',
63
60
  :'name' => :'String',
64
- :'pulp_href' => :'String',
65
61
  :'pulp_created' => :'DateTime',
62
+ :'pulp_href' => :'String',
63
+ :'versions_href' => :'String',
64
+ :'latest_version_href' => :'String',
66
65
  :'description' => :'String',
67
- :'versions_href' => :'String'
66
+ :'retain_repo_versions' => :'Integer',
67
+ :'pulp_labels' => :'Object'
68
68
  }
69
69
  end
70
70
 
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
- :'retain_repo_versions',
75
74
  :'manifest_signing_service',
76
75
  :'description',
76
+ :'retain_repo_versions',
77
77
  ])
78
78
  end
79
79
 
@@ -92,40 +92,40 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'retain_repo_versions')
96
- self.retain_repo_versions = attributes[:'retain_repo_versions']
97
- end
98
-
99
95
  if attributes.key?(:'manifest_signing_service')
100
96
  self.manifest_signing_service = attributes[:'manifest_signing_service']
101
97
  end
102
98
 
103
- if attributes.key?(:'pulp_labels')
104
- self.pulp_labels = attributes[:'pulp_labels']
105
- end
106
-
107
- if attributes.key?(:'latest_version_href')
108
- self.latest_version_href = attributes[:'latest_version_href']
109
- end
110
-
111
99
  if attributes.key?(:'name')
112
100
  self.name = attributes[:'name']
113
101
  end
114
102
 
103
+ if attributes.key?(:'pulp_created')
104
+ self.pulp_created = attributes[:'pulp_created']
105
+ end
106
+
115
107
  if attributes.key?(:'pulp_href')
116
108
  self.pulp_href = attributes[:'pulp_href']
117
109
  end
118
110
 
119
- if attributes.key?(:'pulp_created')
120
- self.pulp_created = attributes[:'pulp_created']
111
+ if attributes.key?(:'versions_href')
112
+ self.versions_href = attributes[:'versions_href']
113
+ end
114
+
115
+ if attributes.key?(:'latest_version_href')
116
+ self.latest_version_href = attributes[:'latest_version_href']
121
117
  end
122
118
 
123
119
  if attributes.key?(:'description')
124
120
  self.description = attributes[:'description']
125
121
  end
126
122
 
127
- if attributes.key?(:'versions_href')
128
- self.versions_href = attributes[:'versions_href']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
125
+ end
126
+
127
+ if attributes.key?(:'pulp_labels')
128
+ self.pulp_labels = attributes[:'pulp_labels']
129
129
  end
130
130
  end
131
131
 
@@ -133,22 +133,22 @@ module PulpContainerClient
133
133
  # @return Array for valid properties with the reasons
134
134
  def list_invalid_properties
135
135
  invalid_properties = Array.new
136
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
- end
139
-
140
136
  if @name.nil?
141
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
142
138
  end
143
139
 
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
142
+ end
143
+
144
144
  invalid_properties
145
145
  end
146
146
 
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
150
  return false if @name.nil?
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
152
  true
153
153
  end
154
154
 
@@ -167,15 +167,15 @@ module PulpContainerClient
167
167
  def ==(o)
168
168
  return true if self.equal?(o)
169
169
  self.class == o.class &&
170
- retain_repo_versions == o.retain_repo_versions &&
171
170
  manifest_signing_service == o.manifest_signing_service &&
172
- pulp_labels == o.pulp_labels &&
173
- latest_version_href == o.latest_version_href &&
174
171
  name == o.name &&
175
- pulp_href == o.pulp_href &&
176
172
  pulp_created == o.pulp_created &&
173
+ pulp_href == o.pulp_href &&
174
+ versions_href == o.versions_href &&
175
+ latest_version_href == o.latest_version_href &&
177
176
  description == o.description &&
178
- versions_href == o.versions_href
177
+ retain_repo_versions == o.retain_repo_versions &&
178
+ pulp_labels == o.pulp_labels
179
179
  end
180
180
 
181
181
  # @see the `==` method
@@ -187,7 +187,7 @@ module PulpContainerClient
187
187
  # Calculates hash code according to all attributes.
188
188
  # @return [Integer] Hash code
189
189
  def hash
190
- [retain_repo_versions, manifest_signing_service, pulp_labels, latest_version_href, name, pulp_href, pulp_created, description, versions_href].hash
190
+ [manifest_signing_service, name, pulp_created, pulp_href, versions_href, latest_version_href, description, retain_repo_versions, pulp_labels].hash
191
191
  end
192
192
 
193
193
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ # The latest RepositoryVersion for this Repository will be served.
19
+ attr_accessor :repository
20
+
18
21
  # An optional content-guard. If none is specified, a default one will be used.
19
22
  attr_accessor :content_guard
20
23
 
21
- attr_accessor :pulp_labels
22
-
23
24
  # A unique name. Ex, `rawhide` and `stable`.
24
25
  attr_accessor :name
25
26
 
27
+ attr_accessor :pulp_labels
28
+
26
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
30
  attr_accessor :base_path
28
31
 
29
- # The latest RepositoryVersion for this Repository will be served.
30
- attr_accessor :repository
31
-
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'repository' => :'repository',
44
45
  :'content_guard' => :'content_guard',
45
- :'pulp_labels' => :'pulp_labels',
46
46
  :'name' => :'name',
47
+ :'pulp_labels' => :'pulp_labels',
47
48
  :'base_path' => :'base_path',
48
- :'repository' => :'repository',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'repository' => :'String',
58
59
  :'content_guard' => :'String',
59
- :'pulp_labels' => :'Object',
60
60
  :'name' => :'String',
61
+ :'pulp_labels' => :'Object',
61
62
  :'base_path' => :'String',
62
- :'repository' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,24 +90,24 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'content_guard')
94
- self.content_guard = attributes[:'content_guard']
93
+ if attributes.key?(:'repository')
94
+ self.repository = attributes[:'repository']
95
95
  end
96
96
 
97
- if attributes.key?(:'pulp_labels')
98
- self.pulp_labels = attributes[:'pulp_labels']
97
+ if attributes.key?(:'content_guard')
98
+ self.content_guard = attributes[:'content_guard']
99
99
  end
100
100
 
101
101
  if attributes.key?(:'name')
102
102
  self.name = attributes[:'name']
103
103
  end
104
104
 
105
- if attributes.key?(:'base_path')
106
- self.base_path = attributes[:'base_path']
105
+ if attributes.key?(:'pulp_labels')
106
+ self.pulp_labels = attributes[:'pulp_labels']
107
107
  end
108
108
 
109
- if attributes.key?(:'repository')
110
- self.repository = attributes[:'repository']
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
111
  end
112
112
 
113
113
  if attributes.key?(:'repository_version')
@@ -186,11 +186,11 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
+ repository == o.repository &&
189
190
  content_guard == o.content_guard &&
190
- pulp_labels == o.pulp_labels &&
191
191
  name == o.name &&
192
+ pulp_labels == o.pulp_labels &&
192
193
  base_path == o.base_path &&
193
- repository == o.repository &&
194
194
  repository_version == o.repository_version &&
195
195
  private == o.private &&
196
196
  description == o.description
@@ -205,7 +205,7 @@ module PulpContainerClient
205
205
  # Calculates hash code according to all attributes.
206
206
  # @return [Integer] Hash code
207
207
  def hash
208
- [content_guard, pulp_labels, name, base_path, repository, repository_version, private, description].hash
208
+ [repository, content_guard, name, pulp_labels, base_path, repository_version, private, description].hash
209
209
  end
210
210
 
211
211
  # Builds the object from hash