pulp_container_client 2.10.13 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -17
  3. data/docs/ContainerBlobResponse.md +1 -3
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +9 -9
  6. data/docs/ContainerContainerPushRepository.md +7 -5
  7. data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
  8. data/docs/ContainerContainerRemote.md +3 -1
  9. data/docs/ContainerContainerRemoteResponse.md +3 -1
  10. data/docs/ContainerContainerRepository.md +3 -1
  11. data/docs/ContainerContainerRepositoryResponse.md +3 -1
  12. data/docs/ContainerManifestSignatureResponse.md +33 -0
  13. data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
  14. data/docs/ContentBlobsApi.md +0 -2
  15. data/docs/ContentSignaturesApi.md +158 -0
  16. data/docs/ContentSummary.md +21 -0
  17. data/docs/DistributionsContainerApi.md +228 -0
  18. data/docs/MyPermissionsResponse.md +17 -0
  19. data/docs/NestedRole.md +21 -0
  20. data/docs/NestedRoleResponse.md +21 -0
  21. data/docs/ObjectRolesResponse.md +17 -0
  22. data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
  23. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  24. data/docs/PatchedcontainerContainerPushRepository.md +7 -5
  25. data/docs/PatchedcontainerContainerRemote.md +3 -1
  26. data/docs/PatchedcontainerContainerRepository.md +3 -1
  27. data/docs/PulpContainerNamespacesApi.md +228 -0
  28. data/docs/RemotesContainerApi.md +228 -0
  29. data/docs/RemoveSignatures.md +17 -0
  30. data/docs/RemoveSignaturesResponse.md +17 -0
  31. data/docs/RepositoriesContainerApi.md +288 -4
  32. data/docs/RepositoriesContainerPushApi.md +339 -0
  33. data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
  34. data/docs/RepositoriesContainerVersionsApi.md +4 -4
  35. data/docs/RepositorySign.md +21 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/git_push.sh +58 -0
  38. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
  39. data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
  40. data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
  41. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
  42. data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
  43. data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
  44. data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
  45. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
  46. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
  47. data/lib/pulp_container_client/api_client.rb +5 -2
  48. data/lib/pulp_container_client/configuration.rb +0 -1
  49. data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
  52. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
  53. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
  54. data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
  55. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
  56. data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
  57. data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
  58. data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
  59. data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
  60. data/lib/pulp_container_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
  62. data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
  63. data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
  64. data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
  65. data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
  66. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  67. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
  68. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
  69. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
  70. data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
  71. data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
  72. data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
  73. data/lib/pulp_container_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_container_client/version.rb +1 -1
  75. data/lib/pulp_container_client.rb +13 -7
  76. data/pulp_container_client.gemspec +3 -3
  77. data/spec/api/content_blobs_api_spec.rb +0 -1
  78. data/spec/api/content_signatures_api_spec.rb +78 -0
  79. data/spec/api/distributions_container_api_spec.rb +50 -0
  80. data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
  81. data/spec/api/remotes_container_api_spec.rb +50 -0
  82. data/spec/api/repositories_container_api_spec.rb +64 -1
  83. data/spec/api/repositories_container_push_api_spec.rb +75 -0
  84. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
  85. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  86. data/spec/models/container_blob_response_spec.rb +0 -6
  87. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  88. data/spec/models/container_container_distribution_spec.rb +5 -5
  89. data/spec/models/container_container_push_repository_response_spec.rb +13 -7
  90. data/spec/models/container_container_push_repository_spec.rb +9 -3
  91. data/spec/models/container_container_remote_response_spec.rb +6 -0
  92. data/spec/models/container_container_remote_spec.rb +6 -0
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_container_repository_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +89 -0
  96. data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
  97. data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
  98. data/spec/models/my_permissions_response_spec.rb +41 -0
  99. data/spec/models/nested_role_response_spec.rb +53 -0
  100. data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
  101. data/spec/models/object_roles_response_spec.rb +41 -0
  102. data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  104. data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
  105. data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
  106. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  107. data/spec/models/remove_signatures_response_spec.rb +41 -0
  108. data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
  109. data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
  110. data/spec/models/repository_version_spec.rb +41 -0
  111. metadata +99 -74
  112. data/docs/ContainerContentRedirectContentGuard.md +0 -19
  113. data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
  114. data/docs/ContentguardsContentRedirectApi.md +0 -361
  115. data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
  116. data/docs/Repair.md +0 -17
  117. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
  118. data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
20
-
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
23
-
24
18
  # An optional content-guard. If none is specified, a default one will be used.
