pulp_container_client 2.10.13 → 2.11.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 (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
@@ -13,34 +13,39 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- # A serializer for ContentRedirectContentGuard.
17
- class PatchedcontainerContentRedirectContentGuard
18
- # The unique name.
19
- attr_accessor :name
16
+ # Serializer for container images signing.
17
+ class RepositorySign
18
+ # A signing service to sign with. This will override a signing service set on the repo.
19
+ attr_accessor :manifest_signing_service
20
20
 
21
- # An optional description.
22
- attr_accessor :description
21
+ # Future base path content will be distributed at for sync repos
22
+ attr_accessor :future_base_path
23
+
24
+ # A list of tags to sign.
25
+ attr_accessor :tags_list
23
26
 
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
- :'name' => :'name',
28
- :'description' => :'description'
30
+ :'manifest_signing_service' => :'manifest_signing_service',
31
+ :'future_base_path' => :'future_base_path',
32
+ :'tags_list' => :'tags_list'
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'name' => :'String',
36
- :'description' => :'String'
39
+ :'manifest_signing_service' => :'String',
40
+ :'future_base_path' => :'String',
41
+ :'tags_list' => :'Array<AnyType>'
37
42
  }
38
43
  end
39
44
 
40
45
  # List of attributes with nullable: true
41
46
  def self.openapi_nullable
42
47
  Set.new([
43
- :'description'
48
+ :'manifest_signing_service',
44
49
  ])
45
50
  end
46
51
 
@@ -48,23 +53,29 @@ module PulpContainerClient
48
53
  # @param [Hash] attributes Model attributes in the form of hash
49
54
  def initialize(attributes = {})
50
55
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PatchedcontainerContentRedirectContentGuard` initialize method"
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RepositorySign` initialize method"
52
57
  end
53
58
 
54
59
  # check to see if the attribute exists and convert string to symbol for hash key
