pulp_ansible_client 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleCollectionsApi.md +6 -2
  7. data/docs/AnsibleGitRemote.md +29 -29
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRoleRemote.md +1 -1
  10. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  11. data/docs/CollectionRefResponse.md +1 -1
  12. data/docs/CollectionResponse.md +6 -6
  13. data/docs/CollectionVersionListResponse.md +2 -2
  14. data/docs/CollectionVersionResponse.md +5 -5
  15. data/docs/ContentCollectionDeprecationsApi.md +6 -2
  16. data/docs/ContentCollectionMarksApi.md +6 -2
  17. data/docs/ContentCollectionSignaturesApi.md +6 -2
  18. data/docs/ContentCollectionVersionsApi.md +6 -2
  19. data/docs/ContentNamespacesApi.md +6 -2
  20. data/docs/ContentRolesApi.md +6 -2
  21. data/docs/DistributionsAnsibleApi.md +6 -2
  22. data/docs/GalaxyCollectionResponse.md +4 -4
  23. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  24. data/docs/GalaxyRoleResponse.md +1 -1
  25. data/docs/GalaxyRoleVersionResponse.md +1 -1
  26. data/docs/PatchedansibleCollectionRemote.md +1 -1
  27. data/docs/PatchedansibleGitRemote.md +29 -29
  28. data/docs/PatchedansibleRoleRemote.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -2
  30. data/docs/PulpAnsibleApiV3CollectionsApi.md +6 -2
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +6 -2
  32. data/docs/PulpAnsibleApiV3NamespacesApi.md +6 -2
  33. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -2
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +6 -2
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -2
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +6 -2
  37. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +2 -2
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -2
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +6 -2
  40. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +6 -2
  41. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +6 -2
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -2
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +6 -2
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -2
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +6 -2
  46. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +2 -2
  47. data/docs/RemotesCollectionApi.md +6 -2
  48. data/docs/RemotesGitApi.md +6 -2
  49. data/docs/RemotesRoleApi.md +6 -2
  50. data/docs/RepositoriesAnsibleApi.md +6 -2
  51. data/docs/RepositoriesAnsibleVersionsApi.md +4 -2
  52. data/docs/UnpaginatedCollectionVersionResponse.md +5 -5
  53. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +8 -2
  54. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +8 -2
  55. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +8 -2
  56. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +8 -2
  57. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -2
  58. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +8 -2
  59. data/lib/pulp_ansible_client/api/content_roles_api.rb +8 -2
  60. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +8 -2
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +8 -2
  62. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +8 -2
  63. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +8 -2
  64. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +8 -2
  65. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +8 -2
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +8 -2
  67. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +8 -2
  68. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -2
  69. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -2
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +8 -2
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +8 -2
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +8 -2
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +8 -2
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +8 -2
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +8 -2
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +8 -2
  77. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -2
  78. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +2 -2
  79. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +8 -2
  80. data/lib/pulp_ansible_client/api/remotes_git_api.rb +8 -2
  81. data/lib/pulp_ansible_client/api/remotes_role_api.rb +8 -2
  82. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +8 -2
  83. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +5 -2
  84. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
  85. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  87. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +231 -231
  88. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +147 -147
  89. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
  90. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  91. data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -0
  92. data/lib/pulp_ansible_client/models/collection_response.rb +6 -0
  93. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +2 -0
  94. data/lib/pulp_ansible_client/models/collection_version_response.rb +5 -0
  95. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +4 -0
  96. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +4 -0
  97. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -0
  98. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -0
  99. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
  100. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +225 -225
  101. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
  102. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +5 -0
  103. data/lib/pulp_ansible_client/version.rb +1 -1
  104. data/spec/api/ansible_collections_api_spec.rb +3 -1
  105. data/spec/api/content_collection_deprecations_api_spec.rb +3 -1
  106. data/spec/api/content_collection_marks_api_spec.rb +3 -1
  107. data/spec/api/content_collection_signatures_api_spec.rb +3 -1
  108. data/spec/api/content_collection_versions_api_spec.rb +3 -1
  109. data/spec/api/content_namespaces_api_spec.rb +3 -1
  110. data/spec/api/content_roles_api_spec.rb +3 -1
  111. data/spec/api/distributions_ansible_api_spec.rb +3 -1
  112. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -1
  113. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +3 -1
  114. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +3 -1
  115. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +3 -1
  116. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -1
  117. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +3 -1
  118. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +3 -1
  119. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +3 -1
  120. data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -1
  121. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -1
  122. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +3 -1
  123. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +3 -1
  124. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +3 -1
  125. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -1
  126. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +3 -1
  127. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +3 -1
  128. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +3 -1
  129. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +1 -1
  130. data/spec/api/remotes_collection_api_spec.rb +3 -1
  131. data/spec/api/remotes_git_api_spec.rb +3 -1
  132. data/spec/api/remotes_role_api_spec.rb +3 -1
  133. data/spec/api/repositories_ansible_api_spec.rb +3 -1
  134. data/spec/api/repositories_ansible_versions_api_spec.rb +2 -1
  135. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  136. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  137. data/spec/models/ansible_git_remote_spec.rb +19 -19
  138. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  139. metadata +128 -128
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- attr_accessor :pulp_href
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
19
20
 
