pulp_container_client 2.14.0.dev1659153853 → 2.14.0.dev1659416065

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 ContainerContainerPushRepository
18
+ # An optional description.
19
+ attr_accessor :description
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # A reference to an associated signing service.
19
24
  attr_accessor :manifest_signing_service
20
25
 
21
26
  # A unique name for this repository.
22
27
  attr_accessor :name
23
28
 
24
- attr_accessor :pulp_labels
25
-
26
29
  # 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
30
  attr_accessor :retain_repo_versions
28
31
 
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
+ :'description' => :'description',
36
+ :'pulp_labels' => :'pulp_labels',
35
37
  :'manifest_signing_service' => :'manifest_signing_service',
36
38
  :'name' => :'name',
37
- :'pulp_labels' => :'pulp_labels',
38
- :'retain_repo_versions' => :'retain_repo_versions',
39
- :'description' => :'description'
39
+ :'retain_repo_versions' => :'retain_repo_versions'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'description' => :'String',
47
+ :'pulp_labels' => :'Object',
46
48
  :'manifest_signing_service' => :'String',
47
49
  :'name' => :'String',
48
- :'pulp_labels' => :'Object',
49
- :'retain_repo_versions' => :'Integer',
50
- :'description' => :'String'
50
+ :'retain_repo_versions' => :'Integer'
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',
57
58
  :'manifest_signing_service',
58
- :'retain_repo_versions',
59
- :'description'
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'description')
79
+ self.description = attributes[:'description']
80
+ end
81
+
82
+ if attributes.key?(:'pulp_labels')
83
+ self.pulp_labels = attributes[:'pulp_labels']
84
+ end
85
+
78
86
  if attributes.key?(:'manifest_signing_service')
79
87
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
88
  end
@@ -83,23 +91,19 @@ module PulpContainerClient
83
91
  self.name = attributes[:'name']
84
92
  end
85
93
 
86
- if attributes.key?(:'pulp_labels')
87
- self.pulp_labels = attributes[:'pulp_labels']
88
- end
89
-
90
94
  if attributes.key?(:'retain_repo_versions')
91
95
  self.retain_repo_versions = attributes[:'retain_repo_versions']
92
96
  end
93
-
94
- if attributes.key?(:'description')
95
- self.description = attributes[:'description']
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 !@description.nil? && @description.to_s.length < 1
104
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
105
+ end
106
+
103
107
  if @name.nil?
104
108
  invalid_properties.push('invalid value for "name", name cannot be nil.')
105
109
  end
@@ -112,23 +116,29 @@ module PulpContainerClient
112
116
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
113
117
  end
114
118
 
115
- if !@description.nil? && @description.to_s.length < 1
116
- invalid_properties.push('invalid value for "description", the character length must be great 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 !@description.nil? && @description.to_s.length < 1
125
126
  return false if @name.nil?
126
127
  return false if @name.to_s.length < 1
127
128
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
- return false if !@description.nil? && @description.to_s.length < 1
129
129
  true
130
130
  end
131
131
 
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] description Value to be assigned
134
+ def description=(description)
135
+ if !description.nil? && description.to_s.length < 1
136
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
137
+ end
138
+
139
+ @description = description
140
+ end
141
+
132
142
  # Custom attribute writer method with validation
133
143
  # @param [Object] name Value to be assigned
134
144
  def name=(name)
@@ -153,26 +163,16 @@ module PulpContainerClient
153
163
  @retain_repo_versions = retain_repo_versions
154
164
  end
155
165
 
156
- # Custom attribute writer method with validation
157
- # @param [Object] description Value to be assigned
158
- def description=(description)
159
- if !description.nil? && description.to_s.length < 1
160
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
161
- end
162
-
163
- @description = description
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
+ description == o.description &&
172
+ pulp_labels == o.pulp_labels &&
171
173
  manifest_signing_service == o.manifest_signing_service &&
172
174
  name == o.name &&
173
- pulp_labels == o.pulp_labels &&
174
- retain_repo_versions == o.retain_repo_versions &&
175
- description == o.description
175
+ retain_repo_versions == o.retain_repo_versions
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
- [manifest_signing_service, name, pulp_labels, retain_repo_versions, description].hash
187
+ [description, pulp_labels, manifest_signing_service, name, retain_repo_versions].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
- # A reference to an associated signing service.
19
- attr_accessor :manifest_signing_service
18
+ # An optional description.
19
+ attr_accessor :description
20
20
 
21
- # A unique name for this repository.
22
- attr_accessor :name
21
+ attr_accessor :latest_version_href
23
22
 
24
23
  attr_accessor :pulp_labels
