pulp_ansible_client 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -5
  3. data/docs/AnsibleAnsibleRepository.md +3 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionVersionSignature.md +21 -0
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
  8. data/docs/AnsibleGitRemote.md +27 -27
  9. data/docs/AnsibleGitRemoteResponse.md +23 -23
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionListResponse.md +25 -0
  12. data/docs/ContentCollectionSignaturesApi.md +64 -4
  13. data/docs/KeyringEnum.md +16 -0
  14. data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
  15. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  16. data/docs/PatchedansibleGitRemote.md +27 -27
  17. data/docs/PulpAnsibleApiV3Api.md +8 -2
  18. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
  19. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
  23. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
  26. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
  27. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
  28. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
  29. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
  30. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
  31. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
  32. data/docs/PulpAnsibleDefaultApiApi.md +50 -0
  33. data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
  34. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
  35. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
  36. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
  37. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
  40. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
  41. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
  46. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
  47. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
  51. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
  52. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
  53. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
  54. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
  58. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
  59. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
  62. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
  63. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
  64. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
  65. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
  66. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
  67. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
  77. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
  78. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
  79. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
  80. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  81. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  85. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  86. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
  87. data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
  88. data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
  89. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
  90. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  91. data/lib/pulp_ansible_client/version.rb +1 -1
  92. data/lib/pulp_ansible_client.rb +27 -1
  93. data/spec/api/content_collection_signatures_api_spec.rb +16 -2
  94. data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
  95. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
  96. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
  97. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
  98. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
  99. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
  100. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
  102. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
  103. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
  104. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
  105. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
  106. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
  107. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
  108. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
  109. data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
  110. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
  111. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
  112. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
  113. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
  114. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
  115. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
  116. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
  117. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
  118. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
  119. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
  120. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
  121. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
  122. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
  123. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
  124. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  125. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  126. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  127. data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
  128. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  129. data/spec/models/ansible_git_remote_spec.rb +19 -19
  130. data/spec/models/ansible_role_response_spec.rb +2 -2
  131. data/spec/models/collection_version_list_response_spec.rb +65 -0
  132. data/spec/models/keyring_enum_spec.rb +35 -0
  133. data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
  134. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  135. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  136. metadata +109 -5
@@ -15,25 +15,28 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemote
18
- # The username to authenticte to the proxy.
19
- attr_accessor :proxy_username
18
+ # If True, TLS peer validation must be performed.
19
+ attr_accessor :tls_validation
20
20
 
21
- # The username to be used for authentication when syncing.
22
- attr_accessor :username
21
+ # The password to authenticte to the proxy.
22
+ attr_accessor :proxy_password
23
23
 
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
24
+ attr_accessor :pulp_labels
25
+
26
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
27
+ attr_accessor :max_retries
28
+
29
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
+ attr_accessor :total_timeout
26
31
 
27
32
  # The proxy URL. Format: scheme://host:port
28
33
  attr_accessor :proxy_url
29
34
 
30
- # If True, TLS peer validation must be performed.
31
- attr_accessor :tls_validation
32
-
33
- attr_accessor :pulp_labels
35
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
+ attr_accessor :ca_cert
34
37
 
35
- # The URL of an external content source.
36
- attr_accessor :url
38
+ # A PEM encoded private key used for authentication.
39
+ attr_accessor :client_key
37
40
 
38
41
  # Limits requests per second for each concurrent downloader
39
42
  attr_accessor :rate_limit
@@ -41,39 +44,36 @@ module PulpAnsibleClient
41
44
  # 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.
42
45
  attr_accessor :sock_connect_timeout
43
46
 
44
- # 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.
45
- attr_accessor :sock_read_timeout
47
+ # Headers for aiohttp.Clientsession
48
+ attr_accessor :headers
46
49
 
47
- # The password to authenticte to the proxy.
48
- attr_accessor :proxy_password
50
+ # The username to be used for authentication when syncing.
51
+ attr_accessor :username
52
+
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
+ attr_accessor :download_concurrency
49
55
 
50
56
  # The password to be used for authentication when syncing.
51
57
  attr_accessor :password
52
58
 
53
- # 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
- attr_accessor :connect_timeout
55
-
56
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
57
- attr_accessor :ca_cert
58
-
59
- # A PEM encoded private key used for authentication.
60
- attr_accessor :client_key
59
+ # The username to authenticte to the proxy.
60
+ attr_accessor :proxy_username
61
61
 
