pulp_ansible_client 0.21.9 → 0.22.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 +12 -19
- data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +10 -10
- data/docs/AnsibleCollectionsApi.md +61 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/AnsibleRoleResponse.md +5 -5
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionImportDetailResponse.md +2 -2
- data/docs/CollectionMetadataResponse.md +2 -2
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionDocsResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +2 -2
- data/docs/ContentCollectionDeprecationsApi.md +11 -11
- data/docs/ContentCollectionMarksApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/DistributionsAnsibleApi.md +1 -1
- data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
- data/docs/PatchedansibleGitRemote.md +24 -24
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +1 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +1 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/VersionsApi.md +1 -56
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
- data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +22 -22
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +132 -132
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +210 -210
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -10
- data/spec/api/ansible_collections_api_spec.rb +14 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/versions_api_spec.rb +0 -14
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
- data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +149 -173
- data/docs/ApiCollectionsApi.md +0 -112
- data/docs/GalaxyCollection.md +0 -23
- data/docs/GalaxyCollectionResponse.md +0 -31
- data/docs/GalaxyCollectionVersionResponse.md +0 -27
- data/docs/GalaxyDetailApi.md +0 -61
- data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
- data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
- data/spec/api/api_collections_api_spec.rb +0 -61
- data/spec/api/galaxy_detail_api_spec.rb +0 -48
- data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
- data/spec/models/galaxy_collection_response_spec.rb +0 -83
- data/spec/models/galaxy_collection_spec.rb +0 -59
- data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -90,74 +90,5 @@ module PulpAnsibleClient
|
|
90
90
|
end
|
91
91
|
return data, status_code, headers
|
92
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 [Array<String>] :fields A list of fields to include in the response.
|
99
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
100
|
-
# @return [PaginatedGalaxyCollectionVersionResponseList]
|
101
|
-
def api_v2_collection_versions_list(ansible_collection_version_href, opts = {})
|
102
|
-
data, _status_code, _headers = api_v2_collection_versions_list_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 [Array<String>] :fields A list of fields to include in the response.
|
111
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
112
|
-
# @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
|
113
|
-
def api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts = {})
|
114
|
-
if @api_client.config.debugging
|
115
|
-
@api_client.config.logger.debug 'Calling API: VersionsApi.api_v2_collection_versions_list ...'
|
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.api_v2_collection_versions_list"
|
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'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
128
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) 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] || 'PaginatedGalaxyCollectionVersionResponseList'
|
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#api_v2_collection_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
-
end
|
160
|
-
return data, status_code, headers
|
161
|
-
end
|
162
93
|
end
|
163
94
|
end
|
@@ -128,7 +128,7 @@ module PulpAnsibleClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpAnsibleClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -13,8 +13,11 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
# A serializer for Ansible
|
17
|
-
class
|
16
|
+
# A serializer for Ansible Collection Deprecations.
|
17
|
+
class AnsibleAnsibleCollectionDeprecated
|
18
|
+
# A URI of a repository the new content unit should be associated with.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# The name of the Collection.
|
19
22
|
attr_accessor :name
|
20
23
|
|
@@ -24,6 +27,7 @@ module PulpAnsibleClient
|
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
30
|
+
:'repository' => :'repository',
|
27
31
|
:'name' => :'name',
|
28
32
|
:'namespace' => :'namespace'
|
29
33
|
}
|
@@ -32,6 +36,7 @@ module PulpAnsibleClient
|
|
32
36
|
# Attribute type mapping.
|
33
37
|
def self.openapi_types
|
34
38
|
{
|
39
|
+
:'repository' => :'String',
|
35
40
|
:'name' => :'String',
|
36
41
|
:'namespace' => :'String'
|
37
42
|
}
|
@@ -47,17 +52,21 @@ module PulpAnsibleClient
|
|
47
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
53
|
def initialize(attributes = {})
|
49
54
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated` initialize method"
|
51
56
|
end
|
52
57
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
62
|
end
|
58
63
|
h[k.to_sym] = v
|
59
64
|
}
|
60
65
|
|
66
|
+
if attributes.key?(:'repository')
|
67
|
+
self.repository = attributes[:'repository']
|
68
|
+
end
|
69
|
+
|
61
70
|
if attributes.key?(:'name')
|
62
71
|
self.name = attributes[:'name']
|
63
72
|
end
|
@@ -133,6 +142,7 @@ module PulpAnsibleClient
|
|
133
142
|
def ==(o)
|
134
143
|
return true if self.equal?(o)
|
135
144
|
self.class == o.class &&
|
145
|
+
repository == o.repository &&
|
136
146
|
name == o.name &&
|
137
147
|
namespace == o.namespace
|
138
148
|
end
|
@@ -146,7 +156,7 @@ module PulpAnsibleClient
|
|
146
156
|
# Calculates hash code according to all attributes.
|
147
157
|
# @return [Integer] Hash code
|
148
158
|
def hash
|
149
|
-
[name, namespace].hash
|
159
|
+
[repository, name, namespace].hash
|
150
160
|
end
|
151
161
|
|
152
162
|
# Builds the object from hash
|
@@ -13,45 +13,41 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
# A serializer for
|
17
|
-
class
|
18
|
-
attr_accessor :
|
16
|
+
# A serializer for Ansible Collection Deprecations.
|
17
|
+
class AnsibleAnsibleCollectionDeprecatedResponse
|
18
|
+
attr_accessor :pulp_href
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
22
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
25
|
-
|
26
|
-
# Create a collection dict.
|
27
|
-
attr_accessor :collection
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
28
25
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
26
|
+
# The name of the Collection.
|
27
|
+
attr_accessor :name
|
31
28
|
|
32
|
-
|
29
|
+
# The namespace of the Collection.
|
30
|
+
attr_accessor :namespace
|
33
31
|
|
34
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
33
|
def self.attribute_map
|
36
34
|
{
|
37
|
-
:'
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'metadata' => :'metadata'
|
35
|
+
:'pulp_href' => :'pulp_href',
|
36
|
+
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
38
|
+
:'name' => :'name',
|
39
|
+
:'namespace' => :'namespace'
|
43
40
|
}
|
44
41
|
end
|
45
42
|
|
46
43
|
# Attribute type mapping.
|
47
44
|
def self.openapi_types
|
48
45
|
{
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'metadata' => :'CollectionMetadataResponse'
|
46
|
+
:'pulp_href' => :'String',
|
47
|
+
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
49
|
+
:'name' => :'String',
|
50
|
+
:'namespace' => :'String'
|
55
51
|
}
|
56
52
|
end
|
57
53
|
|
@@ -65,39 +61,35 @@ module PulpAnsibleClient
|
|
65
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
66
62
|
def initialize(attributes = {})
|
67
63
|
if (!attributes.is_a?(Hash))
|
68
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse` initialize method"
|
69
65
|
end
|
70
66
|
|
71
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
72
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecatedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
71
|
end
|
76
72
|
h[k.to_sym] = v
|
77
73
|
}
|
78
74
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
75
|
+
if attributes.key?(:'pulp_href')
|
76
|
+
self.pulp_href = attributes[:'pulp_href']
|
81
77
|
end
|
82
78
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
79
|
+
if attributes.key?(:'pulp_created')
|
80
|
+
self.pulp_created = attributes[:'pulp_created']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
83
|
+
if attributes.key?(:'pulp_last_updated')
|
84
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'name')
|
88
|
+
self.name = attributes[:'name']
|
93
89
|
end
|
94
90
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'metadata')
|
100
|
-
self.metadata = attributes[:'metadata']
|
91
|
+
if attributes.key?(:'namespace')
|
92
|
+
self.namespace = attributes[:'namespace']
|
101
93
|
end
|
102
94
|
end
|
103
95
|
|
@@ -105,12 +97,12 @@ module PulpAnsibleClient
|
|
105
97
|
# @return Array for valid properties with the reasons
|
106
98
|
def list_invalid_properties
|
107
99
|
invalid_properties = Array.new
|
108
|
-
if @
|
109
|
-
invalid_properties.push('invalid value for "
|
100
|
+
if @name.nil?
|
101
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
110
102
|
end
|
111
103
|
|
112
|
-
if @
|
113
|
-
invalid_properties.push('invalid value for "
|
104
|
+
if @namespace.nil?
|
105
|
+
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
114
106
|
end
|
115
107
|
|
116
108
|
invalid_properties
|
@@ -119,8 +111,8 @@ module PulpAnsibleClient
|
|
119
111
|
# Check to see if the all the properties in the model are valid
|
120
112
|
# @return true if the model is valid
|
121
113
|
def valid?
|
122
|
-
return false if @
|
123
|
-
return false if @
|
114
|
+
return false if @name.nil?
|
115
|
+
return false if @namespace.nil?
|
124
116
|
true
|
125
117
|
end
|
126
118
|
|
@@ -129,12 +121,11 @@ module PulpAnsibleClient
|
|
129
121
|
def ==(o)
|
130
122
|
return true if self.equal?(o)
|
131
123
|
self.class == o.class &&
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
metadata == o.metadata
|
124
|
+
pulp_href == o.pulp_href &&
|
125
|
+
pulp_created == o.pulp_created &&
|
126
|
+
pulp_last_updated == o.pulp_last_updated &&
|
127
|
+
name == o.name &&
|
128
|
+
namespace == o.namespace
|
138
129
|
end
|
139
130
|
|
140
131
|
# @see the `==` method
|
@@ -146,7 +137,7 @@ module PulpAnsibleClient
|
|
146
137
|
# Calculates hash code according to all attributes.
|
147
138
|
# @return [Integer] Hash code
|
148
139
|
def hash
|
149
|
-
[
|
140
|
+
[pulp_href, pulp_created, pulp_last_updated, name, namespace].hash
|
150
141
|
end
|
151
142
|
|
152
143
|
# Builds the object from hash
|
@@ -364,20 +364,20 @@ module PulpAnsibleClient
|
|
364
364
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
368
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
367
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
368
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
369
369
|
end
|
370
370
|
|
371
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
372
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
371
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
372
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
373
373
|
end
|
374
374
|
|
375
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
376
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
375
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
376
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
377
377
|
end
|
378
378
|
|
379
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
380
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
379
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
380
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
381
381
|
end
|
382
382
|
|
383
383
|
if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
@@ -419,10 +419,10 @@ module PulpAnsibleClient
|
|
419
419
|
return false if !@username.nil? && @username.to_s.length < 1
|
420
420
|
return false if !@password.nil? && @password.to_s.length < 1
|
421
421
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
422
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
423
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
424
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
425
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
422
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
423
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
424
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
425
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
426
426
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
427
427
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
428
428
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
@@ -552,8 +552,8 @@ module PulpAnsibleClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] total_timeout Value to be assigned
|
554
554
|
def total_timeout=(total_timeout)
|
555
|
-
if !total_timeout.nil? && total_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
555
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@total_timeout = total_timeout
|
@@ -562,8 +562,8 @@ module PulpAnsibleClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] connect_timeout Value to be assigned
|
564
564
|
def connect_timeout=(connect_timeout)
|
565
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
565
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@connect_timeout = connect_timeout
|
@@ -572,8 +572,8 @@ module PulpAnsibleClient
|
|
572
572
|
# Custom attribute writer method with validation
|
573
573
|
# @param [Object] sock_connect_timeout Value to be assigned
|
574
574
|
def sock_connect_timeout=(sock_connect_timeout)
|
575
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
575
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
576
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
577
577
|
end
|
578
578
|
|
579
579
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -582,8 +582,8 @@ module PulpAnsibleClient
|
|
582
582
|
# Custom attribute writer method with validation
|
583
583
|
# @param [Object] sock_read_timeout Value to be assigned
|
584
584
|
def sock_read_timeout=(sock_read_timeout)
|
585
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
585
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
586
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
587
587
|
end
|
588
588
|
|
589
589
|
@sock_read_timeout = sock_read_timeout
|
@@ -309,20 +309,20 @@ module PulpAnsibleClient
|
|
309
309
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
312
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
313
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
316
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
317
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
318
318
|
end
|
319
319
|
|
320
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
321
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
320
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
321
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
322
322
|
end
|
323
323
|
|
324
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
325
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
324
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
325
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
326
326
|
end
|
327
327
|
|
328
328
|
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
@@ -338,10 +338,10 @@ module PulpAnsibleClient
|
|
338
338
|
return false if @name.nil?
|
339
339
|
return false if @url.nil?
|
340
340
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
341
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
342
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
343
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
344
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
341
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
342
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
343
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
344
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
345
345
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
346
346
|
true
|
347
347
|
end
|
@@ -359,8 +359,8 @@ module PulpAnsibleClient
|
|
359
359
|
# Custom attribute writer method with validation
|
360
360
|
# @param [Object] total_timeout Value to be assigned
|
361
361
|
def total_timeout=(total_timeout)
|
362
|
-
if !total_timeout.nil? && total_timeout < 0
|
363
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
362
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
363
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
364
364
|
end
|
365
365
|
|
366
366
|
@total_timeout = total_timeout
|
@@ -369,8 +369,8 @@ module PulpAnsibleClient
|
|
369
369
|
# Custom attribute writer method with validation
|
370
370
|
# @param [Object] connect_timeout Value to be assigned
|
371
371
|
def connect_timeout=(connect_timeout)
|
372
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
373
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
372
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
373
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
374
374
|
end
|
375
375
|
|
376
376
|
@connect_timeout = connect_timeout
|
@@ -379,8 +379,8 @@ module PulpAnsibleClient
|
|
379
379
|
# Custom attribute writer method with validation
|
380
380
|
# @param [Object] sock_connect_timeout Value to be assigned
|
381
381
|
def sock_connect_timeout=(sock_connect_timeout)
|
382
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
383
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
382
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
383
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
384
384
|
end
|
385
385
|
|
386
386
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -389,8 +389,8 @@ module PulpAnsibleClient
|
|
389
389
|
# Custom attribute writer method with validation
|
390
390
|
# @param [Object] sock_read_timeout Value to be assigned
|
391
391
|
def sock_read_timeout=(sock_read_timeout)
|
392
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
393
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
392
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
393
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
394
394
|
end
|
395
395
|
|
396
396
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An uncommitted upload that may be turned into the content unit.
|
19
|
+
attr_accessor :upload
|
20
20
|
|
21
21
|
# An uploaded file that may be turned into the content unit.
|
22
22
|
attr_accessor :file
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# Artifact file representing the physical content
|
25
|
+
attr_accessor :artifact
|
26
26
|
|
27
27
|
# A URI of a repository the new content unit should be associated with.
|
28
28
|
attr_accessor :repository
|
@@ -39,9 +39,9 @@ module PulpAnsibleClient
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'artifact' => :'artifact',
|
43
|
-
:'file' => :'file',
|
44
42
|
:'upload' => :'upload',
|
43
|
+
:'file' => :'file',
|
44
|
+
:'artifact' => :'artifact',
|
45
45
|
:'repository' => :'repository',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
@@ -52,9 +52,9 @@ module PulpAnsibleClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'artifact' => :'String',
|
56
|
-
:'file' => :'File',
|
57
55
|
:'upload' => :'String',
|
56
|
+
:'file' => :'File',
|
57
|
+
:'artifact' => :'String',
|
58
58
|
:'repository' => :'String',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
@@ -83,16 +83,16 @@ module PulpAnsibleClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
86
|
+
if attributes.key?(:'upload')
|
87
|
+
self.upload = attributes[:'upload']
|
88
88
|
end
|
89
89
|
|
90
90
|
if attributes.key?(:'file')
|
91
91
|
self.file = attributes[:'file']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
94
|
+
if attributes.key?(:'artifact')
|
95
|
+
self.artifact = attributes[:'artifact']
|
96
96
|
end
|
97
97
|
|
98
98
|
if attributes.key?(:'repository')
|
@@ -202,9 +202,9 @@ module PulpAnsibleClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
artifact == o.artifact &&
|
206
|
-
file == o.file &&
|
207
205
|
upload == o.upload &&
|
206
|
+
file == o.file &&
|
207
|
+
artifact == o.artifact &&
|
208
208
|
repository == o.repository &&
|
209
209
|
expected_name == o.expected_name &&
|
210
210
|
expected_namespace == o.expected_namespace &&
|
@@ -220,7 +220,7 @@ module PulpAnsibleClient
|
|
220
220
|
# Calculates hash code according to all attributes.
|
221
221
|
# @return [Integer] Hash code
|
222
222
|
def hash
|
223
|
-
[
|
223
|
+
[upload, file, artifact, repository, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|