pulp_ansible_client 0.18.3 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -47
  3. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  4. data/docs/AnsibleCollectionVersion.md +3 -3
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleCollectionsApi.md +9 -15
  7. data/docs/AnsibleCopyApi.md +1 -1
  8. data/docs/AnsibleGitRemote.md +25 -25
  9. data/docs/AnsibleGitRemoteResponse.md +23 -23
  10. data/docs/AnsibleRole.md +3 -3
  11. data/docs/ApiCollectionsApi.md +1 -1
  12. data/docs/ApiRolesApi.md +1 -1
  13. data/docs/CollectionImportApi.md +1 -1
  14. data/docs/CollectionNamespaceResponse.md +1 -1
  15. data/docs/CollectionResponse.md +5 -3
  16. data/docs/CollectionVersionResponse.md +1 -1
  17. data/docs/CollectionVersionSignatureResponse.md +23 -0
  18. data/docs/ContentCollectionDeprecationsApi.md +1 -3
  19. data/docs/ContentCollectionMarksApi.md +2 -4
  20. data/docs/ContentCollectionSignaturesApi.md +3 -5
  21. data/docs/ContentCollectionVersionsApi.md +5 -5
  22. data/docs/ContentNamespacesApi.md +1 -19
  23. data/docs/ContentRolesApi.md +1 -3
  24. data/docs/DistributionsAnsibleApi.md +10 -136
  25. data/docs/GalaxyDetailApi.md +1 -1
  26. data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
  27. data/docs/PatchedansibleGitRemote.md +25 -25
  28. data/docs/PulpAnsibleApiApi.md +1 -1
  29. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  30. data/docs/PulpAnsibleApiV3Api.md +1 -1
  31. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
  34. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
  38. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  47. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  48. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  68. data/docs/PulpAnsibleTagsApi.md +1 -1
  69. data/docs/RemotesCollectionApi.md +9 -135
  70. data/docs/RemotesGitApi.md +9 -135
  71. data/docs/RemotesRoleApi.md +9 -135
  72. data/docs/RepositoriesAnsibleApi.md +10 -136
  73. data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
  74. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  75. data/docs/VersionsApi.md +1 -1
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
  78. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
  79. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
  80. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  81. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
  82. data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
  83. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  92. 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
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  99. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  102. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
  103. data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
  104. data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
  105. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
  106. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
  107. data/lib/pulp_ansible_client/configuration.rb +3 -3
  108. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  109. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  110. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  111. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  112. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  113. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
  114. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +143 -143
  115. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  116. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  117. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  118. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  119. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  120. data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
  121. data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
  122. data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
  123. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  124. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +216 -216
  125. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  126. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
  127. data/lib/pulp_ansible_client/version.rb +1 -1
  128. data/lib/pulp_ansible_client.rb +3 -5
  129. data/spec/api/ansible_collections_api_spec.rb +0 -5
  130. data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
  131. data/spec/api/content_collection_marks_api_spec.rb +0 -1
  132. data/spec/api/content_collection_signatures_api_spec.rb +0 -1
  133. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  134. data/spec/api/content_namespaces_api_spec.rb +0 -9
  135. data/spec/api/content_roles_api_spec.rb +0 -1
  136. data/spec/api/distributions_ansible_api_spec.rb +0 -35
  137. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
  138. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
  139. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  140. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
  141. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  142. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  143. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  144. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  145. 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
  146. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
  147. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
  148. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  149. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
  150. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  151. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  152. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  153. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  154. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  155. data/spec/api/remotes_collection_api_spec.rb +0 -35
  156. data/spec/api/remotes_git_api_spec.rb +0 -35
  157. data/spec/api/remotes_role_api_spec.rb +0 -35
  158. data/spec/api/repositories_ansible_api_spec.rb +0 -35
  159. data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
  160. data/spec/configuration_spec.rb +3 -3
  161. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  162. data/spec/models/ansible_collection_version_spec.rb +3 -3
  163. data/spec/models/ansible_git_remote_response_spec.rb +16 -16
  164. data/spec/models/ansible_git_remote_spec.rb +19 -19
  165. data/spec/models/ansible_role_spec.rb +2 -2
  166. data/spec/models/collection_response_spec.rb +6 -0
  167. data/spec/models/collection_version_signature_response_spec.rb +59 -0
  168. data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
  169. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  170. metadata +155 -163
  171. data/docs/SetLabel.md +0 -19
  172. data/docs/SetLabelResponse.md +0 -19
  173. data/docs/UnsetLabelResponse.md +0 -19
  174. data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
  175. data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
  176. data/spec/models/set_label_response_spec.rb +0 -47
  177. data/spec/models/set_label_spec.rb +0 -47
  178. data/spec/models/unset_label_response_spec.rb +0 -47
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ # Total number of simultaneous connections. If not set then the default value will be used.
19
+ attr_accessor :download_concurrency
20
+
18
21
  # A unique name for this remote.
