pulp_container_client 2.19.10 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -8
  3. data/docs/ContainerBlobResponse.md +0 -2
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +8 -10
  6. data/docs/ContainerContainerNamespaceResponse.md +0 -2
  7. data/docs/ContainerContainerPullThroughDistribution.md +5 -5
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +8 -10
  9. data/docs/ContainerContainerPullThroughRemote.md +1 -1
  10. data/docs/ContainerContainerPullThroughRemoteResponse.md +3 -3
  11. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  12. data/docs/ContainerContainerPushRepository.md +4 -4
  13. data/docs/ContainerContainerPushRepositoryResponse.md +10 -12
  14. data/docs/ContainerContainerRemote.md +1 -1
  15. data/docs/ContainerContainerRemoteResponse.md +3 -3
  16. data/docs/ContainerContainerRepositoryResponse.md +0 -2
  17. data/docs/ContainerManifestResponse.md +2 -6
  18. data/docs/ContainerManifestSignatureResponse.md +0 -2
  19. data/docs/ContainerTagResponse.md +0 -2
  20. data/docs/ContentBlobsApi.md +1 -5
  21. data/docs/ContentManifestsApi.md +3 -7
  22. data/docs/ContentSignaturesApi.md +1 -5
  23. data/docs/ContentTagsApi.md +1 -5
  24. data/docs/DistributionsContainerApi.md +17 -57
  25. data/docs/DistributionsPullThroughApi.md +17 -57
  26. data/docs/IndexDynamicApi.md +50 -0
  27. data/docs/IndexStaticApi.md +50 -0
  28. data/docs/OCIBuildImage.md +1 -1
  29. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  30. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  33. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  34. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  35. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  36. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  37. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  38. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  39. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  40. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  41. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  42. data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
  43. data/docs/PatchedcontainerContainerPullThroughRemote.md +1 -1
  44. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  45. data/docs/PatchedcontainerContainerRemote.md +1 -1
  46. data/docs/{Policy692Enum.md → Policy762Enum.md} +2 -2
  47. data/docs/{Policy7e0Enum.md → Policy8e2Enum.md} +2 -2
  48. data/docs/PulpContainerNamespacesApi.md +9 -33
  49. data/docs/RemotesContainerApi.md +17 -57
  50. data/docs/RemotesPullThroughApi.md +17 -57
  51. data/docs/RepositoriesContainerApi.md +35 -109
  52. data/docs/RepositoriesContainerPushApi.md +19 -63
  53. data/docs/RepositoriesContainerPushVersionsApi.md +5 -17
  54. data/docs/RepositoriesContainerVersionsApi.md +5 -17
  55. data/docs/RepositoryVersionResponse.md +0 -2
  56. data/docs/TokenApi.md +4 -14
  57. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -6
  58. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -9
  59. data/lib/pulp_container_client/api/content_signatures_api.rb +0 -6
  60. data/lib/pulp_container_client/api/content_tags_api.rb +0 -6
  61. data/lib/pulp_container_client/api/distributions_container_api.rb +0 -36
  62. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +0 -36
  63. data/lib/pulp_container_client/api/index_dynamic_api.rb +74 -0
  64. data/lib/pulp_container_client/api/index_static_api.rb +74 -0
  65. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +0 -24
  66. data/lib/pulp_container_client/api/remotes_container_api.rb +0 -36
  67. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +0 -36
  68. data/lib/pulp_container_client/api/repositories_container_api.rb +2 -65
  69. data/lib/pulp_container_client/api/repositories_container_push_api.rb +0 -39
  70. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +0 -12
  71. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +0 -12
  72. data/lib/pulp_container_client/api/token_api.rb +0 -9
  73. data/lib/pulp_container_client/configuration.rb +2 -2
  74. data/lib/pulp_container_client/models/container_blob_response.rb +1 -11
  75. data/lib/pulp_container_client/models/container_container_distribution.rb +46 -46
  76. data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -53
  77. data/lib/pulp_container_client/models/container_container_namespace_response.rb +1 -11
  78. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +46 -46
  79. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -53
  80. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +1 -1
  81. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +12 -12
  82. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +0 -10
  83. data/lib/pulp_container_client/models/container_container_push_repository.rb +34 -34
  84. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +44 -54
  85. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  86. data/lib/pulp_container_client/models/container_container_remote_response.rb +12 -12
  87. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -11
  88. data/lib/pulp_container_client/models/container_manifest_response.rb +3 -28
  89. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +1 -11
  90. data/lib/pulp_container_client/models/container_tag_response.rb +1 -11
  91. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  92. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +0 -10
  93. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +0 -10
  94. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +0 -10
  95. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +0 -10
  96. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +0 -10
  97. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +0 -10
  98. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +0 -10
  99. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +0 -10
  100. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +0 -10
  101. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +0 -10
  102. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +0 -10
  103. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +0 -10
  104. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +37 -37
  105. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +37 -37
  106. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +1 -1
  107. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
  108. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  109. data/lib/pulp_container_client/models/{policy692_enum.rb → policy762_enum.rb} +3 -3
  110. data/lib/pulp_container_client/models/{policy7e0_enum.rb → policy8e2_enum.rb} +3 -3
  111. data/lib/pulp_container_client/models/repository_version_response.rb +1 -11
  112. data/lib/pulp_container_client/version.rb +1 -1
  113. data/lib/pulp_container_client.rb +4 -2
  114. data/spec/api/content_blobs_api_spec.rb +0 -2
  115. data/spec/api/content_manifests_api_spec.rb +1 -3
  116. data/spec/api/content_signatures_api_spec.rb +0 -2
  117. data/spec/api/content_tags_api_spec.rb +0 -2
  118. data/spec/api/distributions_container_api_spec.rb +0 -12
  119. data/spec/api/distributions_pull_through_api_spec.rb +0 -12
  120. data/spec/api/index_dynamic_api_spec.rb +45 -0
  121. data/spec/api/index_static_api_spec.rb +45 -0
  122. data/spec/api/pulp_container_namespaces_api_spec.rb +0 -8
  123. data/spec/api/remotes_container_api_spec.rb +0 -12
  124. data/spec/api/remotes_pull_through_api_spec.rb +0 -12
  125. data/spec/api/repositories_container_api_spec.rb +1 -22
  126. data/spec/api/repositories_container_push_api_spec.rb +0 -13
  127. data/spec/api/repositories_container_push_versions_api_spec.rb +0 -4
  128. data/spec/api/repositories_container_versions_api_spec.rb +0 -4
  129. data/spec/api/token_api_spec.rb +0 -3
  130. data/spec/configuration_spec.rb +3 -3
  131. data/spec/models/container_blob_response_spec.rb +0 -6
  132. data/spec/models/container_container_distribution_response_spec.rb +7 -13
  133. data/spec/models/container_container_distribution_spec.rb +5 -5
  134. data/spec/models/container_container_namespace_response_spec.rb +0 -6
  135. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -13
  136. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  137. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  138. data/spec/models/container_container_push_repository_response_spec.rb +8 -14
  139. data/spec/models/container_container_push_repository_spec.rb +3 -3
  140. data/spec/models/container_container_remote_response_spec.rb +6 -6
  141. data/spec/models/container_container_repository_response_spec.rb +0 -6
  142. data/spec/models/container_manifest_response_spec.rb +0 -12
  143. data/spec/models/container_manifest_signature_response_spec.rb +0 -6
  144. data/spec/models/container_tag_response_spec.rb +0 -6
  145. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  146. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  147. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  148. data/spec/models/{policy692_enum_spec.rb → policy762_enum_spec.rb} +6 -6
  149. data/spec/models/{policy7e0_enum_spec.rb → policy8e2_enum_spec.rb} +6 -6
  150. data/spec/models/repository_version_response_spec.rb +0 -6
  151. metadata +90 -82
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -88,22 +88,12 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99
 
