pulp_ansible_client 0.22.1 → 0.22.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  5. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  6. data/docs/AnsibleCollectionVersion.md +6 -4
  7. data/docs/AnsibleCollectionVersionResponse.md +12 -10
  8. data/docs/AnsibleCollectionVersionSignature.md +2 -0
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +4 -2
  11. data/docs/AnsibleGitRemote.md +26 -26
  12. data/docs/AnsibleGitRemoteResponse.md +24 -22
  13. data/docs/AnsibleRole.md +3 -3
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -0
  15. data/docs/AnsibleRoleResponse.md +7 -5
  16. data/docs/CollectionImportDetailResponse.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/CollectionVersionSearchList.md +0 -2
  21. data/docs/ContentCollectionDeprecationsApi.md +10 -8
  22. data/docs/ContentCollectionMarksApi.md +10 -8
  23. data/docs/ContentCollectionSignaturesApi.md +13 -9
  24. data/docs/ContentCollectionVersionsApi.md +14 -10
  25. data/docs/ContentNamespacesApi.md +10 -8
  26. data/docs/ContentRolesApi.md +10 -8
  27. data/docs/Copy.md +1 -1
  28. data/docs/DistributionsAnsibleApi.md +4 -2
  29. data/docs/PatchedansibleGitRemote.md +26 -26
  30. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +4 -2
  31. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -2
  32. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +8 -6
  33. data/docs/PulpAnsibleApiV3NamespacesApi.md +4 -2
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +4 -2
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -2
  40. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +8 -6
  41. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +4 -2
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +4 -2
  46. data/docs/RemotesCollectionApi.md +4 -2
  47. data/docs/RemotesGitApi.md +4 -2
  48. data/docs/RemotesRoleApi.md +4 -2
  49. data/docs/RepositoriesAnsibleApi.md +8 -6
  50. data/docs/RepositoriesAnsibleVersionsApi.md +8 -6
  51. data/docs/RepositoryResponse.md +2 -0
  52. data/docs/RepositoryVersionResponse.md +2 -0
  53. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
  54. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
  55. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
  56. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
  57. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +22 -12
  58. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
  59. data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
  60. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
  62. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
  63. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +9 -6
  64. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
  65. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  67. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  68. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +9 -6
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
  77. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
  78. data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
  79. data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
  80. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
  81. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
  82. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
  83. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  84. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -1
  85. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +40 -15
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -23
  87. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
  88. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  89. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  90. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +146 -136
  91. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  92. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -1
  93. data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -18
  94. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  95. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  97. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  98. data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
  99. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  100. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +218 -218
  101. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  102. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  103. data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
  104. data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/spec/api/ansible_collections_api_spec.rb +2 -1
  107. data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
  108. data/spec/api/content_collection_marks_api_spec.rb +5 -4
  109. data/spec/api/content_collection_signatures_api_spec.rb +6 -4
  110. data/spec/api/content_collection_versions_api_spec.rb +7 -5
  111. data/spec/api/content_namespaces_api_spec.rb +5 -4
  112. data/spec/api/content_roles_api_spec.rb +5 -4
  113. data/spec/api/distributions_ansible_api_spec.rb +2 -1
  114. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
  115. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
  116. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -3
  117. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
  118. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  119. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  120. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  121. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  122. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
  123. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
  124. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -3
  125. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
  126. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
  127. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
  128. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
  129. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
  130. data/spec/api/remotes_collection_api_spec.rb +2 -1
  131. data/spec/api/remotes_git_api_spec.rb +2 -1
  132. data/spec/api/remotes_role_api_spec.rb +2 -1
  133. data/spec/api/repositories_ansible_api_spec.rb +4 -3
  134. data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
  135. data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
  136. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  137. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  138. data/spec/models/ansible_collection_version_response_spec.rb +10 -4
  139. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  140. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  141. data/spec/models/ansible_collection_version_spec.rb +8 -2
  142. data/spec/models/ansible_git_remote_response_spec.rb +24 -18
  143. data/spec/models/ansible_git_remote_spec.rb +19 -19
  144. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  145. data/spec/models/ansible_role_response_spec.rb +10 -4
  146. data/spec/models/ansible_role_spec.rb +2 -2
  147. data/spec/models/collection_version_search_list_spec.rb +0 -6
  148. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  149. data/spec/models/repository_response_spec.rb +6 -0
  150. data/spec/models/repository_version_response_spec.rb +6 -0
  151. metadata +127 -127
@@ -15,16 +15,19 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
20
+
21
+ # 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
+ attr_accessor :pulp_last_updated
23
+
18
24
  # Timestamp of creation.
