pulp_ansible_client 0.21.10 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -19
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  7. data/docs/AnsibleCollectionsApi.md +61 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +27 -27
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +11 -11
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +3 -3
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +1 -1
  28. data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  29. data/docs/PatchedansibleGitRemote.md +30 -30
  30. data/docs/PulpAnsibleApiApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3Api.md +1 -1
  32. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  48. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  69. data/docs/PulpAnsibleTagsApi.md +1 -1
  70. data/docs/RemotesCollectionApi.md +1 -1
  71. data/docs/RemotesGitApi.md +1 -1
  72. data/docs/RemotesRoleApi.md +1 -1
  73. data/docs/RepositoriesAnsibleApi.md +1 -1
  74. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  75. data/docs/VersionsApi.md +1 -56
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  78. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  79. 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
  80. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  81. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  82. data/lib/pulp_ansible_client/configuration.rb +2 -2
  83. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  84. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  85. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +16 -16
  87. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
  88. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
  89. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  90. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  91. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  92. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  93. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  94. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  95. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  97. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  98. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -249
  99. data/lib/pulp_ansible_client/version.rb +1 -1
  100. data/lib/pulp_ansible_client.rb +4 -10
  101. data/spec/api/ansible_collections_api_spec.rb +14 -0
  102. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  103. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  104. 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
  105. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  106. data/spec/api/versions_api_spec.rb +0 -14
  107. data/spec/configuration_spec.rb +3 -3
  108. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  109. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  110. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  111. data/spec/models/ansible_collection_version_spec.rb +4 -4
  112. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  113. data/spec/models/ansible_git_remote_spec.rb +20 -20
  114. data/spec/models/ansible_role_response_spec.rb +4 -4
  115. data/spec/models/ansible_role_spec.rb +2 -2
  116. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  117. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  118. metadata +157 -181
  119. data/docs/ApiCollectionsApi.md +0 -112
  120. data/docs/GalaxyCollection.md +0 -23
  121. data/docs/GalaxyCollectionResponse.md +0 -31
  122. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  123. data/docs/GalaxyDetailApi.md +0 -61
  124. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  125. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  126. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  127. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  128. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  129. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  130. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  131. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  132. data/spec/api/api_collections_api_spec.rb +0 -61
  133. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  134. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  135. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  136. data/spec/models/galaxy_collection_spec.rb +0 -59
  137. 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 = 'localhost'
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://localhost:24817/",
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 Collections.
17
- class AnsibleCollection
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::AnsibleCollection` initialize method"
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::AnsibleCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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 a CollectionVersion.
17
- class GalaxyCollectionVersionResponse
18
- attr_accessor :version
16
+ # A serializer for Ansible Collection Deprecations.
17
+ class AnsibleAnsibleCollectionDeprecatedResponse
18
+ attr_accessor :pulp_href
19
19
 
20
- # Get href.
21
- attr_accessor :href
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
22
 
23
- # Create a namespace dict.
24
- attr_accessor :namespace
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
- # Create an artifact dict.
30
- attr_accessor :artifact
26
+ # The name of the Collection.
27
+ attr_accessor :name
31
28
 
32
- attr_accessor :metadata
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
- :'version' => :'version',
38
- :'href' => :'href',
39
- :'namespace' => :'namespace',
40
- :'collection' => :'collection',
41
- :'artifact' => :'artifact',
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
- :'version' => :'String',
50
- :'href' => :'String',
51
- :'namespace' => :'Object',
52
- :'collection' => :'Object',
53
- :'artifact' => :'Object',
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::GalaxyCollectionVersionResponse` initialize method"
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::GalaxyCollectionVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'version')
80
- self.version = attributes[:'version']
75
+ if attributes.key?(:'pulp_href')
76
+ self.pulp_href = attributes[:'pulp_href']
81
77
  end
82
78
 
83
- if attributes.key?(:'href')
84
- self.href = attributes[:'href']
79
+ if attributes.key?(:'pulp_created')
80
+ self.pulp_created = attributes[:'pulp_created']
85
81
  end
86
82
 
87
- if attributes.key?(:'namespace')
88
- self.namespace = attributes[:'namespace']
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?(:'collection')
92
- self.collection = attributes[:'collection']
87
+ if attributes.key?(:'name')
88
+ self.name = attributes[:'name']
93
89
  end
94
90
 
95
- if attributes.key?(:'artifact')
96
- self.artifact = attributes[:'artifact']
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 @version.nil?
109
- invalid_properties.push('invalid value for "version", version cannot be nil.')
100
+ if @name.nil?
101
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
110
102
  end
111
103
 
112
- if @metadata.nil?
113
- invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
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 @version.nil?
123
- return false if @metadata.nil?
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
- version == o.version &&
133
- href == o.href &&
134
- namespace == o.namespace &&
135
- collection == o.collection &&
136
- artifact == o.artifact &&
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
- [version, href, namespace, collection, artifact, metadata].hash
140
+ [pulp_href, pulp_created, pulp_last_updated, name, namespace].hash
150
141
  end
151
142
 
152
143
  # Builds the object from hash
@@ -15,9 +15,6 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersion
18
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
18
  # An uncommitted upload that may be turned into the content unit.
22
19
  attr_accessor :upload
23
20
 
@@ -27,6 +24,9 @@ module PulpAnsibleClient
27
24
  # Artifact file representing the physical content
28
25
  attr_accessor :artifact
