pulp_container_client 2.7.1 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +6 -6
  5. data/docs/ContainerContainerPushRepository.md +4 -4
  6. data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
  7. data/docs/ContentBlobsApi.md +1 -1
  8. data/docs/ContentManifestsApi.md +1 -1
  9. data/docs/ContentTagsApi.md +1 -1
  10. data/docs/ContentguardsContentRedirectApi.md +1 -1
  11. data/docs/DistributionsContainerApi.md +1 -1
  12. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  13. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  14. data/docs/PulpContainerNamespacesApi.md +1 -1
  15. data/docs/RemotesContainerApi.md +1 -1
  16. data/docs/RepositoriesContainerApi.md +1 -1
  17. data/docs/RepositoriesContainerPushApi.md +1 -1
  18. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  19. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  20. data/docs/TokenApi.md +1 -1
  21. data/lib/pulp_container_client/configuration.rb +2 -2
  22. data/lib/pulp_container_client/models/container_container_distribution.rb +17 -17
  23. data/lib/pulp_container_client/models/container_container_distribution_response.rb +24 -24
  24. data/lib/pulp_container_client/models/container_container_push_repository.rb +19 -19
  25. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +35 -35
  26. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +17 -17
  27. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +14 -14
  28. data/lib/pulp_container_client/version.rb +1 -1
  29. data/spec/configuration_spec.rb +3 -3
  30. data/spec/models/container_container_distribution_response_spec.rb +5 -5
  31. data/spec/models/container_container_distribution_spec.rb +3 -3
  32. data/spec/models/container_container_push_repository_response_spec.rb +6 -6
  33. data/spec/models/container_container_push_repository_spec.rb +2 -2
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
  35. data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
  36. metadata +44 -44
@@ -15,13 +15,13 @@ 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 :retained_versions
18
+ attr_accessor :pulp_labels
20
19
 
21
20
  # A unique name for this repository.
22
21
  attr_accessor :name
23
22
 
24
- attr_accessor :pulp_labels
23
+ # 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
25
25
 
26
26
  # An optional description.
27
27
  attr_accessor :description
@@ -29,9 +29,9 @@ module PulpContainerClient
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'retained_versions' => :'retained_versions',
33
- :'name' => :'name',
34
32
  :'pulp_labels' => :'pulp_labels',
33
+ :'name' => :'name',
34
+ :'retained_versions' => :'retained_versions',
35
35
  :'description' => :'description'
36
36
  }
37
37
  end
@@ -39,9 +39,9 @@ module PulpContainerClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'retained_versions' => :'Integer',
43
- :'name' => :'String',
44
42
  :'pulp_labels' => :'Object',
43
+ :'name' => :'String',
44
+ :'retained_versions' => :'Integer',
45
45
  :'description' => :'String'
46
46
  }
47
47
  end
@@ -69,16 +69,16 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'retained_versions')
73
- self.retained_versions = attributes[:'retained_versions']
72
+ if attributes.key?(:'pulp_labels')
73
+ self.pulp_labels = attributes[:'pulp_labels']
74
74
  end
75
75
 
76
76
  if attributes.key?(:'name')
77
77
  self.name = attributes[:'name']
78
78
  end
79
79
 
80
- if attributes.key?(:'pulp_labels')
81
- self.pulp_labels = attributes[:'pulp_labels']
80
+ if attributes.key?(:'retained_versions')
81
+ self.retained_versions = attributes[:'retained_versions']
82
82
  end
83
83
 
84
84
  if attributes.key?(:'description')
@@ -90,22 +90,22 @@ module PulpContainerClient
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.')
95
- end
96
-
97
93
  if @name.nil?
98
94
  invalid_properties.push('invalid value for "name", name cannot be nil.')
99
95
  end
100
96
 
97
+ if !@retained_versions.nil? && @retained_versions < 1
98
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
99
+ end
100
+
101
101
  invalid_properties
102
102
  end
103
103
 
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- return false if !@retained_versions.nil? && @retained_versions < 1
108
107
  return false if @name.nil?
108
+ return false if !@retained_versions.nil? && @retained_versions < 1
109
109
  true
110
110
  end
111
111
 
@@ -124,9 +124,9 @@ module PulpContainerClient
124
124
  def ==(o)
125
125
  return true if self.equal?(o)
126
126
  self.class == o.class &&
127
- retained_versions == o.retained_versions &&
128
- name == o.name &&
129
127
  pulp_labels == o.pulp_labels &&
128
+ name == o.name &&
129
+ retained_versions == o.retained_versions &&
130
130
  description == o.description
131
131
  end
132
132
 
@@ -139,7 +139,7 @@ module PulpContainerClient
139
139
  # Calculates hash code according to all attributes.