62
- # Headers for aiohttp.Clientsession
63
- attr_accessor :headers
62
+ # 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.
63
+ attr_accessor :sock_read_timeout
64
64
 
65
65
  # A PEM encoded client certificate used for authentication.
66
66
  attr_accessor :client_cert
67
67
 
68
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
- attr_accessor :max_retries
68
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
+ attr_accessor :connect_timeout
70
+
71
+ # The URL of an external content source.
72
+ attr_accessor :url
70
73
 
71
74
  # A unique name for this remote.
72
75
  attr_accessor :name
73
76
 
74
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
75
- attr_accessor :total_timeout
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
79
79
 
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'proxy_username' => :'proxy_username',
87
- :'username' => :'username',
88
- :'download_concurrency' => :'download_concurrency',
89
- :'proxy_url' => :'proxy_url',
90
86
  :'tls_validation' => :'tls_validation',
91
- :'pulp_labels' => :'pulp_labels',
92
- :'url' => :'url',
93
- :'rate_limit' => :'rate_limit',
94
- :'sock_connect_timeout' => :'sock_connect_timeout',
95
- :'sock_read_timeout' => :'sock_read_timeout',
96
87
  :'proxy_password' => :'proxy_password',
97
- :'password' => :'password',
98
- :'connect_timeout' => :'connect_timeout',
88
+ :'pulp_labels' => :'pulp_labels',
89
+ :'max_retries' => :'max_retries',
90
+ :'total_timeout' => :'total_timeout',
91
+ :'proxy_url' => :'proxy_url',
99
92
  :'ca_cert' => :'ca_cert',
100
93
  :'client_key' => :'client_key',
94
+ :'rate_limit' => :'rate_limit',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
101
96
  :'headers' => :'headers',
97
+ :'username' => :'username',
98
+ :'download_concurrency' => :'download_concurrency',
99
+ :'password' => :'password',
100
+ :'proxy_username' => :'proxy_username',
101
+ :'sock_read_timeout' => :'sock_read_timeout',
102
102
  :'client_cert' => :'client_cert',
103
- :'max_retries' => :'max_retries',
103
+ :'connect_timeout' => :'connect_timeout',
104
+ :'url' => :'url',
104
105
  :'name' => :'name',
105
- :'total_timeout' => :'total_timeout',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -111,26 +111,26 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'proxy_username' => :'String',
115
- :'username' => :'String',
116
- :'download_concurrency' => :'Integer',
117
- :'proxy_url' => :'String',
118
114
  :'tls_validation' => :'Boolean',
119
- :'pulp_labels' => :'Object',
120
- :'url' => :'String',
121
- :'rate_limit' => :'Integer',
122
- :'sock_connect_timeout' => :'Float',
123
- :'sock_read_timeout' => :'Float',
124
115
  :'proxy_password' => :'String',
125
- :'password' => :'String',
126
- :'connect_timeout' => :'Float',
116
+ :'pulp_labels' => :'Object',
117
+ :'max_retries' => :'Integer',
118
+ :'total_timeout' => :'Float',
119
+ :'proxy_url' => :'String',
127
120
  :'ca_cert' => :'String',
128
121
  :'client_key' => :'String',
122
+ :'rate_limit' => :'Integer',
123
+ :'sock_connect_timeout' => :'Float',
129
124
  :'headers' => :'Array<Object>',
125
+ :'username' => :'String',
126
+ :'download_concurrency' => :'Integer',
127
+ :'password' => :'String',
128
+ :'proxy_username' => :'String',
129
+ :'sock_read_timeout' => :'Float',
130
130
  :'client_cert' => :'String',
131
- :'max_retries' => :'Integer',
131
+ :'connect_timeout' => :'Float',
132
+ :'url' => :'String',
132
133
  :'name' => :'String',
133
- :'total_timeout' => :'Float',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -139,21 +139,21 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
- :'proxy_username',
143
- :'username',
144
- :'download_concurrency',
142
+ :'proxy_password',
143
+ :'max_retries',
144
+ :'total_timeout',
145
145
  :'proxy_url',
146
+ :'ca_cert',
147
+ :'client_key',
146
148
  :'rate_limit',
147
149
  :'sock_connect_timeout',
148
- :'sock_read_timeout',
149
- :'proxy_password',
150
+ :'username',
151
+ :'download_concurrency',
150
152
  :'password',