29
26
 
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
29
+
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -39,10 +39,10 @@ module PulpAnsibleClient
39
39
  # Attribute mapping from ruby-style variable name to JSON key.
40
40
  def self.attribute_map
41
41
  {
42
- :'repository' => :'repository',
43
42
  :'upload' => :'upload',
44
43
  :'file' => :'file',
45
44
  :'artifact' => :'artifact',
45
+ :'repository' => :'repository',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -52,10 +52,10 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'repository' => :'String',
56
55
  :'upload' => :'String',
57
56
  :'file' => :'File',
58
57
  :'artifact' => :'String',
58
+ :'repository' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -83,10 +83,6 @@ module PulpAnsibleClient
83
83
  h[k.to_sym] = v
84
84
  }
85
85
 
86
- if attributes.key?(:'repository')
87
- self.repository = attributes[:'repository']
88
- end
89
-
90
86
  if attributes.key?(:'upload')
91
87
  self.upload = attributes[:'upload']
92
88
  end
@@ -99,6 +95,10 @@ module PulpAnsibleClient
99
95
  self.artifact = attributes[:'artifact']
100
96
  end
101
97
 
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -202,10 +202,10 @@ module PulpAnsibleClient
202
202
  def ==(o)
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
- repository == o.repository &&
206
205
  upload == o.upload &&
207
206
  file == o.file &&
208
207
  artifact == o.artifact &&
208
+ repository == o.repository &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
211
211
  expected_version == o.expected_version
@@ -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
- [repository, upload, file, artifact, expected_name, expected_namespace, expected_version].hash
223
+ [upload, file, artifact, repository, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,9 +15,6 @@ 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
-
21
18
  # 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.
22
19
  attr_accessor :pulp_last_updated
23
20
 
@@ -26,6 +23,9 @@ module PulpAnsibleClient
26
23
 
27
24
  attr_accessor :pulp_href
28
25
 
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
28
+
29
29
  # The SHA-256 checksum if available.
30
30
  attr_accessor :sha256
31
31
 
@@ -100,10 +100,10 @@ module PulpAnsibleClient
100
100
  # Attribute mapping from ruby-style variable name to JSON key.
101
101
  def self.attribute_map
102
102
  {
103
- :'pulp_created' => :'pulp_created',
104
103
  :'pulp_last_updated' => :'pulp_last_updated',
105
104
  :'artifact' => :'artifact',
106
105
  :'pulp_href' => :'pulp_href',
106
+ :'pulp_created' => :'pulp_created',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -134,10 +134,10 @@ module PulpAnsibleClient
134
134
  # Attribute type mapping.
135
135
  def self.openapi_types
136
136
  {
137
- :'pulp_created' => :'DateTime',
138
137
  :'pulp_last_updated' => :'DateTime',
139
138
  :'artifact' => :'String',
140
139
  :'pulp_href' => :'String',
140
+ :'pulp_created' => :'DateTime',
141
141
  :'sha256' => :'String',
142
142
  :'md5' => :'String',
143
143
  :'sha1' => :'String',
@@ -146,12 +146,12 @@ module PulpAnsibleClient
146
146
  :'sha512' => :'String',
147
147
  :'id' => :'String',
148
148
  :'authors' => :'Array<String>',
149
- :'contents' => :'Object',
150
- :'dependencies' => :'Object',
149
+ :'contents' => :'AnyType',
150
+ :'dependencies' => :'AnyType',
151
151
  :'description' => :'String',
152
- :'docs_blob' => :'Object',
153
- :'manifest' => :'Object',
154
- :'files' => :'Object',
152
+ :'docs_blob' => :'AnyType',
153
+ :'manifest' => :'AnyType',
154
+ :'files' => :'AnyType',
155
155
  :'documentation' => :'String',
156
156
  :'homepage' => :'String',
157
157
  :'issues' => :'String',
@@ -187,10 +187,6 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
192
- end
193
-
194
190
  if attributes.key?(:'pulp_last_updated')
195
191
  self.pulp_last_updated = attributes[:'pulp_last_updated']
196
192
  end
@@ -203,6 +199,10 @@ module PulpAnsibleClient
203
199
  self.pulp_href = attributes[:'pulp_href']
204
200
  end
205
201
 
202
+ if attributes.key?(:'pulp_created')
203
+ self.pulp_created = attributes[:'pulp_created']
204
+ end
205
+
206
206
  if attributes.key?(:'sha256')
207
207
  self.sha256 = attributes[:'sha256']
208
208
  end
@@ -444,10 +444,10 @@ module PulpAnsibleClient
444
444
  def ==(o)
445
445
  return true if self.equal?(o)
446
446
  self.class == o.class &&
447
- pulp_created == o.pulp_created &&
448
447
  pulp_last_updated == o.pulp_last_updated &&
449
448
  artifact == o.artifact &&
450
449
  pulp_href == o.pulp_href &&
450
+ pulp_created == o.pulp_created &&
451
451
  sha256 == o.sha256 &&
452
452
  md5 == o.md5 &&
453
453
  sha1 == o.sha1 &&
@@ -483,7 +483,7 @@ module PulpAnsibleClient
483
483
  # Calculates hash code according to all attributes.
484
484
  # @return [Integer] Hash code
485
485
  def hash
486
- [pulp_created, pulp_last_updated, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
486
+ [pulp_last_updated, artifact, pulp_href, pulp_created, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
487
487
  end
488
488
 
489
489
  # Builds the object from hash