25
24
 
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
- attr_accessor :retain_repo_versions
25
+ attr_accessor :pulp_href
28
26
 
29
27
  attr_accessor :versions_href
30
28
 
31
- attr_accessor :latest_version_href
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
31
+
32
+ # A unique name for this repository.
33
+ attr_accessor :name
32
34
 
33
35
  # Timestamp of creation.
34
36
  attr_accessor :pulp_created
35
37
 
36
- # An optional description.
37
- attr_accessor :description
38
-
39
- attr_accessor :pulp_href
38
+ # 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.
39
+ attr_accessor :retain_repo_versions
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'manifest_signing_service' => :'manifest_signing_service',
45
- :'name' => :'name',
44
+ :'description' => :'description',
45
+ :'latest_version_href' => :'latest_version_href',
46
46
  :'pulp_labels' => :'pulp_labels',
47
- :'retain_repo_versions' => :'retain_repo_versions',
47
+ :'pulp_href' => :'pulp_href',
48
48
  :'versions_href' => :'versions_href',
49
- :'latest_version_href' => :'latest_version_href',
49
+ :'manifest_signing_service' => :'manifest_signing_service',
50
+ :'name' => :'name',
50
51
  :'pulp_created' => :'pulp_created',
51
- :'description' => :'description',
52
- :'pulp_href' => :'pulp_href'
52
+ :'retain_repo_versions' => :'retain_repo_versions'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'manifest_signing_service' => :'String',
60
- :'name' => :'String',
59
+ :'description' => :'String',
60
+ :'latest_version_href' => :'String',
61
61
  :'pulp_labels' => :'Object',
62
- :'retain_repo_versions' => :'Integer',
62
+ :'pulp_href' => :'String',
63
63
  :'versions_href' => :'String',
64
- :'latest_version_href' => :'String',
64
+ :'manifest_signing_service' => :'String',
65
+ :'name' => :'String',
65
66
  :'pulp_created' => :'DateTime',
66
- :'description' => :'String',
67
- :'pulp_href' => :'String'
67
+ :'retain_repo_versions' => :'Integer'
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
- :'manifest_signing_service',
75
- :'retain_repo_versions',
76
74
  :'description',
75
+ :'manifest_signing_service',
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?(:'manifest_signing_service')
96
- self.manifest_signing_service = attributes[:'manifest_signing_service']
95
+ if attributes.key?(:'description')
96
+ self.description = attributes[:'description']
97
97
  end
98
98
 
99
- if attributes.key?(:'name')
100
- self.name = attributes[:'name']
99
+ if attributes.key?(:'latest_version_href')
100
+ self.latest_version_href = attributes[:'latest_version_href']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'pulp_labels')
104
104
  self.pulp_labels = attributes[:'pulp_labels']
105
105
  end
106
106
 
107
- if attributes.key?(:'retain_repo_versions')
108
- self.retain_repo_versions = attributes[:'retain_repo_versions']
107
+ if attributes.key?(:'pulp_href')
108
+ self.pulp_href = attributes[:'pulp_href']
109
109
  end
110
110
 
111
111
  if attributes.key?(:'versions_href')
112
112
  self.versions_href = attributes[:'versions_href']
113
113
  end
114
114
 
115
- if attributes.key?(:'latest_version_href')
116
- self.latest_version_href = attributes[:'latest_version_href']
115
+ if attributes.key?(:'manifest_signing_service')
116
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
117
117
  end
118
118
 
119
- if attributes.key?(:'pulp_created')
120
- self.pulp_created = attributes[:'pulp_created']
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
121
121
  end
122
122
 
123
- if attributes.key?(:'description')
124
- self.description = attributes[:'description']
123
+ if attributes.key?(:'pulp_created')
124
+ self.pulp_created = attributes[:'pulp_created']
125
125
  end
126
126
 
127
- if attributes.key?(:'pulp_href')
128
- self.pulp_href = attributes[:'pulp_href']
127
+ if attributes.key?(:'retain_repo_versions')
128
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
129
129
  end
130
130
  end
131
131
 
@@ -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
- manifest_signing_service == o.manifest_signing_service &&
171
- name == o.name &&
170
+ description == o.description &&
171
+ latest_version_href == o.latest_version_href &&
172
172
  pulp_labels == o.pulp_labels &&
173
- retain_repo_versions == o.retain_repo_versions &&
173
+ pulp_href == o.pulp_href &&
174
174
  versions_href == o.versions_href &&
175
- latest_version_href == o.latest_version_href &&
175
+ manifest_signing_service == o.manifest_signing_service &&
176
+ name == o.name &&
176
177
  pulp_created == o.pulp_created &&
