pulp_container_client 2.14.5 → 2.14.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +6 -6
  5. data/docs/ContainerContainerPushRepository.md +5 -5
  6. data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/ContentBlobsApi.md +6 -2
  10. data/docs/ContentManifestsApi.md +8 -4
  11. data/docs/ContentSignaturesApi.md +6 -2
  12. data/docs/ContentTagsApi.md +8 -4
  13. data/docs/DistributionsContainerApi.md +6 -2
  14. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  15. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  16. data/docs/PatchedcontainerContainerRemote.md +1 -1
  17. data/docs/PulpContainerNamespacesApi.md +6 -2
  18. data/docs/RemotesContainerApi.md +6 -2
  19. data/docs/RepositoriesContainerApi.md +6 -2
  20. data/docs/RepositoriesContainerPushApi.md +6 -2
  21. data/docs/RepositoriesContainerPushVersionsApi.md +4 -2
  22. data/docs/RepositoriesContainerVersionsApi.md +4 -2
  23. data/lib/pulp_container_client/api/content_blobs_api.rb +8 -2
  24. data/lib/pulp_container_client/api/content_manifests_api.rb +10 -4
  25. data/lib/pulp_container_client/api/content_signatures_api.rb +8 -2
  26. data/lib/pulp_container_client/api/content_tags_api.rb +10 -4
  27. data/lib/pulp_container_client/api/distributions_container_api.rb +8 -2
  28. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +8 -2
  29. data/lib/pulp_container_client/api/remotes_container_api.rb +8 -2
  30. data/lib/pulp_container_client/api/repositories_container_api.rb +8 -2
  31. data/lib/pulp_container_client/api/repositories_container_push_api.rb +8 -2
  32. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +5 -2
  33. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +5 -2
  34. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  35. data/lib/pulp_container_client/models/container_container_distribution_response.rb +25 -25
  36. data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
  37. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +41 -41
  38. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  39. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  40. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  41. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
  42. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  43. data/lib/pulp_container_client/version.rb +1 -1
  44. data/spec/api/content_blobs_api_spec.rb +3 -1
  45. data/spec/api/content_manifests_api_spec.rb +4 -2
  46. data/spec/api/content_signatures_api_spec.rb +3 -1
  47. data/spec/api/content_tags_api_spec.rb +4 -2
  48. data/spec/api/distributions_container_api_spec.rb +3 -1
  49. data/spec/api/pulp_container_namespaces_api_spec.rb +3 -1
  50. data/spec/api/remotes_container_api_spec.rb +3 -1
  51. data/spec/api/repositories_container_api_spec.rb +3 -1
  52. data/spec/api/repositories_container_push_api_spec.rb +3 -1
  53. data/spec/api/repositories_container_push_versions_api_spec.rb +2 -1
  54. data/spec/api/repositories_container_versions_api_spec.rb +2 -1
  55. data/spec/models/container_container_distribution_response_spec.rb +5 -5
  56. data/spec/models/container_container_distribution_spec.rb +5 -5
  57. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  58. data/spec/models/container_container_push_repository_spec.rb +4 -4
  59. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  60. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  61. metadata +48 -48
@@ -15,24 +15,24 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
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
- attr_accessor :base_path
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
21
  # An optional content-guard. If none is specified, a default one will be used.
22
22
  attr_accessor :content_guard
23
23
 
24
24
  attr_accessor :pulp_labels
25
25
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
28
-
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
32
29
  attr_accessor :pulp_href
33
30
 
34
- # Timestamp of creation.
35
- attr_accessor :pulp_created
31
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
32
+ attr_accessor :base_path
33
+
34
+ # A unique name. Ex, `rawhide` and `stable`.
35
+ attr_accessor :name
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
- :'base_path' => :'base_path',
55
+ :'pulp_created' => :'pulp_created',
56
56
  :'content_guard' => :'content_guard',
57
57
  :'pulp_labels' => :'pulp_labels',