19
22
  attr_accessor :name
20
23
 
21
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
- attr_accessor :sock_read_timeout
23
-
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- attr_accessor :pulp_href
28
-
29
24
  # Limits requests per second for each concurrent downloader
30
25
  attr_accessor :rate_limit
31
26
 
32
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
33
- attr_accessor :total_timeout
34
-
35
27
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
28
  attr_accessor :ca_cert
37
29
 
38
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
39
- attr_accessor :max_retries
40
-
41
- # If True, TLS peer validation must be performed.
42
- attr_accessor :tls_validation
43
-
44
30
  # The proxy URL. Format: scheme://host:port
45
31
  attr_accessor :proxy_url
46
32
 
47
- # Total number of simultaneous connections. If not set then the default value will be used.
48
- attr_accessor :download_concurrency
33
+ attr_accessor :pulp_href
34
+
35
+ # Timestamp of the most recent update of the remote.
36
+ attr_accessor :pulp_last_updated
37
+
38
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
+ attr_accessor :sock_connect_timeout
40
+
41
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
+ attr_accessor :total_timeout
43
+
44
+ # The URL of an external content source.
45
+ attr_accessor :url
46
+
47
+ # List of hidden (write only) fields
48
+ attr_accessor :hidden_fields
49
49
 
50
50
  attr_accessor :pulp_labels
51
51
 
52
52
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
53
  attr_accessor :connect_timeout
54
54
 
55
- # List of hidden (write only) fields
56
- attr_accessor :hidden_fields
55
+ # Timestamp of creation.
56
+ attr_accessor :pulp_created
57
57
 
58
58
  # Headers for aiohttp.Clientsession
59
59
  attr_accessor :headers
60
60
 
61
- # A PEM encoded client certificate used for authentication.
62
- attr_accessor :client_cert
61
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
+ attr_accessor :sock_read_timeout
63
63
 
64
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
- attr_accessor :sock_connect_timeout
64
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
65
+ attr_accessor :max_retries
66
66
 
67
- # Timestamp of the most recent update of the remote.
68
- attr_accessor :pulp_last_updated
67
+ # If True, TLS peer validation must be performed.
68
+ attr_accessor :tls_validation
69
69
 
70
- # The URL of an external content source.
71
- attr_accessor :url
70
+ # A PEM encoded client certificate used for authentication.
71
+ attr_accessor :client_cert
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
+ :'download_concurrency' => :'download_concurrency',
82
83
  :'name' => :'name',
83
- :'sock_read_timeout' => :'sock_read_timeout',
84
- :'pulp_created' => :'pulp_created',
85
- :'pulp_href' => :'pulp_href',
86
84
  :'rate_limit' => :'rate_limit',
87
- :'total_timeout' => :'total_timeout',
88
85
  :'ca_cert' => :'ca_cert',
89
- :'max_retries' => :'max_retries',
90
- :'tls_validation' => :'tls_validation',
91
86
  :'proxy_url' => :'proxy_url',
92
- :'download_concurrency' => :'download_concurrency',
87
+ :'pulp_href' => :'pulp_href',
88
+ :'pulp_last_updated' => :'pulp_last_updated',
89
+ :'sock_connect_timeout' => :'sock_connect_timeout',
90
+ :'total_timeout' => :'total_timeout',
91
+ :'url' => :'url',
92
+ :'hidden_fields' => :'hidden_fields',
93
93
  :'pulp_labels' => :'pulp_labels',
94
94
  :'connect_timeout' => :'connect_timeout',
95
- :'hidden_fields' => :'hidden_fields',
95
+ :'pulp_created' => :'pulp_created',
96
96
  :'headers' => :'headers',
97
+ :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'max_retries' => :'max_retries',
99
+ :'tls_validation' => :'tls_validation',
97
100
  :'client_cert' => :'client_cert',