20
- # 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.
21
- attr_accessor :sock_read_timeout
21
+ # The proxy URL. Format: scheme://host:port
22
+ attr_accessor :proxy_url
22
23
 
23
24
  # List of hidden (write only) fields
24
25
  attr_accessor :hidden_fields
25
26
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
27
+ # Limits requests per second for each concurrent downloader
28
+ attr_accessor :rate_limit
28
29
 
29
- # If True, TLS peer validation must be performed.
30
- attr_accessor :tls_validation
30
+ # Headers for aiohttp.Clientsession
31
+ attr_accessor :headers
31
32
 
32
- # Timestamp of the most recent update of the remote.
33
- attr_accessor :pulp_last_updated
33
+ # Total number of simultaneous connections. If not set then the default value will be used.
34
+ attr_accessor :download_concurrency
35
+
36
+ # A PEM encoded client certificate used for authentication.
37
+ attr_accessor :client_cert
34
38
 
35
39
  # A unique name for this remote.
36
40
  attr_accessor :name
37
41
 
38
- # A PEM encoded client certificate used for authentication.
39
- attr_accessor :client_cert
42
+ # If True, TLS peer validation must be performed.
43
+ attr_accessor :tls_validation
40
44
 
41
- # The proxy URL. Format: scheme://host:port
42
- attr_accessor :proxy_url
45
+ # Timestamp of the most recent update of the remote.
46
+ attr_accessor :pulp_last_updated
43
47
 
44
- # The URL of an external content source.
45
- attr_accessor :url
48
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
49
+ attr_accessor :ca_cert
46
50
 
47
51
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
48
52
  attr_accessor :max_retries
49
53
 
50
- attr_accessor :pulp_labels
51
-
52
54
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
55
  attr_accessor :total_timeout
54
56
 
55
- # Headers for aiohttp.Clientsession
56
- attr_accessor :headers
57
+ # The URL of an external content source.
58
+ attr_accessor :url
57
59
 
58
- # 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.
59
- attr_accessor :sock_connect_timeout
60
+ attr_accessor :pulp_labels
60
61
 
61
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
- attr_accessor :connect_timeout
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
63
64
 
64
- # Total number of simultaneous connections. If not set then the default value will be used.
65
- attr_accessor :download_concurrency
65
+ attr_accessor :pulp_href
66
66
 
67
- # Limits requests per second for each concurrent downloader
68
- attr_accessor :rate_limit
67
+ # Timestamp of creation.
68
+ attr_accessor :pulp_created
69
69
 
70
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
71
- attr_accessor :ca_cert
70
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
+ attr_accessor :connect_timeout
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'pulp_href' => :'pulp_href',
83
- :'sock_read_timeout' => :'sock_read_timeout',
82
+ :'sock_connect_timeout' => :'sock_connect_timeout',
83
+ :'proxy_url' => :'proxy_url',
84
84
  :'hidden_fields' => :'hidden_fields',
85
- :'pulp_created' => :'pulp_created',
85
+ :'rate_limit' => :'rate_limit',
86
+ :'headers' => :'headers',
87
+ :'download_concurrency' => :'download_concurrency',
88
+ :'client_cert' => :'client_cert',
89
+ :'name' => :'name',
86
90
  :'tls_validation' => :'tls_validation',
