pulp_container_client 2.14.14 → 2.14.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +222 -246
  3. data/docs/AccessPoliciesApi.md +28 -32
  4. data/docs/ArtifactDistributionResponse.md +7 -7
  5. data/docs/ArtifactsApi.md +23 -27
  6. data/docs/ContainerContainerDistribution.md +5 -5
  7. data/docs/ContainerContainerDistributionResponse.md +8 -8
  8. data/docs/ContainerContainerPushRepository.md +5 -5
  9. data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
  10. data/docs/ContainerContainerRemote.md +1 -1
  11. data/docs/ContainerContainerRemoteResponse.md +1 -1
  12. data/docs/ContainerContainerRepository.md +1 -1
  13. data/docs/ContainerContainerRepositoryResponse.md +1 -1
  14. data/docs/ContentApi.md +8 -14
  15. data/docs/ContentBlobsApi.md +13 -17
  16. data/docs/ContentManifestsApi.md +15 -19
  17. data/docs/ContentSignaturesApi.md +13 -17
  18. data/docs/ContentTagsApi.md +15 -19
  19. data/docs/ContentguardsApi.md +8 -14
  20. data/docs/ContentguardsContentRedirectApi.md +53 -57
  21. data/docs/ContentguardsRbacApi.md +53 -57
  22. data/docs/DistributionsApi.md +8 -18
  23. data/docs/DistributionsArtifactsApi.md +13 -21
  24. data/docs/DistributionsContainerApi.md +53 -61
  25. data/docs/DocsApiJsonApi.md +6 -6
  26. data/docs/DocsApiYamlApi.md +6 -6
  27. data/docs/ExportersFilesystemApi.md +36 -40
  28. data/docs/ExportersFilesystemExportsApi.md +24 -24
  29. data/docs/ExportersPulpApi.md +33 -37
  30. data/docs/ExportersPulpExportsApi.md +21 -21
  31. data/docs/FilesystemExporter.md +1 -1
  32. data/docs/FilesystemExporterResponse.md +1 -1
  33. data/docs/GroupRole.md +1 -3
  34. data/docs/GroupRoleResponse.md +1 -3
  35. data/docs/GroupsApi.md +59 -63
  36. data/docs/GroupsRolesApi.md +27 -33
  37. data/docs/GroupsUsersApi.md +16 -16
  38. data/docs/ImportersPulpApi.md +33 -37
  39. data/docs/ImportersPulpImportCheckApi.md +1 -1
  40. data/docs/ImportersPulpImportsApi.md +21 -21
  41. data/docs/OrphansApi.md +6 -6
  42. data/docs/OrphansCleanupApi.md +6 -6
  43. data/docs/PatchedFilesystemExporter.md +1 -1
  44. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  45. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  46. data/docs/PatchedcontainerContainerRemote.md +1 -1
  47. data/docs/PatchedcontainerContainerRepository.md +1 -1
  48. data/docs/PublicationsApi.md +9 -15
  49. data/docs/PulpContainerNamespacesApi.md +43 -47
  50. data/docs/RemoteResponse.md +1 -1
  51. data/docs/RemoteResponseHiddenFields.md +2 -2
  52. data/docs/RemotesApi.md +8 -14
  53. data/docs/RemotesContainerApi.md +53 -57
  54. data/docs/RepairApi.md +6 -6
  55. data/docs/RepositoriesApi.md +8 -30
  56. data/docs/RepositoriesContainerApi.md +102 -122
  57. data/docs/RepositoriesContainerPushApi.md +68 -88
  58. data/docs/RepositoriesContainerPushVersionsApi.md +23 -25
  59. data/docs/RepositoriesContainerVersionsApi.md +23 -25
  60. data/docs/RepositoriesReclaimSpaceApi.md +6 -6
  61. data/docs/RepositoryResponse.md +1 -1
  62. data/docs/RepositoryVersionsApi.md +8 -12
  63. data/docs/RolesApi.md +39 -43
  64. data/docs/SigningServicesApi.md +13 -17
  65. data/docs/StatusApi.md +1 -1
  66. data/docs/StatusResponse.md +1 -3
  67. data/docs/TaskGroupsApi.md +11 -11
  68. data/docs/TaskSchedulesApi.md +35 -39
  69. data/docs/TasksApi.md +101 -105
  70. data/docs/TokenApi.md +6 -6
  71. data/docs/UploadsApi.md +53 -57
  72. data/docs/UserRole.md +2 -4
  73. data/docs/UserRoleResponse.md +2 -4
  74. data/docs/UsersApi.md +39 -43
  75. data/docs/UsersRolesApi.md +27 -33
  76. data/docs/VersionResponse.md +1 -3
  77. data/docs/WorkersApi.md +13 -17
  78. data/lib/pulp_container_client/api/access_policies_api.rb +33 -39
  79. data/lib/pulp_container_client/api/artifacts_api.rb +31 -37
  80. data/lib/pulp_container_client/api/content_api.rb +7 -20
  81. data/lib/pulp_container_client/api/content_blobs_api.rb +13 -19
  82. data/lib/pulp_container_client/api/content_manifests_api.rb +15 -21
  83. data/lib/pulp_container_client/api/content_signatures_api.rb +13 -19
  84. data/lib/pulp_container_client/api/content_tags_api.rb +15 -21
  85. data/lib/pulp_container_client/api/contentguards_api.rb +7 -20
  86. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +65 -71
  87. data/lib/pulp_container_client/api/contentguards_rbac_api.rb +65 -71
  88. data/lib/pulp_container_client/api/distributions_api.rb +7 -26
  89. data/lib/pulp_container_client/api/distributions_artifacts_api.rb +13 -25
  90. data/lib/pulp_container_client/api/distributions_container_api.rb +65 -77
  91. data/lib/pulp_container_client/api/docs_api_json_api.rb +5 -5
  92. data/lib/pulp_container_client/api/docs_api_yaml_api.rb +5 -5
  93. data/lib/pulp_container_client/api/exporters_filesystem_api.rb +45 -51
  94. data/lib/pulp_container_client/api/exporters_filesystem_exports_api.rb +31 -31
  95. data/lib/pulp_container_client/api/exporters_pulp_api.rb +39 -45
  96. data/lib/pulp_container_client/api/exporters_pulp_exports_api.rb +25 -25
  97. data/lib/pulp_container_client/api/groups_api.rb +77 -83
  98. data/lib/pulp_container_client/api/groups_roles_api.rb +35 -44
  99. data/lib/pulp_container_client/api/groups_users_api.rb +19 -19
  100. data/lib/pulp_container_client/api/importers_pulp_api.rb +39 -45
  101. data/lib/pulp_container_client/api/importers_pulp_imports_api.rb +25 -25
  102. data/lib/pulp_container_client/api/orphans_api.rb +5 -5
  103. data/lib/pulp_container_client/api/orphans_cleanup_api.rb +6 -6
  104. data/lib/pulp_container_client/api/publications_api.rb +9 -18
  105. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +51 -57
  106. data/lib/pulp_container_client/api/remotes_api.rb +7 -20
  107. data/lib/pulp_container_client/api/remotes_container_api.rb +65 -71
  108. data/lib/pulp_container_client/api/repair_api.rb +6 -6
  109. data/lib/pulp_container_client/api/repositories_api.rb +7 -44
  110. data/lib/pulp_container_client/api/repositories_container_api.rb +128 -158
  111. data/lib/pulp_container_client/api/repositories_container_push_api.rb +88 -118
  112. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +27 -30
  113. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +27 -30
  114. data/lib/pulp_container_client/api/repositories_reclaim_space_api.rb +6 -6
  115. data/lib/pulp_container_client/api/repository_versions_api.rb +7 -12
  116. data/lib/pulp_container_client/api/roles_api.rb +51 -57
  117. data/lib/pulp_container_client/api/signing_services_api.rb +13 -19
  118. data/lib/pulp_container_client/api/task_groups_api.rb +11 -11
  119. data/lib/pulp_container_client/api/task_schedules_api.rb +43 -49
  120. data/lib/pulp_container_client/api/tasks_api.rb +125 -131
  121. data/lib/pulp_container_client/api/token_api.rb +5 -5
  122. data/lib/pulp_container_client/api/uploads_api.rb +67 -73
  123. data/lib/pulp_container_client/api/users_api.rb +51 -57
  124. data/lib/pulp_container_client/api/users_roles_api.rb +35 -44
  125. data/lib/pulp_container_client/api/workers_api.rb +14 -20
  126. data/lib/pulp_container_client/configuration.rb +3 -3
  127. data/lib/pulp_container_client/models/artifact_distribution_response.rb +35 -35
  128. data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
  129. data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
  130. data/lib/pulp_container_client/models/container_container_push_repository.rb +37 -37
  131. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +33 -33
  132. data/lib/pulp_container_client/models/container_container_remote.rb +21 -21
  133. data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -21
  134. data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
  135. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
  136. data/lib/pulp_container_client/models/filesystem_exporter.rb +1 -1
  137. data/lib/pulp_container_client/models/filesystem_exporter_response.rb +1 -1
  138. data/lib/pulp_container_client/models/group_role.rb +5 -16
  139. data/lib/pulp_container_client/models/group_role_response.rb +4 -15
  140. data/lib/pulp_container_client/models/nested_role.rb +0 -19
  141. data/lib/pulp_container_client/models/patched_filesystem_exporter.rb +1 -1
  142. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
  143. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +37 -37
  144. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -21
  145. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
  146. data/lib/pulp_container_client/models/remote_response.rb +21 -21
  147. data/lib/pulp_container_client/models/remote_response_hidden_fields.rb +10 -0
  148. data/lib/pulp_container_client/models/repository_response.rb +1 -1
  149. data/lib/pulp_container_client/models/status_response.rb +4 -19
  150. data/lib/pulp_container_client/models/user_role.rb +6 -17
  151. data/lib/pulp_container_client/models/user_role_response.rb +5 -16
  152. data/lib/pulp_container_client/models/version_response.rb +4 -19
  153. data/lib/pulp_container_client/version.rb +1 -1
  154. data/lib/pulp_container_client.rb +0 -11
  155. data/spec/api/access_policies_api_spec.rb +11 -13
  156. data/spec/api/artifacts_api_spec.rb +9 -11
  157. data/spec/api/content_api_spec.rb +3 -6
  158. data/spec/api/content_blobs_api_spec.rb +5 -7
  159. data/spec/api/content_manifests_api_spec.rb +6 -8
  160. data/spec/api/content_signatures_api_spec.rb +5 -7
  161. data/spec/api/content_tags_api_spec.rb +6 -8
  162. data/spec/api/contentguards_api_spec.rb +3 -6
  163. data/spec/api/contentguards_content_redirect_api_spec.rb +21 -23
  164. data/spec/api/contentguards_rbac_api_spec.rb +21 -23
  165. data/spec/api/distributions_api_spec.rb +3 -8
  166. data/spec/api/distributions_artifacts_api_spec.rb +5 -9
  167. data/spec/api/distributions_container_api_spec.rb +21 -25
  168. data/spec/api/docs_api_json_api_spec.rb +2 -2
  169. data/spec/api/docs_api_yaml_api_spec.rb +2 -2
  170. data/spec/api/exporters_filesystem_api_spec.rb +16 -18
  171. data/spec/api/exporters_filesystem_exports_api_spec.rb +11 -11
  172. data/spec/api/exporters_pulp_api_spec.rb +13 -15
  173. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  174. data/spec/api/groups_api_spec.rb +27 -29
  175. data/spec/api/groups_roles_api_spec.rb +13 -16
  176. data/spec/api/groups_users_api_spec.rb +6 -6
  177. data/spec/api/importers_pulp_api_spec.rb +13 -15
  178. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  179. data/spec/api/orphans_api_spec.rb +2 -2
  180. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  181. data/spec/api/publications_api_spec.rb +4 -7
  182. data/spec/api/pulp_container_namespaces_api_spec.rb +17 -19
  183. data/spec/api/remotes_api_spec.rb +3 -6
  184. data/spec/api/remotes_container_api_spec.rb +21 -23
  185. data/spec/api/repair_api_spec.rb +2 -2
  186. data/spec/api/repositories_api_spec.rb +3 -14
  187. data/spec/api/repositories_container_api_spec.rb +39 -49
  188. data/spec/api/repositories_container_push_api_spec.rb +27 -37
  189. data/spec/api/repositories_container_push_versions_api_spec.rb +9 -10
  190. data/spec/api/repositories_container_versions_api_spec.rb +9 -10
  191. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  192. data/spec/api/repository_versions_api_spec.rb +3 -5
  193. data/spec/api/roles_api_spec.rb +19 -21
  194. data/spec/api/signing_services_api_spec.rb +5 -7
  195. data/spec/api/task_groups_api_spec.rb +4 -4
  196. data/spec/api/task_schedules_api_spec.rb +15 -17
  197. data/spec/api/tasks_api_spec.rb +32 -34
  198. data/spec/api/token_api_spec.rb +2 -2
  199. data/spec/api/uploads_api_spec.rb +21 -23
  200. data/spec/api/users_api_spec.rb +19 -21
  201. data/spec/api/users_roles_api_spec.rb +13 -16
  202. data/spec/api/workers_api_spec.rb +5 -7
  203. data/spec/configuration_spec.rb +3 -3
  204. data/spec/models/artifact_distribution_response_spec.rb +7 -7
  205. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  206. data/spec/models/container_container_distribution_spec.rb +4 -4
  207. data/spec/models/container_container_push_repository_response_spec.rb +6 -6
  208. data/spec/models/container_container_push_repository_spec.rb +4 -4
  209. data/spec/models/group_role_response_spec.rb +0 -6
  210. data/spec/models/group_role_spec.rb +0 -6
  211. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  212. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  213. data/spec/models/status_response_spec.rb +0 -6
  214. data/spec/models/user_role_response_spec.rb +0 -6
  215. data/spec/models/user_role_spec.rb +0 -6
  216. data/spec/models/version_response_spec.rb +0 -6
  217. metadata +196 -240
  218. data/docs/Domain.md +0 -27
  219. data/docs/DomainResponse.md +0 -31
  220. data/docs/DomainsApi.md +0 -366
  221. data/docs/PaginatedDomainResponseList.md +0 -23
  222. data/docs/PaginatedUpstreamPulpResponseList.md +0 -23
  223. data/docs/PatchedDomain.md +0 -27
  224. data/docs/PatchedUpstreamPulp.md +0 -37
  225. data/docs/StorageClassEnum.md +0 -16
  226. data/docs/UpstreamPulp.md +0 -37
  227. data/docs/UpstreamPulpResponse.md +0 -39
  228. data/docs/UpstreamPulpsApi.md +0 -405
  229. data/lib/pulp_container_client/api/domains_api.rb +0 -452
  230. data/lib/pulp_container_client/api/upstream_pulps_api.rb +0 -492
  231. data/lib/pulp_container_client/models/domain.rb +0 -323
  232. data/lib/pulp_container_client/models/domain_response.rb +0 -318
  233. data/lib/pulp_container_client/models/paginated_domain_response_list.rb +0 -237
  234. data/lib/pulp_container_client/models/paginated_upstream_pulp_response_list.rb +0 -237
  235. data/lib/pulp_container_client/models/patched_domain.rb +0 -304
  236. data/lib/pulp_container_client/models/patched_upstream_pulp.rb +0 -450
  237. data/lib/pulp_container_client/models/storage_class_enum.rb +0 -37
  238. data/lib/pulp_container_client/models/upstream_pulp.rb +0 -477
  239. data/lib/pulp_container_client/models/upstream_pulp_response.rb +0 -338
  240. data/spec/api/domains_api_spec.rb +0 -122
  241. data/spec/api/upstream_pulps_api_spec.rb +0 -127
  242. data/spec/models/domain_response_spec.rb +0 -83
  243. data/spec/models/domain_spec.rb +0 -71
  244. data/spec/models/paginated_domain_response_list_spec.rb +0 -59
  245. data/spec/models/paginated_upstream_pulp_response_list_spec.rb +0 -59
  246. data/spec/models/patched_domain_spec.rb +0 -71
  247. data/spec/models/patched_upstream_pulp_spec.rb +0 -101
  248. data/spec/models/storage_class_enum_spec.rb +0 -35
  249. data/spec/models/upstream_pulp_response_spec.rb +0 -107
  250. data/spec/models/upstream_pulp_spec.rb +0 -101