151
- :'connect_timeout',
152
- :'ca_cert',
153
- :'client_key',
153
+ :'proxy_username',
154
+ :'sock_read_timeout',
154
155
  :'client_cert',
155
- :'max_retries',
156
- :'total_timeout',
156
+ :'connect_timeout',
157
157
  ])
158
158
  end
159
159
 
@@ -172,32 +172,36 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'proxy_username')
176
- self.proxy_username = attributes[:'proxy_username']
175
+ if attributes.key?(:'tls_validation')
176
+ self.tls_validation = attributes[:'tls_validation']
177
177
  end
178
178
 
179
- if attributes.key?(:'username')
180
- self.username = attributes[:'username']
179
+ if attributes.key?(:'proxy_password')
180
+ self.proxy_password = attributes[:'proxy_password']
181
181
  end
182
182
 
183
- if attributes.key?(:'download_concurrency')
184
- self.download_concurrency = attributes[:'download_concurrency']
183
+ if attributes.key?(:'pulp_labels')
184
+ self.pulp_labels = attributes[:'pulp_labels']
185
185
  end
186
186
 
187
- if attributes.key?(:'proxy_url')
188
- self.proxy_url = attributes[:'proxy_url']
187
+ if attributes.key?(:'max_retries')
188
+ self.max_retries = attributes[:'max_retries']
189
189
  end
190
190
 
191
- if attributes.key?(:'tls_validation')
192
- self.tls_validation = attributes[:'tls_validation']
191
+ if attributes.key?(:'total_timeout')
192
+ self.total_timeout = attributes[:'total_timeout']
193
193
  end
194
194
 
195
- if attributes.key?(:'pulp_labels')
196
- self.pulp_labels = attributes[:'pulp_labels']
195
+ if attributes.key?(:'proxy_url')
196
+ self.proxy_url = attributes[:'proxy_url']
197
197
  end
198
198
 
199
- if attributes.key?(:'url')
200
- self.url = attributes[:'url']
199
+ if attributes.key?(:'ca_cert')
200
+ self.ca_cert = attributes[:'ca_cert']
201
+ end
202
+
203
+ if attributes.key?(:'client_key')
204
+ self.client_key = attributes[:'client_key']
201
205
  end
202
206
 
203
207
  if attributes.key?(:'rate_limit')
@@ -208,50 +212,46 @@ module PulpAnsibleClient
208
212
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
209
213
  end
210
214
 
211
- if attributes.key?(:'sock_read_timeout')
212
- self.sock_read_timeout = attributes[:'sock_read_timeout']
213
- end
214
-
215
- if attributes.key?(:'proxy_password')
216
- self.proxy_password = attributes[:'proxy_password']
215
+ if attributes.key?(:'headers')
216
+ if (value = attributes[:'headers']).is_a?(Array)
217
+ self.headers = value
218
+ end
217
219
  end
218
220
 
219
- if attributes.key?(:'password')
220
- self.password = attributes[:'password']
221
+ if attributes.key?(:'username')
222
+ self.username = attributes[:'username']
221
223
  end
222
224
 
223
- if attributes.key?(:'connect_timeout')
224
- self.connect_timeout = attributes[:'connect_timeout']
225
+ if attributes.key?(:'download_concurrency')
226
+ self.download_concurrency = attributes[:'download_concurrency']
225
227
  end
226
228
 
227
- if attributes.key?(:'ca_cert')
228
- self.ca_cert = attributes[:'ca_cert']
229
+ if attributes.key?(:'password')
230
+ self.password = attributes[:'password']
229
231
  end
230
232
 
231
- if attributes.key?(:'client_key')
232
- self.client_key = attributes[:'client_key']
233
+ if attributes.key?(:'proxy_username')
234
+ self.proxy_username = attributes[:'proxy_username']
233
235
  end
234
236
 
235
- if attributes.key?(:'headers')
236
- if (value = attributes[:'headers']).is_a?(Array)
237
- self.headers = value
238
- end
237
+ if attributes.key?(:'sock_read_timeout')
238
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
239
239
  end
240
240
 
241
241
  if attributes.key?(:'client_cert')
242
242
  self.client_cert = attributes[:'client_cert']
243
243
  end
244
244
 
245
- if attributes.key?(:'max_retries')
246
- self.max_retries = attributes[:'max_retries']
245
+ if attributes.key?(:'connect_timeout')
246
+ self.connect_timeout = attributes[:'connect_timeout']
247
247
  end
248
248
 