25
19
  attr_accessor :content_guard
26
20
 
27
21
  attr_accessor :pulp_labels
28
22
 
23
+ # A unique name. Ex, `rawhide` and `stable`.
24
+ attr_accessor :name
25
+
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
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\")
30
+ attr_accessor :base_path
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
- :'name' => :'name',
45
- :'base_path' => :'base_path',
46
44
  :'content_guard' => :'content_guard',
47
45
  :'pulp_labels' => :'pulp_labels',
46
+ :'name' => :'name',
48
47
  :'repository' => :'repository',
48
+ :'base_path' => :'base_path',
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
- :'name' => :'String',
59
- :'base_path' => :'String',
60
58
  :'content_guard' => :'String',
61
59
  :'pulp_labels' => :'Object',
60
+ :'name' => :'String',
62
61
  :'repository' => :'String',
62
+ :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,14 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
95
- end
96
-
97
- if attributes.key?(:'base_path')
98
- self.base_path = attributes[:'base_path']
99
- end
100
-
101
93
  if attributes.key?(:'content_guard')
102
94
  self.content_guard = attributes[:'content_guard']
103
95
  end
@@ -106,10 +98,18 @@ module PulpContainerClient
106
98
  self.pulp_labels = attributes[:'pulp_labels']
107
99
  end
108
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
109
105
  if attributes.key?(:'repository')
110
106
  self.repository = attributes[:'repository']
111
107
  end
112
108
 
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
+ end
112
+
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  end
@@ -204,11 +204,11 @@ module PulpContainerClient
204
204
  def ==(o)
205
205
  return true if self.equal?(o)
206
206
  self.class == o.class &&
207
- name == o.name &&
208
- base_path == o.base_path &&
209
207
  content_guard == o.content_guard &&
210
208
  pulp_labels == o.pulp_labels &&
209
+ name == o.name &&
211
210
  repository == o.repository &&
211
+ base_path == o.base_path &&
212
212
  repository_version == o.repository_version &&
213
213
  private == o.private &&
214
214
  description == o.description
@@ -223,7 +223,7 @@ module PulpContainerClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [name, base_path, content_guard, pulp_labels, repository, repository_version, private, description].hash
226
+ [content_guard, pulp_labels, name, repository, base_path, repository_version, private, description].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -15,29 +15,29 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- attr_accessor :pulp_href
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
+
21
+ attr_accessor :pulp_labels
19
22
 
20
23
  # A unique name. Ex, `rawhide` and `stable`.
21
24
  attr_accessor :name
22
25
 
26
+ # The latest RepositoryVersion for this Repository will be served.
27
+ attr_accessor :repository
28
+
23
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\")
24
30
  attr_accessor :base_path
25
31
 
26
- # An optional content-guard. If none is specified, a default one will be used.
27
- attr_accessor :content_guard
28
-
29
32
  # Timestamp of creation.
30
33
  attr_accessor :pulp_created
31
34
 
32
- attr_accessor :pulp_labels
33
-
34
- # The latest RepositoryVersion for this Repository will be served.
35
- attr_accessor :repository
35
+ attr_accessor :pulp_href
36
36
 
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
39
39
 
40
- # The Registry hostame/name/ to use with docker pull command defined by this distribution.
40
+ # The Registry hostname/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
42
42
 
43
43
  # Namespace this distribution belongs to.
@@ -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
- :'pulp_href' => :'pulp_href',
56
- :'name' => :'name',
57
- :'base_path' => :'base_path',
58
55
  :'content_guard' => :'content_guard',
59
- :'pulp_created' => :'pulp_created',
60
56
  :'pulp_labels' => :'pulp_labels',
57
+ :'name' => :'name',
61
58
  :'repository' => :'repository',
59
+ :'base_path' => :'base_path',
60
+ :'pulp_created' => :'pulp_created',
61
+ :'pulp_href' => :'pulp_href',
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
- :'pulp_href' => :'String',
74
- :'name' => :'String',
75
- :'base_path' => :'String',
76
73
  :'content_guard' => :'String',
77
- :'pulp_created' => :'DateTime',
78
74
  :'pulp_labels' => :'Object',
75
+ :'name' => :'String',
79
76
  :'repository' => :'String',
77
+ :'base_path' => :'String',
78
+ :'pulp_created' => :'DateTime',
79
+ :'pulp_href' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,32 +109,32 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'pulp_href')
113
- self.pulp_href = attributes[:'pulp_href']
112
+ if attributes.key?(:'content_guard')
113
+ self.content_guard = attributes[:'content_guard']
114
+ end
115
+
116
+ if attributes.key?(:'pulp_labels')
117
+ self.pulp_labels = attributes[:'pulp_labels']
114
118
  end