@@ -15,27 +15,27 @@ 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 :retain_repo_versions
20
+
21
+ # A unique name for this repository.
22
+ attr_accessor :name
23
+
18
24
  # An optional description.
19
25
  attr_accessor :description
20
26
 
21
- # Retain X versions of the repository. Default is null which retains all versions.
22
- attr_accessor :retain_repo_versions
23
-
24
27
  # A reference to an associated signing service.
25
28
  attr_accessor :manifest_signing_service
26
29
 
27
- # A unique name for this repository.
28
- attr_accessor :name
29
-
30
30
  attr_accessor :pulp_labels
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'description' => :'description',
36
35
  :'retain_repo_versions' => :'retain_repo_versions',
37
- :'manifest_signing_service' => :'manifest_signing_service',
38
36
  :'name' => :'name',
37
+ :'description' => :'description',
38
+ :'manifest_signing_service' => :'manifest_signing_service',
39
39
  :'pulp_labels' => :'pulp_labels'
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
- :'description' => :'String',
47
46
  :'retain_repo_versions' => :'Integer',
48
- :'manifest_signing_service' => :'String',
49
47
  :'name' => :'String',
48
+ :'description' => :'String',
49
+ :'manifest_signing_service' => :'String',
50
50
  :'pulp_labels' => :'Hash<String, String>'