249
- if attributes.key?(:'name')
250
- self.name = attributes[:'name']
249
+ if attributes.key?(:'url')
250
+ self.url = attributes[:'url']
251
251
  end
252
252
 
253
- if attributes.key?(:'total_timeout')
254
- self.total_timeout = attributes[:'total_timeout']
253
+ if attributes.key?(:'name')
254
+ self.name = attributes[:'name']
255
255
  end
256
256
 
257
257
  if attributes.key?(:'metadata_only')
@@ -267,62 +267,66 @@ module PulpAnsibleClient
267
267
  # @return Array for valid properties with the reasons
268
268
  def list_invalid_properties
269
269
  invalid_properties = Array.new
270
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
271
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
272
- end
273
-
274
- if !@username.nil? && @username.to_s.length < 1
275
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
270
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
271
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
276
272
  end
277
273
 
278
- if !@download_concurrency.nil? && @download_concurrency < 1
279
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
274
+ if !@total_timeout.nil? && @total_timeout < 0.0
275
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
280
276
  end
281
277
 
282
278
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
283
279
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
284
280
  end
285
281
 
286
- if @url.nil?
287
- invalid_properties.push('invalid value for "url", url cannot be nil.')
282
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
283
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
288
284
  end
289
285
 
290
- if @url.to_s.length < 1
291
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
286
+ if !@client_key.nil? && @client_key.to_s.length < 1
287
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
292
288
  end
293
289
 
294
290
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
295
291
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
296
292
  end
297
293
 
298
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
294
+ if !@username.nil? && @username.to_s.length < 1
295
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
300
296
  end
301
297
 
302
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
303
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
298
+ if !@download_concurrency.nil? && @download_concurrency < 1
299
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
300
  end
305
301
 
306
302
  if !@password.nil? && @password.to_s.length < 1
307
303
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
308
304
  end
309
305
 
310
- if !@connect_timeout.nil? && @connect_timeout < 0.0
311
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
312
- end
313
-
314
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
315
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
306
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
307
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
316
308
  end
317
309
 
318
- if !@client_key.nil? && @client_key.to_s.length < 1
319
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
310
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
311
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
320
312
  end
321
313
 
322
314
  if !@client_cert.nil? && @client_cert.to_s.length < 1
323
315
  invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
324
316
  end
325
317
 
318
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
319
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
320
+ end
321
+
322
+ if @url.nil?
323
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
324
+ end
325
+
326
+ if @url.to_s.length < 1
327
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
328
+ end
329
+
326
330
  if @name.nil?
327
331
  invalid_properties.push('invalid value for "name", name cannot be nil.')
328
332
  end
@@ -331,10 +335,6 @@ module PulpAnsibleClient
331
335
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
332
336
  end
333
337
 
334
- if !@total_timeout.nil? && @total_timeout < 0.0
335
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
336
- end
337
-
338
338
  if !@git_ref.nil? && @git_ref.to_s.length < 1
339
339
  invalid_properties.push('invalid value for "git_ref", the character length must be great than or equal to 1.')
340
340
  end
@@ -345,55 +345,45 @@ module PulpAnsibleClient
345
345
  # Check to see if the all the properties in the model are valid
346
346
  # @return true if the model is valid
347
347
  def valid?
348
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
349
- return false if !@username.nil? && @username.to_s.length < 1
350
- return false if !@download_concurrency.nil? && @download_concurrency < 1
351
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
352
- return false if @url.nil?
353
- return false if @url.to_s.length < 1
354
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
355
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
356
348
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
357
- return false if !@password.nil? && @password.to_s.length < 1
358
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
349
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
350
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
359
351
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
360
352
  return false if !@client_key.nil? && @client_key.to_s.length < 1
353
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
354
+ return false if !@username.nil? && @username.to_s.length < 1
355
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
356
+ return false if !@password.nil? && @password.to_s.length < 1
357
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
358
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
361
359
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
360
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
361
+ return false if @url.nil?
362
+ return false if @url.to_s.length < 1
362
363
  return false if @name.nil?
363
364
  return false if @name.to_s.length < 1
364
- return false if !@total_timeout.nil? && @total_timeout < 0.0
365
365
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
366
  true
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] proxy_username Value to be assigned
371
- def proxy_username=(proxy_username)
372
- if !proxy_username.nil? && proxy_username.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
374
- end
375
-
376
- @proxy_username = proxy_username
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] username Value to be assigned
381
- def username=(username)
382
- if !username.nil? && username.to_s.length < 1
383
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
370
+ # @param [Object] proxy_password Value to be assigned
371
+ def proxy_password=(proxy_password)
372
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
384
374
  end