140
140
  # @return [Integer] Hash code
141
141
  def hash
142
- [retained_versions, name, pulp_labels, description].hash
142
+ [pulp_labels, name, retained_versions, description].hash
143
143
  end
144
144
 
145
145
  # Builds the object from hash
@@ -15,22 +15,22 @@ 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 :retained_versions
18
+ attr_accessor :pulp_labels
20
19
 
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
20
+ attr_accessor :latest_version_href
23
21
 
24
22
  attr_accessor :versions_href
25
23
 
26
- attr_accessor :latest_version_href
27
-
28
24
  attr_accessor :pulp_href
29
25
 
30
26
  # A unique name for this repository.
31
27
  attr_accessor :name
32
28
 
33
- attr_accessor :pulp_labels
29
+ # Timestamp of creation.
30
+ attr_accessor :pulp_created
31
+
32
+ # 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.
33
+ attr_accessor :retained_versions
34
34
 
35
35
  # An optional description.
36
36
  attr_accessor :description
@@ -38,13 +38,13 @@ module PulpContainerClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'retained_versions' => :'retained_versions',
42
- :'pulp_created' => :'pulp_created',
43
- :'versions_href' => :'versions_href',
41
+ :'pulp_labels' => :'pulp_labels',
44
42
  :'latest_version_href' => :'latest_version_href',
43
+ :'versions_href' => :'versions_href',
45
44
  :'pulp_href' => :'pulp_href',
46
45
  :'name' => :'name',
47
- :'pulp_labels' => :'pulp_labels',
46
+ :'pulp_created' => :'pulp_created',
47
+ :'retained_versions' => :'retained_versions',
48
48
  :'description' => :'description'
49
49
  }
50
50
  end
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'retained_versions' => :'Integer',
56
- :'pulp_created' => :'DateTime',
57
- :'versions_href' => :'String',
55
+ :'pulp_labels' => :'Object',
58
56
  :'latest_version_href' => :'String',
57
+ :'versions_href' => :'String',
59
58
  :'pulp_href' => :'String',
60
59
  :'name' => :'String',
61
- :'pulp_labels' => :'Object',
60
+ :'pulp_created' => :'DateTime',
61
+ :'retained_versions' => :'Integer',
62
62
  :'description' => :'String'
63
63
  }
64
64
  end
@@ -86,22 +86,18 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
89
+ if attributes.key?(:'pulp_labels')
90
+ self.pulp_labels = attributes[:'pulp_labels']
91
91
  end
92
92
 
93
- if attributes.key?(:'pulp_created')
94
- self.pulp_created = attributes[:'pulp_created']
93
+ if attributes.key?(:'latest_version_href')
94
+ self.latest_version_href = attributes[:'latest_version_href']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'versions_href')
98
98
  self.versions_href = attributes[:'versions_href']
99
99
  end
100
100
 
101
- if attributes.key?(:'latest_version_href')
102
- self.latest_version_href = attributes[:'latest_version_href']
103
- end
104
-
105
101
  if attributes.key?(:'pulp_href')
106
102
  self.pulp_href = attributes[:'pulp_href']
107
103
  end
@@ -110,8 +106,12 @@ module PulpContainerClient
110
106
  self.name = attributes[:'name']
111
107
  end
112
108
 
