pulp_ansible_client 0.18.2 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -44
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionsApi.md +9 -15
  6. data/docs/AnsibleCopyApi.md +1 -1
  7. data/docs/AnsibleGitRemote.md +26 -26
  8. data/docs/AnsibleGitRemoteResponse.md +24 -24
  9. data/docs/AnsibleRoleResponse.md +2 -2
  10. data/docs/ApiCollectionsApi.md +1 -1
  11. data/docs/ApiRolesApi.md +1 -1
  12. data/docs/CollectionImportApi.md +1 -1
  13. data/docs/CollectionNamespaceResponse.md +1 -1
  14. data/docs/CollectionResponse.md +5 -3
  15. data/docs/CollectionVersionResponse.md +1 -1
  16. data/docs/CollectionVersionSignatureResponse.md +23 -0
  17. data/docs/ContentCollectionDeprecationsApi.md +1 -3
  18. data/docs/ContentCollectionMarksApi.md +2 -4
  19. data/docs/ContentCollectionSignaturesApi.md +3 -5
  20. data/docs/ContentCollectionVersionsApi.md +7 -7
  21. data/docs/ContentNamespacesApi.md +1 -19
  22. data/docs/ContentRolesApi.md +1 -3
  23. data/docs/DistributionsAnsibleApi.md +10 -136
  24. data/docs/GalaxyDetailApi.md +1 -1
  25. data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
  26. data/docs/PatchedansibleGitRemote.md +26 -26
  27. data/docs/PulpAnsibleApiApi.md +1 -1
  28. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3Api.md +1 -1
  30. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
  33. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
  34. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
  37. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  46. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  47. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleTagsApi.md +1 -1
  68. data/docs/RemotesCollectionApi.md +9 -135
  69. data/docs/RemotesGitApi.md +9 -135
  70. data/docs/RemotesRoleApi.md +9 -135
  71. data/docs/RepositoriesAnsibleApi.md +10 -136
  72. data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
  73. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  74. data/docs/VersionsApi.md +1 -1
  75. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
  76. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
  77. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
  78. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
  79. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  80. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
  81. data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
  82. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  91. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
  92. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  99. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
  100. data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
  101. data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
  102. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
  103. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
  104. data/lib/pulp_ansible_client/configuration.rb +2 -2
  105. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  106. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  107. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +226 -226
  108. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
  109. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  110. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  111. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  112. data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
  113. data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
  114. data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
  115. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +217 -217
  116. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
  117. data/lib/pulp_ansible_client/version.rb +1 -1
  118. data/lib/pulp_ansible_client.rb +2 -4
  119. data/spec/api/ansible_collections_api_spec.rb +0 -5
  120. data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
  121. data/spec/api/content_collection_marks_api_spec.rb +0 -1
  122. data/spec/api/content_collection_signatures_api_spec.rb +0 -1
  123. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  124. data/spec/api/content_namespaces_api_spec.rb +0 -9
  125. data/spec/api/content_roles_api_spec.rb +0 -1
  126. data/spec/api/distributions_ansible_api_spec.rb +0 -35
  127. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
  128. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
  129. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  130. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
  131. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  132. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  133. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  134. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  135. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
  136. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
  137. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  138. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
  139. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  140. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  141. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  142. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  143. data/spec/api/remotes_collection_api_spec.rb +0 -35
  144. data/spec/api/remotes_git_api_spec.rb +0 -35
  145. data/spec/api/remotes_role_api_spec.rb +0 -35
  146. data/spec/api/repositories_ansible_api_spec.rb +0 -35
  147. data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
  148. data/spec/configuration_spec.rb +3 -3
  149. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  150. data/spec/models/ansible_collection_version_spec.rb +4 -4
  151. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  152. data/spec/models/ansible_git_remote_spec.rb +18 -18
  153. data/spec/models/ansible_role_response_spec.rb +2 -2
  154. data/spec/models/collection_response_spec.rb +6 -0
  155. data/spec/models/collection_version_signature_response_spec.rb +59 -0
  156. data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
  157. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  158. metadata +141 -149
  159. data/docs/SetLabel.md +0 -19
  160. data/docs/SetLabelResponse.md +0 -19
  161. data/docs/UnsetLabelResponse.md +0 -19
  162. data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
  163. data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
  164. data/spec/models/set_label_response_spec.rb +0 -47
  165. data/spec/models/set_label_spec.rb +0 -47
  166. data/spec/models/unset_label_response_spec.rb +0 -47