51
51
  }
52
52
  end
@@ -54,8 +54,8 @@ module PulpContainerClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'description',
58
57
  :'retain_repo_versions',
58
+ :'description',
59
59
  :'manifest_signing_service',
60
60
  ])
61
61
  end
@@ -75,22 +75,22 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
80
- end
81
-
82
78
  if attributes.key?(:'retain_repo_versions')
83
79
  self.retain_repo_versions = attributes[:'retain_repo_versions']
84
80
  end
85
81
 
86
- if attributes.key?(:'manifest_signing_service')
87
- self.manifest_signing_service = attributes[:'manifest_signing_service']
88
- end
89
-
90
82
  if attributes.key?(:'name')
91
83
  self.name = attributes[:'name']
92
84
  end
93
85
 
86
+ if attributes.key?(:'description')
87
+ self.description = attributes[:'description']
88
+ end
89
+
90
+ if attributes.key?(:'manifest_signing_service')
91
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
92
+ end
93
+
94
94
  if attributes.key?(:'pulp_labels')
95
95
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
96
  self.pulp_labels = value
@@ -102,10 +102,6 @@ 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 !@description.nil? && @description.to_s.length < 1
106
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
- end
108
-
109
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
@@ -118,29 +114,23 @@ module PulpContainerClient
118
114
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
119
115
  end