58
- :'name' => :'name',
59
58
  :'repository' => :'repository',
60
59
  :'pulp_href' => :'pulp_href',
61
- :'pulp_created' => :'pulp_created',
60
+ :'base_path' => :'base_path',
61
+ :'name' => :'name',
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
- :'base_path' => :'String',
73
+ :'pulp_created' => :'DateTime',
74
74
  :'content_guard' => :'String',
75
75
  :'pulp_labels' => :'Hash<String, String>',
76
- :'name' => :'String',
77
76
  :'repository' => :'String',
78
77
  :'pulp_href' => :'String',
79
- :'pulp_created' => :'DateTime',
78
+ :'base_path' => :'String',
79
+ :'name' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,8 +109,8 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'base_path')
113
- self.base_path = attributes[:'base_path']
112
+ if attributes.key?(:'pulp_created')
113
+ self.pulp_created = attributes[:'pulp_created']
114
114
  end
115
115
 
116
116
  if attributes.key?(:'content_guard')
@@ -123,10 +123,6 @@ module PulpContainerClient
123
123
  end
124
124
  end
125
125
 
126
- if attributes.key?(:'name')
127
- self.name = attributes[:'name']
128
- end
129
-
130
126
  if attributes.key?(:'repository')
131
127
  self.repository = attributes[:'repository']
132
128
  end
@@ -135,8 +131,12 @@ module PulpContainerClient
135
131
  self.pulp_href = attributes[:'pulp_href']
136
132
  end
137
133
 
138
- if attributes.key?(:'pulp_created')
139
- self.pulp_created = attributes[:'pulp_created']
134
+ if attributes.key?(:'base_path')
135
+ self.base_path = attributes[:'base_path']
136
+ end
137
+
138
+ if attributes.key?(:'name')
139
+ self.name = attributes[:'name']
140
140
  end
141
141
 
142
142
  if attributes.key?(:'repository_version')
@@ -188,13 +188,13 @@ module PulpContainerClient
188
188
  def ==(o)
189
189
  return true if self.equal?(o)
190
190
  self.class == o.class &&
191
- base_path == o.base_path &&
191
+ pulp_created == o.pulp_created &&
192
192
  content_guard == o.content_guard &&
193
193
  pulp_labels == o.pulp_labels &&
194
- name == o.name &&
195
194
  repository == o.repository &&
196
195
  pulp_href == o.pulp_href &&
197
- pulp_created == o.pulp_created &&
196
+ base_path == o.base_path &&
197
+ name == o.name &&
198
198
  repository_version == o.repository_version &&
199
199
  registry_path == o.registry_path &&
200
200
  namespace == o.namespace &&
@@ -211,7 +211,7 @@ module PulpContainerClient
211
211
  # Calculates hash code according to all attributes.
212
212
  # @return [Integer] Hash code
213
213
  def hash
214
- [base_path, content_guard, pulp_labels, name, repository, pulp_href, pulp_created, repository_version, registry_path, namespace, private, description].hash
214
+ [pulp_created, content_guard, pulp_labels, repository, pulp_href, base_path, name, repository_version, registry_path, namespace, private, description].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash
@@ -15,27 +15,27 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- attr_accessor :pulp_labels
19
-
20
- # A unique name for this repository.
21
- attr_accessor :name
22
-
23
18
  # A reference to an associated signing service.
24
19
  attr_accessor :manifest_signing_service
25
20
 
21
+ attr_accessor :pulp_labels
22
+
26
23
  # Retain X versions of the repository. Default is null which retains all versions.
27
24
  attr_accessor :retain_repo_versions
28
25
 
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
29
29
  # An optional description.
30
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
- :'pulp_labels' => :'pulp_labels',
36
- :'name' => :'name',
37
35
  :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
38
37
  :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'name' => :'name',
39
39
  :'description' => :'description'
40
40
  }
41
41
  end