@@ -15,23 +15,23 @@ 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
18
  # An optional content-guard. If none is specified, a default one will be used.
22
19
  attr_accessor :content_guard
23
20
 
24
- attr_accessor :pulp_labels
25
-
26
21
  # Whether this distribution should be shown in the content app.
27
22
  attr_accessor :hidden
28
23
 
24
+ attr_accessor :pulp_labels
25
+
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
32
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\")
33
30
  attr_accessor :base_path
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'name' => :'name',
48
47
  :'content_guard' => :'content_guard',
49
- :'pulp_labels' => :'pulp_labels',
50
48
  :'hidden' => :'hidden',
49
+ :'pulp_labels' => :'pulp_labels',
51
50
  :'repository' => :'repository',
52
51
  :'base_path' => :'base_path',
52
+ :'name' => :'name',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'name' => :'String',
63
62
  :'content_guard' => :'String',
64
- :'pulp_labels' => :'Hash<String, String>',
65
63
  :'hidden' => :'Boolean',
64
+ :'pulp_labels' => :'Hash<String, String>',
66
65
  :'repository' => :'String',
67
66
  :'base_path' => :'String',
67
+ :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,26 +95,22 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'name')
99
- self.name = attributes[:'name']
100
- end
101
-
102
98
  if attributes.key?(:'content_guard')