177
- description == o.description &&
178
- pulp_href == o.pulp_href
178
+ retain_repo_versions == o.retain_repo_versions
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
- [manifest_signing_service, name, pulp_labels, retain_repo_versions, versions_href, latest_version_href, pulp_created, description, pulp_href].hash
190
+ [description, latest_version_href, pulp_labels, pulp_href, versions_href, manifest_signing_service, name, pulp_created, retain_repo_versions].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
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # The latest RepositoryVersion for this Repository will be served.
24
19
  attr_accessor :repository
25
20
 
21
+ attr_accessor :pulp_labels
22
+
26
23
  # An optional content-guard. If none is specified, a default one will be used.
27
24
  attr_accessor :content_guard
28
25
 
29
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\")
30
27
  attr_accessor :base_path
31
28
 
29
+ # A unique name. Ex, `rawhide` and `stable`.
30
+ attr_accessor :name
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
- :'name' => :'name',
45
- :'pulp_labels' => :'pulp_labels',
46
44
  :'repository' => :'repository',
45
+ :'pulp_labels' => :'pulp_labels',
47
46
  :'content_guard' => :'content_guard',
48
47
  :'base_path' => :'base_path',
48
+ :'name' => :'name',
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
- :'name' => :'String',
59
- :'pulp_labels' => :'Object',
60
58
  :'repository' => :'String',
59
+ :'pulp_labels' => :'Object',
61
60
  :'content_guard' => :'String',
62
61
  :'base_path' => :'String',
62
+ :'name' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,18 +90,14 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
93
+ if attributes.key?(:'repository')
94
+ self.repository = attributes[:'repository']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'pulp_labels')
98
98
  self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'repository')
102
- self.repository = attributes[:'repository']
103
- end
104
-
105
101
  if attributes.key?(:'content_guard')
106
102
  self.content_guard = attributes[:'content_guard']
107
103
  end
@@ -110,6 +106,10 @@ module PulpContainerClient
110
106
  self.base_path = attributes[:'base_path']
111
107
  end
112
108
 
109
+ if attributes.key?(:'name')
110
+ self.name = attributes[:'name']
111
+ end
112
+
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  end
@@ -127,14 +127,14 @@ module PulpContainerClient
127
127
  # @return Array for valid properties with the reasons
128
128
  def list_invalid_properties
129
129
  invalid_properties = Array.new
130
- if !@name.nil? && @name.to_s.length < 1
131
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
132
- end
133
-
134
130
  if !@base_path.nil? && @base_path.to_s.length < 1
135
131
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
136
132
  end
137
133
 
134
+ if !@name.nil? && @name.to_s.length < 1
135
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
136
+ end
137
+
138
138
  if !@description.nil? && @description.to_s.length < 1
139
139
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
140
140
  end
@@ -145,22 +145,12 @@ module PulpContainerClient
145
145
  # Check to see if the all the properties in the model are valid
146
146
  # @return true if the model is valid
147
147
  def valid?
148
- return false if !@name.nil? && @name.to_s.length < 1
149
148
  return false if !@base_path.nil? && @base_path.to_s.length < 1
149
+ return false if !@name.nil? && @name.to_s.length < 1
150
150
  return false if !@description.nil? && @description.to_s.length < 1
151
151
  true
152
152
  end
153
153
 
154
- # Custom attribute writer method with validation
155
- # @param [Object] name Value to be assigned
156
- def name=(name)
157
- if !name.nil? && name.to_s.length < 1
158
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
159
- end
160
-
161
- @name = name
162
- end
163
-
164
154
  # Custom attribute writer method with validation
165
155
  # @param [Object] base_path Value to be assigned
166
156
  def base_path=(base_path)
@@ -171,6 +161,16 @@ module PulpContainerClient
171
161
  @base_path = base_path
172
162
  end
173
163
 
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] name Value to be assigned
166
+ def name=(name)
167
+ if !name.nil? && name.to_s.length < 1
168
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
169
+ end
170
+
171
+ @name = name
172
+ end
173
+
174
174
  # Custom attribute writer method with validation
175
175
  # @param [Object] description Value to be assigned
176
176
  def description=(description)
@@ -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
- name == o.name &&
190
- pulp_labels == o.pulp_labels &&
191
189
  repository == o.repository &&
190
+ pulp_labels == o.pulp_labels &&
192
191
  content_guard == o.content_guard &&
193
192
  base_path == o.base_path &&
193
+ name == o.name &&
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
- [name, pulp_labels, repository, content_guard, base_path, repository_version, private, description].hash
208
+ [repository, pulp_labels, content_guard, base_path, name, repository_version, private, description].hash
209
209
  end
210
210
 
211
211
  # Builds the object from hash