87
91
  :'pulp_last_updated' => :'pulp_last_updated',
88
- :'name' => :'name',
89
- :'client_cert' => :'client_cert',
90
- :'proxy_url' => :'proxy_url',
91
- :'url' => :'url',
92
+ :'ca_cert' => :'ca_cert',
92
93
  :'max_retries' => :'max_retries',
93
- :'pulp_labels' => :'pulp_labels',
94
94
  :'total_timeout' => :'total_timeout',
95
- :'headers' => :'headers',
96
- :'sock_connect_timeout' => :'sock_connect_timeout',
95
+ :'url' => :'url',
96
+ :'pulp_labels' => :'pulp_labels',
97
+ :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'pulp_href' => :'pulp_href',
99
+ :'pulp_created' => :'pulp_created',
97
100
  :'connect_timeout' => :'connect_timeout',
98
- :'download_concurrency' => :'download_concurrency',
99
- :'rate_limit' => :'rate_limit',
100
- :'ca_cert' => :'ca_cert',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'pulp_href' => :'String',
110
- :'sock_read_timeout' => :'Float',
109
+ :'sock_connect_timeout' => :'Float',
110
+ :'proxy_url' => :'String',
111
111
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
112
- :'pulp_created' => :'DateTime',
112
+ :'rate_limit' => :'Integer',
113
+ :'headers' => :'Array<Object>',
114
+ :'download_concurrency' => :'Integer',
115
+ :'client_cert' => :'String',
116
+ :'name' => :'String',
113
117
  :'tls_validation' => :'Boolean',
114
118
  :'pulp_last_updated' => :'DateTime',
115
- :'name' => :'String',
116
- :'client_cert' => :'String',
117
- :'proxy_url' => :'String',
118
- :'url' => :'String',
119
+ :'ca_cert' => :'String',
119
120
  :'max_retries' => :'Integer',
120
- :'pulp_labels' => :'Hash<String, String>',
121
121
  :'total_timeout' => :'Float',
122
- :'headers' => :'Array<Object>',
123
- :'sock_connect_timeout' => :'Float',
122
+ :'url' => :'String',
123
+ :'pulp_labels' => :'Hash<String, String>',
124
+ :'sock_read_timeout' => :'Float',
125
+ :'pulp_href' => :'String',
126
+ :'pulp_created' => :'DateTime',
124
127
  :'connect_timeout' => :'Float',
125
- :'download_concurrency' => :'Integer',
126
- :'rate_limit' => :'Integer',
127
- :'ca_cert' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'sock_read_timeout',
137
- :'client_cert',
136
+ :'sock_connect_timeout',
138
137
  :'proxy_url',
138
+ :'rate_limit',
139
+ :'download_concurrency',
140
+ :'client_cert',
141
+ :'ca_cert',
139
142
  :'max_retries',
140
143
  :'total_timeout',
141
- :'sock_connect_timeout',
144
+ :'sock_read_timeout',
142
145
  :'connect_timeout',
143
- :'download_concurrency',
144
- :'rate_limit',
145
- :'ca_cert',
146
146
  ])
147
147
  end
148
148
 
@@ -161,12 +161,12 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_href')
165
- self.pulp_href = attributes[:'pulp_href']
164
+ if attributes.key?(:'sock_connect_timeout')
165
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
166
166
  end
167
167
 
168
- if attributes.key?(:'sock_read_timeout')
169
- self.sock_read_timeout = attributes[:'sock_read_timeout']
168
+ if attributes.key?(:'proxy_url')
169
+ self.proxy_url = attributes[:'proxy_url']
170
170
  end
171
171
 
172
172
  if attributes.key?(:'hidden_fields')
@@ -175,72 +175,72 @@ module PulpAnsibleClient
175
175
  end
176
176
  end
177
177
 
178
- if attributes.key?(:'pulp_created')
179
- self.pulp_created = attributes[:'pulp_created']
178
+ if attributes.key?(:'rate_limit')
179
+ self.rate_limit = attributes[:'rate_limit']
180
180
  end
181
181
 
182
- if attributes.key?(:'tls_validation')
183
- self.tls_validation = attributes[:'tls_validation']
182
+ if attributes.key?(:'headers')
183
+ if (value = attributes[:'headers']).is_a?(Array)
184
+ self.headers = value
185
+ end
184
186
  end