385
375
 
386
- @username = username
376
+ @proxy_password = proxy_password
387
377
  end
388
378
 
389
379
  # Custom attribute writer method with validation
390
- # @param [Object] download_concurrency Value to be assigned
391
- def download_concurrency=(download_concurrency)
392
- if !download_concurrency.nil? && download_concurrency < 1
393
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
380
+ # @param [Object] total_timeout Value to be assigned
381
+ def total_timeout=(total_timeout)
382
+ if !total_timeout.nil? && total_timeout < 0.0
383
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
394
384
  end
395
385
 
396
- @download_concurrency = download_concurrency
386
+ @total_timeout = total_timeout
397
387
  end
398
388
 
399
389
  # Custom attribute writer method with validation
@@ -407,17 +397,23 @@ module PulpAnsibleClient
407
397
  end
408
398
 
409
399
  # Custom attribute writer method with validation
410
- # @param [Object] url Value to be assigned
411
- def url=(url)
412
- if url.nil?
413
- fail ArgumentError, 'url cannot be nil'
400
+ # @param [Object] ca_cert Value to be assigned
401
+ def ca_cert=(ca_cert)
402
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
403
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
414
404
  end
415
405
 
416
- if url.to_s.length < 1
417
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
406
+ @ca_cert = ca_cert
407
+ end
408
+
409
+ # Custom attribute writer method with validation
410
+ # @param [Object] client_key Value to be assigned
411
+ def client_key=(client_key)
412
+ if !client_key.nil? && client_key.to_s.length < 1
413
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
418
414
  end
419
415
 
420
- @url = url
416
+ @client_key = client_key
421
417
  end
422
418
 
423
419
  # Custom attribute writer method with validation
@@ -431,23 +427,23 @@ module PulpAnsibleClient
431
427
  end
432
428
 
433
429
  # Custom attribute writer method with validation
434
- # @param [Object] sock_read_timeout Value to be assigned
435
- def sock_read_timeout=(sock_read_timeout)
436
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
437
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
430
+ # @param [Object] username Value to be assigned
431
+ def username=(username)
432
+ if !username.nil? && username.to_s.length < 1
433
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
438
434
  end
439
435
 
440
- @sock_read_timeout = sock_read_timeout
436
+ @username = username
441
437
  end
442
438
 
443
439
  # Custom attribute writer method with validation
444
- # @param [Object] proxy_password Value to be assigned
445
- def proxy_password=(proxy_password)
446
- if !proxy_password.nil? && proxy_password.to_s.length < 1
447
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
440
+ # @param [Object] download_concurrency Value to be assigned
441
+ def download_concurrency=(download_concurrency)
442
+ if !download_concurrency.nil? && download_concurrency < 1
443
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
448
444
  end
449
445
 
450
- @proxy_password = proxy_password
446
+ @download_concurrency = download_concurrency
451
447
  end
452
448
 
453
449
  # Custom attribute writer method with validation
@@ -461,33 +457,23 @@ module PulpAnsibleClient
461
457
  end
462
458
 
463
459
  # Custom attribute writer method with validation
464
- # @param [Object] connect_timeout Value to be assigned
465
- def connect_timeout=(connect_timeout)
466
- if !connect_timeout.nil? && connect_timeout < 0.0
467
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
468
- end
469
-
470
- @connect_timeout = connect_timeout
471
- end
472
-
473
- # Custom attribute writer method with validation
474
- # @param [Object] ca_cert Value to be assigned
475
- def ca_cert=(ca_cert)
476
- if !ca_cert.nil? && ca_cert.to_s.length < 1
477
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
460
+ # @param [Object] proxy_username Value to be assigned
461
+ def proxy_username=(proxy_username)
462
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
478
464
  end
479
465
 
480
- @ca_cert = ca_cert
466
+ @proxy_username = proxy_username
481
467
  end
482
468
 
483
469
  # Custom attribute writer method with validation
484
- # @param [Object] client_key Value to be assigned
485
- def client_key=(client_key)
486
- if !client_key.nil? && client_key.to_s.length < 1
487
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
470
+ # @param [Object] sock_read_timeout Value to be assigned
471
+ def sock_read_timeout=(sock_read_timeout)
472
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
473
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
488
474
  end
489
475
 