113
- if attributes.key?(:'pulp_labels')
114
- self.pulp_labels = attributes[:'pulp_labels']
109
+ if attributes.key?(:'pulp_created')
110
+ self.pulp_created = attributes[:'pulp_created']
111
+ end
112
+
113
+ if attributes.key?(:'retained_versions')
114
+ self.retained_versions = attributes[:'retained_versions']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'description')
@@ -123,22 +123,22 @@ module PulpContainerClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if !@retained_versions.nil? && @retained_versions < 1
127
- invalid_properties.push('invalid value for "retained_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 !@retained_versions.nil? && @retained_versions < 1
131
+ invalid_properties.push('invalid value for "retained_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 !@retained_versions.nil? && @retained_versions < 1
141
140
  return false if @name.nil?
141
+ return false if !@retained_versions.nil? && @retained_versions < 1
142
142
  true
143
143
  end
144
144
 
@@ -157,13 +157,13 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
- retained_versions == o.retained_versions &&
161
- pulp_created == o.pulp_created &&
162
- versions_href == o.versions_href &&
160
+ pulp_labels == o.pulp_labels &&
163
161
  latest_version_href == o.latest_version_href &&
162
+ versions_href == o.versions_href &&
164
163
  pulp_href == o.pulp_href &&
165
164
  name == o.name &&
166
- pulp_labels == o.pulp_labels &&
165
+ pulp_created == o.pulp_created &&
166
+ retained_versions == o.retained_versions &&
167
167
  description == o.description
168
168
  end
169
169
 
@@ -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
- [retained_versions, pulp_created, versions_href, latest_version_href, pulp_href, name, pulp_labels, description].hash
179
+ [pulp_labels, latest_version_href, versions_href, pulp_href, name, pulp_created, retained_versions, description].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -18,16 +18,16 @@ 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
+ attr_accessor :pulp_labels
22
+
21
23
  # The latest RepositoryVersion for this Repository will be served.
22
24
  attr_accessor :repository
23
25
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
26
-
27
26
  # A unique name. Ex, `rawhide` and `stable`.
28
27
  attr_accessor :name
29
28
 
30
- attr_accessor :pulp_labels
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
31
 
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
@@ -42,10 +42,10 @@ module PulpContainerClient
42
42
  def self.attribute_map
43
43
  {
44
44
  :'base_path' => :'base_path',
45
+ :'pulp_labels' => :'pulp_labels',
45
46
  :'repository' => :'repository',
46
- :'content_guard' => :'content_guard',
47
47
  :'name' => :'name',
48
- :'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
+ :'pulp_labels' => :'Object',
59
60
  :'repository' => :'String',
60
- :'content_guard' => :'String',
61
61
  :'name' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'content_guard' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -94,20 +94,20 @@ module PulpContainerClient
94
94
  self.base_path = attributes[:'base_path']
95
95
  end
96
96
 
97
- if attributes.key?(:'repository')
98
- self.repository = attributes[:'repository']
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'content_guard')
102
- self.content_guard = attributes[:'content_guard']
101
+ if attributes.key?(:'repository')
102
+ self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
105
  if attributes.key?(:'name')
106
106
  self.name = attributes[:'name']
107
107
  end
108
108
 
109
- if attributes.key?(:'pulp_labels')
110
- self.pulp_labels = attributes[:'pulp_labels']
109
+ if attributes.key?(:'content_guard')
110
+ self.content_guard = attributes[:'content_guard']
111
111
  end
112
112
 
113
113
  if attributes.key?(:'repository_version')
@@ -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
+ pulp_labels == o.pulp_labels &&
145
146
  repository == o.repository &&
146
- content_guard == o.content_guard &&
147
147
  name == o.name &&
148
- 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, repository, content_guard, name, pulp_labels, repository_version, private, description].hash
163
+ [base_path, pulp_labels, repository, name, content_guard, repository_version, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
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 :retained_versions
18
+ attr_accessor :pulp_labels
20
19
 
21
20
  # A unique name for this repository.
22
21
  attr_accessor :name
23
22
 
24
- attr_accessor :pulp_labels
23
+ # 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
25
25
 
26
26
  # An optional description.
27
27
  attr_accessor :description
@@ -29,9 +29,9 @@ module PulpContainerClient
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'retained_versions' => :'retained_versions',
33
- :'name' => :'name',
34
32
  :'pulp_labels' => :'pulp_labels',
33
+ :'name' => :'name',
34
+ :'retained_versions' => :'retained_versions',
35
35
  :'description' => :'description'
36
36
  }
37
37
  end
@@ -39,9 +39,9 @@ module PulpContainerClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'retained_versions' => :'Integer',
43
- :'name' => :'String',
44
42
  :'pulp_labels' => :'Object',
43
+ :'name' => :'String',
44
+ :'retained_versions' => :'Integer',
45
45
  :'description' => :'String'
46
46
  }
47
47
  end
@@ -69,16 +69,16 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'retained_versions')
73
- self.retained_versions = attributes[:'retained_versions']
72
+ if attributes.key?(:'pulp_labels')
73
+ self.pulp_labels = attributes[:'pulp_labels']
74
74
  end
75
75
 
76
76
  if attributes.key?(:'name')
77
77
  self.name = attributes[:'name']
78
78
  end
79
79
 
80
- if attributes.key?(:'pulp_labels')
81
- self.pulp_labels = attributes[:'pulp_labels']
80
+ if attributes.key?(:'retained_versions')
81
+ self.retained_versions = attributes[:'retained_versions']
82
82
  end
83
83
 
84
84
  if attributes.key?(:'description')
@@ -119,9 +119,9 @@ module PulpContainerClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- retained_versions == o.retained_versions &&
123
- name == o.name &&
124
122
  pulp_labels == o.pulp_labels &&
123
+ name == o.name &&
124
+ retained_versions == o.retained_versions &&
125
125
  description == o.description
126
126
  end
127
127
 
@@ -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
- [retained_versions, name, pulp_labels, description].hash
137
+ [pulp_labels, name, retained_versions, 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.7.1'
14
+ VERSION = '2.8.0'
15
15
  end