55
60
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
61
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PatchedcontainerContentRedirectContentGuard`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RepositorySign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
63
  end
59
64
  h[k.to_sym] = v
60
65
  }
61
66
 
62
- if attributes.key?(:'name')
63
- self.name = attributes[:'name']
67
+ if attributes.key?(:'manifest_signing_service')
68
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
69
+ end
70
+
71
+ if attributes.key?(:'future_base_path')
72
+ self.future_base_path = attributes[:'future_base_path']
64
73
  end
65
74
 
66
- if attributes.key?(:'description')
67
- self.description = attributes[:'description']
75
+ if attributes.key?(:'tags_list')
76
+ if (value = attributes[:'tags_list']).is_a?(Array)
77
+ self.tags_list = value
78
+ end
68
79
  end
69
80
  end
70
81
 
@@ -72,12 +83,8 @@ module PulpContainerClient
72
83
  # @return Array for valid properties with the reasons
73
84
  def list_invalid_properties
74
85
  invalid_properties = Array.new
75
- if !@name.nil? && @name.to_s.length < 1
76
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
77
- end
78
-
79
- if !@description.nil? && @description.to_s.length < 1
80
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
86
+ if !@future_base_path.nil? && @future_base_path.to_s.length < 1
87
+ invalid_properties.push('invalid value for "future_base_path", the character length must be great than or equal to 1.')
81
88
  end
82
89
 
83
90
  invalid_properties
@@ -86,29 +93,18 @@ module PulpContainerClient
86
93
  # Check to see if the all the properties in the model are valid
87
94
  # @return true if the model is valid
88
95
  def valid?
89
- return false if !@name.nil? && @name.to_s.length < 1
90
- return false if !@description.nil? && @description.to_s.length < 1
96
+ return false if !@future_base_path.nil? && @future_base_path.to_s.length < 1
91
97
  true
92
98
  end
93
99
 
94
100
  # Custom attribute writer method with validation
95
- # @param [Object] name Value to be assigned
96
- def name=(name)
97
- if !name.nil? && name.to_s.length < 1
98
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
99
- end
100
-
101
- @name = name
102
- end
103
-
104
- # Custom attribute writer method with validation
105
- # @param [Object] description Value to be assigned
106
- def description=(description)
107
- if !description.nil? && description.to_s.length < 1
108
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
101
+ # @param [Object] future_base_path Value to be assigned
102
+ def future_base_path=(future_base_path)
103
+ if !future_base_path.nil? && future_base_path.to_s.length < 1
104
+ fail ArgumentError, 'invalid value for "future_base_path", the character length must be great than or equal to 1.'
109
105
  end
110
106
 
111
- @description = description
107
+ @future_base_path = future_base_path
112
108
  end
113
109
 
114
110
  # Checks equality by comparing each attribute.
@@ -116,8 +112,9 @@ module PulpContainerClient
116
112
  def ==(o)
117
113
  return true if self.equal?(o)
118
114
  self.class == o.class &&
119
- name == o.name &&
120
- description == o.description
115
+ manifest_signing_service == o.manifest_signing_service &&
116
+ future_base_path == o.future_base_path &&
117
+ tags_list == o.tags_list
121
118
  end
122
119
 
123
120
  # @see the `==` method
@@ -129,7 +126,7 @@ module PulpContainerClient
129
126
  # Calculates hash code according to all attributes.
130
127
  # @return [Integer] Hash code
131
128
  def hash
132
- [name, description].hash
129
+ [manifest_signing_service, future_base_path, tags_list].hash
133
130
  end
134
131
 
135
132
  # Builds the object from hash
@@ -0,0 +1,208 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpContainerClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class RepositoryVersion
18
+ # A repository version whose content was used as the initial set of content for this repository version
19
+ attr_accessor :base_version
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'base_version' => :'base_version'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'base_version' => :'String'
32
+ }
33
+ end
34
+
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ if (!attributes.is_a?(Hash))
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RepositoryVersion` initialize method"
46
+ end
47
+
48
+ # check to see if the attribute exists and convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h|
50
+ if (!self.class.attribute_map.key?(k.to_sym))
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ end
53
+ h[k.to_sym] = v
54
+ }
55
+
56
+ if attributes.key?(:'base_version')
57
+ self.base_version = attributes[:'base_version']
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ true
72
+ end
73
+
74
+ # Checks equality by comparing each attribute.
75
+ # @param [Object] Object to be compared
76
+ def ==(o)
77
+ return true if self.equal?(o)
78
+ self.class == o.class &&
79
+ base_version == o.base_version
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Integer] Hash code
90
+ def hash
91
+ [base_version].hash
92
+ end
93
+
94
+ # Builds the object from hash
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ # @return [Object] Returns the model itself
97
+ def self.build_from_hash(attributes)
98
+ new.build_from_hash(attributes)
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.openapi_types.each_pair do |key, type|
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the attribute
109
+ # is documented as an array but the input is not
110
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ end
113
+ elsif !attributes[self.class.attribute_map[key]].nil?
114
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :Boolean
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ PulpContainerClient.const_get(type).build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Outputs non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ # @param [Object] value Any valid value
193
+ # @return [Hash] Returns the value in the form of hash
194
+ def _to_hash(value)
195
+ if value.is_a?(Array)
196
+ value.compact.map { |v| _to_hash(v) }
197
+ elsif value.is_a?(Hash)
198
+ {}.tap do |hash|
199
+ value.each { |k, v| hash[k] = _to_hash(v) }
200
+ end
201
+ elsif value.respond_to? :to_hash
202
+ value.to_hash
203
+ else
204
+ value
205
+ end
206
+ end
207
+ end
208
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.10.13'
14
+ VERSION = '2.11.0'
15
15
  end
@@ -29,14 +29,19 @@ require 'pulp_container_client/models/container_container_remote'
29
29
  require 'pulp_container_client/models/container_container_remote_response'
30
30
  require 'pulp_container_client/models/container_container_repository'
31
31
  require 'pulp_container_client/models/container_container_repository_response'
32
- require 'pulp_container_client/models/container_content_redirect_content_guard'
33
- require 'pulp_container_client/models/container_content_redirect_content_guard_response'
34
32
  require 'pulp_container_client/models/container_manifest_response'
33
+ require 'pulp_container_client/models/container_manifest_signature_response'
34
+ require 'pulp_container_client/models/container_repository_sync_url'
35
35
  require 'pulp_container_client/models/container_tag_response'
36
+ require 'pulp_container_client/models/content_summary'
36
37
  require 'pulp_container_client/models/content_summary_response'
37
38
  require 'pulp_container_client/models/manifest_copy'
38
39
  require 'pulp_container_client/models/media_types_enum'
40
+ require 'pulp_container_client/models/my_permissions_response'
41
+ require 'pulp_container_client/models/nested_role'
42
+ require 'pulp_container_client/models/nested_role_response'
39
43
  require 'pulp_container_client/models/oci_build_image'
