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,60 +273,60 @@ 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? && @url.to_s.length < 1
277
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
278
- end
279
-
280
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
281
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
276
+ if !@name.nil? && @name.to_s.length < 1
277
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
282
278
  end
283
279
 
284
- if !@username.nil? && @username.to_s.length < 1
285
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
280
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
281
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
286
282
  end
287
283
 
288
284
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
289
285
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
290
286
  end
291
287
 
292
- if !@client_key.nil? && @client_key.to_s.length < 1
293
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
288
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
289
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
294
290
  end
295
291
 
296
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
297
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
292
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
293
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
298
294
  end
299
295
 
300
- if !@password.nil? && @password.to_s.length < 1
301
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
296
+ if !@total_timeout.nil? && @total_timeout < 0.0
297
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
302
298
  end
303
299
 
304
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
305
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
300
+ if !@url.nil? && @url.to_s.length < 1
301
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
306
302
  end
307
303
 
308
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
309
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
304
+ if !@username.nil? && @username.to_s.length < 1
305
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
310
306
  end
311
307
 
312
308
  if !@connect_timeout.nil? && @connect_timeout < 0.0
313
309
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
314
310
  end
315
311
 
316
- if !@name.nil? && @name.to_s.length < 1
317
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
312
+ if !@password.nil? && @password.to_s.length < 1
313
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
318
314
  end
319
315
 
320
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
321
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
322
318
  end
323
319
 
324
- if !@client_cert.nil? && @client_cert.to_s.length < 1
325
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
320
+ if !@client_key.nil? && @client_key.to_s.length < 1
321
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
326
322
  end
327
323
 
328
- if !@total_timeout.nil? && @total_timeout < 0.0
329
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
324
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
325
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
326
+ end
327
+
328
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
329
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
330
330
  end
331
331
 
332
332
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -340,20 +340,20 @@ module PulpAnsibleClient
340
340
  # @return true if the model is valid
341
341
  def valid?
342
342
  return false if !@download_concurrency.nil? && @download_concurrency < 1
343
+ return false if !@name.nil? && @name.to_s.length < 1
344
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
345
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
346
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
347
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
348
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
343
349
  return false if !@url.nil? && @url.to_s.length < 1
344
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
350
  return false if !@username.nil? && @username.to_s.length < 1
346
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
347
- return false if !@client_key.nil? && @client_key.to_s.length < 1
348
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
349
352
  return false if !@password.nil? && @password.to_s.length < 1
350
353
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
352
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
353
- return false if !@name.nil? && @name.to_s.length < 1
354
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
354
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
355
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
355
356
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
356
- return false if !@total_timeout.nil? && @total_timeout < 0.0
357
357
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
358
358
  true
359
359
  end
@@ -369,33 +369,23 @@ module PulpAnsibleClient
369
369
  end
370
370
 
371
371
  # Custom attribute writer method with validation
372
- # @param [Object] url Value to be assigned
373
- def url=(url)
374
- if !url.nil? && url.to_s.length < 1
375
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
376
- end
377
-
378
- @url = url
379
- end
380
-
381
- # Custom attribute writer method with validation
382
- # @param [Object] proxy_password Value to be assigned
383
- def proxy_password=(proxy_password)
384
- if !proxy_password.nil? && proxy_password.to_s.length < 1
385
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
372
+ # @param [Object] name Value to be assigned
373
+ def name=(name)
374
+ if !name.nil? && name.to_s.length < 1
375
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
386
376
  end
387
377
 
388
- @proxy_password = proxy_password
378
+ @name = name
389
379
  end
390
380
 
391
381
  # Custom attribute writer method with validation
392
- # @param [Object] username Value to be assigned
393
- def username=(username)
394
- if !username.nil? && username.to_s.length < 1
395
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
382
+ # @param [Object] ca_cert Value to be assigned
383
+ def ca_cert=(ca_cert)
384
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
385
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
396
386
  end
397
387
 
398
- @username = username
388
+ @ca_cert = ca_cert
399
389
  end
400
390
 
401
391
  # Custom attribute writer method with validation
@@ -409,53 +399,53 @@ module PulpAnsibleClient
409
399
  end
410
400
 
411
401
  # Custom attribute writer method with validation
412
- # @param [Object] client_key Value to be assigned
413
- def client_key=(client_key)
414
- if !client_key.nil? && client_key.to_s.length < 1
415
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
402
+ # @param [Object] proxy_username Value to be assigned
403
+ def proxy_username=(proxy_username)
404
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
405
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
416
406
  end
417
407
 
418
- @client_key = client_key
408
+ @proxy_username = proxy_username
419
409
  end
420
410
 
421
411
  # Custom attribute writer method with validation
422
- # @param [Object] ca_cert Value to be assigned
423
- def ca_cert=(ca_cert)
424
- if !ca_cert.nil? && ca_cert.to_s.length < 1
425
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
412
+ # @param [Object] sock_connect_timeout Value to be assigned
413
+ def sock_connect_timeout=(sock_connect_timeout)
414
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
415
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
426
416
  end
427
417
 
428
- @ca_cert = ca_cert
418
+ @sock_connect_timeout = sock_connect_timeout
429
419
  end
430
420
 
431
421
  # Custom attribute writer method with validation
432
- # @param [Object] password Value to be assigned
433
- def password=(password)
434
- if !password.nil? && password.to_s.length < 1
435
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
422
+ # @param [Object] total_timeout Value to be assigned
423
+ def total_timeout=(total_timeout)
424
+ if !total_timeout.nil? && total_timeout < 0.0
425
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
436
426
  end
437
427
 
438
- @password = password
428
+ @total_timeout = total_timeout
439
429
  end