115
119
 
116
120
  if attributes.key?(:'name')
117
121
  self.name = attributes[:'name']
118
122
  end
119
123
 
120
- if attributes.key?(:'base_path')
121
- self.base_path = attributes[:'base_path']
124
+ if attributes.key?(:'repository')
125
+ self.repository = attributes[:'repository']
122
126
  end
123
127
 
124
- if attributes.key?(:'content_guard')
125
- self.content_guard = attributes[:'content_guard']
128
+ if attributes.key?(:'base_path')
129
+ self.base_path = attributes[:'base_path']
126
130
  end
127
131
 
128
132
  if attributes.key?(:'pulp_created')
129
133
  self.pulp_created = attributes[:'pulp_created']
130
134
  end
131
135
 
132
- if attributes.key?(:'pulp_labels')
133
- self.pulp_labels = attributes[:'pulp_labels']
134
- end
135
-
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
136
+ if attributes.key?(:'pulp_href')
137
+ self.pulp_href = attributes[:'pulp_href']
138
138
  end
139
139
 
140
140
  if attributes.key?(:'repository_version')
@@ -186,13 +186,13 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- pulp_href == o.pulp_href &&
190
- name == o.name &&
191
- base_path == o.base_path &&
192
189
  content_guard == o.content_guard &&
193
- pulp_created == o.pulp_created &&
194
190
  pulp_labels == o.pulp_labels &&
191
+ name == o.name &&
195
192
  repository == o.repository &&
193
+ base_path == o.base_path &&
194
+ pulp_created == o.pulp_created &&
195
+ pulp_href == o.pulp_href &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [pulp_href, name, base_path, content_guard, pulp_created, pulp_labels, repository, repository_version, registry_path, namespace, private, description].hash
212
+ [content_guard, pulp_labels, name, repository, base_path, pulp_created, pulp_href, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -15,42 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # A unique name for this repository.
19
24
  attr_accessor :name
20
25
 
21
- # An optional description.
22
- attr_accessor :description
23
-
24
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.
25
27
  attr_accessor :retain_repo_versions
26
28
 
27
- attr_accessor :pulp_labels
29
+ # An optional description.
30
+ attr_accessor :description
28
31
 
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
35
+ :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
32
37
  :'name' => :'name',
33
- :'description' => :'description',
34
38
  :'retain_repo_versions' => :'retain_repo_versions',
35
- :'pulp_labels' => :'pulp_labels'
39
+ :'description' => :'description'
36
40
  }
37
41
  end
38
42
 
39
43
  # Attribute type mapping.
40
44
  def self.openapi_types
41
45
  {
46
+ :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Object',
42
48
  :'name' => :'String',
43
- :'description' => :'String',
44
49
  :'retain_repo_versions' => :'Integer',
45
- :'pulp_labels' => :'Object'
50
+ :'description' => :'String'
46
51
  }
47
52
  end
48
53
 
49
54
  # List of attributes with nullable: true
50
55
  def self.openapi_nullable
51
56
  Set.new([
52
- :'description',
57
+ :'manifest_signing_service',
53
58
  :'retain_repo_versions',
59
+ :'description'
54
60
  ])
55
61
  end
56
62
 
@@ -69,20 +75,24 @@ module PulpContainerClient
69
75
  h[k.to_sym] = v
70
76
  }
71
77
 
72
- if attributes.key?(:'name')
73
- self.name = attributes[:'name']
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
74
80
  end
75
81
 
76
- if attributes.key?(:'description')
77
- self.description = attributes[:'description']
82
+ if attributes.key?(:'pulp_labels')
83
+ self.pulp_labels = attributes[:'pulp_labels']
84
+ end
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
78
88
  end
79
89
 
80
90
  if attributes.key?(:'retain_repo_versions')
81
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
82
92
  end
83
93
 
84
- if attributes.key?(:'pulp_labels')
85
- self.pulp_labels = attributes[:'pulp_labels']
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
86
96
  end
87
97
  end
88
98
 
@@ -98,14 +108,14 @@ module PulpContainerClient
98
108
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
99
109
  end
100
110
 
101
- if !@description.nil? && @description.to_s.length < 1
102
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
103
- end
104
-
105
111
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
112
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
113
  end
108
114
 