@@ -18,61 +18,61 @@ module PulpAnsibleClient
18
18
  # Total number of simultaneous connections. If not set then the default value will be used.
19
19
  attr_accessor :download_concurrency
20
20
 
21
- # The URL of an external content source.
22
- attr_accessor :url
23
-
24
- # If True, TLS peer validation must be performed.
25
- attr_accessor :tls_validation
21
+ # A unique name for this remote.
22
+ attr_accessor :name
26
23
 
27
- # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
28
- attr_accessor :proxy_password
24
+ # Limits requests per second for each concurrent downloader
25
+ attr_accessor :rate_limit
29
26
 
30
- # The username to be used for authentication when syncing.
31
- attr_accessor :username
27
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
+ attr_accessor :ca_cert
32
29
 
33
30
  # The proxy URL. Format: scheme://host:port
34
31
  attr_accessor :proxy_url
35
32
 
36
- # A PEM encoded private key used for authentication.
37
- attr_accessor :client_key
33
+ # The username to authenticte to the proxy.
34
+ attr_accessor :proxy_username
38
35
 
39
- attr_accessor :pulp_labels
36
+ # 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.
37
+ attr_accessor :sock_connect_timeout
40
38
 
41
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
42
- attr_accessor :ca_cert
39
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
+ attr_accessor :total_timeout
43
41
 
44
- # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
45
- attr_accessor :password
42
+ # The URL of an external content source.
43
+ attr_accessor :url
46
44
 
47
- # 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.
48
- attr_accessor :sock_read_timeout
45
+ # The username to be used for authentication when syncing.
46
+ attr_accessor :username
49
47
 
50
- # 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.
51
- attr_accessor :sock_connect_timeout
48
+ attr_accessor :pulp_labels
52
49
 
53
50
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
54
51
  attr_accessor :connect_timeout
55
52
 
53
+ # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
54
+ attr_accessor :password
55
+
56
56
  # Headers for aiohttp.Clientsession
57
57
  attr_accessor :headers
58
58
 
59
- # A unique name for this remote.
60
- attr_accessor :name
61
-
62
- # The username to authenticte to the proxy.
63
- attr_accessor :proxy_username
59
+ # 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.
60
+ attr_accessor :sock_read_timeout
64
61
 
65
- # A PEM encoded client certificate used for authentication.
66
- attr_accessor :client_cert
62
+ # A PEM encoded private key used for authentication.
63
+ attr_accessor :client_key
67
64
 
68
65
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
66
  attr_accessor :max_retries
70
67
 
71
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
72
- attr_accessor :total_timeout
68
+ # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
69
+ attr_accessor :proxy_password
73
70
 
74
- # Limits requests per second for each concurrent downloader
75
- attr_accessor :rate_limit
71
+ # If True, TLS peer validation must be performed.
72
+ attr_accessor :tls_validation
73
+
74
+ # A PEM encoded client certificate used for authentication.
75
+ attr_accessor :client_cert
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -84,25 +84,25 @@ module PulpAnsibleClient
84
84
  def self.attribute_map