490
- @client_key = client_key
476
+ @sock_read_timeout = sock_read_timeout
491
477
  end
492
478
 
493
479
  # Custom attribute writer method with validation
@@ -500,6 +486,30 @@ module PulpAnsibleClient
500
486
  @client_cert = client_cert
501
487
  end
502
488
 
489
+ # Custom attribute writer method with validation
490
+ # @param [Object] connect_timeout Value to be assigned
491
+ def connect_timeout=(connect_timeout)
492
+ if !connect_timeout.nil? && connect_timeout < 0.0
493
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
494
+ end
495
+
496
+ @connect_timeout = connect_timeout
497
+ end
498
+
499
+ # Custom attribute writer method with validation
500
+ # @param [Object] url Value to be assigned
501
+ def url=(url)
502
+ if url.nil?
503
+ fail ArgumentError, 'url cannot be nil'
504
+ end
505
+
506
+ if url.to_s.length < 1
507
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
508
+ end
509
+
510
+ @url = url
511
+ end
512
+
503
513
  # Custom attribute writer method with validation
504
514
  # @param [Object] name Value to be assigned
505
515
  def name=(name)
@@ -514,16 +524,6 @@ module PulpAnsibleClient
514
524
  @name = name
515
525
  end
516
526
 
517
- # Custom attribute writer method with validation
518
- # @param [Object] total_timeout Value to be assigned
519
- def total_timeout=(total_timeout)
520
- if !total_timeout.nil? && total_timeout < 0.0
521
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
522
- end
523
-
524
- @total_timeout = total_timeout
525
- end
526
-
527
527
  # Custom attribute writer method with validation
528
528
  # @param [Object] git_ref Value to be assigned
529
529
  def git_ref=(git_ref)
@@ -539,26 +539,26 @@ module PulpAnsibleClient
539
539
  def ==(o)
540
540
  return true if self.equal?(o)
541
541
  self.class == o.class &&
542
- proxy_username == o.proxy_username &&
543
- username == o.username &&
544
- download_concurrency == o.download_concurrency &&
545
- proxy_url == o.proxy_url &&
546
542
  tls_validation == o.tls_validation &&
547
- pulp_labels == o.pulp_labels &&
548
- url == o.url &&
549
- rate_limit == o.rate_limit &&
550
- sock_connect_timeout == o.sock_connect_timeout &&
551
- sock_read_timeout == o.sock_read_timeout &&
552
543
  proxy_password == o.proxy_password &&
553
- password == o.password &&
554
- connect_timeout == o.connect_timeout &&
544
+ pulp_labels == o.pulp_labels &&
545
+ max_retries == o.max_retries &&
546
+ total_timeout == o.total_timeout &&
547
+ proxy_url == o.proxy_url &&
555
548
  ca_cert == o.ca_cert &&
556
549
  client_key == o.client_key &&
550
+ rate_limit == o.rate_limit &&
551
+ sock_connect_timeout == o.sock_connect_timeout &&
557
552
  headers == o.headers &&
553
+ username == o.username &&
554
+ download_concurrency == o.download_concurrency &&
555
+ password == o.password &&
556
+ proxy_username == o.proxy_username &&
557
+ sock_read_timeout == o.sock_read_timeout &&
558
558
  client_cert == o.client_cert &&
559
- max_retries == o.max_retries &&
559
+ connect_timeout == o.connect_timeout &&
560
+ url == o.url &&
560
561
  name == o.name &&
561
- total_timeout == o.total_timeout &&
562
562
  metadata_only == o.metadata_only &&
563
563
  git_ref == o.git_ref
564
564
  end
@@ -572,7 +572,7 @@ module PulpAnsibleClient
572
572
  # Calculates hash code according to all attributes.
573
573
  # @return [Integer] Hash code
574
574
  def hash
575
- [proxy_username, username, download_concurrency, proxy_url, tls_validation, pulp_labels, url, rate_limit, sock_connect_timeout, sock_read_timeout, proxy_password, password, connect_timeout, ca_cert, client_key, headers, client_cert, max_retries, name, total_timeout, metadata_only, git_ref].hash
575
+ [tls_validation, proxy_password, pulp_labels, max_retries, total_timeout, proxy_url, ca_cert, client_key, rate_limit, sock_connect_timeout, headers, username, download_concurrency, password, proxy_username, sock_read_timeout, client_cert, connect_timeout, url, name, metadata_only, git_ref].hash
576
576
  end
577
577
 
578
578
  # Builds the object from hash