pulp_ansible_client 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/{V2CollectionsApi.md → ApiCollectionsApi.md} +7 -7
- data/docs/{V1RolesApi.md → ApiRolesApi.md} +4 -4
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +3 -3
- data/docs/CollectionVersionResponse.md +3 -3
- data/docs/DistributionsAnsibleApi.md +6 -54
- data/docs/GalaxyCollectionResponse.md +2 -2
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.md +1 -1
- data/docs/InlineResponse20013.md +6 -8
- data/docs/InlineResponse20014.md +6 -8
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +0 -22
- data/docs/RemotesCollectionApi.md +6 -66
- data/docs/RemotesRoleApi.md +6 -66
- data/docs/RepositoriesAnsibleApi.md +6 -30
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -34
- data/docs/VersionsApi.md +120 -0
- data/lib/pulp_ansible_client/api/{v2_collections_api.rb → api_collections_api.rb} +8 -8
- data/lib/pulp_ansible_client/api/{v1_roles_api.rb → api_roles_api.rb} +4 -4
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -63
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +0 -37
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -81
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -81
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -27
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -45
- data/lib/pulp_ansible_client/api/{role_list_api.rb → versions_api.rb} +73 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_response.rb +3 -3
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +2 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +4 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20013.rb +20 -31
- data/lib/pulp_ansible_client/models/inline_response20014.rb +20 -31
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -4
- data/spec/api/{v2_collections_api_spec.rb → api_collections_api_spec.rb} +6 -6
- data/spec/api/{v1_roles_api_spec.rb → api_roles_api_spec.rb} +6 -6
- data/spec/api/distributions_ansible_api_spec.rb +0 -21
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +0 -11
- data/spec/api/remotes_collection_api_spec.rb +0 -27
- data/spec/api/remotes_role_api_spec.rb +0 -27
- data/spec/api/repositories_ansible_api_spec.rb +0 -9
- data/spec/api/repositories_ansible_versions_api_spec.rb +0 -15
- data/spec/api/{role_list_api_spec.rb → versions_api_spec.rb} +20 -6
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/inline_response20013_spec.rb +3 -9
- data/spec/models/inline_response20014_spec.rb +3 -9
- metadata +14 -18
- data/docs/GalaxyCollectionListApi.md +0 -63
- data/docs/RoleListApi.md +0 -65
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +0 -91
- data/spec/api/galaxy_collection_list_api_spec.rb +0 -49
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
class
|
16
|
+
class VersionsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -42,11 +42,11 @@ module PulpAnsibleClient
|
|
42
42
|
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
43
43
|
def get_with_http_info(ansible_role_href, opts = {})
|
44
44
|
if @api_client.config.debugging
|
45
|
-
@api_client.config.logger.debug 'Calling API:
|
45
|
+
@api_client.config.logger.debug 'Calling API: VersionsApi.get ...'
|
46
46
|
end
|
47
47
|
# verify the required parameter 'ansible_role_href' is set
|
48
48
|
if @api_client.config.client_side_validation && ansible_role_href.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling
|
49
|
+
fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling VersionsApi.get"
|
50
50
|
end
|
51
51
|
# resource path
|
52
52
|
local_var_path = '{ansible_role_href}versions/'.sub('{' + 'ansible_role_href' + '}', CGI.escape(ansible_role_href.to_s).gsub('%2F', '/'))
|
@@ -86,7 +86,76 @@ module PulpAnsibleClient
|
|
86
86
|
|
87
87
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
88
|
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug "API called:
|
89
|
+
@api_client.config.logger.debug "API called: VersionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
|
94
|
+
# APIView for Collections by namespace/name.
|
95
|
+
# @param ansible_collection_version_href [String]
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
98
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
|
+
# @return [InlineResponse20012]
|
101
|
+
def get_0(ansible_collection_version_href, opts = {})
|
102
|
+
data, _status_code, _headers = get_0_with_http_info(ansible_collection_version_href, opts)
|
103
|
+
data
|
104
|
+
end
|
105
|
+
|
106
|
+
# APIView for Collections by namespace/name.
|
107
|
+
# @param ansible_collection_version_href [String]
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
110
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
111
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
112
|
+
# @return [Array<(InlineResponse20012, Integer, Hash)>] InlineResponse20012 data, response status code and response headers
|
113
|
+
def get_0_with_http_info(ansible_collection_version_href, opts = {})
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug 'Calling API: VersionsApi.get_0 ...'
|
116
|
+
end
|
117
|
+
# verify the required parameter 'ansible_collection_version_href' is set
|
118
|
+
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
119
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.get_0"
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
127
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
128
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
129
|
+
|
130
|
+
# header parameters
|
131
|
+
header_params = opts[:header_params] || {}
|
132
|
+
# HTTP header 'Accept' (if needed)
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:body]
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:return_type] || 'InlineResponse20012'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:auth_names] || []
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:header_params => header_params,
|
149
|
+
:query_params => query_params,
|
150
|
+
:form_params => form_params,
|
151
|
+
:body => post_body,
|
152
|
+
:auth_names => auth_names,
|
153
|
+
:return_type => return_type
|
154
|
+
)
|
155
|
+
|
156
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug "API called: VersionsApi#get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
159
|
end
|
91
160
|
return data, status_code, headers
|
92
161
|
end
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
18
21
|
attr_accessor :pulp_href
|
19
22
|
|
20
23
|
# Artifact file representing the physical content
|
21
24
|
attr_accessor :artifact
|
22
25
|
|
23
|
-
# Timestamp of creation.
|
24
|
-
attr_accessor :pulp_created
|
25
|
-
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
28
28
|
|
@@ -94,9 +94,9 @@ module PulpAnsibleClient
|
|
94
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
95
95
|
def self.attribute_map
|
96
96
|
{
|
97
|
+
:'pulp_created' => :'pulp_created',
|
97
98
|
:'pulp_href' => :'pulp_href',
|
98
99
|
:'artifact' => :'artifact',
|
99
|
-
:'pulp_created' => :'pulp_created',
|
100
100
|
:'md5' => :'md5',
|
101
101
|
:'sha1' => :'sha1',
|
102
102
|
:'sha224' => :'sha224',
|
@@ -126,9 +126,9 @@ module PulpAnsibleClient
|
|
126
126
|
# Attribute type mapping.
|
127
127
|
def self.openapi_types
|
128
128
|
{
|
129
|
+
:'pulp_created' => :'DateTime',
|
129
130
|
:'pulp_href' => :'String',
|
130
131
|
:'artifact' => :'String',
|
131
|
-
:'pulp_created' => :'DateTime',
|
132
132
|
:'md5' => :'String',
|
133
133
|
:'sha1' => :'String',
|
134
134
|
:'sha224' => :'String',
|
@@ -176,6 +176,10 @@ module PulpAnsibleClient
|
|
176
176
|
h[k.to_sym] = v
|
177
177
|
}
|
178
178
|
|
179
|
+
if attributes.key?(:'pulp_created')
|
180
|
+
self.pulp_created = attributes[:'pulp_created']
|
181
|
+
end
|
182
|
+
|
179
183
|
if attributes.key?(:'pulp_href')
|
180
184
|
self.pulp_href = attributes[:'pulp_href']
|
181
185
|
end
|
@@ -184,10 +188,6 @@ module PulpAnsibleClient
|
|
184
188
|
self.artifact = attributes[:'artifact']
|
185
189
|
end
|
186
190
|
|
187
|
-
if attributes.key?(:'pulp_created')
|
188
|
-
self.pulp_created = attributes[:'pulp_created']
|
189
|
-
end
|
190
|
-
|
191
191
|
if attributes.key?(:'md5')
|
192
192
|
self.md5 = attributes[:'md5']
|
193
193
|
end
|
@@ -520,9 +520,9 @@ module PulpAnsibleClient
|
|
520
520
|
def ==(o)
|
521
521
|
return true if self.equal?(o)
|
522
522
|
self.class == o.class &&
|
523
|
+
pulp_created == o.pulp_created &&
|
523
524
|
pulp_href == o.pulp_href &&
|
524
525
|
artifact == o.artifact &&
|
525
|
-
pulp_created == o.pulp_created &&
|
526
526
|
md5 == o.md5 &&
|
527
527
|
sha1 == o.sha1 &&
|
528
528
|
sha224 == o.sha224 &&
|
@@ -557,7 +557,7 @@ module PulpAnsibleClient
|
|
557
557
|
# Calculates hash code according to all attributes.
|
558
558
|
# @return [Integer] Hash code
|
559
559
|
def hash
|
560
|
-
[pulp_href, artifact,
|
560
|
+
[pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
|
561
561
|
end
|
562
562
|
|
563
563
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
18
21
|
attr_accessor :pulp_href
|
19
22
|
|
20
23
|
# Artifact file representing the physical content
|
21
24
|
attr_accessor :artifact
|
22
25
|
|
23
|
-
# Timestamp of creation.
|
24
|
-
attr_accessor :pulp_created
|
25
|
-
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'pulp_created' => :'pulp_created',
|
35
36
|
:'pulp_href' => :'pulp_href',
|
36
37
|
:'artifact' => :'artifact',
|
37
|
-
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'pulp_created' => :'DateTime',
|
47
48
|
:'pulp_href' => :'String',
|
48
49
|
:'artifact' => :'String',
|
49
|
-
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,6 +74,10 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
+
if attributes.key?(:'pulp_created')
|
78
|
+
self.pulp_created = attributes[:'pulp_created']
|
79
|
+
end
|
80
|
+
|
77
81
|
if attributes.key?(:'pulp_href')
|
78
82
|
self.pulp_href = attributes[:'pulp_href']
|
79
83
|
end
|
@@ -82,10 +86,6 @@ module PulpAnsibleClient
|
|
82
86
|
self.artifact = attributes[:'artifact']
|
83
87
|
end
|
84
88
|
|
85
|
-
if attributes.key?(:'pulp_created')
|
86
|
-
self.pulp_created = attributes[:'pulp_created']
|
87
|
-
end
|
88
|
-
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
pulp_created == o.pulp_created &&
|
140
141
|
pulp_href == o.pulp_href &&
|
141
142
|
artifact == o.artifact &&
|
142
|
-
pulp_created == o.pulp_created &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[pulp_href, artifact,
|
157
|
+
[pulp_created, pulp_href, artifact, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -48,13 +48,13 @@ module PulpAnsibleClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'href' => :'
|
51
|
+
:'href' => :'String',
|
52
52
|
:'created_at' => :'DateTime',
|
53
53
|
:'updated_at' => :'DateTime',
|
54
54
|
:'namespace' => :'String',
|
55
55
|
:'name' => :'String',
|
56
56
|
:'deprecated' => :'Boolean',
|
57
|
-
:'versions_url' => :'
|
57
|
+
:'versions_url' => :'String',
|
58
58
|
:'highest_version' => :'Object'
|
59
59
|
}
|
60
60
|
end
|
@@ -59,12 +59,12 @@ module PulpAnsibleClient
|
|
59
59
|
{
|
60
60
|
:'version' => :'String',
|
61
61
|
:'certification' => :'CertificationEnum',
|
62
|
-
:'href' => :'
|
62
|
+
:'href' => :'String',
|
63
63
|
:'created_at' => :'DateTime',
|
64
64
|
:'updated_at' => :'DateTime',
|
65
|
-
:'artifact' => :'
|
65
|
+
:'artifact' => :'String',
|
66
66
|
:'collection' => :'CollectionRefResponse',
|
67
|
-
:'download_url' => :'
|
67
|
+
:'download_url' => :'String',
|
68
68
|
:'name' => :'String',
|
69
69
|
:'namespace' => :'CollectionNamespaceResponse',
|
70
70
|
:'metadata' => :'CollectionMetadataResponse'
|
@@ -43,10 +43,10 @@ module PulpAnsibleClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'version' => :'String',
|
46
|
-
:'href' => :'
|
47
|
-
:'namespace' => :'
|
48
|
-
:'collection' => :'
|
49
|
-
:'artifact' => :'
|
46
|
+
:'href' => :'String',
|
47
|
+
:'namespace' => :'String',
|
48
|
+
:'collection' => :'String',
|
49
|
+
:'artifact' => :'String',
|
50
50
|
:'metadata' => :'CollectionMetadataResponse'
|
51
51
|
}
|
52
52
|
end
|
@@ -14,39 +14,33 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
class InlineResponse20013
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :meta
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :links
|
20
20
|
|
21
|
-
attr_accessor :
|
22
|
-
|
23
|
-
attr_accessor :results
|
21
|
+
attr_accessor :data
|
24
22
|
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
28
|
-
:'
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'results' => :'results'
|
26
|
+
:'meta' => :'meta',
|
27
|
+
:'links' => :'links',
|
28
|
+
:'data' => :'data'
|
32
29
|
}
|
33
30
|
end
|
34
31
|
|
35
32
|
# Attribute type mapping.
|
36
33
|
def self.openapi_types
|
37
34
|
{
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<CollectionResponse>'
|
35
|
+
:'meta' => :'Object',
|
36
|
+
:'links' => :'Object',
|
37
|
+
:'data' => :'Array<CollectionResponse>'
|
42
38
|
}
|
43
39
|
end
|
44
40
|
|
45
41
|
# List of attributes with nullable: true
|
46
42
|
def self.openapi_nullable
|
47
43
|
Set.new([
|
48
|
-
:'_next',
|
49
|
-
:'previous',
|
50
44
|
])
|
51
45
|
end
|
52
46
|
|
@@ -65,21 +59,17 @@ module PulpAnsibleClient
|
|
65
59
|
h[k.to_sym] = v
|
66
60
|
}
|
67
61
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.key?(:'_next')
|
73
|
-
self._next = attributes[:'_next']
|
62
|
+
if attributes.key?(:'meta')
|
63
|
+
self.meta = attributes[:'meta']
|
74
64
|
end
|
75
65
|
|
76
|
-
if attributes.key?(:'
|
77
|
-
self.
|
66
|
+
if attributes.key?(:'links')
|
67
|
+
self.links = attributes[:'links']
|
78
68
|
end
|
79
69
|
|
80
|
-
if attributes.key?(:'
|
81
|
-
if (value = attributes[:'
|
82
|
-
self.
|
70
|
+
if attributes.key?(:'data')
|
71
|
+
if (value = attributes[:'data']).is_a?(Array)
|
72
|
+
self.data = value
|
83
73
|
end
|
84
74
|
end
|
85
75
|
end
|
@@ -102,10 +92,9 @@ module PulpAnsibleClient
|
|
102
92
|
def ==(o)
|
103
93
|
return true if self.equal?(o)
|
104
94
|
self.class == o.class &&
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
results == o.results
|
95
|
+
meta == o.meta &&
|
96
|
+
links == o.links &&
|
97
|
+
data == o.data
|
109
98
|
end
|
110
99
|
|
111
100
|
# @see the `==` method
|
@@ -117,7 +106,7 @@ module PulpAnsibleClient
|
|
117
106
|
# Calculates hash code according to all attributes.
|
118
107
|
# @return [Integer] Hash code
|
119
108
|
def hash
|
120
|
-
[
|
109
|
+
[meta, links, data].hash
|
121
110
|
end
|
122
111
|
|
123
112
|
# Builds the object from hash
|
@@ -14,39 +14,33 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
class InlineResponse20014
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :meta
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :links
|
20
20
|
|
21
|
-
attr_accessor :
|
22
|
-
|
23
|
-
attr_accessor :results
|
21
|
+
attr_accessor :data
|
24
22
|
|
25
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
24
|
def self.attribute_map
|
27
25
|
{
|
28
|
-
:'
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'results' => :'results'
|
26
|
+
:'meta' => :'meta',
|
27
|
+
:'links' => :'links',
|
28
|
+
:'data' => :'data'
|
32
29
|
}
|
33
30
|
end
|
34
31
|
|
35
32
|
# Attribute type mapping.
|
36
33
|
def self.openapi_types
|
37
34
|
{
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<CollectionVersionResponse>'
|
35
|
+
:'meta' => :'Object',
|
36
|
+
:'links' => :'Object',
|
37
|
+
:'data' => :'Array<CollectionVersionResponse>'
|
42
38
|
}
|
43
39
|
end
|
44
40
|
|
45
41
|
# List of attributes with nullable: true
|
46
42
|
def self.openapi_nullable
|
47
43
|
Set.new([
|
48
|
-
:'_next',
|
49
|
-
:'previous',
|
50
44
|
])
|
51
45
|
end
|
52
46
|
|
@@ -65,21 +59,17 @@ module PulpAnsibleClient
|
|
65
59
|
h[k.to_sym] = v
|
66
60
|
}
|
67
61
|
|
68
|
-
if attributes.key?(:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.key?(:'_next')
|
73
|
-
self._next = attributes[:'_next']
|
62
|
+
if attributes.key?(:'meta')
|
63
|
+
self.meta = attributes[:'meta']
|
74
64
|
end
|
75
65
|
|
76
|
-
if attributes.key?(:'
|
77
|
-
self.
|
66
|
+
if attributes.key?(:'links')
|
67
|
+
self.links = attributes[:'links']
|
78
68
|
end
|
79
69
|
|
80
|
-
if attributes.key?(:'
|
81
|
-
if (value = attributes[:'
|
82
|
-
self.
|
70
|
+
if attributes.key?(:'data')
|
71
|
+
if (value = attributes[:'data']).is_a?(Array)
|
72
|
+
self.data = value
|
83
73
|
end
|
84
74
|
end
|
85
75
|
end
|
@@ -102,10 +92,9 @@ module PulpAnsibleClient
|
|
102
92
|
def ==(o)
|
103
93
|
return true if self.equal?(o)
|
104
94
|
self.class == o.class &&
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
results == o.results
|
95
|
+
meta == o.meta &&
|
96
|
+
links == o.links &&
|
97
|
+
data == o.data
|
109
98
|
end
|
110
99
|
|
111
100
|
# @see the `==` method
|
@@ -117,7 +106,7 @@ module PulpAnsibleClient
|
|
117
106
|
# Calculates hash code according to all attributes.
|
118
107
|
# @return [Integer] Hash code
|
119
108
|
def hash
|
120
|
-
[
|
109
|
+
[meta, links, data].hash
|
121
110
|
end
|
122
111
|
|
123
112
|
# Builds the object from hash
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
+
# A mixin for validating unknown serializers' fields.
|
16
17
|
class RepositorySyncURL
|
17
18
|
# A remote to sync from. This will override a remote set on repository.
|
18
19
|
attr_accessor :remote
|
data/lib/pulp_ansible_client.rb
CHANGED
@@ -81,11 +81,12 @@ require 'pulp_ansible_client/models/tag_response'
|
|
81
81
|
|
82
82
|
# APIs
|
83
83
|
require 'pulp_ansible_client/api/ansible_collections_api'
|
84
|
+
require 'pulp_ansible_client/api/api_collections_api'
|
85
|
+
require 'pulp_ansible_client/api/api_roles_api'
|
84
86
|
require 'pulp_ansible_client/api/collection_import_api'
|
85
87
|
require 'pulp_ansible_client/api/content_collection_versions_api'
|
86
88
|
require 'pulp_ansible_client/api/content_roles_api'
|
87
89
|
require 'pulp_ansible_client/api/distributions_ansible_api'
|
88
|
-
require 'pulp_ansible_client/api/galaxy_collection_list_api'
|
89
90
|
require 'pulp_ansible_client/api/galaxy_detail_api'
|
90
91
|
require 'pulp_ansible_client/api/pulp_ansible_api_api'
|
91
92
|
require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api'
|
@@ -99,9 +100,7 @@ require 'pulp_ansible_client/api/remotes_collection_api'
|
|
99
100
|
require 'pulp_ansible_client/api/remotes_role_api'
|
100
101
|
require 'pulp_ansible_client/api/repositories_ansible_api'
|
101
102
|
require 'pulp_ansible_client/api/repositories_ansible_versions_api'
|
102
|
-
require 'pulp_ansible_client/api/
|
103
|
-
require 'pulp_ansible_client/api/v1_roles_api'
|
104
|
-
require 'pulp_ansible_client/api/v2_collections_api'
|
103
|
+
require 'pulp_ansible_client/api/versions_api'
|
105
104
|
|
106
105
|
module PulpAnsibleClient
|
107
106
|
class << self
|
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpAnsibleClient::
|
16
|
+
# Unit tests for PulpAnsibleClient::ApiCollectionsApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ApiCollectionsApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpAnsibleClient::
|
22
|
+
@api_instance = PulpAnsibleClient::ApiCollectionsApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpAnsibleClient::
|
29
|
+
describe 'test an instance of ApiCollectionsApi' do
|
30
|
+
it 'should create an instance of ApiCollectionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::ApiCollectionsApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
15
15
|
|
16
|
-
# Unit tests for PulpAnsibleClient::
|
16
|
+
# Unit tests for PulpAnsibleClient::ApiRolesApi
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
18
|
# Please update as you see appropriate
|
19
|
-
describe '
|
19
|
+
describe 'ApiRolesApi' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@api_instance = PulpAnsibleClient::
|
22
|
+
@api_instance = PulpAnsibleClient::ApiRolesApi.new
|
23
23
|
end
|
24
24
|
|
25
25
|
after do
|
26
26
|
# run after each test
|
27
27
|
end
|
28
28
|
|
29
|
-
describe 'test an instance of
|
30
|
-
it 'should create an instance of
|
31
|
-
expect(@api_instance).to be_instance_of(PulpAnsibleClient::
|
29
|
+
describe 'test an instance of ApiRolesApi' do
|
30
|
+
it 'should create an instance of ApiRolesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpAnsibleClient::ApiRolesApi)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|