185
187
 
186
- if attributes.key?(:'pulp_last_updated')
187
- self.pulp_last_updated = attributes[:'pulp_last_updated']
188
+ if attributes.key?(:'download_concurrency')
189
+ self.download_concurrency = attributes[:'download_concurrency']
190
+ end
191
+
192
+ if attributes.key?(:'client_cert')
193
+ self.client_cert = attributes[:'client_cert']
188
194
  end
189
195
 
190
196
  if attributes.key?(:'name')
191
197
  self.name = attributes[:'name']
192
198
  end
193
199
 
194
- if attributes.key?(:'client_cert')
195
- self.client_cert = attributes[:'client_cert']
200
+ if attributes.key?(:'tls_validation')
201
+ self.tls_validation = attributes[:'tls_validation']
196
202
  end
197
203
 
198
- if attributes.key?(:'proxy_url')
199
- self.proxy_url = attributes[:'proxy_url']
204
+ if attributes.key?(:'pulp_last_updated')
205
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
200
206
  end
201
207
 
202
- if attributes.key?(:'url')
203
- self.url = attributes[:'url']
208
+ if attributes.key?(:'ca_cert')
209
+ self.ca_cert = attributes[:'ca_cert']
204
210
  end
205
211
 
206
212
  if attributes.key?(:'max_retries')
207
213
  self.max_retries = attributes[:'max_retries']
208
214
  end
209
215
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
214
- end
215
-
216
216
  if attributes.key?(:'total_timeout')
217
217
  self.total_timeout = attributes[:'total_timeout']
218
218
  end
219
219
 
220
- if attributes.key?(:'headers')
221
- if (value = attributes[:'headers']).is_a?(Array)
222
- self.headers = value
223
- end
220
+ if attributes.key?(:'url')
221
+ self.url = attributes[:'url']
224
222
  end
225
223
 
226
- if attributes.key?(:'sock_connect_timeout')
227
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
224
+ if attributes.key?(:'pulp_labels')
225
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
226
+ self.pulp_labels = value
227
+ end
228
228
  end
229
229
 
230
- if attributes.key?(:'connect_timeout')
231
- self.connect_timeout = attributes[:'connect_timeout']
230
+ if attributes.key?(:'sock_read_timeout')
231
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
232
232
  end
233
233
 
234
- if attributes.key?(:'download_concurrency')
235
- self.download_concurrency = attributes[:'download_concurrency']
234
+ if attributes.key?(:'pulp_href')
235
+ self.pulp_href = attributes[:'pulp_href']
236
236
  end
237
237
 
238
- if attributes.key?(:'rate_limit')
239
- self.rate_limit = attributes[:'rate_limit']
238
+ if attributes.key?(:'pulp_created')
239
+ self.pulp_created = attributes[:'pulp_created']
240
240
  end
241
241
 
242
- if attributes.key?(:'ca_cert')
243
- self.ca_cert = attributes[:'ca_cert']
242
+ if attributes.key?(:'connect_timeout')
243
+ self.connect_timeout = attributes[:'connect_timeout']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
260
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
259
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
- if @name.nil?
264
- invalid_properties.push('invalid value for "name", name cannot be nil.')
263
+ if !@download_concurrency.nil? && @download_concurrency < 1
264
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
265
265
  end
266
266
 
267
- if @url.nil?
268
- invalid_properties.push('invalid value for "url", url cannot be nil.')
267
+ if @name.nil?
268
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
269
269
  end
270
270
 
271
271
  if !@total_timeout.nil? && @total_timeout < 0.0
272
272
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
273
273
  end
274
274
 
275
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
276
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
277
  end
278
278
 
279
- if !@connect_timeout.nil? && @connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
280
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
281
281
  end
282
282
 
283
- if !@download_concurrency.nil? && @download_concurrency < 1
284
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
283
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
284
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,24 +290,34 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
293
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
294
295
  return false if @name.nil?
295
- return false if @url.nil?
296
296
  return false if !@total_timeout.nil? && @total_timeout < 0.0
