pulp_ansible_client 0.2.0b5 → 0.2.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -23
- data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
- data/docs/AnsibleAnsibleRemote.md +39 -0
- data/docs/AnsibleAnsibleRepository.md +27 -0
- data/docs/AnsibleCollection.md +19 -0
- data/docs/AnsibleCollectionRemote.md +41 -0
- data/docs/AnsibleCollectionVersion.md +67 -0
- data/docs/AnsibleCollectionsApi.md +80 -18
- data/docs/AnsibleRole.md +27 -0
- data/docs/AnsibleTag.md +17 -0
- data/docs/Collection.md +31 -0
- data/docs/CollectionImportDetail.md +2 -2
- data/docs/CollectionMetadata.md +9 -9
- data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
- data/docs/CollectionRef.md +21 -0
- data/docs/CollectionVersion.md +19 -59
- data/docs/ContentCollectionVersionsApi.md +25 -27
- data/docs/ContentRolesApi.md +17 -25
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsAnsibleApi.md +16 -12
- data/docs/GalaxyCollection.md +2 -2
- data/docs/GalaxyCollectionVersion.md +4 -4
- data/docs/GalaxyRole.md +1 -1
- data/docs/GalaxyRoleVersion.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +3 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
- data/docs/PulpAnsibleTagsApi.md +5 -3
- data/docs/RemotesAnsibleApi.md +30 -81
- data/docs/RemotesCollectionApi.md +30 -81
- data/docs/RepositoriesAnsibleApi.md +409 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/Tag.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
- data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +1 -1
- data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
- data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
- data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
- data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
- data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
- data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_ansible_client/models/collection.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
- data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
- data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
- data/lib/pulp_ansible_client/models/tag.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +20 -6
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +25 -10
- data/spec/api/content_collection_versions_api_spec.rb +12 -12
- data/spec/api/content_roles_api_spec.rb +8 -11
- data/spec/api/distributions_ansible_api_spec.rb +5 -3
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
- data/spec/api/remotes_ansible_api_spec.rb +12 -22
- data/spec/api/remotes_collection_api_spec.rb +12 -22
- data/spec/api/repositories_ansible_api_spec.rb +128 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
- data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
- data/spec/models/ansible_ansible_repository_spec.rb +71 -0
- data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
- data/spec/models/ansible_collection_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +191 -0
- data/spec/models/ansible_role_spec.rb +71 -0
- data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/collection_namespace_spec.rb +41 -0
- data/spec/models/collection_ref_spec.rb +53 -0
- data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
- data/spec/models/collection_version_spec.rb +14 -130
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_spec.rb +1 -1
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +78 -22
- data/docs/AnsibleRemote.md +0 -45
- data/docs/CollectionRemote.md +0 -47
- data/docs/Role.md +0 -33
@@ -0,0 +1,409 @@
|
|
1
|
+
# PulpAnsibleClient::RepositoriesAnsibleApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RepositoriesAnsibleApi.md#create) | **POST** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository
|
8
|
+
[**delete**](RepositoriesAnsibleApi.md#delete) | **DELETE** {ansible_repository_href} | Delete an ansible repository
|
9
|
+
[**list**](RepositoriesAnsibleApi.md#list) | **GET** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys
|
10
|
+
[**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_repository_href} | Partially update an ansible repository
|
11
|
+
[**read**](RepositoriesAnsibleApi.md#read) | **GET** {ansible_repository_href} | Inspect an ansible repository
|
12
|
+
[**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {ansible_repository_href}sync/ |
|
13
|
+
[**update**](RepositoriesAnsibleApi.md#update) | **PUT** {ansible_repository_href} | Update an ansible repository
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## create
|
18
|
+
|
19
|
+
> AnsibleAnsibleRepository create(data)
|
20
|
+
|
21
|
+
Create an ansible repository
|
22
|
+
|
23
|
+
ViewSet for Ansible Remotes.
|
24
|
+
|
25
|
+
### Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'pulp_ansible_client'
|
30
|
+
# setup authorization
|
31
|
+
PulpAnsibleClient.configure do |config|
|
32
|
+
# Configure HTTP basic authorization: Basic
|
33
|
+
config.username = 'YOUR USERNAME'
|
34
|
+
config.password = 'YOUR PASSWORD'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
38
|
+
data = PulpAnsibleClient::AnsibleAnsibleRepository.new # AnsibleAnsibleRepository |
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create an ansible repository
|
42
|
+
result = api_instance.create(data)
|
43
|
+
p result
|
44
|
+
rescue PulpAnsibleClient::ApiError => e
|
45
|
+
puts "Exception when calling RepositoriesAnsibleApi->create: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**data** | [**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)| |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[Basic](../README.md#Basic)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
## delete
|
71
|
+
|
72
|
+
> AsyncOperationResponse delete(ansible_repository_href)
|
73
|
+
|
74
|
+
Delete an ansible repository
|
75
|
+
|
76
|
+
Trigger an asynchronous task to delete a repository.
|
77
|
+
|
78
|
+
### Example
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'pulp_ansible_client'
|
83
|
+
# setup authorization
|
84
|
+
PulpAnsibleClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: Basic
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
91
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Delete an ansible repository
|
95
|
+
result = api_instance.delete(ansible_repository_href)
|
96
|
+
p result
|
97
|
+
rescue PulpAnsibleClient::ApiError => e
|
98
|
+
puts "Exception when calling RepositoriesAnsibleApi->delete: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
|
105
|
+
Name | Type | Description | Notes
|
106
|
+
------------- | ------------- | ------------- | -------------
|
107
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[Basic](../README.md#Basic)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: Not defined
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
## list
|
124
|
+
|
125
|
+
> InlineResponse2007 list(opts)
|
126
|
+
|
127
|
+
List ansible repositorys
|
128
|
+
|
129
|
+
ViewSet for Ansible Remotes.
|
130
|
+
|
131
|
+
### Example
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'pulp_ansible_client'
|
136
|
+
# setup authorization
|
137
|
+
PulpAnsibleClient.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: Basic
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
144
|
+
opts = {
|
145
|
+
name: 'name_example', # String |
|
146
|
+
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
+
limit: 56, # Integer | Number of results to return per page.
|
148
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
149
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
150
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
151
|
+
}
|
152
|
+
|
153
|
+
begin
|
154
|
+
#List ansible repositorys
|
155
|
+
result = api_instance.list(opts)
|
156
|
+
p result
|
157
|
+
rescue PulpAnsibleClient::ApiError => e
|
158
|
+
puts "Exception when calling RepositoriesAnsibleApi->list: #{e}"
|
159
|
+
end
|
160
|
+
```
|
161
|
+
|
162
|
+
### Parameters
|
163
|
+
|
164
|
+
|
165
|
+
Name | Type | Description | Notes
|
166
|
+
------------- | ------------- | ------------- | -------------
|
167
|
+
**name** | **String**| | [optional]
|
168
|
+
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
169
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
170
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
171
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
172
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
173
|
+
|
174
|
+
### Return type
|
175
|
+
|
176
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
177
|
+
|
178
|
+
### Authorization
|
179
|
+
|
180
|
+
[Basic](../README.md#Basic)
|
181
|
+
|
182
|
+
### HTTP request headers
|
183
|
+
|
184
|
+
- **Content-Type**: Not defined
|
185
|
+
- **Accept**: application/json
|
186
|
+
|
187
|
+
|
188
|
+
## partial_update
|
189
|
+
|
190
|
+
> AnsibleAnsibleRepository partial_update(ansible_repository_href, data)
|
191
|
+
|
192
|
+
Partially update an ansible repository
|
193
|
+
|
194
|
+
ViewSet for Ansible Remotes.
|
195
|
+
|
196
|
+
### Example
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
# load the gem
|
200
|
+
require 'pulp_ansible_client'
|
201
|
+
# setup authorization
|
202
|
+
PulpAnsibleClient.configure do |config|
|
203
|
+
# Configure HTTP basic authorization: Basic
|
204
|
+
config.username = 'YOUR USERNAME'
|
205
|
+
config.password = 'YOUR PASSWORD'
|
206
|
+
end
|
207
|
+
|
208
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
209
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
210
|
+
data = PulpAnsibleClient::AnsibleAnsibleRepository.new # AnsibleAnsibleRepository |
|
211
|
+
|
212
|
+
begin
|
213
|
+
#Partially update an ansible repository
|
214
|
+
result = api_instance.partial_update(ansible_repository_href, data)
|
215
|
+
p result
|
216
|
+
rescue PulpAnsibleClient::ApiError => e
|
217
|
+
puts "Exception when calling RepositoriesAnsibleApi->partial_update: #{e}"
|
218
|
+
end
|
219
|
+
```
|
220
|
+
|
221
|
+
### Parameters
|
222
|
+
|
223
|
+
|
224
|
+
Name | Type | Description | Notes
|
225
|
+
------------- | ------------- | ------------- | -------------
|
226
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
227
|
+
**data** | [**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)| |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[Basic](../README.md#Basic)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: application/json
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
243
|
+
## read
|
244
|
+
|
245
|
+
> AnsibleAnsibleRepository read(ansible_repository_href, opts)
|
246
|
+
|
247
|
+
Inspect an ansible repository
|
248
|
+
|
249
|
+
ViewSet for Ansible Remotes.
|
250
|
+
|
251
|
+
### Example
|
252
|
+
|
253
|
+
```ruby
|
254
|
+
# load the gem
|
255
|
+
require 'pulp_ansible_client'
|
256
|
+
# setup authorization
|
257
|
+
PulpAnsibleClient.configure do |config|
|
258
|
+
# Configure HTTP basic authorization: Basic
|
259
|
+
config.username = 'YOUR USERNAME'
|
260
|
+
config.password = 'YOUR PASSWORD'
|
261
|
+
end
|
262
|
+
|
263
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
264
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
265
|
+
opts = {
|
266
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
267
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
268
|
+
}
|
269
|
+
|
270
|
+
begin
|
271
|
+
#Inspect an ansible repository
|
272
|
+
result = api_instance.read(ansible_repository_href, opts)
|
273
|
+
p result
|
274
|
+
rescue PulpAnsibleClient::ApiError => e
|
275
|
+
puts "Exception when calling RepositoriesAnsibleApi->read: #{e}"
|
276
|
+
end
|
277
|
+
```
|
278
|
+
|
279
|
+
### Parameters
|
280
|
+
|
281
|
+
|
282
|
+
Name | Type | Description | Notes
|
283
|
+
------------- | ------------- | ------------- | -------------
|
284
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
285
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
286
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
[**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[Basic](../README.md#Basic)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: Not defined
|
299
|
+
- **Accept**: application/json
|
300
|
+
|
301
|
+
|
302
|
+
## sync
|
303
|
+
|
304
|
+
> AsyncOperationResponse sync(ansible_repository_href, data)
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
Trigger an asynchronous task to sync Ansible content.
|
309
|
+
|
310
|
+
### Example
|
311
|
+
|
312
|
+
```ruby
|
313
|
+
# load the gem
|
314
|
+
require 'pulp_ansible_client'
|
315
|
+
# setup authorization
|
316
|
+
PulpAnsibleClient.configure do |config|
|
317
|
+
# Configure HTTP basic authorization: Basic
|
318
|
+
config.username = 'YOUR USERNAME'
|
319
|
+
config.password = 'YOUR PASSWORD'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
323
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
324
|
+
data = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
|
325
|
+
|
326
|
+
begin
|
327
|
+
result = api_instance.sync(ansible_repository_href, data)
|
328
|
+
p result
|
329
|
+
rescue PulpAnsibleClient::ApiError => e
|
330
|
+
puts "Exception when calling RepositoriesAnsibleApi->sync: #{e}"
|
331
|
+
end
|
332
|
+
```
|
333
|
+
|
334
|
+
### Parameters
|
335
|
+
|
336
|
+
|
337
|
+
Name | Type | Description | Notes
|
338
|
+
------------- | ------------- | ------------- | -------------
|
339
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
340
|
+
**data** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
341
|
+
|
342
|
+
### Return type
|
343
|
+
|
344
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
345
|
+
|
346
|
+
### Authorization
|
347
|
+
|
348
|
+
[Basic](../README.md#Basic)
|
349
|
+
|
350
|
+
### HTTP request headers
|
351
|
+
|
352
|
+
- **Content-Type**: application/json
|
353
|
+
- **Accept**: application/json
|
354
|
+
|
355
|
+
|
356
|
+
## update
|
357
|
+
|
358
|
+
> AsyncOperationResponse update(ansible_repository_href, data)
|
359
|
+
|
360
|
+
Update an ansible repository
|
361
|
+
|
362
|
+
Trigger an asynchronous task to update a repository.
|
363
|
+
|
364
|
+
### Example
|
365
|
+
|
366
|
+
```ruby
|
367
|
+
# load the gem
|
368
|
+
require 'pulp_ansible_client'
|
369
|
+
# setup authorization
|
370
|
+
PulpAnsibleClient.configure do |config|
|
371
|
+
# Configure HTTP basic authorization: Basic
|
372
|
+
config.username = 'YOUR USERNAME'
|
373
|
+
config.password = 'YOUR PASSWORD'
|
374
|
+
end
|
375
|
+
|
376
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
377
|
+
ansible_repository_href = 'ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
378
|
+
data = PulpAnsibleClient::AnsibleAnsibleRepository.new # AnsibleAnsibleRepository |
|
379
|
+
|
380
|
+
begin
|
381
|
+
#Update an ansible repository
|
382
|
+
result = api_instance.update(ansible_repository_href, data)
|
383
|
+
p result
|
384
|
+
rescue PulpAnsibleClient::ApiError => e
|
385
|
+
puts "Exception when calling RepositoriesAnsibleApi->update: #{e}"
|
386
|
+
end
|
387
|
+
```
|
388
|
+
|
389
|
+
### Parameters
|
390
|
+
|
391
|
+
|
392
|
+
Name | Type | Description | Notes
|
393
|
+
------------- | ------------- | ------------- | -------------
|
394
|
+
**ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
395
|
+
**data** | [**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)| |
|
396
|
+
|
397
|
+
### Return type
|
398
|
+
|
399
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
400
|
+
|
401
|
+
### Authorization
|
402
|
+
|
403
|
+
[Basic](../README.md#Basic)
|
404
|
+
|
405
|
+
### HTTP request headers
|
406
|
+
|
407
|
+
- **Content-Type**: application/json
|
408
|
+
- **Accept**: application/json
|
409
|
+
|
@@ -0,0 +1,214 @@
|
|
1
|
+
# PulpAnsibleClient::RepositoriesAnsibleVersionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete**](RepositoriesAnsibleVersionsApi.md#delete) | **DELETE** {ansible_repository_version_href} | Delete a repository version
|
8
|
+
[**list**](RepositoriesAnsibleVersionsApi.md#list) | **GET** {ansible_repository_href}versions/ | List repository versions
|
9
|
+
[**read**](RepositoriesAnsibleVersionsApi.md#read) | **GET** {ansible_repository_version_href} | Inspect a repository version
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## delete
|
14
|
+
|
15
|
+
> AsyncOperationResponse delete(ansible_repository_version_href)
|
16
|
+
|
17
|
+
Delete a repository version
|
18
|
+
|
19
|
+
Trigger an asynchronous task to delete a repositroy version.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'pulp_ansible_client'
|
26
|
+
# setup authorization
|
27
|
+
PulpAnsibleClient.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: Basic
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleVersionsApi.new
|
34
|
+
ansible_repository_version_href = 'ansible_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/versions/1/
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Delete a repository version
|
38
|
+
result = api_instance.delete(ansible_repository_version_href)
|
39
|
+
p result
|
40
|
+
rescue PulpAnsibleClient::ApiError => e
|
41
|
+
puts "Exception when calling RepositoriesAnsibleVersionsApi->delete: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**ansible_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/versions/1/ |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[Basic](../README.md#Basic)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: Not defined
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
## list
|
67
|
+
|
68
|
+
> InlineResponse2008 list(ansible_ansible_repository_href, opts)
|
69
|
+
|
70
|
+
List repository versions
|
71
|
+
|
72
|
+
RpmRepositoryVersion represents a single file repository version.
|
73
|
+
|
74
|
+
### Example
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'pulp_ansible_client'
|
79
|
+
# setup authorization
|
80
|
+
PulpAnsibleClient.configure do |config|
|
81
|
+
# Configure HTTP basic authorization: Basic
|
82
|
+
config.username = 'YOUR USERNAME'
|
83
|
+
config.password = 'YOUR PASSWORD'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleVersionsApi.new
|
87
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String | URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
88
|
+
opts = {
|
89
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
90
|
+
number: 3.4, # Float |
|
91
|
+
number__lt: 3.4, # Float | Filter results where number is less than value
|
92
|
+
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
93
|
+
number__gt: 3.4, # Float | Filter results where number is greater than value
|
94
|
+
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
95
|
+
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
96
|
+
pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
|
97
|
+
pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
|
98
|
+
pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
|
99
|
+
pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
|
100
|
+
pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
|
101
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
102
|
+
pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
|
103
|
+
limit: 56, # Integer | Number of results to return per page.
|
104
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
105
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
106
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
107
|
+
}
|
108
|
+
|
109
|
+
begin
|
110
|
+
#List repository versions
|
111
|
+
result = api_instance.list(ansible_ansible_repository_href, opts)
|
112
|
+
p result
|
113
|
+
rescue PulpAnsibleClient::ApiError => e
|
114
|
+
puts "Exception when calling RepositoriesAnsibleVersionsApi->list: #{e}"
|
115
|
+
end
|
116
|
+
```
|
117
|
+
|
118
|
+
### Parameters
|
119
|
+
|
120
|
+
|
121
|
+
Name | Type | Description | Notes
|
122
|
+
------------- | ------------- | ------------- | -------------
|
123
|
+
**ansible_ansible_repository_href** | **String**| URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/ |
|
124
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
125
|
+
**number** | **Float**| | [optional]
|
126
|
+
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
127
|
+
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
128
|
+
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
129
|
+
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
130
|
+
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
131
|
+
**pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
|
132
|
+
**pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
|
133
|
+
**pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
|
134
|
+
**pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
|
135
|
+
**pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
|
136
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
137
|
+
**pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
138
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
139
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
140
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
141
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
142
|
+
|
143
|
+
### Return type
|
144
|
+
|
145
|
+
[**InlineResponse2008**](InlineResponse2008.md)
|
146
|
+
|
147
|
+
### Authorization
|
148
|
+
|
149
|
+
[Basic](../README.md#Basic)
|
150
|
+
|
151
|
+
### HTTP request headers
|
152
|
+
|
153
|
+
- **Content-Type**: Not defined
|
154
|
+
- **Accept**: application/json
|
155
|
+
|
156
|
+
|
157
|
+
## read
|
158
|
+
|
159
|
+
> RepositoryVersion read(ansible_repository_version_href, opts)
|
160
|
+
|
161
|
+
Inspect a repository version
|
162
|
+
|
163
|
+
RpmRepositoryVersion represents a single file repository version.
|
164
|
+
|
165
|
+
### Example
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
# load the gem
|
169
|
+
require 'pulp_ansible_client'
|
170
|
+
# setup authorization
|
171
|
+
PulpAnsibleClient.configure do |config|
|
172
|
+
# Configure HTTP basic authorization: Basic
|
173
|
+
config.username = 'YOUR USERNAME'
|
174
|
+
config.password = 'YOUR PASSWORD'
|
175
|
+
end
|
176
|
+
|
177
|
+
api_instance = PulpAnsibleClient::RepositoriesAnsibleVersionsApi.new
|
178
|
+
ansible_repository_version_href = 'ansible_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/versions/1/
|
179
|
+
opts = {
|
180
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
181
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
182
|
+
}
|
183
|
+
|
184
|
+
begin
|
185
|
+
#Inspect a repository version
|
186
|
+
result = api_instance.read(ansible_repository_version_href, opts)
|
187
|
+
p result
|
188
|
+
rescue PulpAnsibleClient::ApiError => e
|
189
|
+
puts "Exception when calling RepositoriesAnsibleVersionsApi->read: #{e}"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
### Parameters
|
194
|
+
|
195
|
+
|
196
|
+
Name | Type | Description | Notes
|
197
|
+
------------- | ------------- | ------------- | -------------
|
198
|
+
**ansible_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/versions/1/ |
|
199
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
200
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
201
|
+
|
202
|
+
### Return type
|
203
|
+
|
204
|
+
[**RepositoryVersion**](RepositoryVersion.md)
|
205
|
+
|
206
|
+
### Authorization
|
207
|
+
|
208
|
+
[Basic](../README.md#Basic)
|
209
|
+
|
210
|
+
### HTTP request headers
|
211
|
+
|
212
|
+
- **Content-Type**: Not defined
|
213
|
+
- **Accept**: application/json
|
214
|
+
|
data/docs/RepositorySyncURL.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**remote** | **String** | A URI of the repository to be synchronized. |
|
8
8
|
**mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
|
9
9
|
|
10
10
|
## Code Sample
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
```ruby
|
13
13
|
require 'PulpAnsibleClient'
|
14
14
|
|
15
|
-
instance = PulpAnsibleClient::RepositorySyncURL.new(
|
15
|
+
instance = PulpAnsibleClient::RepositorySyncURL.new(remote: null,
|
16
16
|
mirror: null)
|
17
17
|
```
|
18
18
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpAnsibleClient::RepositoryVersion
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**number** | **Integer** | | [optional] [readonly]
|
10
|
+
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
11
|
+
**content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpAnsibleClient'
|
17
|
+
|
18
|
+
instance = PulpAnsibleClient::RepositoryVersion.new(pulp_href: null,
|
19
|
+
pulp_created: null,
|
20
|
+
number: null,
|
21
|
+
base_version: null,
|
22
|
+
content_summary: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|