19
25
  attr_accessor :pulp_created
20
26
 
21
27
  attr_accessor :pulp_href
22
28
 
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
-
26
- # Artifact file representing the physical content
27
- attr_accessor :artifact
29
+ # The Pulp Resource Name (PRN).
30
+ attr_accessor :prn
28
31
 
29
32
  attr_accessor :version
30
33
 
@@ -35,10 +38,11 @@ module PulpAnsibleClient
35
38
  # Attribute mapping from ruby-style variable name to JSON key.
36
39
  def self.attribute_map
37
40
  {
41
+ :'artifact' => :'artifact',
42
+ :'pulp_last_updated' => :'pulp_last_updated',
38
43
  :'pulp_created' => :'pulp_created',
39
44
  :'pulp_href' => :'pulp_href',
40
- :'pulp_last_updated' => :'pulp_last_updated',
41
- :'artifact' => :'artifact',
45
+ :'prn' => :'prn',
42
46
  :'version' => :'version',
43
47
  :'name' => :'name',
44
48
  :'namespace' => :'namespace'
@@ -48,10 +52,11 @@ module PulpAnsibleClient
48
52
  # Attribute type mapping.
49
53
  def self.openapi_types
50
54
  {
55
+ :'artifact' => :'String',
56
+ :'pulp_last_updated' => :'DateTime',
51
57
  :'pulp_created' => :'DateTime',
52
58
  :'pulp_href' => :'String',
53
- :'pulp_last_updated' => :'DateTime',
54
- :'artifact' => :'String',
59
+ :'prn' => :'String',
55
60
  :'version' => :'String',
56
61
  :'name' => :'String',
57
62
  :'namespace' => :'String'
@@ -79,6 +84,14 @@ module PulpAnsibleClient
79
84
  h[k.to_sym] = v
80
85
  }
81
86
 
87
+ if attributes.key?(:'artifact')
88
+ self.artifact = attributes[:'artifact']
89
+ end
90
+
91
+ if attributes.key?(:'pulp_last_updated')
92
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
93
+ end
94
+
82
95
  if attributes.key?(:'pulp_created')
83
96
  self.pulp_created = attributes[:'pulp_created']
84
97
  end
@@ -87,12 +100,8 @@ module PulpAnsibleClient
87
100
  self.pulp_href = attributes[:'pulp_href']
88
101
  end
89
102
 
90
- if attributes.key?(:'pulp_last_updated')
91
- self.pulp_last_updated = attributes[:'pulp_last_updated']
92
- end
93
-
94
- if attributes.key?(:'artifact')
95
- self.artifact = attributes[:'artifact']
103
+ if attributes.key?(:'prn')
104
+ self.prn = attributes[:'prn']
96
105
  end
97
106
 
98
107
  if attributes.key?(:'version')
@@ -146,10 +155,11 @@ module PulpAnsibleClient
146
155
  def ==(o)
147
156
  return true if self.equal?(o)
148
157
  self.class == o.class &&
158
+ artifact == o.artifact &&
159
+ pulp_last_updated == o.pulp_last_updated &&
149
160
  pulp_created == o.pulp_created &&
150
161
  pulp_href == o.pulp_href &&
151
- pulp_last_updated == o.pulp_last_updated &&
152
- artifact == o.artifact &&
162
+ prn == o.prn &&
153
163
  version == o.version &&
154
164
  name == o.name &&
155
165
  namespace == o.namespace
@@ -164,7 +174,7 @@ module PulpAnsibleClient
164
174
  # Calculates hash code according to all attributes.
165
175
  # @return [Integer] Hash code
166
176
  def hash
167
- [pulp_created, pulp_href, pulp_last_updated, artifact, version, name, namespace].hash
177
+ [artifact, pulp_last_updated, pulp_created, pulp_href, prn, version, name, namespace].hash
168
178
  end
169
179
 
170
180
  # Builds the object from hash
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  :'updated_at' => :'DateTime',
55
55
  :'started_at' => :'DateTime',
56
56
  :'finished_at' => :'DateTime',
57
- :'error' => :'AnyType',
58
- :'messages' => :'AnyType'
57
+ :'error' => :'Object',
58
+ :'messages' => :'Object'
59
59
  }
60
60
  end
61
61
 
@@ -68,8 +68,8 @@ module PulpAnsibleClient
68
68
  :'version' => :'String',
69
69
  :'requires_ansible' => :'String',
70
70
  :'pulp_created' => :'DateTime',