@@ -43,10 +43,10 @@ module PulpContainerClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'pulp_labels' => :'Hash<String, String>',
47
- :'name' => :'String',
48
46
  :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
49
48
  :'retain_repo_versions' => :'Integer',
49
+ :'name' => :'String',
50
50
  :'description' => :'String'
51
51
  }
52
52
  end
@@ -75,24 +75,24 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
80
+ end
81
+
78
82
  if attributes.key?(:'pulp_labels')
79
83
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
84
  self.pulp_labels = value
81
85
  end
82
86
  end
83
87
 
84
- if attributes.key?(:'name')
85
- self.name = attributes[:'name']
86
- end
87
-
88
- if attributes.key?(:'manifest_signing_service')
89
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
- end
91
-
92
88
  if attributes.key?(:'retain_repo_versions')
93
89
  self.retain_repo_versions = attributes[:'retain_repo_versions']
94
90
  end
95
91
 
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
94
+ end
95
+
96
96
  if attributes.key?(:'description')
97
97
  self.description = attributes[:'description']
98
98
  end
@@ -102,6 +102,10 @@ module PulpContainerClient
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
+ end
108
+
105
109
  if @name.nil?
106
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
107
111
  end
@@ -110,10 +114,6 @@ module PulpContainerClient
110
114
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
115
  end
112
116
 
113
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
- end
116
-
117
117
  if !@description.nil? && @description.to_s.length < 1
118
118
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
119
  end
@@ -124,13 +124,23 @@ module PulpContainerClient
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
128
  return false if @name.nil?
128
129
  return false if @name.to_s.length < 1
129
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
130
130
  return false if !@description.nil? && @description.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] retain_repo_versions Value to be assigned
136
+ def retain_repo_versions=(retain_repo_versions)
137
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
138
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
139
+ end
140
+
141
+ @retain_repo_versions = retain_repo_versions
142
+ end
143
+
134
144
  # Custom attribute writer method with validation
135
145
  # @param [Object] name Value to be assigned
136
146
  def name=(name)
@@ -145,16 +155,6 @@ module PulpContainerClient
145
155
  @name = name
146
156
  end
147
157
 
148
- # Custom attribute writer method with validation
149
- # @param [Object] retain_repo_versions Value to be assigned
150
- def retain_repo_versions=(retain_repo_versions)
151
- if !retain_repo_versions.nil? && retain_repo_versions < 1
152
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
153
- end
154
-
155
- @retain_repo_versions = retain_repo_versions
156
- end
157
-
158
158
  # Custom attribute writer method with validation
159
159
  # @param [Object] description Value to be assigned
160
160
  def description=(description)
@@ -170,10 +170,10 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- pulp_labels == o.pulp_labels &&
174
- name == o.name &&
175
173
  manifest_signing_service == o.manifest_signing_service &&
174
+ pulp_labels == o.pulp_labels &&
176
175
  retain_repo_versions == o.retain_repo_versions &&
176
+ name == o.name &&
177
177
  description == o.description
178
178
  end
179
179
 
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [pulp_labels, name, manifest_signing_service, retain_repo_versions, description].hash
189
+ [manifest_signing_service, pulp_labels, retain_repo_versions, name, description].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,25 +15,25 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :pulp_labels
19
-
20
- # A unique name for this repository.
21
- attr_accessor :name
18
+ attr_accessor :latest_version_href
22
19
 
23
- attr_accessor :versions_href
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
24
22
 
25
23
  # A reference to an associated signing service.
26
24
  attr_accessor :manifest_signing_service
27
25
 
26
+ attr_accessor :pulp_labels
27
+
28
+ attr_accessor :versions_href
29
+
28
30
  # Retain X versions of the repository. Default is null which retains all versions.
29
31
  attr_accessor :retain_repo_versions
30
32
 
31
- attr_accessor :latest_version_href
32
-
33
33
  attr_accessor :pulp_href
34
34
 