120
116
 
117
+ if !@description.nil? && @description.to_s.length < 1
118
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
+ end
120
+
121
121
  invalid_properties
122
122
  end
123
123
 
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 !@description.nil? && @description.to_s.length < 1
128
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
128
  return false if @name.nil?
130
129
  return false if @name.to_s.length < 1
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] description Value to be assigned
136
- def description=(description)
137
- if !description.nil? && description.to_s.length < 1
138
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
139
- end
140
-
141
- @description = description
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] retain_repo_versions Value to be assigned
146
136
  def retain_repo_versions=(retain_repo_versions)
@@ -165,15 +155,25 @@ module PulpContainerClient
165
155
  @name = name
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] description Value to be assigned
160
+ def description=(description)
161
+ if !description.nil? && description.to_s.length < 1
162
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
163
+ end
164
+
165
+ @description = description
166
+ end
167
+
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- description == o.description &&
174
173
  retain_repo_versions == o.retain_repo_versions &&
175
- manifest_signing_service == o.manifest_signing_service &&
176
174
  name == o.name &&
175
+ description == o.description &&
176
+ manifest_signing_service == o.manifest_signing_service &&
177
177
  pulp_labels == o.pulp_labels
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
- [description, retain_repo_versions, manifest_signing_service, name, pulp_labels].hash
189
+ [retain_repo_versions, name, description, manifest_signing_service, pulp_labels].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -17,38 +17,38 @@ module PulpContainerClient
17
17
  class ContainerContainerPushRepositoryResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