44
+ require 'pulp_container_client/models/object_roles_response'
40
45
  require 'pulp_container_client/models/paginated_repository_version_response_list'
41
46
  require 'pulp_container_client/models/paginatedcontainer_blob_response_list'
42
47
  require 'pulp_container_client/models/paginatedcontainer_container_distribution_response_list'
@@ -44,19 +49,20 @@ require 'pulp_container_client/models/paginatedcontainer_container_namespace_res
44
49
  require 'pulp_container_client/models/paginatedcontainer_container_push_repository_response_list'
45
50
  require 'pulp_container_client/models/paginatedcontainer_container_remote_response_list'
46
51
  require 'pulp_container_client/models/paginatedcontainer_container_repository_response_list'
47
- require 'pulp_container_client/models/paginatedcontainer_content_redirect_content_guard_response_list'
48
52
  require 'pulp_container_client/models/paginatedcontainer_manifest_response_list'
53
+ require 'pulp_container_client/models/paginatedcontainer_manifest_signature_response_list'
49
54
  require 'pulp_container_client/models/paginatedcontainer_tag_response_list'
50
55
  require 'pulp_container_client/models/patchedcontainer_container_distribution'
51
56
  require 'pulp_container_client/models/patchedcontainer_container_push_repository'
52
57
  require 'pulp_container_client/models/patchedcontainer_container_remote'
53
58
  require 'pulp_container_client/models/patchedcontainer_container_repository'
54
- require 'pulp_container_client/models/patchedcontainer_content_redirect_content_guard'
55
59
  require 'pulp_container_client/models/policy_enum'
56
60
  require 'pulp_container_client/models/recursive_manage'
57
61
  require 'pulp_container_client/models/remove_image'
58
- require 'pulp_container_client/models/repair'
59
- require 'pulp_container_client/models/repository_sync_url'
62
+ require 'pulp_container_client/models/remove_signatures'
63
+ require 'pulp_container_client/models/remove_signatures_response'
64
+ require 'pulp_container_client/models/repository_sign'
65
+ require 'pulp_container_client/models/repository_version'
60
66
  require 'pulp_container_client/models/repository_version_response'
61
67
  require 'pulp_container_client/models/tag_copy'
62
68
  require 'pulp_container_client/models/tag_image'
@@ -65,8 +71,8 @@ require 'pulp_container_client/models/un_tag_image'
65
71
  # APIs
66
72
  require 'pulp_container_client/api/content_blobs_api'
67
73
  require 'pulp_container_client/api/content_manifests_api'
74
+ require 'pulp_container_client/api/content_signatures_api'
68
75
  require 'pulp_container_client/api/content_tags_api'
69
- require 'pulp_container_client/api/contentguards_content_redirect_api'
70
76
  require 'pulp_container_client/api/distributions_container_api'
71
77
  require 'pulp_container_client/api/pulp_container_namespaces_api'
72
78
  require 'pulp_container_client/api/remotes_container_api'
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["pulp-list@redhat.com"]
24
- s.homepage = "https://github.com/pulp/pulp_container"
24
+ s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
- s.license = 'GPLv2+'
27
+ s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -39,7 +39,6 @@ describe 'ContentBlobsApi' do
39
39
  # @option opts [String] :digest Filter results where digest matches value
40
40
  # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
41
41
  # @option opts [Integer] :limit Number of results to return per page.
42
- # @option opts [Array<String>] :media_type
43
42
  # @option opts [Integer] :offset The initial index from which to return the results.
44
43
  # @option opts [String] :ordering Which field to use when ordering the results.
45
44
  # @option opts [String] :repository_version Repository Version referenced by HREF