35
- # Timestamp of creation.
36
- attr_accessor :pulp_created
35
+ # A unique name for this repository.
36
+ attr_accessor :name
37
37
 
38
38
  # An optional description.
39
39
  attr_accessor :description
@@ -41,14 +41,14 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'latest_version_href' => :'latest_version_href',
45
+ :'pulp_created' => :'pulp_created',
46
+ :'manifest_signing_service' => :'manifest_signing_service',
44
47
  :'pulp_labels' => :'pulp_labels',
45
- :'name' => :'name',
46
48
  :'versions_href' => :'versions_href',
47
- :'manifest_signing_service' => :'manifest_signing_service',
48
49
  :'retain_repo_versions' => :'retain_repo_versions',
49
- :'latest_version_href' => :'latest_version_href',
50
50
  :'pulp_href' => :'pulp_href',
51
- :'pulp_created' => :'pulp_created',
51
+ :'name' => :'name',
52
52
  :'description' => :'description'
53
53
  }
54
54
  end
@@ -56,14 +56,14 @@ module PulpContainerClient
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
+ :'latest_version_href' => :'String',
60
+ :'pulp_created' => :'DateTime',
61
+ :'manifest_signing_service' => :'String',
59
62
  :'pulp_labels' => :'Hash<String, String>',
60
- :'name' => :'String',
61
63
  :'versions_href' => :'String',
62
- :'manifest_signing_service' => :'String',
63
64
  :'retain_repo_versions' => :'Integer',
64
- :'latest_version_href' => :'String',
65
65
  :'pulp_href' => :'String',
66
- :'pulp_created' => :'DateTime',
66
+ :'name' => :'String',
67
67
  :'description' => :'String'
68
68
  }
69
69
  end
@@ -92,38 +92,38 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
+ if attributes.key?(:'latest_version_href')
96
+ self.latest_version_href = attributes[:'latest_version_href']
97
+ end
98
+
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
+ end
102
+
103
+ if attributes.key?(:'manifest_signing_service')
104
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
105
+ end
106
+
95
107
  if attributes.key?(:'pulp_labels')
96
108
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
97
109
  self.pulp_labels = value
98
110
  end
99
111
  end
100
112
 
101
- if attributes.key?(:'name')
102
- self.name = attributes[:'name']
103
- end
104
-
105
113
  if attributes.key?(:'versions_href')
106
114
  self.versions_href = attributes[:'versions_href']
107
115
  end
108
116
 
109
- if attributes.key?(:'manifest_signing_service')
110
- self.manifest_signing_service = attributes[:'manifest_signing_service']
111
- end
112
-
113
117
  if attributes.key?(:'retain_repo_versions')
114
118
  self.retain_repo_versions = attributes[:'retain_repo_versions']
115
119
  end
116
120
 
117
- if attributes.key?(:'latest_version_href')
118
- self.latest_version_href = attributes[:'latest_version_href']
119
- end
120
-
121
121
  if attributes.key?(:'pulp_href')
122
122
  self.pulp_href = attributes[:'pulp_href']
123
123
  end
124
124
 
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
125
+ if attributes.key?(:'name')
126
+ self.name = attributes[:'name']
127
127
  end
128
128
 
129
129
  if attributes.key?(:'description')
@@ -135,22 +135,22 @@ module PulpContainerClient
135
135
  # @return Array for valid properties with the reasons
136
136
  def list_invalid_properties
137
137
  invalid_properties = Array.new
138
- if @name.nil?
139
- invalid_properties.push('invalid value for "name", name cannot be nil.')
140
- end
141
-
142
138
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
143
139
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
144
140
  end
145
141
 
142
+ if @name.nil?
143
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
144
+ end
145
+
146
146
  invalid_properties
147
147
  end
148
148
 
149
149
  # Check to see if the all the properties in the model are valid
150
150
  # @return true if the model is valid
151
151
  def valid?
152
- return false if @name.nil?
153
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
+ return false if @name.nil?
154
154
  true
155
155
  end
156
156
 