115
+ if !@description.nil? && @description.to_s.length < 1
116
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
117
+ end
118
+
109
119
  invalid_properties
110
120
  end
111
121
 
@@ -114,8 +124,8 @@ module PulpContainerClient
114
124
  def valid?
115
125
  return false if @name.nil?
116
126
  return false if @name.to_s.length < 1
117
- return false if !@description.nil? && @description.to_s.length < 1
118
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
119
129
  true
120
130
  end
121
131
 
@@ -133,16 +143,6 @@ module PulpContainerClient
133
143
  @name = name
134
144
  end
135
145
 
136
- # Custom attribute writer method with validation
137
- # @param [Object] description Value to be assigned
138
- def description=(description)
139
- if !description.nil? && description.to_s.length < 1
140
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
141
- end
142
-
143
- @description = description
144
- end
145
-
146
146
  # Custom attribute writer method with validation
147
147
  # @param [Object] retain_repo_versions Value to be assigned
148
148
  def retain_repo_versions=(retain_repo_versions)
@@ -153,15 +153,26 @@ module PulpContainerClient
153
153
  @retain_repo_versions = retain_repo_versions
154
154
  end
155
155
 
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] description Value to be assigned
158
+ def description=(description)
159
+ if !description.nil? && description.to_s.length < 1
160
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
161
+ end
162
+
163
+ @description = description
164
+ end
165
+
156
166
  # Checks equality by comparing each attribute.
157
167
  # @param [Object] Object to be compared
158
168
  def ==(o)
159
169
  return true if self.equal?(o)
160
170
  self.class == o.class &&
171
+ manifest_signing_service == o.manifest_signing_service &&
172
+ pulp_labels == o.pulp_labels &&
161
173
  name == o.name &&
162
- description == o.description &&
163
174
  retain_repo_versions == o.retain_repo_versions &&
164
- pulp_labels == o.pulp_labels
175
+ description == o.description
165
176
  end
166
177
 
167
178
  # @see the `==` method
@@ -173,7 +184,7 @@ module PulpContainerClient
173
184
  # Calculates hash code according to all attributes.
174
185
  # @return [Integer] Hash code
175
186
  def hash
176
- [name, description, retain_repo_versions, pulp_labels].hash
187
+ [manifest_signing_service, pulp_labels, name, retain_repo_versions, description].hash
177
188
  end
178
189
 
179
190
  # Builds the object from hash
@@ -15,59 +15,65 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # A unique name for this repository.
19
- attr_accessor :name
18
+ attr_accessor :latest_version_href
20
19
 
21
- attr_accessor :pulp_href
20
+ # A reference to an associated signing service.
21
+ attr_accessor :manifest_signing_service
22
22
 
23
- attr_accessor :versions_href
23
+ attr_accessor :pulp_labels
24
24
 
25
- # Timestamp of creation.
26
- attr_accessor :pulp_created
25
+ # A unique name for this repository.
26
+ attr_accessor :name
27
+
28
+ # 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.
29
+ attr_accessor :retain_repo_versions
27
30
 
28
31
  # An optional description.
29
32
  attr_accessor :description
30
33
 
31
- # 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.
32
- attr_accessor :retain_repo_versions
34
+ # Timestamp of creation.
35
+ attr_accessor :pulp_created
33
36
 
34
- attr_accessor :pulp_labels
37
+ attr_accessor :pulp_href
35
38
 
36
- attr_accessor :latest_version_href
39
+ attr_accessor :versions_href
37
40
 
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
44
+ :'latest_version_href' => :'latest_version_href',
45
+ :'manifest_signing_service' => :'manifest_signing_service',
46
+ :'pulp_labels' => :'pulp_labels',
41
47
  :'name' => :'name',
42
- :'pulp_href' => :'pulp_href',
43
- :'versions_href' => :'versions_href',
44
- :'pulp_created' => :'pulp_created',
45
- :'description' => :'description',
46
48
  :'retain_repo_versions' => :'retain_repo_versions',
47
- :'pulp_labels' => :'pulp_labels',
48
- :'latest_version_href' => :'latest_version_href'
49
+ :'description' => :'description',
50
+ :'pulp_created' => :'pulp_created',
51
+ :'pulp_href' => :'pulp_href',
52
+ :'versions_href' => :'versions_href'
49
53
  }
50
54
  end
51
55
 
52
56
  # Attribute type mapping.
53
57
  def self.openapi_types