- # An optional description.
21
- attr_accessor :description
20
+ attr_accessor :latest_version_href
22
21
 
23
- # Retain X versions of the repository. Default is null which retains all versions.
22
+ # 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
23
  attr_accessor :retain_repo_versions
25
24
 
26
- # A reference to an associated signing service.
27
- attr_accessor :manifest_signing_service
25
+ # A unique name for this repository.
26
+ attr_accessor :name
27
+
28
+ # An optional description.
29
+ attr_accessor :description
28
30
 
29
31
  # Timestamp of creation.
30
32
  attr_accessor :pulp_created
31
33
 
32
- # A unique name for this repository.
33
- attr_accessor :name
34
+ # A reference to an associated signing service.
35
+ attr_accessor :manifest_signing_service
34
36
 
35
37
  attr_accessor :versions_href
36
38
 
37
- attr_accessor :latest_version_href
38
-
39
39
  attr_accessor :pulp_labels
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
44
  :'pulp_href' => :'pulp_href',
45
- :'description' => :'description',
45
+ :'latest_version_href' => :'latest_version_href',
46
46
  :'retain_repo_versions' => :'retain_repo_versions',
47
- :'manifest_signing_service' => :'manifest_signing_service',
48
- :'pulp_created' => :'pulp_created',
49
47
  :'name' => :'name',
