pulp_ansible_client 0.21.5 → 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 +8 -15
- data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
- data/docs/AnsibleCollectionRemoteResponse.md +2 -2
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersionResponse.md +11 -9
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleCollectionsApi.md +60 -0
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRoleRemoteResponse.md +2 -2
- data/docs/AnsibleRoleResponse.md +6 -4
- 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 +10 -10
- data/docs/Copy.md +1 -1
- data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
- data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedTagResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
- data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
- data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
- data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
- data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
- data/docs/PaginatedansibleRoleResponseList.md +2 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RepositoryResponse.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/VersionsApi.md +0 -55
- 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/versions_api.rb +0 -69
- 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_ansible_repository_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +30 -20
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -153
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +25 -15
- 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_role_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -9
- data/spec/api/ansible_collections_api_spec.rb +14 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
- data/spec/api/versions_api_spec.rb +0 -14
- 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_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
- data/spec/models/ansible_collection_version_response_spec.rb +8 -2
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_remote_response_spec.rb +6 -6
- data/spec/models/ansible_role_response_spec.rb +8 -2
- 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
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +135 -159
- 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/PaginatedGalaxyCollectionResponseList.md +0 -23
- 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_version_response_list.rb +0 -237
- 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
@@ -20,27 +20,27 @@ module PulpAnsibleClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Create an ansible collection deprecated
|
23
|
-
#
|
24
|
-
# @param
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
|
+
# @param ansible_ansible_collection_deprecated [AnsibleAnsibleCollectionDeprecated]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
26
|
+
# @return [AsyncOperationResponse]
|
27
|
+
def create(ansible_ansible_collection_deprecated, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(ansible_ansible_collection_deprecated, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Create an ansible collection deprecated
|
33
|
-
#
|
34
|
-
# @param
|
33
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
34
|
+
# @param ansible_ansible_collection_deprecated [AnsibleAnsibleCollectionDeprecated]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
37
|
-
def create_with_http_info(
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
+
def create_with_http_info(ansible_ansible_collection_deprecated, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.create ...'
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'ansible_ansible_collection_deprecated' is set
|
42
|
+
if @api_client.config.client_side_validation && ansible_ansible_collection_deprecated.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_collection_deprecated' when calling ContentCollectionDeprecationsApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/content/ansible/collection_deprecations/'
|
@@ -59,10 +59,10 @@ module PulpAnsibleClient
|
|
59
59
|
form_params = opts[:form_params] || {}
|
60
60
|
|
61
61
|
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ansible_ansible_collection_deprecated)
|
63
63
|
|
64
64
|
# return_type
|
65
|
-
return_type = opts[:return_type] || '
|
65
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
66
66
|
|
67
67
|
# auth_names
|
68
68
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -98,7 +98,7 @@ module PulpAnsibleClient
|
|
98
98
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
99
99
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
100
100
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
101
|
-
# @return [
|
101
|
+
# @return [PaginatedansibleAnsibleCollectionDeprecatedResponseList]
|
102
102
|
def list(opts = {})
|
103
103
|
data, _status_code, _headers = list_with_http_info(opts)
|
104
104
|
data
|
@@ -119,7 +119,7 @@ module PulpAnsibleClient
|
|
119
119
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
120
120
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
121
121
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
122
|
-
# @return [Array<(
|
122
|
+
# @return [Array<(PaginatedansibleAnsibleCollectionDeprecatedResponseList, Integer, Hash)>] PaginatedansibleAnsibleCollectionDeprecatedResponseList data, response status code and response headers
|
123
123
|
def list_with_http_info(opts = {})
|
124
124
|
if @api_client.config.debugging
|
125
125
|
@api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.list ...'
|
@@ -158,7 +158,7 @@ module PulpAnsibleClient
|
|
158
158
|
post_body = opts[:body]
|
159
159
|
|
160
160
|
# return_type
|
161
|
-
return_type = opts[:return_type] || '
|
161
|
+
return_type = opts[:return_type] || 'PaginatedansibleAnsibleCollectionDeprecatedResponseList'
|
162
162
|
|
163
163
|
# auth_names
|
164
164
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -185,7 +185,7 @@ module PulpAnsibleClient
|
|
185
185
|
# @param [Hash] opts the optional parameters
|
186
186
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
187
187
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
188
|
-
# @return [
|
188
|
+
# @return [AnsibleAnsibleCollectionDeprecatedResponse]
|
189
189
|
def read(ansible_ansible_collection_deprecated_href, opts = {})
|
190
190
|
data, _status_code, _headers = read_with_http_info(ansible_ansible_collection_deprecated_href, opts)
|
191
191
|
data
|
@@ -197,7 +197,7 @@ module PulpAnsibleClient
|
|
197
197
|
# @param [Hash] opts the optional parameters
|
198
198
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
199
199
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
200
|
-
# @return [Array<(
|
200
|
+
# @return [Array<(AnsibleAnsibleCollectionDeprecatedResponse, Integer, Hash)>] AnsibleAnsibleCollectionDeprecatedResponse data, response status code and response headers
|
201
201
|
def read_with_http_info(ansible_ansible_collection_deprecated_href, opts = {})
|
202
202
|
if @api_client.config.debugging
|
203
203
|
@api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.read ...'
|
@@ -226,7 +226,7 @@ module PulpAnsibleClient
|
|
226
226
|
post_body = opts[:body]
|
227
227
|
|
228
228
|
# return_type
|
229
|
-
return_type = opts[:return_type] || '
|
229
|
+
return_type = opts[:return_type] || 'AnsibleAnsibleCollectionDeprecatedResponse'
|
230
230
|
|
231
231
|
# auth_names
|
232
232
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -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
|
@@ -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
|
@@ -20,6 +20,9 @@ module PulpAnsibleClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
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
|
25
|
+
|
23
26
|
attr_accessor :versions_href
|
24
27
|
|
25
28
|
attr_accessor :pulp_labels
|
@@ -53,6 +56,7 @@ module PulpAnsibleClient
|
|
53
56
|
{
|
54
57
|
:'pulp_href' => :'pulp_href',
|
55
58
|
:'pulp_created' => :'pulp_created',
|
59
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
56
60
|
:'versions_href' => :'versions_href',
|
57
61
|
:'pulp_labels' => :'pulp_labels',
|
58
62
|
:'latest_version_href' => :'latest_version_href',
|
@@ -72,6 +76,7 @@ module PulpAnsibleClient
|
|
72
76
|
{
|
73
77
|
:'pulp_href' => :'String',
|
74
78
|
:'pulp_created' => :'DateTime',
|
79
|
+
:'pulp_last_updated' => :'DateTime',
|
75
80
|
:'versions_href' => :'String',
|
76
81
|
:'pulp_labels' => :'Hash<String, String>',
|
77
82
|
:'latest_version_href' => :'String',
|
@@ -120,6 +125,10 @@ module PulpAnsibleClient
|
|
120
125
|
self.pulp_created = attributes[:'pulp_created']
|
121
126
|
end
|
122
127
|
|
128
|
+
if attributes.key?(:'pulp_last_updated')
|
129
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
130
|
+
end
|
131
|
+
|
123
132
|
if attributes.key?(:'versions_href')
|
124
133
|
self.versions_href = attributes[:'versions_href']
|
125
134
|
end
|
@@ -207,6 +216,7 @@ module PulpAnsibleClient
|
|
207
216
|
self.class == o.class &&
|
208
217
|
pulp_href == o.pulp_href &&
|
209
218
|
pulp_created == o.pulp_created &&
|
219
|
+
pulp_last_updated == o.pulp_last_updated &&
|
210
220
|
versions_href == o.versions_href &&
|
211
221
|
pulp_labels == o.pulp_labels &&
|
212
222
|
latest_version_href == o.latest_version_href &&
|
@@ -229,7 +239,7 @@ module PulpAnsibleClient
|
|
229
239
|
# Calculates hash code according to all attributes.
|
230
240
|
# @return [Integer] Hash code
|
231
241
|
def hash
|
232
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
|
242
|
+
[pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, last_sync_task, private].hash
|
233
243
|
end
|
234
244
|
|
235
245
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpAnsibleClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the most recent update of the remote.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# A unique name for this remote.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -40,9 +43,6 @@ module PulpAnsibleClient
|
|
40
43
|
|
41
44
|
attr_accessor :pulp_labels
|
42
45
|
|
43
|
-
# Timestamp of the most recent update of the remote.
|
44
|
-
attr_accessor :pulp_last_updated
|
45
|
-
|
46
46
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
@@ -92,6 +92,7 @@ module PulpAnsibleClient
|
|
92
92
|
{
|
93
93
|
:'pulp_href' => :'pulp_href',
|
94
94
|
:'pulp_created' => :'pulp_created',
|
95
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
95
96
|
:'name' => :'name',
|
96
97
|
:'url' => :'url',
|
97
98
|
:'ca_cert' => :'ca_cert',
|
@@ -99,7 +100,6 @@ module PulpAnsibleClient
|
|
99
100
|
:'tls_validation' => :'tls_validation',
|
100
101
|
:'proxy_url' => :'proxy_url',
|
101
102
|
:'pulp_labels' => :'pulp_labels',
|
102
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
103
103
|
:'download_concurrency' => :'download_concurrency',
|
104
104
|
:'max_retries' => :'max_retries',
|
105
105
|
:'policy' => :'policy',
|
@@ -123,6 +123,7 @@ module PulpAnsibleClient
|
|
123
123
|
{
|
124
124
|
:'pulp_href' => :'String',
|
125
125
|
:'pulp_created' => :'DateTime',
|
126
|
+
:'pulp_last_updated' => :'DateTime',
|
126
127
|
:'name' => :'String',
|
127
128
|
:'url' => :'String',
|
128
129
|
:'ca_cert' => :'String',
|
@@ -130,7 +131,6 @@ module PulpAnsibleClient
|
|
130
131
|
:'tls_validation' => :'Boolean',
|
131
132
|
:'proxy_url' => :'String',
|
132
133
|
:'pulp_labels' => :'Hash<String, String>',
|
133
|
-
:'pulp_last_updated' => :'DateTime',
|
134
134
|
:'download_concurrency' => :'Integer',
|
135
135
|
:'max_retries' => :'Integer',
|
136
136
|
:'policy' => :'PolicyEnum',
|
@@ -190,6 +190,10 @@ module PulpAnsibleClient
|
|
190
190
|
self.pulp_created = attributes[:'pulp_created']
|
191
191
|
end
|
192
192
|
|
193
|
+
if attributes.key?(:'pulp_last_updated')
|
194
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
195
|
+
end
|
196
|
+
|
193
197
|
if attributes.key?(:'name')
|
194
198
|
self.name = attributes[:'name']
|
195
199
|
end
|
@@ -220,10 +224,6 @@ module PulpAnsibleClient
|
|
220
224
|
end
|
221
225
|
end
|
222
226
|
|
223
|
-
if attributes.key?(:'pulp_last_updated')
|
224
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
225
|
-
end
|
226
|
-
|
227
227
|
if attributes.key?(:'download_concurrency')
|
228
228
|
self.download_concurrency = attributes[:'download_concurrency']
|
229
229
|
end
|
@@ -413,6 +413,7 @@ module PulpAnsibleClient
|
|
413
413
|
self.class == o.class &&
|
414
414
|
pulp_href == o.pulp_href &&
|
415
415
|
pulp_created == o.pulp_created &&
|
416
|
+
pulp_last_updated == o.pulp_last_updated &&
|
416
417
|
name == o.name &&
|
417
418
|
url == o.url &&
|
418
419
|
ca_cert == o.ca_cert &&
|
@@ -420,7 +421,6 @@ module PulpAnsibleClient
|
|
420
421
|
tls_validation == o.tls_validation &&
|
421
422
|
proxy_url == o.proxy_url &&
|
422
423
|
pulp_labels == o.pulp_labels &&
|
423
|
-
pulp_last_updated == o.pulp_last_updated &&
|
424
424
|
download_concurrency == o.download_concurrency &&
|
425
425
|
max_retries == o.max_retries &&
|
426
426
|
policy == o.policy &&
|
@@ -447,7 +447,7 @@ module PulpAnsibleClient
|
|
447
447
|
# Calculates hash code according to all attributes.
|
448
448
|
# @return [Integer] Hash code
|
449
449
|
def hash
|
450
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels,
|
450
|
+
[pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, requirements_file, auth_url, sync_dependencies, signed_only, last_sync_task].hash
|
451
451
|
end
|
452
452
|
|
453
453
|
# Builds the object from hash
|
@@ -68,12 +68,22 @@ module PulpAnsibleClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
+
if @name.nil?
|
72
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @is_set.nil?
|
76
|
+
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @name.nil?
|
86
|
+
return false if @is_set.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|