@@ -169,14 +169,14 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
+ latest_version_href == o.latest_version_href &&
173
+ pulp_created == o.pulp_created &&
174
+ manifest_signing_service == o.manifest_signing_service &&
172
175
  pulp_labels == o.pulp_labels &&
173
- name == o.name &&
174
176
  versions_href == o.versions_href &&
175
- manifest_signing_service == o.manifest_signing_service &&
176
177
  retain_repo_versions == o.retain_repo_versions &&
177
- latest_version_href == o.latest_version_href &&
178
178
  pulp_href == o.pulp_href &&
179
- pulp_created == o.pulp_created &&
179
+ name == o.name &&
180
180
  description == o.description
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [pulp_labels, name, versions_href, manifest_signing_service, retain_repo_versions, latest_version_href, pulp_href, pulp_created, description].hash
192
+ [latest_version_href, pulp_created, manifest_signing_service, pulp_labels, versions_href, retain_repo_versions, pulp_href, name, description].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpContainerClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
59
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -49,7 +49,7 @@ module PulpContainerClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
52
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
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
- attr_accessor :base_path
20
-
21
18
  # An optional content-guard. If none is specified, a default one will be used.
22
19
  attr_accessor :content_guard
23
20
 
24
21
  attr_accessor :pulp_labels
25
22
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
28
-
29
23
  # The latest RepositoryVersion for this Repository will be served.
30
24
  attr_accessor :repository
31
25
 
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
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
- :'base_path' => :'base_path',
45
44
  :'content_guard' => :'content_guard',
46
45
  :'pulp_labels' => :'pulp_labels',
47
- :'name' => :'name',
48
46
  :'repository' => :'repository',
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
- :'base_path' => :'String',
59
58
  :'content_guard' => :'String',
60
59
  :'pulp_labels' => :'Hash<String, String>',
61
- :'name' => :'String',
62
60
  :'repository' => :'String',
61
+ :'base_path' => :'String',
62
+ :'name' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,10 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'base_path')
94
- self.base_path = attributes[:'base_path']
95
- end
96
-
97
93
  if attributes.key?(:'content_guard')
98
94
  self.content_guard = attributes[:'content_guard']
99
95
  end
@@ -104,14 +100,18 @@ module PulpContainerClient
104
100
  end
105
101
  end
106
102
 
107
- if attributes.key?(:'name')
108
- self.name = attributes[:'name']
109
- end
110
-
111
103
  if attributes.key?(:'repository')
112
104
  self.repository = attributes[:'repository']
113
105
  end
114
106
 
107
+ if attributes.key?(:'base_path')
108
+ self.base_path = attributes[:'base_path']
109
+ end
110
+
111
+ if attributes.key?(:'name')
112
+ self.name = attributes[:'name']
113
+ end
114
+
115
115
  if attributes.key?(:'repository_version')
116
116
  self.repository_version = attributes[:'repository_version']
117
117
  end
@@ -188,11 +188,11 @@ module PulpContainerClient
188
188
  def ==(o)
189
189
  return true if self.equal?(o)
190
190
  self.class == o.class &&
191
- base_path == o.base_path &&
192
191
  content_guard == o.content_guard &&
193
192
  pulp_labels == o.pulp_labels &&
194
- name == o.name &&
195
193
  repository == o.repository &&
194
+ base_path == o.base_path &&
195
+ name == o.name &&
196
196
  repository_version == o.repository_version &&
197
197
  private == o.private &&
198
198
  description == o.description
@@ -207,7 +207,7 @@ module PulpContainerClient
207
207
  # Calculates hash code according to all attributes.
208
208
  # @return [Integer] Hash code
209
209
  def hash
210
- [base_path, content_guard, pulp_labels, name, repository, repository_version, private, description].hash
210
+ [content_guard, pulp_labels, repository, base_path, name, repository_version, private, description].hash
211
211
  end
212
212
 
213
213
  # Builds the object from hash