48
+ :'description' => :'description',
49
+ :'pulp_created' => :'pulp_created',
50
+ :'manifest_signing_service' => :'manifest_signing_service',
50
51
  :'versions_href' => :'versions_href',
51
- :'latest_version_href' => :'latest_version_href',
52
52
  :'pulp_labels' => :'pulp_labels'
53
53
  }
54
54
  end
@@ -57,13 +57,13 @@ module PulpContainerClient
57
57
  def self.openapi_types
58
58
  {
59
59
  :'pulp_href' => :'String',
60
- :'description' => :'String',
60
+ :'latest_version_href' => :'String',
61
61
  :'retain_repo_versions' => :'Integer',
62
- :'manifest_signing_service' => :'String',
63
- :'pulp_created' => :'DateTime',
64
62
  :'name' => :'String',
63
+ :'description' => :'String',
64
+ :'pulp_created' => :'DateTime',
65
+ :'manifest_signing_service' => :'String',
65
66
  :'versions_href' => :'String',
66
- :'latest_version_href' => :'String',
67
67
  :'pulp_labels' => :'Hash<String, String>'
68
68
  }
69
69
  end
@@ -71,8 +71,8 @@ module PulpContainerClient
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
- :'description',
75
74
  :'retain_repo_versions',
75
+ :'description',
76
76
  :'manifest_signing_service',
77
77
  ])
78
78
  end
@@ -96,34 +96,34 @@ module PulpContainerClient
96
96
  self.pulp_href = attributes[:'pulp_href']
97
97
  end
98
98
 
99
- if attributes.key?(:'description')
100
- self.description = attributes[:'description']
99
+ if attributes.key?(:'latest_version_href')
100
+ self.latest_version_href = attributes[:'latest_version_href']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'retain_repo_versions')
104
104
  self.retain_repo_versions = attributes[:'retain_repo_versions']
105
105
  end
106
106
 
107
- if attributes.key?(:'manifest_signing_service')
108
- self.manifest_signing_service = attributes[:'manifest_signing_service']
107
+ if attributes.key?(:'name')
108
+ self.name = attributes[:'name']
109
+ end
110
+
111
+ if attributes.key?(:'description')
112
+ self.description = attributes[:'description']
109
113
  end
110
114
 
111
115
  if attributes.key?(:'pulp_created')
112
116
  self.pulp_created = attributes[:'pulp_created']
113
117
  end
114
118
 
115
- if attributes.key?(:'name')
116
- self.name = attributes[:'name']
119
+ if attributes.key?(:'manifest_signing_service')
120
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
117
121
  end
118
122
 
119
123
  if attributes.key?(:'versions_href')
120
124
  self.versions_href = attributes[:'versions_href']
121
125
  end
122
126
 
123
- if attributes.key?(:'latest_version_href')
124
- self.latest_version_href = attributes[:'latest_version_href']
125
- end
126
-
127
127
  if attributes.key?(:'pulp_labels')
128
128
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
129
  self.pulp_labels = value
@@ -170,13 +170,13 @@ module PulpContainerClient
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
172
  pulp_href == o.pulp_href &&
173
- description == o.description &&
173
+ latest_version_href == o.latest_version_href &&
174
174
  retain_repo_versions == o.retain_repo_versions &&
175
- manifest_signing_service == o.manifest_signing_service &&
176
- pulp_created == o.pulp_created &&
177
175
  name == o.name &&
176
+ description == o.description &&
177
+ pulp_created == o.pulp_created &&
178
+ manifest_signing_service == o.manifest_signing_service &&
178
179
  versions_href == o.versions_href &&