98
- :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'pulp_last_updated' => :'pulp_last_updated',
100
- :'url' => :'url',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
+ :'download_concurrency' => :'Integer',
109
110
  :'name' => :'String',
110
- :'sock_read_timeout' => :'Float',
111
- :'pulp_created' => :'DateTime',
112
- :'pulp_href' => :'String',
113
111
  :'rate_limit' => :'Integer',
114
- :'total_timeout' => :'Float',
115
112
  :'ca_cert' => :'String',
116
- :'max_retries' => :'Integer',
117
- :'tls_validation' => :'Boolean',
118
113
  :'proxy_url' => :'String',
119
- :'download_concurrency' => :'Integer',
114
+ :'pulp_href' => :'String',
115
+ :'pulp_last_updated' => :'DateTime',
116
+ :'sock_connect_timeout' => :'Float',
117
+ :'total_timeout' => :'Float',
118
+ :'url' => :'String',
119
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
120
120
  :'pulp_labels' => :'Hash<String, String>',
121
121
  :'connect_timeout' => :'Float',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
122
+ :'pulp_created' => :'DateTime',
123
123
  :'headers' => :'Array<Object>',
124
+ :'sock_read_timeout' => :'Float',
125
+ :'max_retries' => :'Integer',
126
+ :'tls_validation' => :'Boolean',
124
127
  :'client_cert' => :'String',
125
- :'sock_connect_timeout' => :'Float',
126
- :'pulp_last_updated' => :'DateTime',
127
- :'url' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'sock_read_timeout',
136
+ :'download_concurrency',
137
137
  :'rate_limit',
138
- :'total_timeout',
139
138
  :'ca_cert',
140
- :'max_retries',
141
139
  :'proxy_url',
142
- :'download_concurrency',
140
+ :'sock_connect_timeout',
141
+ :'total_timeout',
143
142
  :'connect_timeout',
143
+ :'sock_read_timeout',
144
+ :'max_retries',
144
145
  :'client_cert',
145
- :'sock_connect_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,48 +161,50 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
164
+ if attributes.key?(:'download_concurrency')
165
+ self.download_concurrency = attributes[:'download_concurrency']
166
166
  end
167
167
 
168
- if attributes.key?(:'sock_read_timeout')
169
- self.sock_read_timeout = attributes[:'sock_read_timeout']
168
+ if attributes.key?(:'name')
169
+ self.name = attributes[:'name']
170
170
  end
171
171
 
172
- if attributes.key?(:'pulp_created')
173
- self.pulp_created = attributes[:'pulp_created']
172
+ if attributes.key?(:'rate_limit')
173
+ self.rate_limit = attributes[:'rate_limit']
174
174
  end
175
175
 
176
- if attributes.key?(:'pulp_href')
177
- self.pulp_href = attributes[:'pulp_href']
176
+ if attributes.key?(:'ca_cert')
177
+ self.ca_cert = attributes[:'ca_cert']
178
178
  end
179
179
 
180
- if attributes.key?(:'rate_limit')
181
- self.rate_limit = attributes[:'rate_limit']
180
+ if attributes.key?(:'proxy_url')
181
+ self.proxy_url = attributes[:'proxy_url']
182
182
  end
183
183
 
184
- if attributes.key?(:'total_timeout')
185
- self.total_timeout = attributes[:'total_timeout']
184
+ if attributes.key?(:'pulp_href')
185
+ self.pulp_href = attributes[:'pulp_href']
186
186
  end
187
187
 
188
- if attributes.key?(:'ca_cert')
189
- self.ca_cert = attributes[:'ca_cert']
188
+ if attributes.key?(:'pulp_last_updated')
189
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
190
190
  end
191
191
 
192
- if attributes.key?(:'max_retries')
193
- self.max_retries = attributes[:'max_retries']
192
+ if attributes.key?(:'sock_connect_timeout')
193
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
194
194
  end
195
195
 
196
- if attributes.key?(:'tls_validation')
197
- self.tls_validation = attributes[:'tls_validation']
196
+ if attributes.key?(:'total_timeout')
197
+ self.total_timeout = attributes[:'total_timeout']
198
198
  end
199
199
 
200
- if attributes.key?(:'proxy_url')
201
- self.proxy_url = attributes[:'proxy_url']
200
+ if attributes.key?(:'url')
201
+ self.url = attributes[:'url']
202
202
  end
203
203
 