440
430
 
441
431
  # Custom attribute writer method with validation
442
- # @param [Object] sock_read_timeout Value to be assigned
443
- def sock_read_timeout=(sock_read_timeout)
444
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
445
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
432
+ # @param [Object] url Value to be assigned
433
+ def url=(url)
434
+ if !url.nil? && url.to_s.length < 1
435
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
446
436
  end
447
437
 
448
- @sock_read_timeout = sock_read_timeout
438
+ @url = url
449
439
  end
450
440
 
451
441
  # Custom attribute writer method with validation
452
- # @param [Object] sock_connect_timeout Value to be assigned
453
- def sock_connect_timeout=(sock_connect_timeout)
454
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
455
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
442
+ # @param [Object] username Value to be assigned
443
+ def username=(username)
444
+ if !username.nil? && username.to_s.length < 1
445
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
456
446
  end
457
447
 
458
- @sock_connect_timeout = sock_connect_timeout
448
+ @username = username
459
449
  end
460
450
 
461
451
  # Custom attribute writer method with validation
@@ -469,43 +459,53 @@ module PulpAnsibleClient
469
459
  end
470
460
 
471
461
  # Custom attribute writer method with validation
472
- # @param [Object] name Value to be assigned
473
- def name=(name)
474
- if !name.nil? && name.to_s.length < 1
475
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
462
+ # @param [Object] password Value to be assigned
463
+ def password=(password)
464
+ if !password.nil? && password.to_s.length < 1
465
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
476
466
  end
477
467
 
478
- @name = name
468
+ @password = password
479
469
  end
480
470
 
481
471
  # Custom attribute writer method with validation
482
- # @param [Object] proxy_username Value to be assigned
483
- def proxy_username=(proxy_username)
484
- if !proxy_username.nil? && proxy_username.to_s.length < 1
485
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
472
+ # @param [Object] sock_read_timeout Value to be assigned
473
+ def sock_read_timeout=(sock_read_timeout)
474
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
475
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
486
476
  end
487
477
 
488
- @proxy_username = proxy_username
478
+ @sock_read_timeout = sock_read_timeout
489
479
  end
490
480
 
491
481
  # Custom attribute writer method with validation
492
- # @param [Object] client_cert Value to be assigned
493
- def client_cert=(client_cert)
494
- if !client_cert.nil? && client_cert.to_s.length < 1
495
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
482
+ # @param [Object] client_key Value to be assigned
483
+ def client_key=(client_key)
484
+ if !client_key.nil? && client_key.to_s.length < 1
485
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
496
486
  end
497
487
 
498
- @client_cert = client_cert
488
+ @client_key = client_key
499
489
  end
500
490
 
501
491
  # Custom attribute writer method with validation
502
- # @param [Object] total_timeout Value to be assigned
503
- def total_timeout=(total_timeout)
504
- if !total_timeout.nil? && total_timeout < 0.0
505
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
492
+ # @param [Object] proxy_password Value to be assigned
493
+ def proxy_password=(proxy_password)
494
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
495
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
506
496
  end
507
497
 
508
- @total_timeout = total_timeout
498
+ @proxy_password = proxy_password
499
+ end
500
+
501
+ # Custom attribute writer method with validation
502
+ # @param [Object] client_cert Value to be assigned
503
+ def client_cert=(client_cert)
504
+ if !client_cert.nil? && client_cert.to_s.length < 1
505
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
506
+ end
507
+
508
+ @client_cert = client_cert
509
509
  end
510
510
 
511
511
  # Custom attribute writer method with validation
@@ -524,25 +524,25 @@ module PulpAnsibleClient
524
524
  return true if self.equal?(o)
525
525
  self.class == o.class &&
526
526
  download_concurrency == o.download_concurrency &&
527
+ name == o.name &&
528
+ rate_limit == o.rate_limit &&
529
+ ca_cert == o.ca_cert &&
530
+ proxy_url == o.proxy_url &&
531
+ proxy_username == o.proxy_username &&
532
+ sock_connect_timeout == o.sock_connect_timeout &&
533
+ total_timeout == o.total_timeout &&
527
534
  url == o.url &&
528
- tls_validation == o.tls_validation &&
529
- proxy_password == o.proxy_password &&
530
535
  username == o.username &&
531
- proxy_url == o.proxy_url &&
532
- client_key == o.client_key &&
533
536
  pulp_labels == o.pulp_labels &&
534
- ca_cert == o.ca_cert &&
535
- password == o.password &&
536
- sock_read_timeout == o.sock_read_timeout &&
537
- sock_connect_timeout == o.sock_connect_timeout &&
538
537
  connect_timeout == o.connect_timeout &&
538
+ password == o.password &&
539
539
  headers == o.headers &&
540
- name == o.name &&
541
- proxy_username == o.proxy_username &&
542
- client_cert == o.client_cert &&
540
+ sock_read_timeout == o.sock_read_timeout &&
541
+ client_key == o.client_key &&
543
542
  max_retries == o.max_retries &&
544
- total_timeout == o.total_timeout &&
545
- rate_limit == o.rate_limit &&
543
+ proxy_password == o.proxy_password &&
544
+ tls_validation == o.tls_validation &&
545
+ client_cert == o.client_cert &&
546
546
  metadata_only == o.metadata_only &&
547
547
  git_ref == o.git_ref
548
548
  end
@@ -556,7 +556,7 @@ module PulpAnsibleClient
556
556
  # Calculates hash code according to all attributes.
557
557
  # @return [Integer] Hash code
558
558
  def hash
559
- [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
559
+ [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
560
560
  end
561
561
 
562
562
  # Builds the object from hash