179
- latest_version_href == o.latest_version_href &&
180
180
  pulp_labels == o.pulp_labels
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_href, description, retain_repo_versions, manifest_signing_service, pulp_created, name, versions_href, latest_version_href, pulp_labels].hash
192
+ [pulp_href, latest_version_href, retain_repo_versions, name, description, pulp_created, manifest_signing_service, versions_href, pulp_labels].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. * `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.
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.
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.
@@ -354,20 +354,20 @@ module PulpContainerClient
354
354
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
355
355
  end
356
356
 
357
- if !@total_timeout.nil? && @total_timeout < 0.0
358
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
357
+ if !@total_timeout.nil? && @total_timeout < 0
358
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
359
359
  end
360
360
 
361
- if !@connect_timeout.nil? && @connect_timeout < 0.0
362
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
361
+ if !@connect_timeout.nil? && @connect_timeout < 0
362
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
363
363
  end
364
364
 
365
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
365
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
366
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
367
367
  end
368
368
 
369
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
370
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
369
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
370
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
371
371
  end
372
372
 
373
373
  if @upstream_name.nil?
@@ -401,10 +401,10 @@ module PulpContainerClient
401
401
  return false if !@username.nil? && @username.to_s.length < 1
402
402
  return false if !@password.nil? && @password.to_s.length < 1
403
403
  return false if !@download_concurrency.nil? && @download_concurrency < 1
404
- return false if !@total_timeout.nil? && @total_timeout < 0.0
405
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
406
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
407
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
404
+ return false if !@total_timeout.nil? && @total_timeout < 0
405
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
406
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
407
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
408
408
  return false if @upstream_name.nil?
409
409
  return false if @upstream_name.to_s.length < 1
410
410
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
@@ -532,8 +532,8 @@ module PulpContainerClient
532
532
  # Custom attribute writer method with validation
533
533
  # @param [Object] total_timeout Value to be assigned
534
534
  def total_timeout=(total_timeout)
535
- if !total_timeout.nil? && total_timeout < 0.0
536
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
535
+ if !total_timeout.nil? && total_timeout < 0
536
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
537
537
  end
538
538
 
539
539
  @total_timeout = total_timeout
@@ -542,8 +542,8 @@ module PulpContainerClient
542
542
  # Custom attribute writer method with validation
543
543
  # @param [Object] connect_timeout Value to be assigned
544
544
  def connect_timeout=(connect_timeout)
545
- if !connect_timeout.nil? && connect_timeout < 0.0
546
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
545
+ if !connect_timeout.nil? && connect_timeout < 0
546
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
547
547
  end
548
548
 
549
549
  @connect_timeout = connect_timeout
@@ -552,8 +552,8 @@ module PulpContainerClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] sock_connect_timeout Value to be assigned
554
554
  def sock_connect_timeout=(sock_connect_timeout)
555
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
556
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
555
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
556
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
557
557
  end
558
558
 
559
559
  @sock_connect_timeout = sock_connect_timeout
@@ -562,8 +562,8 @@ module PulpContainerClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] sock_read_timeout Value to be assigned
564
564
  def sock_read_timeout=(sock_read_timeout)
565
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
566
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
565
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
566
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
567
567
  end
568
568
 
569
569
  @sock_read_timeout = sock_read_timeout
@@ -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. * `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.
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.
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.
@@ -301,20 +301,20 @@ module PulpContainerClient
301
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
302
  end
303
303
 
304
- if !@total_timeout.nil? && @total_timeout < 0.0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
304
+ if !@total_timeout.nil? && @total_timeout < 0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
306
306
  end
307
307
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0.0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
308
+ if !@connect_timeout.nil? && @connect_timeout < 0
309
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
310
310
  end
311
311
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
312
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
314
314
  end
315
315
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
318
318
  end
319
319
 
320
320
  if @upstream_name.nil?
@@ -330,10 +330,10 @@ module PulpContainerClient
330
330
  return false if @name.nil?
331
331
  return false if @url.nil?
332
332
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0.0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
333
+ return false if !@total_timeout.nil? && @total_timeout < 0
334
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
335
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
337
337
  return false if @upstream_name.nil?
338
338
  true
339
339
  end
