pulp_container_client 2.14.13 → 2.15.0.dev1661401897
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -10
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/ContainerContainerRemote.md +2 -2
- data/docs/ContainerContainerRemoteResponse.md +2 -4
- data/docs/ContainerContainerRepository.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -2
- data/docs/ContentBlobsApi.md +10 -14
- data/docs/ContentManifestsApi.md +12 -16
- data/docs/ContentSignaturesApi.md +10 -14
- data/docs/ContentTagsApi.md +12 -16
- data/docs/DistributionsContainerApi.md +22 -30
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +2 -2
- data/docs/PatchedcontainerContainerRepository.md +2 -2
- data/docs/PulpContainerNamespacesApi.md +18 -22
- data/docs/RemotesContainerApi.md +22 -26
- data/docs/RepositoriesContainerApi.md +21 -41
- data/docs/RepositoriesContainerPushApi.md +21 -41
- data/docs/RepositoriesContainerPushVersionsApi.md +14 -16
- data/docs/RepositoriesContainerVersionsApi.md +14 -16
- data/lib/pulp_container_client/api/content_blobs_api.rb +15 -21
- data/lib/pulp_container_client/api/content_manifests_api.rb +17 -23
- data/lib/pulp_container_client/api/content_signatures_api.rb +15 -21
- data/lib/pulp_container_client/api/content_tags_api.rb +17 -23
- data/lib/pulp_container_client/api/distributions_container_api.rb +31 -43
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +27 -33
- data/lib/pulp_container_client/api/remotes_container_api.rb +31 -37
- data/lib/pulp_container_client/api/repositories_container_api.rb +29 -59
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +29 -59
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +19 -22
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +19 -22
- data/lib/pulp_container_client/models/container_container_distribution.rb +48 -50
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -40
- data/lib/pulp_container_client/models/container_container_push_repository.rb +25 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -49
- data/lib/pulp_container_client/models/container_container_remote.rb +3 -5
- data/lib/pulp_container_client/models/container_container_remote_response.rb +4 -18
- data/lib/pulp_container_client/models/container_container_repository.rb +3 -5
- data/lib/pulp_container_client/models/container_container_repository_response.rb +3 -5
- data/lib/pulp_container_client/models/nested_role.rb +0 -19
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +39 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +25 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +3 -5
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +3 -5
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -1
- data/spec/api/content_blobs_api_spec.rb +5 -7
- data/spec/api/content_manifests_api_spec.rb +6 -8
- data/spec/api/content_signatures_api_spec.rb +5 -7
- data/spec/api/content_tags_api_spec.rb +6 -8
- data/spec/api/distributions_container_api_spec.rb +11 -15
- data/spec/api/pulp_container_namespaces_api_spec.rb +9 -11
- data/spec/api/remotes_container_api_spec.rb +11 -13
- data/spec/api/repositories_container_api_spec.rb +10 -20
- data/spec/api/repositories_container_push_api_spec.rb +10 -20
- data/spec/api/repositories_container_push_versions_api_spec.rb +7 -8
- data/spec/api/repositories_container_versions_api_spec.rb +7 -8
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +0 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +46 -50
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -215
- data/spec/models/container_container_remote_response_hidden_fields_spec.rb +0 -47
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_container_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.15.0.dev1661401897
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -90,7 +90,6 @@ files:
|
|
90
90
|
- docs/ContainerContainerPushRepositoryResponse.md
|
91
91
|
- docs/ContainerContainerRemote.md
|
92
92
|
- docs/ContainerContainerRemoteResponse.md
|
93
|
-
- docs/ContainerContainerRemoteResponseHiddenFields.md
|
94
93
|
- docs/ContainerContainerRepository.md
|
95
94
|
- docs/ContainerContainerRepositoryResponse.md
|
96
95
|
- docs/ContainerManifestResponse.md
|
@@ -168,7 +167,6 @@ files:
|
|
168
167
|
- lib/pulp_container_client/models/container_container_push_repository_response.rb
|
169
168
|
- lib/pulp_container_client/models/container_container_remote.rb
|
170
169
|
- lib/pulp_container_client/models/container_container_remote_response.rb
|
171
|
-
- lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb
|
172
170
|
- lib/pulp_container_client/models/container_container_repository.rb
|
173
171
|
- lib/pulp_container_client/models/container_container_repository_response.rb
|
174
172
|
- lib/pulp_container_client/models/container_manifest_response.rb
|
@@ -232,7 +230,6 @@ files:
|
|
232
230
|
- spec/models/container_container_namespace_spec.rb
|
233
231
|
- spec/models/container_container_push_repository_response_spec.rb
|
234
232
|
- spec/models/container_container_push_repository_spec.rb
|
235
|
-
- spec/models/container_container_remote_response_hidden_fields_spec.rb
|
236
233
|
- spec/models/container_container_remote_response_spec.rb
|
237
234
|
- spec/models/container_container_remote_spec.rb
|
238
235
|
- spec/models/container_container_repository_response_spec.rb
|
@@ -290,77 +287,76 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
287
|
version: '1.9'
|
291
288
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
292
289
|
requirements:
|
293
|
-
- - "
|
290
|
+
- - ">"
|
294
291
|
- !ruby/object:Gem::Version
|
295
|
-
version:
|
292
|
+
version: 1.3.1
|
296
293
|
requirements: []
|
297
294
|
rubygems_version: 3.0.3.1
|
298
295
|
signing_key:
|
299
296
|
specification_version: 4
|
300
297
|
summary: Pulp 3 API Ruby Gem
|
301
298
|
test_files:
|
302
|
-
- spec/api/
|
303
|
-
- spec/api/repositories_container_push_api_spec.rb
|
304
|
-
- spec/api/repositories_container_api_spec.rb
|
299
|
+
- spec/api/repositories_container_push_versions_api_spec.rb
|
305
300
|
- spec/api/repositories_container_versions_api_spec.rb
|
306
|
-
- spec/api/remotes_container_api_spec.rb
|
307
301
|
- spec/api/content_signatures_api_spec.rb
|
308
302
|
- spec/api/content_manifests_api_spec.rb
|
309
|
-
- spec/api/pulp_container_namespaces_api_spec.rb
|
310
|
-
- spec/api/distributions_container_api_spec.rb
|
311
303
|
- spec/api/token_api_spec.rb
|
312
|
-
- spec/api/repositories_container_push_versions_api_spec.rb
|
313
304
|
- spec/api/content_blobs_api_spec.rb
|
305
|
+
- spec/api/repositories_container_push_api_spec.rb
|
306
|
+
- spec/api/repositories_container_api_spec.rb
|
307
|
+
- spec/api/pulp_container_namespaces_api_spec.rb
|
308
|
+
- spec/api/distributions_container_api_spec.rb
|
309
|
+
- spec/api/remotes_container_api_spec.rb
|
310
|
+
- spec/api/content_tags_api_spec.rb
|
314
311
|
- spec/api_client_spec.rb
|
315
312
|
- spec/configuration_spec.rb
|
313
|
+
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
314
|
+
- spec/models/container_manifest_response_spec.rb
|
315
|
+
- spec/models/remove_signatures_response_spec.rb
|
316
316
|
- spec/models/my_permissions_response_spec.rb
|
317
317
|
- spec/models/patchedcontainer_container_distribution_spec.rb
|
318
|
-
- spec/models/
|
319
|
-
- spec/models/
|
318
|
+
- spec/models/container_repository_sync_url_spec.rb
|
319
|
+
- spec/models/async_operation_response_spec.rb
|
320
|
+
- spec/models/container_manifest_signature_response_spec.rb
|
321
|
+
- spec/models/remove_image_spec.rb
|
322
|
+
- spec/models/recursive_manage_spec.rb
|
323
|
+
- spec/models/container_container_distribution_response_spec.rb
|
324
|
+
- spec/models/repository_version_response_spec.rb
|
320
325
|
- spec/models/container_tag_response_spec.rb
|
321
|
-
- spec/models/
|
322
|
-
- spec/models/patchedcontainer_container_repository_spec.rb
|
326
|
+
- spec/models/remove_signatures_spec.rb
|
323
327
|
- spec/models/repair_spec.rb
|
324
|
-
- spec/models/
|
325
|
-
- spec/models/
|
326
|
-
- spec/models/remove_signatures_response_spec.rb
|
327
|
-
- spec/models/container_repository_sync_url_spec.rb
|
328
|
-
- spec/models/container_container_repository_response_spec.rb
|
329
|
-
- spec/models/container_container_remote_spec.rb
|
330
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
331
|
-
- spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
|
332
|
-
- spec/models/oci_build_image_spec.rb
|
333
|
-
- spec/models/container_manifest_response_spec.rb
|
334
|
-
- spec/models/object_roles_response_spec.rb
|
328
|
+
- spec/models/nested_role_spec.rb
|
329
|
+
- spec/models/manifest_copy_spec.rb
|
335
330
|
- spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb
|
331
|
+
- spec/models/container_container_remote_spec.rb
|
336
332
|
- spec/models/container_container_push_repository_response_spec.rb
|
337
333
|
- spec/models/repository_sign_spec.rb
|
338
|
-
- spec/models/media_types_enum_spec.rb
|
339
|
-
- spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
|
340
|
-
- spec/models/container_manifest_signature_response_spec.rb
|
341
|
-
- spec/models/async_operation_response_spec.rb
|
342
|
-
- spec/models/container_container_namespace_response_spec.rb
|
343
|
-
- spec/models/container_container_distribution_response_spec.rb
|
344
|
-
- spec/models/container_container_remote_response_hidden_fields_spec.rb
|
345
|
-
- spec/models/container_container_remote_response_spec.rb
|
346
|
-
- spec/models/recursive_manage_spec.rb
|
347
|
-
- spec/models/paginatedcontainer_tag_response_list_spec.rb
|
348
334
|
- spec/models/patchedcontainer_container_remote_spec.rb
|
349
335
|
- spec/models/container_container_push_repository_spec.rb
|
350
|
-
- spec/models/paginatedcontainer_manifest_response_list_spec.rb
|
351
|
-
- spec/models/repository_version_response_spec.rb
|
352
|
-
- spec/models/remove_image_spec.rb
|
353
|
-
- spec/models/nested_role_response_spec.rb
|
354
|
-
- spec/models/paginatedcontainer_container_repository_response_list_spec.rb
|
355
336
|
- spec/models/paginatedcontainer_blob_response_list_spec.rb
|
337
|
+
- spec/models/tag_image_spec.rb
|
356
338
|
- spec/models/container_blob_response_spec.rb
|
339
|
+
- spec/models/container_container_repository_response_spec.rb
|
340
|
+
- spec/models/paginatedcontainer_manifest_response_list_spec.rb
|
341
|
+
- spec/models/media_types_enum_spec.rb
|
342
|
+
- spec/models/paginatedcontainer_container_remote_response_list_spec.rb
|
343
|
+
- spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
|
344
|
+
- spec/models/policy_enum_spec.rb
|
345
|
+
- spec/models/paginatedcontainer_container_repository_response_list_spec.rb
|
346
|
+
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
347
|
+
- spec/models/object_roles_response_spec.rb
|
348
|
+
- spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
|
349
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
350
|
+
- spec/models/container_container_distribution_spec.rb
|
351
|
+
- spec/models/nested_role_response_spec.rb
|
352
|
+
- spec/models/container_container_namespace_spec.rb
|
353
|
+
- spec/models/patchedcontainer_container_repository_spec.rb
|
357
354
|
- spec/models/un_tag_image_spec.rb
|
358
|
-
- spec/models/
|
355
|
+
- spec/models/container_container_repository_spec.rb
|
356
|
+
- spec/models/container_container_remote_response_spec.rb
|
357
|
+
- spec/models/oci_build_image_spec.rb
|
358
|
+
- spec/models/paginatedcontainer_tag_response_list_spec.rb
|
359
359
|
- spec/models/content_summary_response_spec.rb
|
360
|
-
- spec/models/container_container_distribution_spec.rb
|
361
360
|
- spec/models/tag_copy_spec.rb
|
362
|
-
- spec/models/
|
363
|
-
- spec/models/manifest_copy_spec.rb
|
364
|
-
- spec/models/nested_role_spec.rb
|
365
|
-
- spec/models/patchedcontainer_container_push_repository_spec.rb
|
361
|
+
- spec/models/container_container_namespace_response_spec.rb
|
366
362
|
- spec/spec_helper.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# PulpContainerClient::ContainerContainerRemoteResponseHiddenFields
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**name** | **String** | | [optional]
|
8
|
-
**is_set** | **Boolean** | | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'PulpContainerClient'
|
14
|
-
|
15
|
-
instance = PulpContainerClient::ContainerContainerRemoteResponseHiddenFields.new(name: null,
|
16
|
-
is_set: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,215 +0,0 @@
|
|
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
|
-
class ContainerContainerRemoteResponseHiddenFields
|
17
|
-
attr_accessor :name
|
18
|
-
|
19
|
-
attr_accessor :is_set
|
20
|
-
|
21
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
-
def self.attribute_map
|
23
|
-
{
|
24
|
-
:'name' => :'name',
|
25
|
-
:'is_set' => :'is_set'
|
26
|
-
}
|
27
|
-
end
|
28
|
-
|
29
|
-
# Attribute type mapping.
|
30
|
-
def self.openapi_types
|
31
|
-
{
|
32
|
-
:'name' => :'String',
|
33
|
-
:'is_set' => :'Boolean'
|
34
|
-
}
|
35
|
-
end
|
36
|
-
|
37
|
-
# List of attributes with nullable: true
|
38
|
-
def self.openapi_nullable
|
39
|
-
Set.new([
|
40
|
-
])
|
41
|
-
end
|
42
|
-
|
43
|
-
# Initializes the object
|
44
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
-
def initialize(attributes = {})
|
46
|
-
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerContainerRemoteResponseHiddenFields` initialize method"
|
48
|
-
end
|
49
|
-
|
50
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerContainerRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
-
end
|
55
|
-
h[k.to_sym] = v
|
56
|
-
}
|
57
|
-
|
58
|
-
if attributes.key?(:'name')
|
59
|
-
self.name = attributes[:'name']
|
60
|
-
end
|
61
|
-
|
62
|
-
if attributes.key?(:'is_set')
|
63
|
-
self.is_set = attributes[:'is_set']
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
-
# @return Array for valid properties with the reasons
|
69
|
-
def list_invalid_properties
|
70
|
-
invalid_properties = Array.new
|
71
|
-
invalid_properties
|
72
|
-
end
|
73
|
-
|
74
|
-
# Check to see if the all the properties in the model are valid
|
75
|
-
# @return true if the model is valid
|
76
|
-
def valid?
|
77
|
-
true
|
78
|
-
end
|
79
|
-
|
80
|
-
# Checks equality by comparing each attribute.
|
81
|
-
# @param [Object] Object to be compared
|
82
|
-
def ==(o)
|
83
|
-
return true if self.equal?(o)
|
84
|
-
self.class == o.class &&
|
85
|
-
name == o.name &&
|
86
|
-
is_set == o.is_set
|
87
|
-
end
|
88
|
-
|
89
|
-
# @see the `==` method
|
90
|
-
# @param [Object] Object to be compared
|
91
|
-
def eql?(o)
|
92
|
-
self == o
|
93
|
-
end
|
94
|
-
|
95
|
-
# Calculates hash code according to all attributes.
|
96
|
-
# @return [Integer] Hash code
|
97
|
-
def hash
|
98
|
-
[name, is_set].hash
|
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 self.build_from_hash(attributes)
|
105
|
-
new.build_from_hash(attributes)
|
106
|
-
end
|
107
|
-
|
108
|
-
# Builds the object from hash
|
109
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
-
# @return [Object] Returns the model itself
|
111
|
-
def build_from_hash(attributes)
|
112
|
-
return nil unless attributes.is_a?(Hash)
|
113
|
-
self.class.openapi_types.each_pair do |key, type|
|
114
|
-
if type =~ /\AArray<(.*)>/i
|
115
|
-
# check to ensure the input is an array given that the attribute
|
116
|
-
# is documented as an array but the input is not
|
117
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
-
end
|
120
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
-
end
|
124
|
-
|
125
|
-
self
|
126
|
-
end
|
127
|
-
|
128
|
-
# Deserializes the data based on type
|
129
|
-
# @param string type Data type
|
130
|
-
# @param string value Value to be deserialized
|
131
|
-
# @return [Object] Deserialized data
|
132
|
-
def _deserialize(type, value)
|
133
|
-
case type.to_sym
|
134
|
-
when :DateTime
|
135
|
-
DateTime.parse(value)
|
136
|
-
when :Date
|
137
|
-
Date.parse(value)
|
138
|
-
when :String
|
139
|
-
value.to_s
|
140
|
-
when :Integer
|
141
|
-
value.to_i
|
142
|
-
when :Float
|
143
|
-
value.to_f
|
144
|
-
when :Boolean
|
145
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
-
true
|
147
|
-
else
|
148
|
-
false
|
149
|
-
end
|
150
|
-
when :Object
|
151
|
-
# generic object (usually a Hash), return directly
|
152
|
-
value
|
153
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
-
inner_type = Regexp.last_match[:inner_type]
|
155
|
-
value.map { |v| _deserialize(inner_type, v) }
|
156
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
-
k_type = Regexp.last_match[:k_type]
|
158
|
-
v_type = Regexp.last_match[:v_type]
|
159
|
-
{}.tap do |hash|
|
160
|
-
value.each do |k, v|
|
161
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
else # model
|
165
|
-
PulpContainerClient.const_get(type).build_from_hash(value)
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
# Returns the string representation of the object
|
170
|
-
# @return [String] String presentation of the object
|
171
|
-
def to_s
|
172
|
-
to_hash.to_s
|
173
|
-
end
|
174
|
-
|
175
|
-
# to_body is an alias to to_hash (backward compatibility)
|
176
|
-
# @return [Hash] Returns the object in the form of hash
|
177
|
-
def to_body
|
178
|
-
to_hash
|
179
|
-
end
|
180
|
-
|
181
|
-
# Returns the object in the form of hash
|
182
|
-
# @return [Hash] Returns the object in the form of hash
|
183
|
-
def to_hash
|
184
|
-
hash = {}
|
185
|
-
self.class.attribute_map.each_pair do |attr, param|
|
186
|
-
value = self.send(attr)
|
187
|
-
if value.nil?
|
188
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
189
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
190
|
-
end
|
191
|
-
|
192
|
-
hash[param] = _to_hash(value)
|
193
|
-
end
|
194
|
-
hash
|
195
|
-
end
|
196
|
-
|
197
|
-
# Outputs non-array value in the form of hash
|
198
|
-
# For object, use to_hash. Otherwise, just return the value
|
199
|
-
# @param [Object] value Any valid value
|
200
|
-
# @return [Hash] Returns the value in the form of hash
|
201
|
-
def _to_hash(value)
|
202
|
-
if value.is_a?(Array)
|
203
|
-
value.compact.map { |v| _to_hash(v) }
|
204
|
-
elsif value.is_a?(Hash)
|
205
|
-
{}.tap do |hash|
|
206
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
207
|
-
end
|
208
|
-
elsif value.respond_to? :to_hash
|
209
|
-
value.to_hash
|
210
|
-
else
|
211
|
-
value
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
@@ -1,47 +0,0 @@
|
|
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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpContainerClient::ContainerContainerRemoteResponseHiddenFields
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ContainerContainerRemoteResponseHiddenFields' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpContainerClient::ContainerContainerRemoteResponseHiddenFields.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ContainerContainerRemoteResponseHiddenFields' do
|
31
|
-
it 'should create an instance of ContainerContainerRemoteResponseHiddenFields' do
|
32
|
-
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerRemoteResponseHiddenFields)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "name"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "is_set"' 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
|
-
|
47
|
-
end
|