85
85
  {
86
86
  :'download_concurrency' => :'download_concurrency',
87
+ :'name' => :'name',
88
+ :'rate_limit' => :'rate_limit',
89
+ :'ca_cert' => :'ca_cert',
90
+ :'proxy_url' => :'proxy_url',
91
+ :'proxy_username' => :'proxy_username',
92
+ :'sock_connect_timeout' => :'sock_connect_timeout',
93
+ :'total_timeout' => :'total_timeout',
87
94
  :'url' => :'url',
88
- :'tls_validation' => :'tls_validation',
89
- :'proxy_password' => :'proxy_password',
90
95
  :'username' => :'username',
91
- :'proxy_url' => :'proxy_url',
92
- :'client_key' => :'client_key',
93
96
  :'pulp_labels' => :'pulp_labels',
94
- :'ca_cert' => :'ca_cert',
95
- :'password' => :'password',
96
- :'sock_read_timeout' => :'sock_read_timeout',
97
- :'sock_connect_timeout' => :'sock_connect_timeout',
98
97
  :'connect_timeout' => :'connect_timeout',
98
+ :'password' => :'password',
99
99
  :'headers' => :'headers',
100
- :'name' => :'name',
101
- :'proxy_username' => :'proxy_username',
102
- :'client_cert' => :'client_cert',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
101
+ :'client_key' => :'client_key',
103
102
  :'max_retries' => :'max_retries',
104
- :'total_timeout' => :'total_timeout',
105
- :'rate_limit' => :'rate_limit',
103
+ :'proxy_password' => :'proxy_password',
104
+ :'tls_validation' => :'tls_validation',
105
+ :'client_cert' => :'client_cert',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -112,25 +112,25 @@ module PulpAnsibleClient
112
112
  def self.openapi_types
113
113
  {
114
114
  :'download_concurrency' => :'Integer',
115
+ :'name' => :'String',
116
+ :'rate_limit' => :'Integer',
117
+ :'ca_cert' => :'String',
118
+ :'proxy_url' => :'String',
119
+ :'proxy_username' => :'String',
120
+ :'sock_connect_timeout' => :'Float',
121
+ :'total_timeout' => :'Float',
115
122
  :'url' => :'String',
116
- :'tls_validation' => :'Boolean',
117
- :'proxy_password' => :'String',
118
123
  :'username' => :'String',
119
- :'proxy_url' => :'String',
120
- :'client_key' => :'String',
121
124
  :'pulp_labels' => :'Hash<String, String>',
122
- :'ca_cert' => :'String',
123
- :'password' => :'String',
124
- :'sock_read_timeout' => :'Float',
125
- :'sock_connect_timeout' => :'Float',
126
125
  :'connect_timeout' => :'Float',
126
+ :'password' => :'String',
127
127
  :'headers' => :'Array<Object>',
128
- :'name' => :'String',
129
- :'proxy_username' => :'String',
130
- :'client_cert' => :'String',
128
+ :'sock_read_timeout' => :'Float',
129
+ :'client_key' => :'String',
131
130
  :'max_retries' => :'Integer',
132
- :'total_timeout' => :'Float',
133
- :'rate_limit' => :'Integer',
131
+ :'proxy_password' => :'String',
132
+ :'tls_validation' => :'Boolean',
133
+ :'client_cert' => :'String',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -140,20 +140,20 @@ module PulpAnsibleClient
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
142
  :'download_concurrency',
143
- :'proxy_password',
144
- :'username',
145
- :'proxy_url',
146
- :'client_key',
143
+ :'rate_limit',
147
144
  :'ca_cert',
148
- :'password',
149
- :'sock_read_timeout',
145
+ :'proxy_url',
146
+ :'proxy_username',
150
147
  :'sock_connect_timeout',
148
+ :'total_timeout',
149
+ :'username',
151
150
  :'connect_timeout',
152
- :'proxy_username',
153
- :'client_cert',
151
+ :'password',
152
+ :'sock_read_timeout',
153
+ :'client_key',
154
154
  :'max_retries',
155
- :'total_timeout',
156
- :'rate_limit',
155
+ :'proxy_password',
156
+ :'client_cert',
157
157
  ])
158
158
  end
159
159
 
@@ -176,84 +176,84 @@ module PulpAnsibleClient
176
176
  self.download_concurrency = attributes[:'download_concurrency']
177
177
  end
178
178
 
179
- if attributes.key?(:'url')
180
- self.url = attributes[:'url']
181
- end
182
-
183
- if attributes.key?(:'tls_validation')
184
- self.tls_validation = attributes[:'tls_validation']
179
+ if attributes.key?(:'name')
180
+ self.name = attributes[:'name']
185
181
  end
186
182
 
187
- if attributes.key?(:'proxy_password')
188
- self.proxy_password = attributes[:'proxy_password']
183
+ if attributes.key?(:'rate_limit')
184
+ self.rate_limit = attributes[:'rate_limit']
189
185
  end