71
- :'contents' => :'AnyType',
72
- :'dependencies' => :'AnyType',
71
+ :'contents' => :'Object',
72
+ :'dependencies' => :'Object',
73
73
  :'description' => :'String',
74
74
  :'tags' => :'Array<AnsibleTagResponse>'
75
75
  }
@@ -27,7 +27,7 @@ module PulpAnsibleClient
27
27
  # Attribute type mapping.
28
28
  def self.openapi_types
29
29
  {
30
- :'docs_blob' => :'AnyType'
30
+ :'docs_blob' => :'Object'
31
31
  }
32
32
  end
33
33
 
@@ -97,8 +97,8 @@ module PulpAnsibleClient
97
97
  :'metadata' => :'CollectionMetadataResponse',
98
98
  :'git_url' => :'String',
99
99
  :'git_commit_sha' => :'String',
100
- :'manifest' => :'AnyType',
101
- :'files' => :'AnyType'
100
+ :'manifest' => :'Object',
101
+ :'files' => :'Object'
102
102
  }
103
103
  end
104
104
 
@@ -17,9 +17,6 @@ module PulpAnsibleClient
17
17
  class CollectionVersionSearchList
18
18
  attr_accessor :repository
19
19
 
20
- # Collection Version serializer without docs blob.
21
- attr_accessor :collection_version
22
-
23
20
  attr_accessor :namespace_metadata
24
21
 
25
22
  attr_accessor :is_highest
@@ -32,7 +29,6 @@ module PulpAnsibleClient
32
29
  def self.attribute_map
33
30
  {
34
31
  :'repository' => :'repository',
35
- :'collection_version' => :'collection_version',
36
32
  :'namespace_metadata' => :'namespace_metadata',
37
33
  :'is_highest' => :'is_highest',
38
34
  :'is_deprecated' => :'is_deprecated',
@@ -44,7 +40,6 @@ module PulpAnsibleClient
44
40
  def self.openapi_types
45
41
  {
46
42
  :'repository' => :'Repository',
47
- :'collection_version' => :'Object',
48
43
  :'namespace_metadata' => :'AnsibleAnsibleNamespaceMetadata',
49
44
  :'is_highest' => :'Boolean',
50
45
  :'is_deprecated' => :'Boolean',
@@ -78,10 +73,6 @@ module PulpAnsibleClient
78
73
  self.repository = attributes[:'repository']
79
74
  end
80
75
 
81
- if attributes.key?(:'collection_version')
82
- self.collection_version = attributes[:'collection_version']
83
- end
84
-
85
76
  if attributes.key?(:'namespace_metadata')
86
77
  self.namespace_metadata = attributes[:'namespace_metadata']
87
78
  end
@@ -107,10 +98,6 @@ module PulpAnsibleClient
107
98
  invalid_properties.push('invalid value for "repository", repository cannot be nil.')
108
99
  end
109
100
 
110
- if @collection_version.nil?
111
- invalid_properties.push('invalid value for "collection_version", collection_version cannot be nil.')
112
- end
113
-
114
101
  if @is_highest.nil?
115
102
  invalid_properties.push('invalid value for "is_highest", is_highest cannot be nil.')
116
103
  end
@@ -130,7 +117,6 @@ module PulpAnsibleClient
130
117
  # @return true if the model is valid
131
118
  def valid?
132
119
  return false if @repository.nil?
133
- return false if @collection_version.nil?
134
120
  return false if @is_highest.nil?
135
121
  return false if @is_deprecated.nil?
136
122
  return false if @is_signed.nil?
@@ -143,7 +129,6 @@ module PulpAnsibleClient
143
129
  return true if self.equal?(o)
144
130
  self.class == o.class &&
145
131
  repository == o.repository &&
146
- collection_version == o.collection_version &&
147
132
  namespace_metadata == o.namespace_metadata &&
148
133
  is_highest == o.is_highest &&
149
134
  is_deprecated == o.is_deprecated &&
@@ -159,7 +144,7 @@ module PulpAnsibleClient
159
144
  # Calculates hash code according to all attributes.
160
145
  # @return [Integer] Hash code
161
146
  def hash
162
- [repository, collection_version, namespace_metadata, is_highest, is_deprecated, is_signed].hash
147
+ [repository, namespace_metadata, is_highest, is_deprecated, is_signed].hash
163
148
  end
164
149
 
165
150
  # Builds the object from hash
@@ -28,7 +28,7 @@ module PulpAnsibleClient
28
28
  # Attribute type mapping.
29
29
  def self.openapi_types
30
30
  {
31
- :'config' => :'AnyType'
31
+ :'config' => :'Object'
32
32
  }
33
33
  end
34
34