pulp_ansible_client 0.10.2 → 0.10.4
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 +4 -4
- data/docs/AnsibleCollectionRemoteResponse.md +0 -2
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +2 -2
- data/docs/AnsibleRoleResponse.md +2 -2
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api_client.rb +2 -5
- data/lib/pulp_ansible_client/configuration.rb +1 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -27
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/pulp_ansible_client.gemspec +3 -3
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_role_response_spec.rb +2 -2
- metadata +77 -78
- data/git_push.sh +0 -58
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 996115adc6d9daf86af5db851372b279b438c7406abb95bae2061c05e370ce8e
|
|
4
|
+
data.tar.gz: 2955d8b8be944df3686fd7e016f18b447d03f851ee355880655fabcff92b3a48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e81d68adad0abb37ebdfb101cb23a402831e3b067986b715c2ad53345060939ba69235319159ce1d7f9d02992e89ba57fec04af7c8f1e78214d89b4c529f9f33
|
|
7
|
+
data.tar.gz: ce328c64c484a188b61ce5a7f1528c27de9d1a1c38b17898bf555e235a744d7154e8c3e399093991fa2e14acd9fa9404bb61b56f457d0d290a9dcc669870fb8e
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.10.
|
|
10
|
+
- Package version: 0.10.4
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_ansible_client-0.10.
|
|
27
|
+
gem install ./pulp_ansible_client-0.10.4.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_ansible_client-0.10.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_ansible_client-0.10.4.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulp_ansible_client', '~> 0.10.
|
|
36
|
+
gem 'pulp_ansible_client', '~> 0.10.4'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -25,7 +25,6 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
|
26
26
|
**requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
|
|
27
27
|
**auth_url** | **String** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional]
|
|
28
|
-
**token** | **String** | The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details | [optional]
|
|
29
28
|
**sync_dependencies** | **Boolean** | Sync dependencies for collections specified via requirements file | [optional] [default to true]
|
|
30
29
|
|
|
31
30
|
## Code Sample
|
|
@@ -54,7 +53,6 @@ instance = PulpAnsibleClient::AnsibleCollectionRemoteResponse.new(pulp_href: nul
|
|
|
54
53
|
rate_limit: null,
|
|
55
54
|
requirements_file: null,
|
|
56
55
|
auth_url: null,
|
|
57
|
-
token: null,
|
|
58
56
|
sync_dependencies: null)
|
|
59
57
|
```
|
|
60
58
|
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
8
7
|
**file** | **File** | An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
8
|
+
**repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional]
|
|
9
9
|
**name** | **String** | The name of the collection. |
|
|
10
10
|
**namespace** | **String** | The namespace of the collection. |
|
|
11
11
|
**version** | **String** | The version of the collection. |
|
|
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'PulpAnsibleClient'
|
|
17
17
|
|
|
18
|
-
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(
|
|
19
|
-
|
|
18
|
+
instance = PulpAnsibleClient::AnsibleCollectionVersion.new(file: null,
|
|
19
|
+
repository: null,
|
|
20
20
|
name: null,
|
|
21
21
|
namespace: null,
|
|
22
22
|
version: null)
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
-
**artifact** | **String** | Artifact file representing the physical content |
|
|
9
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
9
|
+
**artifact** | **String** | Artifact file representing the physical content |
|
|
10
10
|
**md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
|
|
11
11
|
**sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
|
|
12
12
|
**sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
|
|
@@ -38,8 +38,8 @@ Name | Type | Description | Notes
|
|
|
38
38
|
require 'PulpAnsibleClient'
|
|
39
39
|
|
|
40
40
|
instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_created: null,
|
|
41
|
-
artifact: null,
|
|
42
41
|
pulp_href: null,
|
|
42
|
+
artifact: null,
|
|
43
43
|
md5: null,
|
|
44
44
|
sha1: null,
|
|
45
45
|
sha224: null,
|
data/docs/AnsibleRoleResponse.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
-
**artifact** | **String** | Artifact file representing the physical content |
|
|
9
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
9
|
+
**artifact** | **String** | Artifact file representing the physical content |
|
|
10
10
|
**version** | **String** | |
|
|
11
11
|
**name** | **String** | |
|
|
12
12
|
**namespace** | **String** | |
|
|
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
|
|
|
17
17
|
require 'PulpAnsibleClient'
|
|
18
18
|
|
|
19
19
|
instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_created: null,
|
|
20
|
-
artifact: null,
|
|
21
20
|
pulp_href: null,
|
|
21
|
+
artifact: null,
|
|
22
22
|
version: null,
|
|
23
23
|
name: null,
|
|
24
24
|
namespace: null)
|
|
@@ -35,8 +35,8 @@ name = 'name_example' # String | The name of the collection.
|
|
|
35
35
|
namespace = 'namespace_example' # String | The namespace of the collection.
|
|
36
36
|
version = 'version_example' # String | The version of the collection.
|
|
37
37
|
opts = {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
|
|
39
|
+
repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
begin
|
|
@@ -56,8 +56,8 @@ Name | Type | Description | Notes
|
|
|
56
56
|
**name** | **String**| The name of the collection. |
|
|
57
57
|
**namespace** | **String**| The namespace of the collection. |
|
|
58
58
|
**version** | **String**| The version of the collection. |
|
|
59
|
-
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
60
59
|
**file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
|
|
60
|
+
**repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
|
|
61
61
|
|
|
62
62
|
### Return type
|
|
63
63
|
|
|
@@ -25,8 +25,8 @@ module PulpAnsibleClient
|
|
|
25
25
|
# @param namespace [String] The namespace of the collection.
|
|
26
26
|
# @param version [String] The version of the collection.
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
29
28
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
29
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
30
30
|
# @return [AsyncOperationResponse]
|
|
31
31
|
def create(name, namespace, version, opts = {})
|
|
32
32
|
data, _status_code, _headers = create_with_http_info(name, namespace, version, opts)
|
|
@@ -39,8 +39,8 @@ module PulpAnsibleClient
|
|
|
39
39
|
# @param namespace [String] The namespace of the collection.
|
|
40
40
|
# @param version [String] The version of the collection.
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
43
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
43
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
44
44
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
45
45
|
def create_with_http_info(name, namespace, version, opts = {})
|
|
46
46
|
if @api_client.config.debugging
|
|
@@ -88,8 +88,8 @@ module PulpAnsibleClient
|
|
|
88
88
|
form_params['name'] = name
|
|
89
89
|
form_params['namespace'] = namespace
|
|
90
90
|
form_params['version'] = version
|
|
91
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
92
91
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
92
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
93
93
|
|
|
94
94
|
# http body (model)
|
|
95
95
|
post_body = opts[:body]
|
|
@@ -118,9 +118,6 @@ module PulpAnsibleClient
|
|
|
118
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
119
119
|
|
|
120
120
|
req_opts = {
|
|
121
|
-
:method => http_method,
|
|
122
|
-
:headers => header_params,
|
|
123
|
-
:params => query_params,
|
|
124
121
|
:params_encoding => @config.params_encoding,
|
|
125
122
|
:timeout => @config.timeout,
|
|
126
123
|
:verbose => @config.debugging
|
|
@@ -128,13 +125,13 @@ module PulpAnsibleClient
|
|
|
128
125
|
|
|
129
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
|
130
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
|
131
|
-
req_opts.update :body => req_body
|
|
132
128
|
if @config.debugging
|
|
133
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
|
134
130
|
end
|
|
135
131
|
end
|
|
136
132
|
request.headers = header_params
|
|
137
133
|
request.body = req_body
|
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
|
138
135
|
request.url url
|
|
139
136
|
request.params = query_params
|
|
140
137
|
download_file(request) if opts[:return_type] == 'File'
|
|
@@ -157,7 +154,7 @@ module PulpAnsibleClient
|
|
|
157
154
|
case value
|
|
158
155
|
when ::File, ::Tempfile
|
|
159
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
|
160
|
-
data[key] = Faraday::
|
|
157
|
+
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
|
161
158
|
when ::Array, nil
|
|
162
159
|
# let Faraday handle Array and nil parameters
|
|
163
160
|
data[key] = value
|
|
@@ -76,9 +76,6 @@ module PulpAnsibleClient
|
|
|
76
76
|
# The URL to receive a session token from, e.g. used with Automation Hub.
|
|
77
77
|
attr_accessor :auth_url
|
|
78
78
|
|
|
79
|
-
# The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details
|
|
80
|
-
attr_accessor :token
|
|
81
|
-
|
|
82
79
|
# Sync dependencies for collections specified via requirements file
|
|
83
80
|
attr_accessor :sync_dependencies
|
|
84
81
|
|
|
@@ -106,7 +103,6 @@ module PulpAnsibleClient
|
|
|
106
103
|
:'rate_limit' => :'rate_limit',
|
|
107
104
|
:'requirements_file' => :'requirements_file',
|
|
108
105
|
:'auth_url' => :'auth_url',
|
|
109
|
-
:'token' => :'token',
|
|
110
106
|
:'sync_dependencies' => :'sync_dependencies'
|
|
111
107
|
}
|
|
112
108
|
end
|
|
@@ -135,7 +131,6 @@ module PulpAnsibleClient
|
|
|
135
131
|
:'rate_limit' => :'Integer',
|
|
136
132
|
:'requirements_file' => :'String',
|
|
137
133
|
:'auth_url' => :'String',
|
|
138
|
-
:'token' => :'String',
|
|
139
134
|
:'sync_dependencies' => :'Boolean'
|
|
140
135
|
}
|
|
141
136
|
end
|
|
@@ -155,7 +150,6 @@ module PulpAnsibleClient
|
|
|
155
150
|
:'rate_limit',
|
|
156
151
|
:'requirements_file',
|
|
157
152
|
:'auth_url',
|
|
158
|
-
:'token',
|
|
159
153
|
:'sync_dependencies'
|
|
160
154
|
])
|
|
161
155
|
end
|
|
@@ -261,10 +255,6 @@ module PulpAnsibleClient
|
|
|
261
255
|
self.auth_url = attributes[:'auth_url']
|
|
262
256
|
end
|
|
263
257
|
|
|
264
|
-
if attributes.key?(:'token')
|
|
265
|
-
self.token = attributes[:'token']
|
|
266
|
-
end
|
|
267
|
-
|
|
268
258
|
if attributes.key?(:'sync_dependencies')
|
|
269
259
|
self.sync_dependencies = attributes[:'sync_dependencies']
|
|
270
260
|
else
|
|
@@ -308,10 +298,6 @@ module PulpAnsibleClient
|
|
|
308
298
|
invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
|
|
309
299
|
end
|
|
310
300
|
|
|
311
|
-
if !@token.nil? && @token.to_s.length > 2000
|
|
312
|
-
invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
|
|
313
|
-
end
|
|
314
|
-
|
|
315
301
|
invalid_properties
|
|
316
302
|
end
|
|
317
303
|
|
|
@@ -326,7 +312,6 @@ module PulpAnsibleClient
|
|
|
326
312
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
327
313
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
328
314
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
|
329
|
-
return false if !@token.nil? && @token.to_s.length > 2000
|
|
330
315
|
true
|
|
331
316
|
end
|
|
332
317
|
|
|
@@ -390,16 +375,6 @@ module PulpAnsibleClient
|
|
|
390
375
|
@auth_url = auth_url
|
|
391
376
|
end
|
|
392
377
|
|
|
393
|
-
# Custom attribute writer method with validation
|
|
394
|
-
# @param [Object] token Value to be assigned
|
|
395
|
-
def token=(token)
|
|
396
|
-
if !token.nil? && token.to_s.length > 2000
|
|
397
|
-
fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
@token = token
|
|
401
|
-
end
|
|
402
|
-
|
|
403
378
|
# Checks equality by comparing each attribute.
|
|
404
379
|
# @param [Object] Object to be compared
|
|
405
380
|
def ==(o)
|
|
@@ -426,7 +401,6 @@ module PulpAnsibleClient
|
|
|
426
401
|
rate_limit == o.rate_limit &&
|
|
427
402
|
requirements_file == o.requirements_file &&
|
|
428
403
|
auth_url == o.auth_url &&
|
|
429
|
-
token == o.token &&
|
|
430
404
|
sync_dependencies == o.sync_dependencies
|
|
431
405
|
end
|
|
432
406
|
|
|
@@ -439,7 +413,7 @@ module PulpAnsibleClient
|
|
|
439
413
|
# Calculates hash code according to all attributes.
|
|
440
414
|
# @return [Integer] Hash code
|
|
441
415
|
def hash
|
|
442
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url,
|
|
416
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, sync_dependencies].hash
|
|
443
417
|
end
|
|
444
418
|
|
|
445
419
|
# Builds the object from hash
|
|
@@ -15,12 +15,12 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for CollectionVersion Content.
|
|
17
17
|
class AnsibleCollectionVersion
|
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
|
19
|
-
attr_accessor :repository
|
|
20
|
-
|
|
21
18
|
# An uploaded file that may be turned into the artifact of the content unit.
|
|
22
19
|
attr_accessor :file
|
|
23
20
|
|
|
21
|
+
# A URI of a repository the new content unit should be associated with.
|
|
22
|
+
attr_accessor :repository
|
|
23
|
+
|
|
24
24
|
# The name of the collection.
|
|
25
25
|
attr_accessor :name
|
|
26
26
|
|
|
@@ -33,8 +33,8 @@ module PulpAnsibleClient
|
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
34
|
def self.attribute_map
|
|
35
35
|
{
|
|
36
|
-
:'repository' => :'repository',
|
|
37
36
|
:'file' => :'file',
|
|
37
|
+
:'repository' => :'repository',
|
|
38
38
|
:'name' => :'name',
|
|
39
39
|
:'namespace' => :'namespace',
|
|
40
40
|
:'version' => :'version'
|
|
@@ -44,8 +44,8 @@ module PulpAnsibleClient
|
|
|
44
44
|
# Attribute type mapping.
|
|
45
45
|
def self.openapi_types
|
|
46
46
|
{
|
|
47
|
-
:'repository' => :'String',
|
|
48
47
|
:'file' => :'File',
|
|
48
|
+
:'repository' => :'String',
|
|
49
49
|
:'name' => :'String',
|
|
50
50
|
:'namespace' => :'String',
|
|
51
51
|
:'version' => :'String'
|
|
@@ -73,14 +73,14 @@ module PulpAnsibleClient
|
|
|
73
73
|
h[k.to_sym] = v
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
if attributes.key?(:'repository')
|
|
77
|
-
self.repository = attributes[:'repository']
|
|
78
|
-
end
|
|
79
|
-
|
|
80
76
|
if attributes.key?(:'file')
|
|
81
77
|
self.file = attributes[:'file']
|
|
82
78
|
end
|
|
83
79
|
|
|
80
|
+
if attributes.key?(:'repository')
|
|
81
|
+
self.repository = attributes[:'repository']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
84
|
if attributes.key?(:'name')
|
|
85
85
|
self.name = attributes[:'name']
|
|
86
86
|
end
|
|
@@ -184,8 +184,8 @@ module PulpAnsibleClient
|
|
|
184
184
|
def ==(o)
|
|
185
185
|
return true if self.equal?(o)
|
|
186
186
|
self.class == o.class &&
|
|
187
|
-
repository == o.repository &&
|
|
188
187
|
file == o.file &&
|
|
188
|
+
repository == o.repository &&
|
|
189
189
|
name == o.name &&
|
|
190
190
|
namespace == o.namespace &&
|
|
191
191
|
version == o.version
|
|
@@ -200,7 +200,7 @@ module PulpAnsibleClient
|
|
|
200
200
|
# Calculates hash code according to all attributes.
|
|
201
201
|
# @return [Integer] Hash code
|
|
202
202
|
def hash
|
|
203
|
-
[
|
|
203
|
+
[file, repository, name, namespace, version].hash
|
|
204
204
|
end
|
|
205
205
|
|
|
206
206
|
# Builds the object from hash
|
|
@@ -18,11 +18,11 @@ module PulpAnsibleClient
|
|
|
18
18
|
# Timestamp of creation.
|
|
19
19
|
attr_accessor :pulp_created
|
|
20
20
|
|
|
21
|
+
attr_accessor :pulp_href
|
|
22
|
+
|
|
21
23
|
# Artifact file representing the physical content
|
|
22
24
|
attr_accessor :artifact
|
|
23
25
|
|
|
24
|
-
attr_accessor :pulp_href
|
|
25
|
-
|
|
26
26
|
# The MD5 checksum if available.
|
|
27
27
|
attr_accessor :md5
|
|
28
28
|
|
|
@@ -98,8 +98,8 @@ module PulpAnsibleClient
|
|
|
98
98
|
def self.attribute_map
|
|
99
99
|
{
|
|
100
100
|
:'pulp_created' => :'pulp_created',
|
|
101
|
-
:'artifact' => :'artifact',
|
|
102
101
|
:'pulp_href' => :'pulp_href',
|
|
102
|
+
:'artifact' => :'artifact',
|
|
103
103
|
:'md5' => :'md5',
|
|
104
104
|
:'sha1' => :'sha1',
|
|
105
105
|
:'sha224' => :'sha224',
|
|
@@ -131,8 +131,8 @@ module PulpAnsibleClient
|
|
|
131
131
|
def self.openapi_types
|
|
132
132
|
{
|
|
133
133
|
:'pulp_created' => :'DateTime',
|
|
134
|
-
:'artifact' => :'String',
|
|
135
134
|
:'pulp_href' => :'String',
|
|
135
|
+
:'artifact' => :'String',
|
|
136
136
|
:'md5' => :'String',
|
|
137
137
|
:'sha1' => :'String',
|
|
138
138
|
:'sha224' => :'String',
|
|
@@ -186,14 +186,14 @@ module PulpAnsibleClient
|
|
|
186
186
|
self.pulp_created = attributes[:'pulp_created']
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
if attributes.key?(:'artifact')
|
|
190
|
-
self.artifact = attributes[:'artifact']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
189
|
if attributes.key?(:'pulp_href')
|
|
194
190
|
self.pulp_href = attributes[:'pulp_href']
|
|
195
191
|
end
|
|
196
192
|
|
|
193
|
+
if attributes.key?(:'artifact')
|
|
194
|
+
self.artifact = attributes[:'artifact']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
197
|
if attributes.key?(:'md5')
|
|
198
198
|
self.md5 = attributes[:'md5']
|
|
199
199
|
end
|
|
@@ -549,8 +549,8 @@ module PulpAnsibleClient
|
|
|
549
549
|
return true if self.equal?(o)
|
|
550
550
|
self.class == o.class &&
|
|
551
551
|
pulp_created == o.pulp_created &&
|
|
552
|
-
artifact == o.artifact &&
|
|
553
552
|
pulp_href == o.pulp_href &&
|
|
553
|
+
artifact == o.artifact &&
|
|
554
554
|
md5 == o.md5 &&
|
|
555
555
|
sha1 == o.sha1 &&
|
|
556
556
|
sha224 == o.sha224 &&
|
|
@@ -586,7 +586,7 @@ module PulpAnsibleClient
|
|
|
586
586
|
# Calculates hash code according to all attributes.
|
|
587
587
|
# @return [Integer] Hash code
|
|
588
588
|
def hash
|
|
589
|
-
[pulp_created,
|
|
589
|
+
[pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
|
|
590
590
|
end
|
|
591
591
|
|
|
592
592
|
# Builds the object from hash
|
|
@@ -18,11 +18,11 @@ module PulpAnsibleClient
|
|
|
18
18
|
# Timestamp of creation.
|
|
19
19
|
attr_accessor :pulp_created
|
|
20
20
|
|
|
21
|
+
attr_accessor :pulp_href
|
|
22
|
+
|
|
21
23
|
# Artifact file representing the physical content
|
|
22
24
|
attr_accessor :artifact
|
|
23
25
|
|
|
24
|
-
attr_accessor :pulp_href
|
|
25
|
-
|
|
26
26
|
attr_accessor :version
|
|
27
27
|
|
|
28
28
|
attr_accessor :name
|
|
@@ -33,8 +33,8 @@ module PulpAnsibleClient
|
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'pulp_created' => :'pulp_created',
|
|
36
|
-
:'artifact' => :'artifact',
|
|
37
36
|
:'pulp_href' => :'pulp_href',
|
|
37
|
+
:'artifact' => :'artifact',
|
|
38
38
|
:'version' => :'version',
|
|
39
39
|
:'name' => :'name',
|
|
40
40
|
:'namespace' => :'namespace'
|
|
@@ -45,8 +45,8 @@ module PulpAnsibleClient
|
|
|
45
45
|
def self.openapi_types
|
|
46
46
|
{
|
|
47
47
|
:'pulp_created' => :'DateTime',
|
|
48
|
-
:'artifact' => :'String',
|
|
49
48
|
:'pulp_href' => :'String',
|
|
49
|
+
:'artifact' => :'String',
|
|
50
50
|
:'version' => :'String',
|
|
51
51
|
:'name' => :'String',
|
|
52
52
|
:'namespace' => :'String'
|
|
@@ -78,14 +78,14 @@ module PulpAnsibleClient
|
|
|
78
78
|
self.pulp_created = attributes[:'pulp_created']
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
if attributes.key?(:'artifact')
|
|
82
|
-
self.artifact = attributes[:'artifact']
|
|
83
|
-
end
|
|
84
|
-
|
|
85
81
|
if attributes.key?(:'pulp_href')
|
|
86
82
|
self.pulp_href = attributes[:'pulp_href']
|
|
87
83
|
end
|
|
88
84
|
|
|
85
|
+
if attributes.key?(:'artifact')
|
|
86
|
+
self.artifact = attributes[:'artifact']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
89
|
if attributes.key?(:'version')
|
|
90
90
|
self.version = attributes[:'version']
|
|
91
91
|
end
|
|
@@ -138,8 +138,8 @@ module PulpAnsibleClient
|
|
|
138
138
|
return true if self.equal?(o)
|
|
139
139
|
self.class == o.class &&
|
|
140
140
|
pulp_created == o.pulp_created &&
|
|
141
|
-
artifact == o.artifact &&
|
|
142
141
|
pulp_href == o.pulp_href &&
|
|
142
|
+
artifact == o.artifact &&
|
|
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_created,
|
|
157
|
+
[pulp_created, pulp_href, artifact, version, name, namespace].hash
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
# Builds the object from hash
|
data/pulp_ansible_client.gemspec
CHANGED
|
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
|
24
|
-
s.homepage = "https://
|
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_ansible"
|
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
|
27
|
-
s.license = '
|
|
27
|
+
s.license = 'GPLv2+'
|
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
|
29
29
|
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
32
32
|
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
@@ -39,8 +39,8 @@ describe 'ContentCollectionVersionsApi' do
|
|
|
39
39
|
# @param namespace The namespace of the collection.
|
|
40
40
|
# @param version The version of the collection.
|
|
41
41
|
# @param [Hash] opts the optional parameters
|
|
42
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
43
42
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
|
43
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
44
44
|
# @return [AsyncOperationResponse]
|
|
45
45
|
describe 'create test' do
|
|
46
46
|
it 'should work' do
|
|
@@ -158,12 +158,6 @@ describe 'AnsibleCollectionRemoteResponse' do
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
describe 'test attribute "token"' do
|
|
162
|
-
it 'should work' do
|
|
163
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
161
|
describe 'test attribute "sync_dependencies"' do
|
|
168
162
|
it 'should work' do
|
|
169
163
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -38,13 +38,13 @@ describe 'AnsibleCollectionVersionResponse' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_href"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "artifact"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
@@ -32,13 +32,13 @@ describe 'AnsibleCollectionVersion' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersion)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "file"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "repository"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
@@ -38,13 +38,13 @@ describe 'AnsibleRoleResponse' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_href"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "artifact"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
metadata
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_ansible_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 1.0.1
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
22
|
+
version: '2.0'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - "
|
|
27
|
+
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
29
|
+
version: 1.0.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: '2.0'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -167,7 +167,6 @@ files:
|
|
|
167
167
|
- docs/TagResponse.md
|
|
168
168
|
- docs/UnpaginatedCollectionVersionResponse.md
|
|
169
169
|
- docs/VersionsApi.md
|
|
170
|
-
- git_push.sh
|
|
171
170
|
- lib/pulp_ansible_client.rb
|
|
172
171
|
- lib/pulp_ansible_client/api/ansible_collections_api.rb
|
|
173
172
|
- lib/pulp_ansible_client/api/ansible_copy_api.rb
|
|
@@ -351,9 +350,9 @@ files:
|
|
|
351
350
|
- spec/models/tag_response_spec.rb
|
|
352
351
|
- spec/models/unpaginated_collection_version_response_spec.rb
|
|
353
352
|
- spec/spec_helper.rb
|
|
354
|
-
homepage: https://
|
|
353
|
+
homepage: https://github.com/pulp/pulp_ansible
|
|
355
354
|
licenses:
|
|
356
|
-
-
|
|
355
|
+
- GPLv2+
|
|
357
356
|
metadata: {}
|
|
358
357
|
post_install_message:
|
|
359
358
|
rdoc_options: []
|
|
@@ -375,93 +374,93 @@ signing_key:
|
|
|
375
374
|
specification_version: 4
|
|
376
375
|
summary: Pulp 3 API Ruby Gem
|
|
377
376
|
test_files:
|
|
378
|
-
- spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb
|
|
379
|
-
- spec/api/api_collections_api_spec.rb
|
|
380
|
-
- spec/api/content_roles_api_spec.rb
|
|
381
|
-
- spec/api/repositories_ansible_api_spec.rb
|
|
382
|
-
- spec/api/ansible_copy_api_spec.rb
|
|
383
|
-
- spec/api/versions_api_spec.rb
|
|
384
|
-
- spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb
|
|
385
|
-
- spec/api/galaxy_detail_api_spec.rb
|
|
386
|
-
- spec/api/content_collection_versions_api_spec.rb
|
|
387
377
|
- spec/api/collection_import_api_spec.rb
|
|
388
|
-
- spec/api/pulp_ansible_api_api_spec.rb
|
|
389
|
-
- spec/api/ansible_collections_api_spec.rb
|
|
390
378
|
- spec/api/pulp_ansible_api_v3_api_spec.rb
|
|
391
|
-
- spec/api/
|
|
392
|
-
- spec/api/
|
|
379
|
+
- spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb
|
|
380
|
+
- spec/api/versions_api_spec.rb
|
|
393
381
|
- spec/api/api_roles_api_spec.rb
|
|
394
|
-
- spec/api/
|
|
395
|
-
- spec/api/remotes_role_api_spec.rb
|
|
382
|
+
- spec/api/api_collections_api_spec.rb
|
|
396
383
|
- spec/api/pulp_ansible_api_v3_collections_api_spec.rb
|
|
397
|
-
- spec/api/
|
|
398
|
-
- spec/api/
|
|
384
|
+
- spec/api/remotes_role_api_spec.rb
|
|
385
|
+
- spec/api/pulp_ansible_tags_api_spec.rb
|
|
386
|
+
- spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb
|
|
387
|
+
- spec/api/repositories_ansible_versions_api_spec.rb
|
|
388
|
+
- spec/api/pulp_ansible_api_api_spec.rb
|
|
399
389
|
- spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb
|
|
390
|
+
- spec/api/content_collection_versions_api_spec.rb
|
|
391
|
+
- spec/api/remotes_collection_api_spec.rb
|
|
392
|
+
- spec/api/content_roles_api_spec.rb
|
|
393
|
+
- spec/api/repositories_ansible_api_spec.rb
|
|
394
|
+
- spec/api/content_collection_deprecations_api_spec.rb
|
|
400
395
|
- spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb
|
|
396
|
+
- spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb
|
|
397
|
+
- spec/api/ansible_collections_api_spec.rb
|
|
401
398
|
- spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb
|
|
402
|
-
- spec/api/
|
|
399
|
+
- spec/api/ansible_copy_api_spec.rb
|
|
400
|
+
- spec/api/distributions_ansible_api_spec.rb
|
|
401
|
+
- spec/api/galaxy_detail_api_spec.rb
|
|
403
402
|
- spec/api_client_spec.rb
|
|
404
403
|
- spec/configuration_spec.rb
|
|
404
|
+
- spec/models/patchedansible_collection_remote_spec.rb
|
|
405
|
+
- spec/models/ansible_collection_remote_spec.rb
|
|
406
|
+
- spec/models/repository_version_response_spec.rb
|
|
405
407
|
- spec/models/ansible_ansible_repository_spec.rb
|
|
406
|
-
- spec/models/
|
|
407
|
-
- spec/models/
|
|
408
|
-
- spec/models/
|
|
409
|
-
- spec/models/
|
|
410
|
-
- spec/models/
|
|
408
|
+
- spec/models/paginated_collection_response_list_links_spec.rb
|
|
409
|
+
- spec/models/ansible_ansible_distribution_spec.rb
|
|
410
|
+
- spec/models/ansible_collection_version_response_spec.rb
|
|
411
|
+
- spec/models/ansible_role_remote_spec.rb
|
|
412
|
+
- spec/models/ansible_role_remote_response_spec.rb
|
|
413
|
+
- spec/models/paginatedansible_role_response_list_spec.rb
|
|
414
|
+
- spec/models/repository_version_spec.rb
|
|
411
415
|
- spec/models/ansible_collection_version_spec.rb
|
|
412
|
-
- spec/models/
|
|
416
|
+
- spec/models/collection_response_spec.rb
|
|
417
|
+
- spec/models/repo_metadata_response_spec.rb
|
|
413
418
|
- spec/models/ansible_role_response_spec.rb
|
|
414
|
-
- spec/models/
|
|
415
|
-
- spec/models/
|
|
416
|
-
- spec/models/
|
|
417
|
-
- spec/models/
|
|
418
|
-
- spec/models/
|
|
419
|
-
- spec/models/paginatedansible_ansible_distribution_response_list_spec.rb
|
|
419
|
+
- spec/models/async_operation_response_spec.rb
|
|
420
|
+
- spec/models/paginated_galaxy_collection_version_response_list_spec.rb
|
|
421
|
+
- spec/models/paginatedansible_collection_version_response_list_spec.rb
|
|
422
|
+
- spec/models/collection_ref_response_spec.rb
|
|
423
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
420
424
|
- spec/models/collection_metadata_response_spec.rb
|
|
421
|
-
- spec/models/
|
|
422
|
-
- spec/models/ansible_repository_sync_url_spec.rb
|
|
425
|
+
- spec/models/unpaginated_collection_version_response_spec.rb
|
|
423
426
|
- spec/models/collection_version_docs_response_spec.rb
|
|
427
|
+
- spec/models/ansible_collection_remote_response_spec.rb
|
|
428
|
+
- spec/models/galaxy_collection_version_response_spec.rb
|
|
429
|
+
- spec/models/galaxy_role_response_spec.rb
|
|
430
|
+
- spec/models/galaxy_role_version_response_spec.rb
|
|
431
|
+
- spec/models/ansible_tag_response_spec.rb
|
|
432
|
+
- spec/models/ansible_ansible_repository_response_spec.rb
|
|
433
|
+
- spec/models/paginatedansible_collection_response_list_spec.rb
|
|
434
|
+
- spec/models/paginated_galaxy_role_response_list_spec.rb
|
|
424
435
|
- spec/models/repository_add_remove_content_spec.rb
|
|
425
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
426
|
-
- spec/models/paginated_galaxy_collection_response_list_spec.rb
|
|
427
|
-
- spec/models/collection_import_detail_response_spec.rb
|
|
428
|
-
- spec/models/ansible_role_remote_response_spec.rb
|
|
429
436
|
- spec/models/paginated_galaxy_role_version_response_list_spec.rb
|
|
430
|
-
- spec/models/
|
|
431
|
-
- spec/models/
|
|
432
|
-
- spec/models/
|
|
437
|
+
- spec/models/patchedansible_ansible_repository_spec.rb
|
|
438
|
+
- spec/models/content_summary_response_spec.rb
|
|
439
|
+
- spec/models/ansible_ansible_distribution_response_spec.rb
|
|
440
|
+
- spec/models/collection_import_detail_response_spec.rb
|
|
433
441
|
- spec/models/content_summary_spec.rb
|
|
434
|
-
- spec/models/
|
|
435
|
-
- spec/models/
|
|
436
|
-
- spec/models/
|
|
442
|
+
- spec/models/collection_version_response_spec.rb
|
|
443
|
+
- spec/models/paginated_galaxy_collection_response_list_spec.rb
|
|
444
|
+
- spec/models/ansible_repository_sync_url_spec.rb
|
|
445
|
+
- spec/models/copy_spec.rb
|
|
446
|
+
- spec/models/paginatedansible_collection_remote_response_list_spec.rb
|
|
447
|
+
- spec/models/galaxy_collection_spec.rb
|
|
448
|
+
- spec/models/paginatedansible_ansible_repository_response_list_spec.rb
|
|
449
|
+
- spec/models/ansible_collection_spec.rb
|
|
437
450
|
- spec/models/paginated_tag_response_list_spec.rb
|
|
438
|
-
- spec/models/
|
|
439
|
-
- spec/models/
|
|
440
|
-
- spec/models/paginated_collection_response_list_spec.rb
|
|
441
|
-
- spec/models/patchedansible_collection_remote_spec.rb
|
|
451
|
+
- spec/models/paginated_collection_response_list_meta_spec.rb
|
|
452
|
+
- spec/models/paginatedansible_role_remote_response_list_spec.rb
|
|
442
453
|
- spec/models/collection_one_shot_spec.rb
|
|
443
|
-
- spec/models/ansible_collection_response_spec.rb
|
|
444
|
-
- spec/models/collection_ref_response_spec.rb
|
|
445
|
-
- spec/models/paginatedansible_role_response_list_spec.rb
|
|
446
|
-
- spec/models/galaxy_role_version_response_spec.rb
|
|
447
|
-
- spec/models/galaxy_collection_spec.rb
|
|
448
|
-
- spec/models/paginatedansible_collection_remote_response_list_spec.rb
|
|
449
|
-
- spec/models/repository_version_spec.rb
|
|
450
|
-
- spec/models/ansible_role_spec.rb
|
|
451
|
-
- spec/models/paginatedansible_collection_version_response_list_spec.rb
|
|
452
|
-
- spec/models/paginated_collection_response_list_links_spec.rb
|
|
453
|
-
- spec/models/ansible_collection_remote_spec.rb
|
|
454
|
-
- spec/models/patchedansible_ansible_distribution_spec.rb
|
|
455
|
-
- spec/models/paginated_galaxy_collection_version_response_list_spec.rb
|
|
456
|
-
- spec/models/content_summary_response_spec.rb
|
|
457
|
-
- spec/models/unpaginated_collection_version_response_spec.rb
|
|
458
|
-
- spec/models/ansible_tag_response_spec.rb
|
|
459
|
-
- spec/models/copy_spec.rb
|
|
460
|
-
- spec/models/ansible_ansible_distribution_response_spec.rb
|
|
461
454
|
- spec/models/collection_namespace_response_spec.rb
|
|
455
|
+
- spec/models/ansible_role_spec.rb
|
|
462
456
|
- spec/models/patchedansible_role_remote_spec.rb
|
|
463
|
-
- spec/models/
|
|
464
|
-
- spec/models/
|
|
465
|
-
- spec/models/
|
|
457
|
+
- spec/models/artifact_ref_response_spec.rb
|
|
458
|
+
- spec/models/paginated_collection_response_list_spec.rb
|
|
459
|
+
- spec/models/ansible_collection_response_spec.rb
|
|
460
|
+
- spec/models/paginatedansible_ansible_distribution_response_list_spec.rb
|
|
466
461
|
- spec/models/tag_response_spec.rb
|
|
462
|
+
- spec/models/galaxy_collection_response_spec.rb
|
|
463
|
+
- spec/models/paginated_collection_version_response_list_spec.rb
|
|
464
|
+
- spec/models/policy_enum_spec.rb
|
|
465
|
+
- spec/models/patchedansible_ansible_distribution_spec.rb
|
|
467
466
|
- spec/spec_helper.rb
|
data/git_push.sh
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
|