103
99
  self.content_guard = attributes[:'content_guard']
104
100
  end
105
101
 
106
- if attributes.key?(:'pulp_labels')
107
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
- self.pulp_labels = value
109
- end
110
- end
111
-
112
102
  if attributes.key?(:'hidden')
113
103
  self.hidden = attributes[:'hidden']
114
104
  else
115
105
  self.hidden = false
116
106
  end
117
107
 
108
+ if attributes.key?(:'pulp_labels')
109
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
+ self.pulp_labels = value
111
+ end
112
+ end
113
+
118
114
  if attributes.key?(:'repository')
119
115
  self.repository = attributes[:'repository']
120
116
  end
@@ -123,6 +119,10 @@ module PulpContainerClient
123
119
  self.base_path = attributes[:'base_path']
124
120
  end
125
121
 
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
+ end
125
+
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -140,14 +140,14 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if !@name.nil? && @name.to_s.length < 1
144
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@base_path.nil? && @base_path.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@name.nil? && @name.to_s.length < 1
148
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
+ end
150
+
151
151
  if !@description.nil? && @description.to_s.length < 1
152
152
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
153
153
  end
@@ -158,22 +158,12 @@ module PulpContainerClient
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if !@name.nil? && @name.to_s.length < 1
162
161
  return false if !@base_path.nil? && @base_path.to_s.length < 1
162
+ return false if !@name.nil? && @name.to_s.length < 1
163
163
  return false if !@description.nil? && @description.to_s.length < 1
164
164
  true
165
165
  end
166
166
 
167
- # Custom attribute writer method with validation
168
- # @param [Object] name Value to be assigned
169
- def name=(name)
170
- if !name.nil? && name.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @name = name
175
- end
176
-
177
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] base_path Value to be assigned
179
169
  def base_path=(base_path)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @base_path = base_path
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if !name.nil? && name.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @name = name
185
+ end
186
+
187
187
  # Custom attribute writer method with validation
188
188
  # @param [Object] description Value to be assigned
189
189
  def description=(description)
@@ -199,12 +199,12 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- name == o.name &&
203
202
  content_guard == o.content_guard &&
204
- pulp_labels == o.pulp_labels &&
205
203
  hidden == o.hidden &&
204
+ pulp_labels == o.pulp_labels &&
206
205
  repository == o.repository &&
207
206
  base_path == o.base_path &&
