pulp_ansible_client 0.10.5 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +59 -0
- data/docs/AnsibleGitRemoteResponse.md +55 -0
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionResponse.md +4 -0
- data/docs/PaginatedansibleGitRemoteResponseList.md +23 -0
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +59 -0
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/RemotesGitApi.md +376 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
- data/git_push.sh +58 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +463 -0
- data/lib/pulp_ansible_client/api_client.rb +5 -2
- data/lib/pulp_ansible_client/configuration.rb +0 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +192 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +28 -2
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -19
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +692 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +493 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +159 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
- data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +184 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +674 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +151 -1
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +5 -0
- data/pulp_ansible_client.gemspec +3 -3
- data/spec/api/remotes_git_api_spec.rb +127 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +155 -0
- data/spec/models/ansible_git_remote_spec.rb +167 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +12 -0
- data/spec/models/paginatedansible_git_remote_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_git_remote_spec.rb +167 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
- metadata +94 -79
@@ -0,0 +1,376 @@
|
|
1
|
+
# PulpAnsibleClient::RemotesGitApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RemotesGitApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/git/ | Create a git remote
|
8
|
+
[**delete**](RemotesGitApi.md#delete) | **DELETE** {ansible_git_remote_href} | Delete a git remote
|
9
|
+
[**list**](RemotesGitApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/git/ | List git remotes
|
10
|
+
[**partial_update**](RemotesGitApi.md#partial_update) | **PATCH** {ansible_git_remote_href} | Update a git remote
|
11
|
+
[**read**](RemotesGitApi.md#read) | **GET** {ansible_git_remote_href} | Inspect a git remote
|
12
|
+
[**update**](RemotesGitApi.md#update) | **PUT** {ansible_git_remote_href} | Update a git remote
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create
|
17
|
+
|
18
|
+
> AnsibleGitRemoteResponse create(ansible_git_remote)
|
19
|
+
|
20
|
+
Create a git remote
|
21
|
+
|
22
|
+
ViewSet for Ansible Remotes. This is a tech preview feature. The functionality may change in the future.
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulp_ansible_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpAnsibleClient.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
37
|
+
ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new # AnsibleGitRemote |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a git remote
|
41
|
+
result = api_instance.create(ansible_git_remote)
|
42
|
+
p result
|
43
|
+
rescue PulpAnsibleClient::ApiError => e
|
44
|
+
puts "Exception when calling RemotesGitApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**ansible_git_remote** | [**AnsibleGitRemote**](AnsibleGitRemote.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**AnsibleGitRemoteResponse**](AnsibleGitRemoteResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse delete(ansible_git_remote_href)
|
72
|
+
|
73
|
+
Delete a git remote
|
74
|
+
|
75
|
+
Trigger an asynchronous delete task
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulp_ansible_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpAnsibleClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
90
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a git remote
|
94
|
+
result = api_instance.delete(ansible_git_remote_href)
|
95
|
+
p result
|
96
|
+
rescue PulpAnsibleClient::ApiError => e
|
97
|
+
puts "Exception when calling RemotesGitApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**ansible_git_remote_href** | **String**| |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[basicAuth](../README.md#basicAuth)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## list
|
123
|
+
|
124
|
+
> PaginatedansibleGitRemoteResponseList list(opts)
|
125
|
+
|
126
|
+
List git remotes
|
127
|
+
|
128
|
+
ViewSet for Ansible Remotes. This is a tech preview feature. The functionality may change in the future.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'pulp_ansible_client'
|
135
|
+
# setup authorization
|
136
|
+
PulpAnsibleClient.configure do |config|
|
137
|
+
# Configure HTTP basic authorization: basicAuth
|
138
|
+
config.username = 'YOUR USERNAME'
|
139
|
+
config.password = 'YOUR PASSWORD'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
143
|
+
opts = {
|
144
|
+
limit: 56, # Integer | Number of results to return per page.
|
145
|
+
name: 'name_example', # String |
|
146
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
147
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
148
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
149
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
150
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
151
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
152
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
153
|
+
pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
154
|
+
pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
|
155
|
+
pulp_last_updated__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than or equal to value
|
156
|
+
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
157
|
+
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
158
|
+
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
159
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
160
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
161
|
+
}
|
162
|
+
|
163
|
+
begin
|
164
|
+
#List git remotes
|
165
|
+
result = api_instance.list(opts)
|
166
|
+
p result
|
167
|
+
rescue PulpAnsibleClient::ApiError => e
|
168
|
+
puts "Exception when calling RemotesGitApi->list: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
|
175
|
+
Name | Type | Description | Notes
|
176
|
+
------------- | ------------- | ------------- | -------------
|
177
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
178
|
+
**name** | **String**| | [optional]
|
179
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
180
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
181
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
182
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
183
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
184
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
185
|
+
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
186
|
+
**pulp_last_updated** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
187
|
+
**pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
|
188
|
+
**pulp_last_updated__gte** | **DateTime**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
189
|
+
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
190
|
+
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
191
|
+
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
192
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
193
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
194
|
+
|
195
|
+
### Return type
|
196
|
+
|
197
|
+
[**PaginatedansibleGitRemoteResponseList**](PaginatedansibleGitRemoteResponseList.md)
|
198
|
+
|
199
|
+
### Authorization
|
200
|
+
|
201
|
+
[basicAuth](../README.md#basicAuth)
|
202
|
+
|
203
|
+
### HTTP request headers
|
204
|
+
|
205
|
+
- **Content-Type**: Not defined
|
206
|
+
- **Accept**: application/json
|
207
|
+
|
208
|
+
|
209
|
+
## partial_update
|
210
|
+
|
211
|
+
> AsyncOperationResponse partial_update(ansible_git_remote_href, patchedansible_git_remote)
|
212
|
+
|
213
|
+
Update a git remote
|
214
|
+
|
215
|
+
Trigger an asynchronous partial update task
|
216
|
+
|
217
|
+
### Example
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
# load the gem
|
221
|
+
require 'pulp_ansible_client'
|
222
|
+
# setup authorization
|
223
|
+
PulpAnsibleClient.configure do |config|
|
224
|
+
# Configure HTTP basic authorization: basicAuth
|
225
|
+
config.username = 'YOUR USERNAME'
|
226
|
+
config.password = 'YOUR PASSWORD'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
230
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
231
|
+
patchedansible_git_remote = PulpAnsibleClient::PatchedansibleGitRemote.new # PatchedansibleGitRemote |
|
232
|
+
|
233
|
+
begin
|
234
|
+
#Update a git remote
|
235
|
+
result = api_instance.partial_update(ansible_git_remote_href, patchedansible_git_remote)
|
236
|
+
p result
|
237
|
+
rescue PulpAnsibleClient::ApiError => e
|
238
|
+
puts "Exception when calling RemotesGitApi->partial_update: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
|
245
|
+
Name | Type | Description | Notes
|
246
|
+
------------- | ------------- | ------------- | -------------
|
247
|
+
**ansible_git_remote_href** | **String**| |
|
248
|
+
**patchedansible_git_remote** | [**PatchedansibleGitRemote**](PatchedansibleGitRemote.md)| |
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
253
|
+
|
254
|
+
### Authorization
|
255
|
+
|
256
|
+
[basicAuth](../README.md#basicAuth)
|
257
|
+
|
258
|
+
### HTTP request headers
|
259
|
+
|
260
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
261
|
+
- **Accept**: application/json
|
262
|
+
|
263
|
+
|
264
|
+
## read
|
265
|
+
|
266
|
+
> AnsibleGitRemoteResponse read(ansible_git_remote_href, opts)
|
267
|
+
|
268
|
+
Inspect a git remote
|
269
|
+
|
270
|
+
ViewSet for Ansible Remotes. This is a tech preview feature. The functionality may change in the future.
|
271
|
+
|
272
|
+
### Example
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
# load the gem
|
276
|
+
require 'pulp_ansible_client'
|
277
|
+
# setup authorization
|
278
|
+
PulpAnsibleClient.configure do |config|
|
279
|
+
# Configure HTTP basic authorization: basicAuth
|
280
|
+
config.username = 'YOUR USERNAME'
|
281
|
+
config.password = 'YOUR PASSWORD'
|
282
|
+
end
|
283
|
+
|
284
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
285
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
286
|
+
opts = {
|
287
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
288
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
289
|
+
}
|
290
|
+
|
291
|
+
begin
|
292
|
+
#Inspect a git remote
|
293
|
+
result = api_instance.read(ansible_git_remote_href, opts)
|
294
|
+
p result
|
295
|
+
rescue PulpAnsibleClient::ApiError => e
|
296
|
+
puts "Exception when calling RemotesGitApi->read: #{e}"
|
297
|
+
end
|
298
|
+
```
|
299
|
+
|
300
|
+
### Parameters
|
301
|
+
|
302
|
+
|
303
|
+
Name | Type | Description | Notes
|
304
|
+
------------- | ------------- | ------------- | -------------
|
305
|
+
**ansible_git_remote_href** | **String**| |
|
306
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
307
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**AnsibleGitRemoteResponse**](AnsibleGitRemoteResponse.md)
|
312
|
+
|
313
|
+
### Authorization
|
314
|
+
|
315
|
+
[basicAuth](../README.md#basicAuth)
|
316
|
+
|
317
|
+
### HTTP request headers
|
318
|
+
|
319
|
+
- **Content-Type**: Not defined
|
320
|
+
- **Accept**: application/json
|
321
|
+
|
322
|
+
|
323
|
+
## update
|
324
|
+
|
325
|
+
> AsyncOperationResponse update(ansible_git_remote_href, ansible_git_remote)
|
326
|
+
|
327
|
+
Update a git remote
|
328
|
+
|
329
|
+
Trigger an asynchronous update task
|
330
|
+
|
331
|
+
### Example
|
332
|
+
|
333
|
+
```ruby
|
334
|
+
# load the gem
|
335
|
+
require 'pulp_ansible_client'
|
336
|
+
# setup authorization
|
337
|
+
PulpAnsibleClient.configure do |config|
|
338
|
+
# Configure HTTP basic authorization: basicAuth
|
339
|
+
config.username = 'YOUR USERNAME'
|
340
|
+
config.password = 'YOUR PASSWORD'
|
341
|
+
end
|
342
|
+
|
343
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
344
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
345
|
+
ansible_git_remote = PulpAnsibleClient::AnsibleGitRemote.new # AnsibleGitRemote |
|
346
|
+
|
347
|
+
begin
|
348
|
+
#Update a git remote
|
349
|
+
result = api_instance.update(ansible_git_remote_href, ansible_git_remote)
|
350
|
+
p result
|
351
|
+
rescue PulpAnsibleClient::ApiError => e
|
352
|
+
puts "Exception when calling RemotesGitApi->update: #{e}"
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
### Parameters
|
357
|
+
|
358
|
+
|
359
|
+
Name | Type | Description | Notes
|
360
|
+
------------- | ------------- | ------------- | -------------
|
361
|
+
**ansible_git_remote_href** | **String**| |
|
362
|
+
**ansible_git_remote** | [**AnsibleGitRemote**](AnsibleGitRemote.md)| |
|
363
|
+
|
364
|
+
### Return type
|
365
|
+
|
366
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
367
|
+
|
368
|
+
### Authorization
|
369
|
+
|
370
|
+
[basicAuth](../README.md#basicAuth)
|
371
|
+
|
372
|
+
### HTTP request headers
|
373
|
+
|
374
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
375
|
+
- **Accept**: application/json
|
376
|
+
|
@@ -15,6 +15,8 @@ Name | Type | Description | Notes
|
|
15
15
|
**name** | **String** | | [optional] [readonly]
|
16
16
|
**namespace** | [**CollectionNamespaceResponse**](CollectionNamespaceResponse.md) | | [optional] [readonly]
|
17
17
|
**metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | | [optional] [readonly]
|
18
|
+
**git_url** | **String** | | [optional] [readonly]
|
19
|
+
**git_commit_sha** | **String** | | [optional] [readonly]
|
18
20
|
|
19
21
|
## Code Sample
|
20
22
|
|
@@ -31,7 +33,9 @@ instance = PulpAnsibleClient::UnpaginatedCollectionVersionResponse.new(version:
|
|
31
33
|
download_url: null,
|
32
34
|
name: null,
|
33
35
|
namespace: null,
|
34
|
-
metadata: null
|
36
|
+
metadata: null,
|
37
|
+
git_url: null,
|
38
|
+
git_commit_sha: null)
|
35
39
|
```
|
36
40
|
|
37
41
|
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -127,6 +127,22 @@ module PulpAnsibleClient
|
|
127
127
|
if @api_client.config.client_side_validation && file.nil?
|
128
128
|
fail ArgumentError, "Missing the required parameter 'file' when calling AnsibleCollectionsApi.upload_collection"
|
129
129
|
end
|
130
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
131
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
132
|
+
end
|
133
|
+
|
134
|
+
if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
|
135
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
136
|
+
end
|
137
|
+
|
138
|
+
if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
|
139
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
140
|
+
end
|
141
|
+
|
142
|
+
if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
|
143
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling AnsibleCollectionsApi.upload_collection, the character length must be great than or equal to 1.'
|
144
|
+
end
|
145
|
+
|
130
146
|
# resource path
|
131
147
|
local_var_path = '/ansible/collections/'
|
132
148
|
|
@@ -54,6 +54,10 @@ module PulpAnsibleClient
|
|
54
54
|
fail ArgumentError, 'invalid value for "name" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
|
55
55
|
end
|
56
56
|
|
57
|
+
if @api_client.config.client_side_validation && name.to_s.length < 1
|
58
|
+
fail ArgumentError, 'invalid value for "name" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
59
|
+
end
|
60
|
+
|
57
61
|
# verify the required parameter 'namespace' is set
|
58
62
|
if @api_client.config.client_side_validation && namespace.nil?
|
59
63
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling ContentCollectionVersionsApi.create"
|
@@ -62,6 +66,10 @@ module PulpAnsibleClient
|
|
62
66
|
fail ArgumentError, 'invalid value for "namespace" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 64.'
|
63
67
|
end
|
64
68
|
|
69
|
+
if @api_client.config.client_side_validation && namespace.to_s.length < 1
|
70
|
+
fail ArgumentError, 'invalid value for "namespace" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
71
|
+
end
|
72
|
+
|
65
73
|
# verify the required parameter 'version' is set
|
66
74
|
if @api_client.config.client_side_validation && version.nil?
|
67
75
|
fail ArgumentError, "Missing the required parameter 'version' when calling ContentCollectionVersionsApi.create"
|
@@ -70,6 +78,10 @@ module PulpAnsibleClient
|
|
70
78
|
fail ArgumentError, 'invalid value for "version" when calling ContentCollectionVersionsApi.create, the character length must be smaller than or equal to 128.'
|
71
79
|
end
|
72
80
|
|
81
|
+
if @api_client.config.client_side_validation && version.to_s.length < 1
|
82
|
+
fail ArgumentError, 'invalid value for "version" when calling ContentCollectionVersionsApi.create, the character length must be great than or equal to 1.'
|
83
|
+
end
|
84
|
+
|
73
85
|
# resource path
|
74
86
|
local_var_path = '/pulp/api/v3/content/ansible/collection_versions/'
|
75
87
|
|
@@ -56,6 +56,22 @@ module PulpAnsibleClient
|
|
56
56
|
if @api_client.config.client_side_validation && file.nil?
|
57
57
|
fail ArgumentError, "Missing the required parameter 'file' when calling PulpAnsibleArtifactsCollectionsV3Api.create"
|
58
58
|
end
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling PulpAnsibleArtifactsCollectionsV3Api.create, the character length must be great than or equal to 1.'
|
61
|
+
end
|
62
|
+
|
63
|
+
if @api_client.config.client_side_validation && !opts[:'expected_namespace'].nil? && opts[:'expected_namespace'].to_s.length < 1
|
64
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_namespace"]" when calling PulpAnsibleArtifactsCollectionsV3Api.create, the character length must be great than or equal to 1.'
|
65
|
+
end
|
66
|
+
|
67
|
+
if @api_client.config.client_side_validation && !opts[:'expected_name'].nil? && opts[:'expected_name'].to_s.length < 1
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_name"]" when calling PulpAnsibleArtifactsCollectionsV3Api.create, the character length must be great than or equal to 1.'
|
69
|
+
end
|
70
|
+
|
71
|
+
if @api_client.config.client_side_validation && !opts[:'expected_version'].nil? && opts[:'expected_version'].to_s.length < 1
|
72
|
+
fail ArgumentError, 'invalid value for "opts[:"expected_version"]" when calling PulpAnsibleArtifactsCollectionsV3Api.create, the character length must be great than or equal to 1.'
|
73
|
+
end
|
74
|
+
|
59
75
|
# resource path
|
60
76
|
local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
61
77
|
|