297
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
297
+ return false if @url.nil?
298
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
299
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
299
- return false if !@download_concurrency.nil? && @download_concurrency < 1
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] sock_read_timeout Value to be assigned
305
- def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
304
+ # @param [Object] sock_connect_timeout Value to be assigned
305
+ def sock_connect_timeout=(sock_connect_timeout)
306
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
308
308
  end
309
309
 
310
- @sock_read_timeout = sock_read_timeout
310
+ @sock_connect_timeout = sock_connect_timeout
311
+ end
312
+
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] download_concurrency Value to be assigned
315
+ def download_concurrency=(download_concurrency)
316
+ if !download_concurrency.nil? && download_concurrency < 1
317
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
318
+ end
319
+
320
+ @download_concurrency = download_concurrency
311
321
  end
312
322
 
313
323
  # Custom attribute writer method with validation
@@ -321,13 +331,13 @@ module PulpAnsibleClient
321
331
  end
322
332
 
323
333
  # Custom attribute writer method with validation
324
- # @param [Object] sock_connect_timeout Value to be assigned
325
- def sock_connect_timeout=(sock_connect_timeout)
326
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
334
+ # @param [Object] sock_read_timeout Value to be assigned
335
+ def sock_read_timeout=(sock_read_timeout)
336
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
328
338
  end
329
339
 
330
- @sock_connect_timeout = sock_connect_timeout
340
+ @sock_read_timeout = sock_read_timeout
331
341
  end
332
342
 
333
343
  # Custom attribute writer method with validation
@@ -340,40 +350,30 @@ module PulpAnsibleClient
340
350
  @connect_timeout = connect_timeout
341
351
  end
342
352
 
343
- # Custom attribute writer method with validation
344
- # @param [Object] download_concurrency Value to be assigned
345
- def download_concurrency=(download_concurrency)
346
- if !download_concurrency.nil? && download_concurrency < 1
347
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
- end
349
-
350
- @download_concurrency = download_concurrency
351
- end
352
-
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- pulp_href == o.pulp_href &&
359
- sock_read_timeout == o.sock_read_timeout &&
358
+ sock_connect_timeout == o.sock_connect_timeout &&
359
+ proxy_url == o.proxy_url &&
360
360
  hidden_fields == o.hidden_fields &&
361
- pulp_created == o.pulp_created &&
361
+ rate_limit == o.rate_limit &&
362
+ headers == o.headers &&
363
+ download_concurrency == o.download_concurrency &&
364
+ client_cert == o.client_cert &&
365
+ name == o.name &&
362
366
  tls_validation == o.tls_validation &&
363
367
  pulp_last_updated == o.pulp_last_updated &&
364
- name == o.name &&
365
- client_cert == o.client_cert &&
366
- proxy_url == o.proxy_url &&
367
- url == o.url &&
368
+ ca_cert == o.ca_cert &&
368
369
  max_retries == o.max_retries &&
369
- pulp_labels == o.pulp_labels &&
370
370
  total_timeout == o.total_timeout &&
371
- headers == o.headers &&
372
- sock_connect_timeout == o.sock_connect_timeout &&
371
+ url == o.url &&
372
+ pulp_labels == o.pulp_labels &&
373
+ sock_read_timeout == o.sock_read_timeout &&
374
+ pulp_href == o.pulp_href &&
375
+ pulp_created == o.pulp_created &&
373
376
  connect_timeout == o.connect_timeout &&
