pulp_container_client 2.15.0.dev1667533449 → 2.15.0.dev1667705546

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.

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