190
186
 
191
- if attributes.key?(:'username')
192
- self.username = attributes[:'username']
187
+ if attributes.key?(:'ca_cert')
188
+ self.ca_cert = attributes[:'ca_cert']
193
189
  end
194
190
 
195
191
  if attributes.key?(:'proxy_url')
196
192
  self.proxy_url = attributes[:'proxy_url']
197
193
  end
198
194
 
199
- if attributes.key?(:'client_key')
200
- self.client_key = attributes[:'client_key']
195
+ if attributes.key?(:'proxy_username')
196
+ self.proxy_username = attributes[:'proxy_username']
201
197
  end
202
198
 
203
- if attributes.key?(:'pulp_labels')
204
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
205
- self.pulp_labels = value
206
- end
199
+ if attributes.key?(:'sock_connect_timeout')
200
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
207
201
  end
208
202
 
209
- if attributes.key?(:'ca_cert')
210
- self.ca_cert = attributes[:'ca_cert']
203
+ if attributes.key?(:'total_timeout')
204
+ self.total_timeout = attributes[:'total_timeout']
211
205
  end
212
206
 
213
- if attributes.key?(:'password')
214
- self.password = attributes[:'password']
207
+ if attributes.key?(:'url')
208
+ self.url = attributes[:'url']
215
209
  end
216
210
 
217
- if attributes.key?(:'sock_read_timeout')
218
- self.sock_read_timeout = attributes[:'sock_read_timeout']
211
+ if attributes.key?(:'username')
212
+ self.username = attributes[:'username']
219
213
  end
220
214
 
221
- if attributes.key?(:'sock_connect_timeout')
222
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
215
+ if attributes.key?(:'pulp_labels')
216
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
217
+ self.pulp_labels = value
218
+ end
223
219
  end
224
220
 
225
221
  if attributes.key?(:'connect_timeout')
226
222
  self.connect_timeout = attributes[:'connect_timeout']
227
223
  end
228
224
 
225
+ if attributes.key?(:'password')
226
+ self.password = attributes[:'password']
227
+ end
228
+
229
229
  if attributes.key?(:'headers')
230
230
  if (value = attributes[:'headers']).is_a?(Array)
231
231
  self.headers = value
232
232
  end
233
233
  end
234
234
 
235
- if attributes.key?(:'name')
236
- self.name = attributes[:'name']
237
- end
238
-
239
- if attributes.key?(:'proxy_username')
240
- self.proxy_username = attributes[:'proxy_username']
235
+ if attributes.key?(:'sock_read_timeout')
236
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
241
237
  end
242
238
 
243
- if attributes.key?(:'client_cert')
244
- self.client_cert = attributes[:'client_cert']
239
+ if attributes.key?(:'client_key')
240
+ self.client_key = attributes[:'client_key']
245
241
  end
246
242
 
247
243
  if attributes.key?(:'max_retries')
248
244
  self.max_retries = attributes[:'max_retries']
249
245
  end
250
246
 
251
- if attributes.key?(:'total_timeout')
252
- self.total_timeout = attributes[:'total_timeout']
247
+ if attributes.key?(:'proxy_password')
248
+ self.proxy_password = attributes[:'proxy_password']
253
249
  end
254
250
 
255
- if attributes.key?(:'rate_limit')
256
- self.rate_limit = attributes[:'rate_limit']
251
+ if attributes.key?(:'tls_validation')
252
+ self.tls_validation = attributes[:'tls_validation']
253
+ end
254
+
255
+ if attributes.key?(:'client_cert')
256
+ self.client_cert = attributes[:'client_cert']
257
257
  end
258
258
 
259
259
  if attributes.key?(:'metadata_only')
@@ -273,68 +273,68 @@ module PulpAnsibleClient
273
273
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
274
274
  end
275
275
 
276
- if @url.nil?
277
- invalid_properties.push('invalid value for "url", url cannot be nil.')
278
- end
279
-
280
- if @url.to_s.length < 1
281
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
276
+ if @name.nil?
277
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
282
278
  end