54
58
  {
59
+ :'latest_version_href' => :'String',
60
+ :'manifest_signing_service' => :'String',
61
+ :'pulp_labels' => :'Object',
55
62
  :'name' => :'String',
56
- :'pulp_href' => :'String',
57
- :'versions_href' => :'String',
58
- :'pulp_created' => :'DateTime',
59
- :'description' => :'String',
60
63
  :'retain_repo_versions' => :'Integer',
61
- :'pulp_labels' => :'Object',
62
- :'latest_version_href' => :'String'
64
+ :'description' => :'String',
65
+ :'pulp_created' => :'DateTime',
66
+ :'pulp_href' => :'String',
67
+ :'versions_href' => :'String'
63
68
  }
64
69
  end
65
70
 
66
71
  # List of attributes with nullable: true
67
72
  def self.openapi_nullable
68
73
  Set.new([
69
- :'description',
74
+ :'manifest_signing_service',
70
75
  :'retain_repo_versions',
76
+ :'description',
71
77
  ])
72
78
  end
73
79
 
@@ -86,36 +92,40 @@ module PulpContainerClient
86
92
  h[k.to_sym] = v
87
93
  }
88
94
 
89
- if attributes.key?(:'name')
90
- self.name = attributes[:'name']
95
+ if attributes.key?(:'latest_version_href')
96
+ self.latest_version_href = attributes[:'latest_version_href']
91
97
  end
92
98
 
93
- if attributes.key?(:'pulp_href')
94
- self.pulp_href = attributes[:'pulp_href']
99
+ if attributes.key?(:'manifest_signing_service')
100
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
95
101
  end
96
102
 
97
- if attributes.key?(:'versions_href')
98
- self.versions_href = attributes[:'versions_href']
103
+ if attributes.key?(:'pulp_labels')
104
+ self.pulp_labels = attributes[:'pulp_labels']
99
105
  end
100
106
 
101
- if attributes.key?(:'pulp_created')
102
- self.pulp_created = attributes[:'pulp_created']
107
+ if attributes.key?(:'name')
108
+ self.name = attributes[:'name']
109
+ end
110
+
111
+ if attributes.key?(:'retain_repo_versions')
112
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
103
113
  end
104
114
 
105
115
  if attributes.key?(:'description')
106
116
  self.description = attributes[:'description']
107
117
  end
108
118
 
109
- if attributes.key?(:'retain_repo_versions')
110
- self.retain_repo_versions = attributes[:'retain_repo_versions']
119
+ if attributes.key?(:'pulp_created')
120
+ self.pulp_created = attributes[:'pulp_created']
111
121
  end
112
122
 
113
- if attributes.key?(:'pulp_labels')
114
- self.pulp_labels = attributes[:'pulp_labels']
123
+ if attributes.key?(:'pulp_href')
124
+ self.pulp_href = attributes[:'pulp_href']
115
125
  end
116
126
 
117
- if attributes.key?(:'latest_version_href')
118
- self.latest_version_href = attributes[:'latest_version_href']
127
+ if attributes.key?(:'versions_href')
128
+ self.versions_href = attributes[:'versions_href']
119
129
  end
120
130
  end
121
131
 
@@ -157,14 +167,15 @@ module PulpContainerClient
157
167
  def ==(o)
158
168
  return true if self.equal?(o)
159
169
  self.class == o.class &&
170
+ latest_version_href == o.latest_version_href &&
171
+ manifest_signing_service == o.manifest_signing_service &&
172
+ pulp_labels == o.pulp_labels &&
160
173
  name == o.name &&
161
- pulp_href == o.pulp_href &&
162
- versions_href == o.versions_href &&
163
- pulp_created == o.pulp_created &&
164
- description == o.description &&
165
174
  retain_repo_versions == o.retain_repo_versions &&
166
- pulp_labels == o.pulp_labels &&
167
- latest_version_href == o.latest_version_href
175
+ description == o.description &&
176
+ pulp_created == o.pulp_created &&
177
+ pulp_href == o.pulp_href &&
178
+ versions_href == o.versions_href
168
179
  end
169
180
 
170
181
  # @see the `==` method
@@ -176,7 +187,7 @@ module PulpContainerClient
176
187
  # Calculates hash code according to all attributes.
177
188
  # @return [Integer] Hash code
178
189
  def hash
179
- [name, pulp_href, versions_href, pulp_created, description, retain_repo_versions, pulp_labels, latest_version_href].hash
190
+ [latest_version_href, manifest_signing_service, pulp_labels, name, retain_repo_versions, description, pulp_created, pulp_href, versions_href].hash
180
191
  end
181
192
 
182
193
  # Builds the object from hash