@@ -0,0 +1,78 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpContainerClient::ContentSignaturesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentSignaturesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpContainerClient::ContentSignaturesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentSignaturesApi' do
30
+ it 'should create an instance of ContentSignaturesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::ContentSignaturesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list
36
+ # List manifest signatures
37
+ # ViewSet for image signatures.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :digest Filter results where digest matches value
40
+ # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
41
+ # @option opts [String] :key_id Filter results where key_id matches value
42
+ # @option opts [Array<String>] :key_id__in Filter results where key_id is in a comma-separated list of values
43
+ # @option opts [Integer] :limit Number of results to return per page.
44
+ # @option opts [Array<String>] :manifest Multiple values may be separated by commas.
45
+ # @option opts [String] :name Filter results where name matches value
46
+ # @option opts [String] :name__contains Filter results where name contains value
47
+ # @option opts [String] :name__icontains Filter results where name contains value
48
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
49
+ # @option opts [String] :name__startswith Filter results where name starts with value
50
+ # @option opts [Integer] :offset The initial index from which to return the results.
51
+ # @option opts [String] :ordering Which field to use when ordering the results.
52
+ # @option opts [String] :repository_version Repository Version referenced by HREF
53
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
54
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
55
+ # @option opts [String] :fields A list of fields to include in the response.
56
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
57
+ # @return [PaginatedcontainerManifestSignatureResponseList]
58
+ describe 'list test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for read
65
+ # Inspect a manifest signature
66
+ # ViewSet for image signatures.
67
+ # @param container_manifest_signature_href
68
+ # @param [Hash] opts the optional parameters
69
+ # @option opts [String] :fields A list of fields to include in the response.
70
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
71
+ # @return [ContainerManifestSignatureResponse]
72
+ describe 'read test' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
75
+ end
76
+ end
77
+
78
+ end
@@ -32,6 +32,18 @@ describe 'DistributionsContainerApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role for this object to users/groups.
37
+ # @param container_container_distribution_href
38
+ # @param nested_role
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NestedRoleResponse]
41
+ describe 'add_role test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
35
47
  # unit tests for create
36
48
  # Create a container distribution
37
49
  # Trigger an asynchronous create task
@@ -83,6 +95,32 @@ describe 'DistributionsContainerApi' do
83
95
  end
84
96
  end
85
97
 
98
+ # unit tests for list_roles
99
+ # List roles assigned to this object.
100
+ # @param container_container_distribution_href
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :fields A list of fields to include in the response.
103
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
104
+ # @return [ObjectRolesResponse]
105
+ describe 'list_roles test' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ # unit tests for my_permissions
112
+ # List permissions available to the current user on this object.
113
+ # @param container_container_distribution_href
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [String] :fields A list of fields to include in the response.
116
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
+ # @return [MyPermissionsResponse]
118
+ describe 'my_permissions test' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ end
122
+ end
123
+
86
124
  # unit tests for partial_update
87
125
  # Update a container distribution
88
126
  # Trigger an asynchronous partial update task
@@ -110,6 +148,18 @@ describe 'DistributionsContainerApi' do
110
148
  end
111
149
  end
112
150
 
151
+ # unit tests for remove_role
152
+ # Remove a role for this object from users/groups.
153
+ # @param container_container_distribution_href
154
+ # @param nested_role
155
+ # @param [Hash] opts the optional parameters
156
+ # @return [NestedRoleResponse]
157
+ describe 'remove_role test' do
158
+ it 'should work' do
159
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
160
+ end
161
+ end
162
+
113
163
  # unit tests for update
114
164
  # Update a container distribution
115
165
  # Trigger an asynchronous update task
@@ -32,6 +32,18 @@ describe 'PulpContainerNamespacesApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role for this object to users/groups.
37
+ # @param container_container_namespace_href
38
+ # @param nested_role
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NestedRoleResponse]
41
+ describe 'add_role test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
35
47
  # unit tests for create
36
48
  # Create a container namespace
37
49
  # ViewSet for ContainerNamespaces.
@@ -77,6 +89,32 @@ describe 'PulpContainerNamespacesApi' do
77
89
  end
78
90
  end
79
91
 
92
+ # unit tests for list_roles
93
+ # List roles assigned to this object.
94
+ # @param container_container_namespace_href
95
+ # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :fields A list of fields to include in the response.
97
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
98
+ # @return [ObjectRolesResponse]
99
+ describe 'list_roles test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for my_permissions
106
+ # List permissions available to the current user on this object.
107
+ # @param container_container_namespace_href
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :fields A list of fields to include in the response.
110
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
+ # @return [MyPermissionsResponse]
112
+ describe 'my_permissions test' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ end
116
+ end
117
+
80
118
  # unit tests for read
81
119
  # Inspect a container namespace
82
120
  # ViewSet for ContainerNamespaces.
@@ -91,4 +129,16 @@ describe 'PulpContainerNamespacesApi' do
91
129
  end
92
130
  end
93
131
 
132
+ # unit tests for remove_role
133
+ # Remove a role for this object from users/groups.
134
+ # @param container_container_namespace_href
135
+ # @param nested_role
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [NestedRoleResponse]
138
+ describe 'remove_role test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
141
+ end
142
+ end
143
+
94
144
  end