283
279
 
284
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
285
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
280
+ if @name.to_s.length < 1
281
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
286
282
  end
287
283
 
288
- if !@username.nil? && @username.to_s.length < 1
289
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
284
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
285
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
290
286
  end
291
287
 
292
288
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
293
289
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
294
290
  end
295
291
 
296
- if !@client_key.nil? && @client_key.to_s.length < 1
297
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
292
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
293
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
298
294
  end
299
295
 
300
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
301
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
296
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
297
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
302
298
  end
303
299
 
304
- if !@password.nil? && @password.to_s.length < 1
305
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
300
+ if !@total_timeout.nil? && @total_timeout < 0.0
301
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
302
  end
307
303
 
308
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
309
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
304
+ if @url.nil?
305
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
310
306
  end
311
307
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
308
+ if @url.to_s.length < 1
309
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
310
+ end
311
+
312
+ if !@username.nil? && @username.to_s.length < 1
313
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
314
314
  end
315
315
 
316
316
  if !@connect_timeout.nil? && @connect_timeout < 0.0
317
317
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
318
318
  end
319
319
 
320
- if @name.nil?
321
- invalid_properties.push('invalid value for "name", name cannot be nil.')
320
+ if !@password.nil? && @password.to_s.length < 1
321
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
322
322
  end
323
323
 
324
- if @name.to_s.length < 1
325
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
324
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
325
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
326
326
  end
327
327
 
328
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
329
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
328
+ if !@client_key.nil? && @client_key.to_s.length < 1
329
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
330
330
  end
331
331
 
332
- if !@client_cert.nil? && @client_cert.to_s.length < 1
333
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
332
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
333
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
334
334
  end
335
335
 
336
- if !@total_timeout.nil? && @total_timeout < 0.0
337
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
336
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
337
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
338
338
  end
339
339
 
340
340
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -348,22 +348,22 @@ module PulpAnsibleClient
348
348
  # @return true if the model is valid
349
349
  def valid?
350
350
  return false if !@download_concurrency.nil? && @download_concurrency < 1
351
+ return false if @name.nil?
352
+ return false if @name.to_s.length < 1
353
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
354
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
355
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
356
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
357
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
351
358
  return false if @url.nil?
352
359
  return false if @url.to_s.length < 1
353
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
354
360
  return false if !@username.nil? && @username.to_s.length < 1
355
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
356
- return false if !@client_key.nil? && @client_key.to_s.length < 1
357
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
361
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
358
362
  return false if !@password.nil? && @password.to_s.length < 1
359
363
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
360
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
361
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
362
- return false if @name.nil?
363
- return false if @name.to_s.length < 1
364
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
364
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
365
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
365
366
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
366
- return false if !@total_timeout.nil? && @total_timeout < 0.0
367
367
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
368
368
  true
369
369
  end
@@ -379,37 +379,27 @@ module PulpAnsibleClient
379
379
  end
380
380
 
381
381
  # Custom attribute writer method with validation
382
- # @param [Object] url Value to be assigned
383
- def url=(url)
384
- if url.nil?
385
- fail ArgumentError, 'url cannot be nil'
386
- end
387
-
388
- if url.to_s.length < 1
389
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
382
+ # @param [Object] name Value to be assigned
383
+ def name=(name)
384
+ if name.nil?
385
+ fail ArgumentError, 'name cannot be nil'
390
386
  end
391
387
 
392
- @url = url
393
- end
394
-
395
- # Custom attribute writer method with validation
396
- # @param [Object] proxy_password Value to be assigned
397
- def proxy_password=(proxy_password)
398
- if !proxy_password.nil? && proxy_password.to_s.length < 1
399
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
388
+ if name.to_s.length < 1
389
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
400
390
  end
401
391
 
402
- @proxy_password = proxy_password
392
+ @name = name
403
393
  end
404
394
 
405
395
  # Custom attribute writer method with validation
406
- # @param [Object] username Value to be assigned
407
- def username=(username)
408
- if !username.nil? && username.to_s.length < 1
409
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
396
+ # @param [Object] ca_cert Value to be assigned
397
+ def ca_cert=(ca_cert)
398
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
399
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
410
400
  end