204
- if attributes.key?(:'download_concurrency')
205
- self.download_concurrency = attributes[:'download_concurrency']
204
+ if attributes.key?(:'hidden_fields')
205
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
206
+ self.hidden_fields = value
207
+ end
206
208
  end
207
209
 
208
210
  if attributes.key?(:'pulp_labels')
@@ -215,10 +217,8 @@ module PulpAnsibleClient
215
217
  self.connect_timeout = attributes[:'connect_timeout']
216
218
  end
217
219
 
218
- if attributes.key?(:'hidden_fields')
219
- if (value = attributes[:'hidden_fields']).is_a?(Array)
220
- self.hidden_fields = value
221
- end
220
+ if attributes.key?(:'pulp_created')
221
+ self.pulp_created = attributes[:'pulp_created']
222
222
  end
223
223
 
224
224
  if attributes.key?(:'headers')
@@ -227,20 +227,20 @@ module PulpAnsibleClient
227
227
  end
228
228
  end
229
229
 
230
- if attributes.key?(:'client_cert')
231
- self.client_cert = attributes[:'client_cert']
230
+ if attributes.key?(:'sock_read_timeout')
231
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
232
232
  end
233
233
 
234
- if attributes.key?(:'sock_connect_timeout')
235
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
234
+ if attributes.key?(:'max_retries')
235
+ self.max_retries = attributes[:'max_retries']
236
236
  end
237
237
 
238
- if attributes.key?(:'pulp_last_updated')
239
- self.pulp_last_updated = attributes[:'pulp_last_updated']
238
+ if attributes.key?(:'tls_validation')
239
+ self.tls_validation = attributes[:'tls_validation']
240
240
  end
241
241
 
242
- if attributes.key?(:'url')
243
- self.url = attributes[:'url']
242
+ if attributes.key?(:'client_cert')
243
+ self.client_cert = attributes[:'client_cert']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
259
+ if !@download_concurrency.nil? && @download_concurrency < 1
260
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
261
261
  end
262
262
 
263
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
264
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
263
+ if @name.nil?
264
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
265
265
  end
266
266
 
267
- if !@total_timeout.nil? && @total_timeout < 0
268
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
267
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
269
269
  end
270
270
 
271
- if !@download_concurrency.nil? && @download_concurrency < 1
272
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
271
+ if !@total_timeout.nil? && @total_timeout < 0.0
272
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
273
273
  end
274
274
 
275
- if !@connect_timeout.nil? && @connect_timeout < 0
276
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
277
  end
278
278
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
279
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
280
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
281
281
  end
282
282
 
283
- if @url.nil?
284
- invalid_properties.push('invalid value for "url", url cannot be nil.')
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,64 +290,64 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if @name.nil?
294
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
295
- return false if !@total_timeout.nil? && @total_timeout < 0
296
293
  return false if !@download_concurrency.nil? && @download_concurrency < 1
297
- return false if !@connect_timeout.nil? && @connect_timeout < 0
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
294
+ return false if @name.nil?
295
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
299
297
  return false if @url.nil?
298
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
299
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] sock_read_timeout Value to be assigned
305
- def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
304
+ # @param [Object] download_concurrency Value to be assigned
305
+ def download_concurrency=(download_concurrency)
306
+ if !download_concurrency.nil? && download_concurrency < 1
307
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
308
308
  end
309
309
 
310
- @sock_read_timeout = sock_read_timeout
310
+ @download_concurrency = download_concurrency
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] total_timeout Value to be assigned
315
- def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
314
+ # @param [Object] sock_connect_timeout Value to be assigned
315
+ def sock_connect_timeout=(sock_connect_timeout)
316
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @total_timeout = total_timeout
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
324
- # @param [Object] download_concurrency Value to be assigned
325
- def download_concurrency=(download_concurrency)
326
- if !download_concurrency.nil? && download_concurrency < 1
327
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
324
+ # @param [Object] total_timeout Value to be assigned
325
+ def total_timeout=(total_timeout)
326
+ if !total_timeout.nil? && total_timeout < 0.0
327
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
328
328
  end
329
329
 
330
- @download_concurrency = download_concurrency
330
+ @total_timeout = total_timeout
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
334
  # @param [Object] connect_timeout Value to be assigned
335
335
  def connect_timeout=(connect_timeout)
336
- if !connect_timeout.nil? && connect_timeout < 0
337
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
336
+ if !connect_timeout.nil? && connect_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
338
338
  end
339
339
 
340
340
  @connect_timeout = connect_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] sock_connect_timeout Value to be assigned