207
+ name == o.name &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [name, content_guard, pulp_labels, hidden, repository, base_path, repository_version, private, description].hash
222
+ [content_guard, hidden, pulp_labels, repository, base_path, name, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
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
- attr_accessor :pulp_labels
25
-
26
21
  # Whether this distribution should be shown in the content app.
27
22
  attr_accessor :hidden
28
23
 
24
+ attr_accessor :pulp_labels
25
+
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
32
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\")
33
30
  attr_accessor :base_path
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'name' => :'name',
51
50
  :'content_guard' => :'content_guard',
52
- :'pulp_labels' => :'pulp_labels',
53
51
  :'hidden' => :'hidden',
52
+ :'pulp_labels' => :'pulp_labels',
54
53
  :'repository' => :'repository',
55
54
  :'base_path' => :'base_path',
55
+ :'name' => :'name',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'name' => :'String',
67
66
  :'content_guard' => :'String',
68
- :'pulp_labels' => :'Hash<String, String>',
69
67
  :'hidden' => :'Boolean',
68
+ :'pulp_labels' => :'Hash<String, String>',
70
69
  :'repository' => :'String',
71
70
  :'base_path' => :'String',
71
+ :'name' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,26 +99,22 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
104
- end
105
-
106
102
  if attributes.key?(:'content_guard')
107
103
  self.content_guard = attributes[:'content_guard']
108
104
  end
109
105
 
110
- if attributes.key?(:'pulp_labels')
111
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
- self.pulp_labels = value
113
- end
114
- end
115
-
116
106
  if attributes.key?(:'hidden')
117
107
  self.hidden = attributes[:'hidden']
118
108
  else
119
109
  self.hidden = false
120
110
  end
121
111
 
112
+ if attributes.key?(:'pulp_labels')
113
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
+ self.pulp_labels = value
115
+ end
116
+ end
117
+
122
118
  if attributes.key?(:'repository')
123
119
  self.repository = attributes[:'repository']
124
120
  end
@@ -127,6 +123,10 @@ module PulpContainerClient
127
123
  self.base_path = attributes[:'base_path']
128
124
  end
129
125
 
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -150,14 +150,14 @@ module PulpContainerClient
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
152
  invalid_properties = Array.new
153
- if !@name.nil? && @name.to_s.length < 1
154
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
155
- end
156
-
157
153
  if !@base_path.nil? && @base_path.to_s.length < 1
158
154
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
155
  end
160
156
 
157
+ if !@name.nil? && @name.to_s.length < 1
158
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
159
+ end
160
+
161
161
  if !@description.nil? && @description.to_s.length < 1
162
162
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
163
  end
@@ -168,22 +168,12 @@ module PulpContainerClient
168
168
  # Check to see if the all the properties in the model are valid
169
169
  # @return true if the model is valid
170
170
  def valid?
171
- return false if !@name.nil? && @name.to_s.length < 1
172
171
  return false if !@base_path.nil? && @base_path.to_s.length < 1
172
+ return false if !@name.nil? && @name.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] name Value to be assigned
179
- def name=(name)
180
- if !name.nil? && name.to_s.length < 1
181
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
- end
183
-
184
- @name = name
185
- end
186
-
187
177
  # Custom attribute writer method with validation
188
178
  # @param [Object] base_path Value to be assigned
189
179
  def base_path=(base_path)
@@ -194,6 +184,16 @@ module PulpContainerClient
194
184
  @base_path = base_path
195
185
  end
196
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] name Value to be assigned
189
+ def name=(name)
190
+ if !name.nil? && name.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @name = name
195
+ end
196
+
197
197
  # Custom attribute writer method with validation
198
198
  # @param [Object] description Value to be assigned
199
199
  def description=(description)
@@ -209,12 +209,12 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- name == o.name &&
213
212
  content_guard == o.content_guard &&
214
- pulp_labels == o.pulp_labels &&
215
213
  hidden == o.hidden &&
214
+ pulp_labels == o.pulp_labels &&
216
215
  repository == o.repository &&
217
216
  base_path == o.base_path &&
217
+ name == o.name &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [name, content_guard, pulp_labels, hidden, repository, base_path, remote, distributions, private, description].hash
233
+ [content_guard, hidden, pulp_labels, repository, base_path, name, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -120,7 +120,7 @@ module PulpContainerClient
120
120
  :'pulp_labels' => :'Hash<String, String>',
121
121
  :'download_concurrency' => :'Integer',
122
122
  :'max_retries' => :'Integer',
123
- :'policy' => :'Policy7e0Enum',
123
+ :'policy' => :'Policy8e2Enum',
124
124
  :'total_timeout' => :'Float',
125
125
  :'connect_timeout' => :'Float',
126
126
  :'sock_connect_timeout' => :'Float',