411
401
 
412
- @username = username
402
+ @ca_cert = ca_cert
413
403
  end
414
404
 
415
405
  # Custom attribute writer method with validation
@@ -423,53 +413,57 @@ module PulpAnsibleClient
423
413
  end
424
414
 
425
415
  # Custom attribute writer method with validation
426
- # @param [Object] client_key Value to be assigned
427
- def client_key=(client_key)
428
- if !client_key.nil? && client_key.to_s.length < 1
429
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
416
+ # @param [Object] proxy_username Value to be assigned
417
+ def proxy_username=(proxy_username)
418
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
419
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
430
420
  end
431
421
 
432
- @client_key = client_key
422
+ @proxy_username = proxy_username
433
423
  end
434
424
 
435
425
  # Custom attribute writer method with validation
436
- # @param [Object] ca_cert Value to be assigned
437
- def ca_cert=(ca_cert)
438
- if !ca_cert.nil? && ca_cert.to_s.length < 1
439
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
426
+ # @param [Object] sock_connect_timeout Value to be assigned
427
+ def sock_connect_timeout=(sock_connect_timeout)
428
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
429
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
440
430
  end
441
431
 
442
- @ca_cert = ca_cert
432
+ @sock_connect_timeout = sock_connect_timeout
443
433
  end
444
434
 
445
435
  # Custom attribute writer method with validation
446
- # @param [Object] password Value to be assigned
447
- def password=(password)
448
- if !password.nil? && password.to_s.length < 1
449
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
436
+ # @param [Object] total_timeout Value to be assigned
437
+ def total_timeout=(total_timeout)
438
+ if !total_timeout.nil? && total_timeout < 0.0
439
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
450
440
  end
451
441
 
452
- @password = password
442
+ @total_timeout = total_timeout
453
443
  end
454
444
 
455
445
  # Custom attribute writer method with validation
456
- # @param [Object] sock_read_timeout Value to be assigned
457
- def sock_read_timeout=(sock_read_timeout)
458
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
459
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
446
+ # @param [Object] url Value to be assigned
447
+ def url=(url)
448
+ if url.nil?
449
+ fail ArgumentError, 'url cannot be nil'
460
450
  end
461
451
 
462
- @sock_read_timeout = sock_read_timeout
452
+ if url.to_s.length < 1
453
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
454
+ end
455
+
456
+ @url = url
463
457
  end
464
458
 
465
459
  # Custom attribute writer method with validation
466
- # @param [Object] sock_connect_timeout Value to be assigned
467
- def sock_connect_timeout=(sock_connect_timeout)
468
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
469
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
460
+ # @param [Object] username Value to be assigned
461
+ def username=(username)
462
+ if !username.nil? && username.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
470
464
  end
471
465
 
472
- @sock_connect_timeout = sock_connect_timeout
466
+ @username = username
473
467
  end
474
468
 
475
469
  # Custom attribute writer method with validation
@@ -483,47 +477,53 @@ module PulpAnsibleClient
483
477
  end
484
478
 
485
479
  # Custom attribute writer method with validation
486
- # @param [Object] name Value to be assigned
487
- def name=(name)
488
- if name.nil?
489
- fail ArgumentError, 'name cannot be nil'
480
+ # @param [Object] password Value to be assigned
481
+ def password=(password)
482
+ if !password.nil? && password.to_s.length < 1
483
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
490
484
  end
491
485
 
492
- if name.to_s.length < 1
493
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
486
+ @password = password
487
+ end
488
+
489
+ # Custom attribute writer method with validation
490
+ # @param [Object] sock_read_timeout Value to be assigned
491
+ def sock_read_timeout=(sock_read_timeout)
492
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
493
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
494
494
  end
495
495
 
496
- @name = name
496
+ @sock_read_timeout = sock_read_timeout
497
497
  end
498
498
 
499
499
  # Custom attribute writer method with validation
500
- # @param [Object] proxy_username Value to be assigned
501
- def proxy_username=(proxy_username)
502
- if !proxy_username.nil? && proxy_username.to_s.length < 1
503
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
500
+ # @param [Object] client_key Value to be assigned
501
+ def client_key=(client_key)
502
+ if !client_key.nil? && client_key.to_s.length < 1
503
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
504
504
  end