345
- def sock_connect_timeout=(sock_connect_timeout)
346
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
347
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
344
+ # @param [Object] sock_read_timeout Value to be assigned
345
+ def sock_read_timeout=(sock_read_timeout)
346
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
348
348
  end
349
349
 
350
- @sock_connect_timeout = sock_connect_timeout
350
+ @sock_read_timeout = sock_read_timeout
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
+ download_concurrency == o.download_concurrency &&
358
359
  name == o.name &&
359
- sock_read_timeout == o.sock_read_timeout &&
360
- pulp_created == o.pulp_created &&
361
- pulp_href == o.pulp_href &&
362
360
  rate_limit == o.rate_limit &&
363
- total_timeout == o.total_timeout &&
364
361
  ca_cert == o.ca_cert &&
365
- max_retries == o.max_retries &&
366
- tls_validation == o.tls_validation &&
367
362
  proxy_url == o.proxy_url &&
368
- download_concurrency == o.download_concurrency &&
363
+ pulp_href == o.pulp_href &&
364
+ pulp_last_updated == o.pulp_last_updated &&
365
+ sock_connect_timeout == o.sock_connect_timeout &&
366
+ total_timeout == o.total_timeout &&
367
+ url == o.url &&
368
+ hidden_fields == o.hidden_fields &&
369
369
  pulp_labels == o.pulp_labels &&
370
370
  connect_timeout == o.connect_timeout &&
371
- hidden_fields == o.hidden_fields &&
371
+ pulp_created == o.pulp_created &&
372
372
  headers == o.headers &&
373
+ sock_read_timeout == o.sock_read_timeout &&
374
+ max_retries == o.max_retries &&
375
+ tls_validation == o.tls_validation &&
373
376
  client_cert == o.client_cert &&
374
- sock_connect_timeout == o.sock_connect_timeout &&
375
- pulp_last_updated == o.pulp_last_updated &&
376
- url == o.url &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [name, sock_read_timeout, pulp_created, pulp_href, rate_limit, total_timeout, ca_cert, max_retries, tls_validation, proxy_url, download_concurrency, pulp_labels, connect_timeout, hidden_fields, headers, client_cert, sock_connect_timeout, pulp_last_updated, url, metadata_only, git_ref].hash
390
+ [download_concurrency, name, rate_limit, ca_cert, proxy_url, pulp_href, pulp_last_updated, sock_connect_timeout, total_timeout, url, hidden_fields, pulp_labels, connect_timeout, pulp_created, headers, sock_read_timeout, max_retries, tls_validation, client_cert, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRole
18
- # A URI of a repository the new content unit should be associated with.
19
- attr_accessor :repository
20
-
21
18
  # Artifact file representing the physical content
22
19
  attr_accessor :artifact
23
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
24
24
  attr_accessor :version
25
25
 
26
26
  attr_accessor :name
@@ -30,8 +30,8 @@ module PulpAnsibleClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'repository' => :'repository',
34
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
35
35
  :'version' => :'version',
36
36
  :'name' => :'name',
37
37
  :'namespace' => :'namespace'
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'repository' => :'String',
45
44
  :'artifact' => :'String',
45
+ :'repository' => :'String',
46
46
  :'version' => :'String',
47
47
  :'name' => :'String',
48
48
  :'namespace' => :'String'
@@ -70,14 +70,14 @@ module PulpAnsibleClient
70
70
  h[k.to_sym] = v
71
71
  }
72
72
 
73
- if attributes.key?(:'repository')
74
- self.repository = attributes[:'repository']
75
- end
76
-
77
73
  if attributes.key?(:'artifact')
78
74
  self.artifact = attributes[:'artifact']
79
75
  end
80
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
79
+ end
80
+
81
81
  if attributes.key?(:'version')
82
82
  self.version = attributes[:'version']
83
83
  end
@@ -186,8 +186,8 @@ module PulpAnsibleClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- repository == o.repository &&
190
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
191
191
  version == o.version &&
192
192
  name == o.name &&
193
193
  namespace == o.namespace
@@ -202,7 +202,7 @@ module PulpAnsibleClient
202
202
  # Calculates hash code according to all attributes.
203
203
  # @return [Integer] Hash code
204
204
  def hash
205
- [repository, artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
206
206
  end
207
207
 
208
208
  # Builds the object from hash
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0.0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
478
+ if !total_timeout.nil? && total_timeout < 0.0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0.0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout