pulp_ansible_client 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -29
  3. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  4. data/docs/AnsibleCollectionVersionSignature.md +3 -3
  5. data/docs/AnsibleCollectionsApi.md +15 -9
  6. data/docs/AnsibleCopyApi.md +1 -1
  7. data/docs/AnsibleGitRemote.md +30 -30
  8. data/docs/AnsibleGitRemoteResponse.md +27 -27
  9. data/docs/AnsibleRole.md +2 -0
  10. data/docs/AnsibleRoleResponse.md +3 -3
  11. data/docs/ApiCollectionsApi.md +1 -1
  12. data/docs/ApiRolesApi.md +1 -1
  13. data/docs/CollectionImportApi.md +1 -1
  14. data/docs/ContentCollectionDeprecationsApi.md +3 -1
  15. data/docs/ContentCollectionMarksApi.md +4 -2
  16. data/docs/ContentCollectionSignaturesApi.md +5 -3
  17. data/docs/ContentCollectionVersionsApi.md +1 -1
  18. data/docs/ContentNamespacesApi.md +19 -1
  19. data/docs/ContentRolesApi.md +3 -1
  20. data/docs/DistributionsAnsibleApi.md +138 -12
  21. data/docs/GalaxyDetailApi.md +1 -1
  22. data/docs/PatchedansibleGitRemote.md +30 -30
  23. data/docs/PulpAnsibleApiApi.md +1 -1
  24. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  25. data/docs/PulpAnsibleApiV3Api.md +1 -1
  26. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  27. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
  29. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
  30. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
  33. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  42. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  43. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  44. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
  49. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
  53. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  63. data/docs/PulpAnsibleTagsApi.md +1 -1
  64. data/docs/RemotesCollectionApi.md +135 -9
  65. data/docs/RemotesGitApi.md +135 -9
  66. data/docs/RemotesRoleApi.md +135 -9
  67. data/docs/RepositoriesAnsibleApi.md +136 -10
  68. data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
  69. data/docs/SetLabel.md +19 -0
  70. data/docs/SetLabelResponse.md +19 -0
  71. data/docs/TaskResponse.md +2 -0
  72. data/docs/UnsetLabel.md +17 -0
  73. data/docs/UnsetLabelResponse.md +19 -0
  74. data/docs/VersionsApi.md +1 -1
  75. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
  76. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
  77. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
  78. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  79. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
  80. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
  81. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +166 -3
  82. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  88. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
  90. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
  91. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  92. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  94. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
  95. data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
  96. data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
  97. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
  98. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
  99. data/lib/pulp_ansible_client/configuration.rb +2 -2
  100. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  101. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
  102. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +236 -236
  103. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
  104. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
  105. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  106. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +227 -227
  107. data/lib/pulp_ansible_client/models/set_label.rb +252 -0
  108. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  109. data/lib/pulp_ansible_client/models/task_response.rb +11 -1
  110. data/lib/pulp_ansible_client/models/unset_label.rb +242 -0
  111. data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
  112. data/lib/pulp_ansible_client/version.rb +1 -1
  113. data/lib/pulp_ansible_client.rb +4 -0
  114. data/spec/api/ansible_collections_api_spec.rb +5 -0
  115. data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
  116. data/spec/api/content_collection_marks_api_spec.rb +1 -0
  117. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  118. data/spec/api/content_namespaces_api_spec.rb +9 -0
  119. data/spec/api/content_roles_api_spec.rb +1 -0
  120. data/spec/api/distributions_ansible_api_spec.rb +36 -1
  121. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  122. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  123. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
  124. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  125. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  126. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  127. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  128. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  129. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
  130. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  131. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  132. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  133. data/spec/api/remotes_collection_api_spec.rb +35 -0
  134. data/spec/api/remotes_git_api_spec.rb +35 -0
  135. data/spec/api/remotes_role_api_spec.rb +35 -0
  136. data/spec/api/repositories_ansible_api_spec.rb +35 -0
  137. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
  138. data/spec/configuration_spec.rb +3 -3
  139. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  140. data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
  141. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  142. data/spec/models/ansible_git_remote_spec.rb +19 -19
  143. data/spec/models/ansible_role_response_spec.rb +3 -3
  144. data/spec/models/ansible_role_spec.rb +6 -0
  145. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  146. data/spec/models/set_label_response_spec.rb +47 -0
  147. data/spec/models/set_label_spec.rb +47 -0
  148. data/spec/models/task_response_spec.rb +6 -0
  149. data/spec/models/unset_label_response_spec.rb +47 -0
  150. data/spec/models/unset_label_spec.rb +41 -0
  151. metadata +143 -127
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  # 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.
19
22
  attr_accessor :sock_read_timeout
20
23
 
21
- attr_accessor :pulp_labels
24
+ # 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.
25
+ attr_accessor :sock_connect_timeout
22
26
 
23
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
24
- attr_accessor :max_retries
27
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
28
+ attr_accessor :connect_timeout
25
29
 
26
- # Limits requests per second for each concurrent downloader
27
- attr_accessor :rate_limit
30
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
31
+ attr_accessor :ca_cert
32
+
33
+ # The proxy URL. Format: scheme://host:port
34
+ attr_accessor :proxy_url
28
35
 
29
36
  # Timestamp of the most recent update of the remote.
30
37
  attr_accessor :pulp_last_updated
31
38
 
32
- # Headers for aiohttp.Clientsession
33
- attr_accessor :headers
34
-
35
39
  # If True, TLS peer validation must be performed.
36
40
  attr_accessor :tls_validation
37
41
 
38
42
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
43
  attr_accessor :total_timeout
40
44
 
41
- # The proxy URL. Format: scheme://host:port
42
- attr_accessor :proxy_url
43
-
44
- # Timestamp of creation.
45
- attr_accessor :pulp_created
45
+ attr_accessor :pulp_labels
46
46
 
47
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
- attr_accessor :connect_timeout
47
+ # The URL of an external content source.
48
+ attr_accessor :url
49
49
 
50
- # A unique name for this remote.
51
- attr_accessor :name
50
+ attr_accessor :pulp_href
52
51
 
53
52
  # Total number of simultaneous connections. If not set then the default value will be used.
54
53
  attr_accessor :download_concurrency
55
54
 
56
- # List of hidden (write only) fields
57
- attr_accessor :hidden_fields
55
+ # A unique name for this remote.
56
+ attr_accessor :name
58
57
 
59
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
60
- attr_accessor :ca_cert
58
+ # A PEM encoded client certificate used for authentication.
59
+ attr_accessor :client_cert
61
60
 
62
- attr_accessor :pulp_href
61
+ # Limits requests per second for each concurrent downloader
62
+ attr_accessor :rate_limit
63
63
 
64
- # 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.
65
- attr_accessor :sock_connect_timeout
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
66
 
67
- # A PEM encoded client certificate used for authentication.
68
- attr_accessor :client_cert
67
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
68
+ attr_accessor :max_retries
69
69
 
70
- # The URL of an external content source.
71
- attr_accessor :url
70
+ # List of hidden (write only) fields
71
+ attr_accessor :hidden_fields
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_created' => :'pulp_created',
82
83
  :'sock_read_timeout' => :'sock_read_timeout',
83
- :'pulp_labels' => :'pulp_labels',
84
- :'max_retries' => :'max_retries',
85
- :'rate_limit' => :'rate_limit',
84
+ :'sock_connect_timeout' => :'sock_connect_timeout',
85
+ :'connect_timeout' => :'connect_timeout',
86
+ :'ca_cert' => :'ca_cert',
87
+ :'proxy_url' => :'proxy_url',
86
88
  :'pulp_last_updated' => :'pulp_last_updated',
87
- :'headers' => :'headers',
88
89
  :'tls_validation' => :'tls_validation',
89
90
  :'total_timeout' => :'total_timeout',
90
- :'proxy_url' => :'proxy_url',
91
- :'pulp_created' => :'pulp_created',
92
- :'connect_timeout' => :'connect_timeout',
93
- :'name' => :'name',
94
- :'download_concurrency' => :'download_concurrency',
95
- :'hidden_fields' => :'hidden_fields',
96
- :'ca_cert' => :'ca_cert',
91
+ :'pulp_labels' => :'pulp_labels',
92
+ :'url' => :'url',
97
93
  :'pulp_href' => :'pulp_href',
98
- :'sock_connect_timeout' => :'sock_connect_timeout',
94
+ :'download_concurrency' => :'download_concurrency',
95
+ :'name' => :'name',
99
96
  :'client_cert' => :'client_cert',
100
- :'url' => :'url',
97
+ :'rate_limit' => :'rate_limit',
98
+ :'headers' => :'headers',
99
+ :'max_retries' => :'max_retries',
100
+ :'hidden_fields' => :'hidden_fields',
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_created' => :'DateTime',
109
110
  :'sock_read_timeout' => :'Float',
110
- :'pulp_labels' => :'Hash<String, String>',
111
- :'max_retries' => :'Integer',
112
- :'rate_limit' => :'Integer',
111
+ :'sock_connect_timeout' => :'Float',
112
+ :'connect_timeout' => :'Float',
113
+ :'ca_cert' => :'String',
114
+ :'proxy_url' => :'String',
113
115
  :'pulp_last_updated' => :'DateTime',
114
- :'headers' => :'Array<Object>',
115
116
  :'tls_validation' => :'Boolean',
116
117
  :'total_timeout' => :'Float',
117
- :'proxy_url' => :'String',
118
- :'pulp_created' => :'DateTime',
119
- :'connect_timeout' => :'Float',
120
- :'name' => :'String',
121
- :'download_concurrency' => :'Integer',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
- :'ca_cert' => :'String',
118
+ :'pulp_labels' => :'Hash<String, String>',
119
+ :'url' => :'String',
124
120
  :'pulp_href' => :'String',
125
- :'sock_connect_timeout' => :'Float',
121
+ :'download_concurrency' => :'Integer',
122
+ :'name' => :'String',
126
123
  :'client_cert' => :'String',
127
- :'url' => :'String',
124
+ :'rate_limit' => :'Integer',
125
+ :'headers' => :'Array<Object>',
126
+ :'max_retries' => :'Integer',
127
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -134,15 +134,15 @@ module PulpAnsibleClient
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
136
  :'sock_read_timeout',
137
- :'max_retries',
138
- :'rate_limit',
139
- :'total_timeout',
140
- :'proxy_url',
137
+ :'sock_connect_timeout',
141
138
  :'connect_timeout',
142
- :'download_concurrency',
143
139
  :'ca_cert',
144
- :'sock_connect_timeout',
140
+ :'proxy_url',
141
+ :'total_timeout',
142
+ :'download_concurrency',
145
143
  :'client_cert',
144
+ :'rate_limit',
145
+ :'max_retries',
146
146
  ])
147
147
  end
148
148
 
@@ -161,32 +161,32 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
+ if attributes.key?(:'pulp_created')
165
+ self.pulp_created = attributes[:'pulp_created']
166
+ end
167
+
164
168
  if attributes.key?(:'sock_read_timeout')
165
169
  self.sock_read_timeout = attributes[:'sock_read_timeout']
166
170
  end
167
171
 
168
- if attributes.key?(:'pulp_labels')
169
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
170
- self.pulp_labels = value
171
- end
172
+ if attributes.key?(:'sock_connect_timeout')
173
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
172
174
  end
173
175
 
174
- if attributes.key?(:'max_retries')
175
- self.max_retries = attributes[:'max_retries']
176
+ if attributes.key?(:'connect_timeout')
177
+ self.connect_timeout = attributes[:'connect_timeout']
176
178
  end
177
179
 
178
- if attributes.key?(:'rate_limit')
179
- self.rate_limit = attributes[:'rate_limit']
180
+ if attributes.key?(:'ca_cert')
181
+ self.ca_cert = attributes[:'ca_cert']
180
182
  end
181
183
 
182
- if attributes.key?(:'pulp_last_updated')
183
- self.pulp_last_updated = attributes[:'pulp_last_updated']
184
+ if attributes.key?(:'proxy_url')
185
+ self.proxy_url = attributes[:'proxy_url']
184
186
  end
185
187
 
186
- if attributes.key?(:'headers')
187
- if (value = attributes[:'headers']).is_a?(Array)
188
- self.headers = value
189
- end
188
+ if attributes.key?(:'pulp_last_updated')
189
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
190
190
  end
191
191
 
192
192
  if attributes.key?(:'tls_validation')
@@ -197,50 +197,50 @@ module PulpAnsibleClient
197
197
  self.total_timeout = attributes[:'total_timeout']
198
198
  end
199
199
 
200
- if attributes.key?(:'proxy_url')
201
- self.proxy_url = attributes[:'proxy_url']
202
- end
203
-
204
- if attributes.key?(:'pulp_created')
205
- self.pulp_created = attributes[:'pulp_created']
200
+ if attributes.key?(:'pulp_labels')
201
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
202
+ self.pulp_labels = value
203
+ end
206
204
  end
207
205
 
208
- if attributes.key?(:'connect_timeout')
209
- self.connect_timeout = attributes[:'connect_timeout']
206
+ if attributes.key?(:'url')
207
+ self.url = attributes[:'url']
210
208
  end
211
209
 
212
- if attributes.key?(:'name')
213
- self.name = attributes[:'name']
210
+ if attributes.key?(:'pulp_href')
211
+ self.pulp_href = attributes[:'pulp_href']
214
212
  end
215
213
 
216
214
  if attributes.key?(:'download_concurrency')
217
215
  self.download_concurrency = attributes[:'download_concurrency']
218
216
  end
219
217
 
220
- if attributes.key?(:'hidden_fields')
221
- if (value = attributes[:'hidden_fields']).is_a?(Array)
222
- self.hidden_fields = value
223
- end
218
+ if attributes.key?(:'name')
219
+ self.name = attributes[:'name']
224
220
  end
225
221
 
226
- if attributes.key?(:'ca_cert')
227
- self.ca_cert = attributes[:'ca_cert']
222
+ if attributes.key?(:'client_cert')
223
+ self.client_cert = attributes[:'client_cert']
228
224
  end
229
225
 
230
- if attributes.key?(:'pulp_href')
231
- self.pulp_href = attributes[:'pulp_href']
226
+ if attributes.key?(:'rate_limit')
227
+ self.rate_limit = attributes[:'rate_limit']
232
228
  end
233
229
 
234
- if attributes.key?(:'sock_connect_timeout')
235
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
230
+ if attributes.key?(:'headers')
231
+ if (value = attributes[:'headers']).is_a?(Array)
232
+ self.headers = value
233
+ end
236
234
  end
237
235
 
238
- if attributes.key?(:'client_cert')
239
- self.client_cert = attributes[:'client_cert']
236
+ if attributes.key?(:'max_retries')
237
+ self.max_retries = attributes[:'max_retries']
240
238
  end
241
239
 
242
- if attributes.key?(:'url')
243
- self.url = attributes[:'url']
240
+ if attributes.key?(:'hidden_fields')
241
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
242
+ self.hidden_fields = value
243
+ end
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -260,28 +260,28 @@ module PulpAnsibleClient
260
260
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
261
261
  end
262
262
 
263
- if !@total_timeout.nil? && @total_timeout < 0.0
264
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
263
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
264
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
265
265
  end
266
266
 
267
267
  if !@connect_timeout.nil? && @connect_timeout < 0.0
268
268
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
269
269
  end
270
270
 
271
- if @name.nil?
272
- invalid_properties.push('invalid value for "name", name cannot be nil.')
271
+ if !@total_timeout.nil? && @total_timeout < 0.0
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 !@download_concurrency.nil? && @download_concurrency < 1
276
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
277
  end
278
278
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@download_concurrency.nil? && @download_concurrency < 1
280
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
281
  end
282
282
 
283
- if @url.nil?
284
- invalid_properties.push('invalid value for "url", url cannot be nil.')
283
+ if @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -291,12 +291,12 @@ module PulpAnsibleClient
291
291
  # @return true if the model is valid
292
292
  def valid?
293
293
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
294
- return false if !@total_timeout.nil? && @total_timeout < 0.0
295
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
- return false if @name.nil?
297
- return false if !@download_concurrency.nil? && @download_concurrency < 1
298
294
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
295
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
299
297
  return false if @url.nil?
298
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
299
+ return false if @name.nil?
300
300
  true
301
301
  end
302
302
 
@@ -311,13 +311,13 @@ module PulpAnsibleClient
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] total_timeout Value to be assigned
315
- def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
314
+ # @param [Object] sock_connect_timeout Value to be assigned
315
+ def sock_connect_timeout=(sock_connect_timeout)
316
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @total_timeout = total_timeout
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -331,23 +331,23 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] download_concurrency Value to be assigned
335
- def download_concurrency=(download_concurrency)
336
- if !download_concurrency.nil? && download_concurrency < 1
337
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
334
+ # @param [Object] total_timeout Value to be assigned
335
+ def total_timeout=(total_timeout)
336
+ if !total_timeout.nil? && total_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
338
338
  end
339
339
 
340
- @download_concurrency = download_concurrency
340
+ @total_timeout = total_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] sock_connect_timeout Value to be assigned
345
- def sock_connect_timeout=(sock_connect_timeout)
346
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
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
348
  end
349
349
 
350
- @sock_connect_timeout = sock_connect_timeout
350
+ @download_concurrency = download_concurrency
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
+ pulp_created == o.pulp_created &&
358
359
  sock_read_timeout == o.sock_read_timeout &&
359
- pulp_labels == o.pulp_labels &&
360
- max_retries == o.max_retries &&
361
- rate_limit == o.rate_limit &&
360
+ sock_connect_timeout == o.sock_connect_timeout &&
361
+ connect_timeout == o.connect_timeout &&
362
+ ca_cert == o.ca_cert &&
363
+ proxy_url == o.proxy_url &&
362
364
  pulp_last_updated == o.pulp_last_updated &&
363
- headers == o.headers &&
364
365
  tls_validation == o.tls_validation &&
365
366
  total_timeout == o.total_timeout &&
366
- proxy_url == o.proxy_url &&
367
- pulp_created == o.pulp_created &&
368
- connect_timeout == o.connect_timeout &&
369
- name == o.name &&
370
- download_concurrency == o.download_concurrency &&
371
- hidden_fields == o.hidden_fields &&
372
- ca_cert == o.ca_cert &&
367
+ pulp_labels == o.pulp_labels &&
368
+ url == o.url &&
373
369
  pulp_href == o.pulp_href &&
374
- sock_connect_timeout == o.sock_connect_timeout &&
370
+ download_concurrency == o.download_concurrency &&
371
+ name == o.name &&
375
372
  client_cert == o.client_cert &&
376
- url == o.url &&
373
+ rate_limit == o.rate_limit &&
374
+ headers == o.headers &&
375
+ max_retries == o.max_retries &&
376
+ hidden_fields == o.hidden_fields &&
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
- [sock_read_timeout, pulp_labels, max_retries, rate_limit, pulp_last_updated, headers, tls_validation, total_timeout, proxy_url, pulp_created, connect_timeout, name, download_concurrency, hidden_fields, ca_cert, pulp_href, sock_connect_timeout, client_cert, url, metadata_only, git_ref].hash
390
+ [pulp_created, sock_read_timeout, sock_connect_timeout, connect_timeout, ca_cert, proxy_url, pulp_last_updated, tls_validation, total_timeout, pulp_labels, url, pulp_href, download_concurrency, name, client_cert, rate_limit, headers, max_retries, hidden_fields, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -18,6 +18,9 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
21
24
  attr_accessor :version
22
25
 
23
26
  attr_accessor :name
@@ -28,6 +31,7 @@ module PulpAnsibleClient
28
31
  def self.attribute_map
29
32
  {
30
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
31
35
  :'version' => :'version',
32
36
  :'name' => :'name',
33
37
  :'namespace' => :'namespace'
@@ -38,6 +42,7 @@ module PulpAnsibleClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'artifact' => :'String',
45
+ :'repository' => :'String',
41
46
  :'version' => :'String',
42
47
  :'name' => :'String',
43
48
  :'namespace' => :'String'
@@ -69,6 +74,10 @@ module PulpAnsibleClient
69
74
  self.artifact = attributes[:'artifact']
70
75
  end
71
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
79
+ end
80
+
72
81
  if attributes.key?(:'version')
73
82
  self.version = attributes[:'version']
74
83
  end
@@ -178,6 +187,7 @@ module PulpAnsibleClient
178
187
  return true if self.equal?(o)
179
188
  self.class == o.class &&
180
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
181
191
  version == o.version &&
182
192
  name == o.name &&
183
193
  namespace == o.namespace
@@ -192,7 +202,7 @@ module PulpAnsibleClient
192
202
  # Calculates hash code according to all attributes.
193
203
  # @return [Integer] Hash code
194
204
  def hash
195
- [artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
196
206
  end
197
207
 
198
208
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
23
21
  # Artifact file representing the physical content
24
22
  attr_accessor :artifact
25
23
 
24
+ attr_accessor :pulp_href
25
+
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_href' => :'pulp_href',
36
35
  :'pulp_created' => :'pulp_created',
37
36
  :'artifact' => :'artifact',
37
+ :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'pulp_href' => :'String',
48
47
  :'pulp_created' => :'DateTime',
49
48
  :'artifact' => :'String',
49
+ :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,10 +74,6 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'pulp_href')
78
- self.pulp_href = attributes[:'pulp_href']
79
- end
80
-
81
77
  if attributes.key?(:'pulp_created')
82
78
  self.pulp_created = attributes[:'pulp_created']
83
79
  end
@@ -86,6 +82,10 @@ module PulpAnsibleClient
86
82
  self.artifact = attributes[:'artifact']
87
83
  end
88
84
 
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- pulp_href == o.pulp_href &&
141
140
  pulp_created == o.pulp_created &&
142
141
  artifact == o.artifact &&
142
+ pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [pulp_created, artifact, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash