pulp_container_client 2.8.0 → 2.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) 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 +7 -7
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/ContainerContainerRepository.md +3 -3
  8. data/docs/ContainerContainerRepositoryResponse.md +3 -3
  9. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  10. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  11. data/docs/PatchedcontainerContainerRepository.md +3 -3
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +17 -17
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +27 -27
  14. data/lib/pulp_container_client/models/container_container_push_repository.rb +36 -36
  15. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  16. data/lib/pulp_container_client/models/container_container_repository.rb +17 -16
  17. data/lib/pulp_container_client/models/container_container_repository_response.rb +17 -16
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +17 -17
  19. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
  20. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +17 -16
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  23. data/spec/models/container_container_distribution_spec.rb +5 -5
  24. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  25. data/spec/models/container_container_push_repository_spec.rb +4 -4
  26. data/spec/models/container_container_repository_response_spec.rb +1 -1
  27. data/spec/models/container_container_repository_spec.rb +1 -1
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  29. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  30. data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
  31. metadata +42 -42
@@ -33,8 +33,9 @@ module PulpContainerClient
33
33
  attr_accessor :description
34
34
 
35
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 :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpContainerClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpContainerClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpContainerClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpContainerClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpContainerClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
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.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpContainerClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpContainerClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpContainerClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash
@@ -15,10 +15,13 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ attr_accessor :pulp_labels
19
+
18
20
  # 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
21
  attr_accessor :base_path
20
22
 
21
- attr_accessor :pulp_labels
23
+ # An optional content-guard. If none is specified, a default one will be used.
24
+ attr_accessor :content_guard
22
25
 
23
26
  # The latest RepositoryVersion for this Repository will be served.
24
27
  attr_accessor :repository
@@ -26,9 +29,6 @@ module PulpContainerClient
26
29
  # A unique name. Ex, `rawhide` and `stable`.
27
30
  attr_accessor :name
28
31
 
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
 
@@ -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
- :'base_path' => :'base_path',
45
44
  :'pulp_labels' => :'pulp_labels',
45
+ :'base_path' => :'base_path',
46
+ :'content_guard' => :'content_guard',
46
47
  :'repository' => :'repository',
47
48
  :'name' => :'name',
48
- :'content_guard' => :'content_guard',
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
- :'base_path' => :'String',
59
58
  :'pulp_labels' => :'Object',
59
+ :'base_path' => :'String',
60
+ :'content_guard' => :'String',
60
61
  :'repository' => :'String',
61
62
  :'name' => :'String',
62
- :'content_guard' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,12 +90,16 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'pulp_labels')
94
+ self.pulp_labels = attributes[:'pulp_labels']
95
+ end
96
+
93
97
  if attributes.key?(:'base_path')
94
98
  self.base_path = attributes[:'base_path']
95
99
  end
96
100
 
97
- if attributes.key?(:'pulp_labels')
98
- self.pulp_labels = attributes[:'pulp_labels']
101
+ if attributes.key?(:'content_guard')
102
+ self.content_guard = attributes[:'content_guard']
99
103
  end
100
104
 
101
105
  if attributes.key?(:'repository')
@@ -106,10 +110,6 @@ module PulpContainerClient
106
110
  self.name = attributes[:'name']
107
111
  end
108
112
 
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
@@ -141,11 +141,11 @@ module PulpContainerClient
141
141
  def ==(o)
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
- base_path == o.base_path &&
145
144
  pulp_labels == o.pulp_labels &&
145
+ base_path == o.base_path &&
146
+ content_guard == o.content_guard &&
146
147
  repository == o.repository &&
147
148
  name == o.name &&
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, pulp_labels, repository, name, content_guard, repository_version, private, description].hash
163
+ [pulp_labels, base_path, content_guard, repository, name, 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
- attr_accessor :pulp_labels
19
-
20
- # A unique name for this repository.
21
- attr_accessor :name
22
-
23
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.
24
- attr_accessor :retained_versions
19
+ attr_accessor :retain_repo_versions
20
+
21
+ attr_accessor :pulp_labels
25
22
 
26
23
  # An optional description.
27
24
  attr_accessor :description
28
25
 
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
+ :'retain_repo_versions' => :'retain_repo_versions',
32
33
  :'pulp_labels' => :'pulp_labels',
33
- :'name' => :'name',
34
- :'retained_versions' => :'retained_versions',
35
- :'description' => :'description'
34
+ :'description' => :'description',
35
+ :'name' => :'name'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
+ :'retain_repo_versions' => :'Integer',
42
43
  :'pulp_labels' => :'Object',
43
- :'name' => :'String',
44
- :'retained_versions' => :'Integer',
45
- :'description' => :'String'
44
+ :'description' => :'String',
45
+ :'name' => :'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
- :'retained_versions',
53
- :'description'
52
+ :'retain_repo_versions',
53
+ :'description',
54
54
  ])
55
55
  end
56
56
 
@@ -69,29 +69,29 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'pulp_labels')
73
- self.pulp_labels = attributes[:'pulp_labels']
74
- end
75
-
76
- if attributes.key?(:'name')
77
- self.name = attributes[:'name']
72
+ if attributes.key?(:'retain_repo_versions')
73
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
78
74
  end
79
75
 
80
- if attributes.key?(:'retained_versions')
81
- self.retained_versions = attributes[:'retained_versions']
76
+ if attributes.key?(:'pulp_labels')
77
+ self.pulp_labels = attributes[:'pulp_labels']
82
78
  end
83
79
 
84
80
  if attributes.key?(:'description')
85
81
  self.description = attributes[:'description']
86
82
  end
83
+
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@retained_versions.nil? && @retained_versions < 1
94
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
93
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
95
  end
96
96
 
97
97
  invalid_properties
@@ -100,18 +100,18 @@ module PulpContainerClient
100
100
  # Check to see if the all the properties in the model are valid
101
101
  # @return true if the model is valid
102
102
  def valid?
103
- return false if !@retained_versions.nil? && @retained_versions < 1
103
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
104
  true
105
105
  end
106
106
 
107
107
  # Custom attribute writer method with validation
108
- # @param [Object] retained_versions Value to be assigned
109
- def retained_versions=(retained_versions)
110
- if !retained_versions.nil? && retained_versions < 1
111
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
108
+ # @param [Object] retain_repo_versions Value to be assigned
109
+ def retain_repo_versions=(retain_repo_versions)
110
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
111
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
112
112
  end
113
113
 
114
- @retained_versions = retained_versions
114
+ @retain_repo_versions = retain_repo_versions
115
115
  end
116
116
 
117
117
  # Checks equality by comparing each attribute.
@@ -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
+ retain_repo_versions == o.retain_repo_versions &&
122
123
  pulp_labels == o.pulp_labels &&
123
- name == o.name &&
124
- retained_versions == o.retained_versions &&
125
- description == o.description
124
+ description == o.description &&
125
+ name == o.name
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
- [pulp_labels, name, retained_versions, description].hash
137
+ [retain_repo_versions, pulp_labels, description, name].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -24,8 +24,9 @@ module PulpContainerClient
24
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
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpContainerClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpContainerClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpContainerClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpContainerClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -99,8 +100,8 @@ module PulpContainerClient
99
100
  # @return Array for valid properties with the reasons
100
101
  def list_invalid_properties
101
102
  invalid_properties = Array.new
102
- if !@retained_versions.nil? && @retained_versions < 1
103
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
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.')
104
105
  end
105
106
 
106
107
  invalid_properties
@@ -109,18 +110,18 @@ module PulpContainerClient
109
110
  # Check to see if the all the properties in the model are valid
110
111
  # @return true if the model is valid
111
112
  def valid?
112
- return false if !@retained_versions.nil? && @retained_versions < 1
113
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
113
114
  true
114
115
  end
115
116
 
116
117
  # Custom attribute writer method with validation
117
- # @param [Object] retained_versions Value to be assigned
118
- def retained_versions=(retained_versions)
119
- if !retained_versions.nil? && retained_versions < 1
120
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
118
+ # @param [Object] retain_repo_versions Value to be assigned
119
+ def retain_repo_versions=(retain_repo_versions)
120
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
121
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
121
122
  end
122
123
 
123
- @retained_versions = retained_versions
124
+ @retain_repo_versions = retain_repo_versions
124
125
  end
125
126
 
126
127
  # Checks equality by comparing each attribute.
@@ -131,7 +132,7 @@ module PulpContainerClient
131
132
  pulp_labels == o.pulp_labels &&
132
133
  name == o.name &&
133
134
  description == o.description &&
134
- retained_versions == o.retained_versions &&
135
+ retain_repo_versions == o.retain_repo_versions &&
135
136
  remote == o.remote
136
137
  end
137
138
 
@@ -144,7 +145,7 @@ module PulpContainerClient
144
145
  # Calculates hash code according to all attributes.
145
146
  # @return [Integer] Hash code
146
147
  def hash
147
- [pulp_labels, name, description, retained_versions, remote].hash
148
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
148
149
  end
149
150
 
150
151
  # 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.8.0'
14
+ VERSION = '2.8.1'
15
15
  end