374
- download_concurrency == o.download_concurrency &&
375
- rate_limit == o.rate_limit &&
376
- ca_cert == o.ca_cert &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [pulp_href, sock_read_timeout, hidden_fields, pulp_created, tls_validation, pulp_last_updated, name, client_cert, proxy_url, url, max_retries, pulp_labels, total_timeout, headers, sock_connect_timeout, connect_timeout, download_concurrency, rate_limit, ca_cert, metadata_only, git_ref].hash
390
+ [sock_connect_timeout, proxy_url, hidden_fields, rate_limit, headers, download_concurrency, client_cert, name, tls_validation, pulp_last_updated, ca_cert, max_retries, total_timeout, url, pulp_labels, sock_read_timeout, pulp_href, pulp_created, connect_timeout, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpAnsibleClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content.
59
+ # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -49,7 +49,7 @@ module PulpAnsibleClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # The policy to use when downloading content.
52
+ # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -19,6 +19,7 @@ module PulpAnsibleClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ # Returns link to a collection.
22
23
  attr_accessor :href
23
24
 
24
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -15,20 +15,26 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for a Collection.
17
17
  class CollectionResponse
18
+ # Get href.
18
19
  attr_accessor :href
19
20
 
20
21
  attr_accessor :namespace
21
22
 
22
23
  attr_accessor :name
23
24
 
25
+ # Get deprecated.
24
26
  attr_accessor :deprecated
25
27
 
28
+ # Get a link to a collection versions list.
26
29
  attr_accessor :versions_url
27
30
 
31
+ # Get a highest version and its link.
28
32
  attr_accessor :highest_version
29
33
 
34
+ # Get the timestamp of the lowest version CollectionVersion's created timestamp.
30
35
  attr_accessor :created_at
31
36
 
37
+ # Get the timestamp of the highest version CollectionVersion's created timestamp.
32
38
  attr_accessor :updated_at
33
39
 
34
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,6 +17,7 @@ module PulpAnsibleClient
17
17
  class CollectionVersionListResponse
18
18
  attr_accessor :version
19
19
 
20
+ # Get href.
20
21
  attr_accessor :href
21
22
 
22
23
  attr_accessor :created_at
@@ -25,6 +26,7 @@ module PulpAnsibleClient
25
26
 
26
27
  attr_accessor :requires_ansible
27
28
 
29
+ # Get a list of mark values filtering only those in the current repo.
28
30
  attr_accessor :marks
29
31
 
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,6 +17,7 @@ module PulpAnsibleClient
17
17
  class CollectionVersionResponse
18
18
  attr_accessor :version
19
19
 
20
+ # Get href.
20
21
  attr_accessor :href
21
22
 
22
23
  attr_accessor :created_at
@@ -25,12 +26,14 @@ module PulpAnsibleClient
25
26
 
26
27
  attr_accessor :requires_ansible
27
28
 
29
+ # Get a list of mark values filtering only those in the current repo.
28
30
  attr_accessor :marks
29
31
 
30
32
  attr_accessor :artifact
31
33
 
32
34
  attr_accessor :collection
33
35
 
36
+ # Get artifact download URL.
34
37
  attr_accessor :download_url
35
38
 
36
39
  attr_accessor :name
@@ -41,8 +44,10 @@ module PulpAnsibleClient
41
44
 
42
45
  attr_accessor :metadata
43
46
 
47
+ # Get the git URL.
44
48
  attr_accessor :git_url
45
49
 
50
+ # Get the git commit sha.
46
51
  attr_accessor :git_commit_sha
47
52
 
48
53
  # A JSON field holding MANIFEST.json data.
@@ -19,16 +19,20 @@ module PulpAnsibleClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
+ # Create a namespace dict.
22
23
  attr_accessor :namespace
23
24
 
25
+ # Get href.
24
26
  attr_accessor :href
25
27
 
28
+ # Get versions_url.
26
29
  attr_accessor :versions_url
27
30
 
28
31
  attr_accessor :created
29
32
 
30
33
  attr_accessor :modified
31
34
 
35
+ # Get latest version.
32
36
  attr_accessor :latest_version
33
37
 
34
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,12 +17,16 @@ module PulpAnsibleClient
17
17
  class GalaxyCollectionVersionResponse
18
18
  attr_accessor :version
19
19
 
20
+ # Get href.
20
21
  attr_accessor :href
21
22
 
23
+ # Create a namespace dict.
22
24
  attr_accessor :namespace
23
25
 
26
+ # Create a collection dict.
24
27
  attr_accessor :collection
25
28
 
29
+ # Create an artifact dict.
26
30
  attr_accessor :artifact
27
31
 
28
32
  attr_accessor :metadata
@@ -15,6 +15,7 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Galaxy's representation of Roles.
17
17
  class GalaxyRoleResponse
18
+ # Get id.
18
19
  attr_accessor :id
19
20
 
20
21
  attr_accessor :name
@@ -17,6 +17,7 @@ module PulpAnsibleClient
17
17
  class GalaxyRoleVersionResponse
18
18
  attr_accessor :name
19
19
 
20
+ # Get source.
20
21
  attr_accessor :source
21
22
 
22
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -56,7 +56,7 @@ module PulpAnsibleClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content.
59
+ # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.