@@ -351,8 +351,8 @@ module PulpContainerClient
351
351
  # Custom attribute writer method with validation
352
352
  # @param [Object] total_timeout Value to be assigned
353
353
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0.0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
354
+ if !total_timeout.nil? && total_timeout < 0
355
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
356
356
  end
357
357
 
358
358
  @total_timeout = total_timeout
@@ -361,8 +361,8 @@ module PulpContainerClient
361
361
  # Custom attribute writer method with validation
362
362
  # @param [Object] connect_timeout Value to be assigned
363
363
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0.0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
364
+ if !connect_timeout.nil? && connect_timeout < 0
365
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
366
366
  end
367
367
 
368
368
  @connect_timeout = connect_timeout
@@ -371,8 +371,8 @@ module PulpContainerClient
371
371
  # Custom attribute writer method with validation
372
372
  # @param [Object] sock_connect_timeout Value to be assigned
373
373
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
374
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
376
376
  end
377
377
 
378
378
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +381,8 @@ module PulpContainerClient
381
381
  # Custom attribute writer method with validation
382
382
  # @param [Object] sock_read_timeout Value to be assigned
383
383
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
384
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
385
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout
@@ -23,7 +23,7 @@ module PulpContainerClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions.
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
@@ -32,7 +32,7 @@ module PulpContainerClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
- # Retain X versions of the repository. Default is null which retains all versions.
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
36
  attr_accessor :retain_repo_versions
37
37
 
38
38
  # An optional remote to use by default when syncing.
@@ -21,7 +21,7 @@ module PulpContainerClient
21
21
  # File system location to export to.
22
22
  attr_accessor :path
23
23
 
24
- # Method of exporting * `write` - Export by writing * `hardlink` - Export by hardlinking * `symlink` - Export by symlinking
24
+ # Method of exporting
25
25
  attr_accessor :method
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -26,7 +26,7 @@ module PulpContainerClient
26
26
  # File system location to export to.
27
27
  attr_accessor :path
28
28
 
29
- # Method of exporting * `write` - Export by writing * `hardlink` - Export by hardlinking * `symlink` - Export by symlinking
29
+ # Method of exporting
30
30
  attr_accessor :method
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -20,15 +20,11 @@ module PulpContainerClient
20
20
  # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
21
21
  attr_accessor :content_object
22
22
 
23
- # Domain this role should be applied on, mutually exclusive with content_object.
24
- attr_accessor :domain
25
-
26
23
  # Attribute mapping from ruby-style variable name to JSON key.
27
24
  def self.attribute_map
28
25
  {
29
26
  :'role' => :'role',
30
- :'content_object' => :'content_object',
31
- :'domain' => :'domain'
27
+ :'content_object' => :'content_object'
32
28
  }
33
29
  end
34
30
 
@@ -36,16 +32,14 @@ module PulpContainerClient
36
32
  def self.openapi_types
37
33
  {
38
34
  :'role' => :'String',
39
- :'content_object' => :'String',
40
- :'domain' => :'String'
35
+ :'content_object' => :'String'
41
36
  }
42
37
  end
43
38
 
44
39
  # List of attributes with nullable: true
45
40
  def self.openapi_nullable
46
41
  Set.new([
47
- :'content_object',
48
- :'domain'
42
+ :'content_object'
49
43
  ])
50
44
  end
51
45
 
@@ -71,10 +65,6 @@ module PulpContainerClient
71
65
  if attributes.key?(:'content_object')
72
66
  self.content_object = attributes[:'content_object']
73
67
  end
74
-
75
- if attributes.key?(:'domain')
76
- self.domain = attributes[:'domain']
77
- end
78
68
  end
79
69
 
80
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -135,8 +125,7 @@ module PulpContainerClient
135
125
  return true if self.equal?(o)
136
126
  self.class == o.class &&
137
127
  role == o.role &&
138
- content_object == o.content_object &&
139
- domain == o.domain
128
+ content_object == o.content_object
140
129
  end
141
130
 
142
131
  # @see the `==` method
@@ -148,7 +137,7 @@ module PulpContainerClient
148
137
  # Calculates hash code according to all attributes.
149
138
  # @return [Integer] Hash code
150
139
  def hash
151
- [role, content_object, domain].hash
140
+ [role, content_object].hash
152
141
  end
153
142
 
154
143
  # Builds the object from hash