pulp_ansible_client 0.16.2 → 0.16.4

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