505
505
 
506
- @proxy_username = proxy_username
506
+ @client_key = client_key
507
507
  end
508
508
 
509
509
  # Custom attribute writer method with validation
510
- # @param [Object] client_cert Value to be assigned
511
- def client_cert=(client_cert)
512
- if !client_cert.nil? && client_cert.to_s.length < 1
513
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
510
+ # @param [Object] proxy_password Value to be assigned
511
+ def proxy_password=(proxy_password)
512
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
513
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
514
514
  end
515
515
 
516
- @client_cert = client_cert
516
+ @proxy_password = proxy_password
517
517
  end
518
518
 
519
519
  # Custom attribute writer method with validation
520
- # @param [Object] total_timeout Value to be assigned
521
- def total_timeout=(total_timeout)
522
- if !total_timeout.nil? && total_timeout < 0.0
523
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
520
+ # @param [Object] client_cert Value to be assigned
521
+ def client_cert=(client_cert)
522
+ if !client_cert.nil? && client_cert.to_s.length < 1
523
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
524
524
  end
525
525
 
526
- @total_timeout = total_timeout
526
+ @client_cert = client_cert
527
527
  end
528
528
 
529
529
  # Custom attribute writer method with validation
@@ -542,25 +542,25 @@ module PulpAnsibleClient
542
542
  return true if self.equal?(o)
543
543
  self.class == o.class &&
544
544
  download_concurrency == o.download_concurrency &&
545
+ name == o.name &&
546
+ rate_limit == o.rate_limit &&
547
+ ca_cert == o.ca_cert &&
548
+ proxy_url == o.proxy_url &&
549
+ proxy_username == o.proxy_username &&
550
+ sock_connect_timeout == o.sock_connect_timeout &&
551
+ total_timeout == o.total_timeout &&
545
552
  url == o.url &&
546
- tls_validation == o.tls_validation &&
547
- proxy_password == o.proxy_password &&
548
553
  username == o.username &&
549
- proxy_url == o.proxy_url &&
550
- client_key == o.client_key &&
551
554
  pulp_labels == o.pulp_labels &&
552
- ca_cert == o.ca_cert &&
553
- password == o.password &&
554
- sock_read_timeout == o.sock_read_timeout &&
555
- sock_connect_timeout == o.sock_connect_timeout &&
556
555
  connect_timeout == o.connect_timeout &&
556
+ password == o.password &&
557
557
  headers == o.headers &&
558
- name == o.name &&
559
- proxy_username == o.proxy_username &&
560
- client_cert == o.client_cert &&
558
+ sock_read_timeout == o.sock_read_timeout &&
559
+ client_key == o.client_key &&
561
560
  max_retries == o.max_retries &&
562
- total_timeout == o.total_timeout &&
563
- rate_limit == o.rate_limit &&
561
+ proxy_password == o.proxy_password &&
562
+ tls_validation == o.tls_validation &&
563
+ client_cert == o.client_cert &&
564
564
  metadata_only == o.metadata_only &&
565
565
  git_ref == o.git_ref
566
566
  end
@@ -574,7 +574,7 @@ module PulpAnsibleClient
574
574
  # Calculates hash code according to all attributes.
575
575
  # @return [Integer] Hash code
576
576
  def hash
577
- [download_concurrency, url, tls_validation, proxy_password, username, proxy_url, client_key, pulp_labels, ca_cert, password, sock_read_timeout, sock_connect_timeout, connect_timeout, headers, name, proxy_username, client_cert, max_retries, total_timeout, rate_limit, metadata_only, git_ref].hash
577
+ [download_concurrency, name, rate_limit, ca_cert, proxy_url, proxy_username, sock_connect_timeout, total_timeout, url, username, pulp_labels, connect_timeout, password, headers, sock_read_timeout, client_key, max_retries, proxy_password, tls_validation, client_cert, metadata_only, git_ref].hash
578
578
  end
579
579
 
580
580
  # Builds the object from hash