pulp_ansible_client 0.10.3 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f676118643008b866143c0efcfdbe8b4f9e9b159ac613e857bccfa8ee22320a
4
- data.tar.gz: 973e5c7ee32fb69a0b7bcc54c1ac0f99344db39ded69b986dd378639cd8a31b4
3
+ metadata.gz: aef58cd226915fa05e7112ae789c5513999e9ee176aefb576125b34349b0f797
4
+ data.tar.gz: 8e677c94c8f0b9cf0d01aa963282ec6e3a598412043d2e888d0290f0ab7c92b8
5
5
  SHA512:
6
- metadata.gz: 40447efcbe89efdda7af6337026b4b34451444d7e91450e4b00c01c303ca224b05da4a121ddf98407a4488f4a121c3e40955f3daef5e1bfc74ab4c8b34b8c10a
7
- data.tar.gz: de003c27bc9281d868a7f6cd689929118d4fd9e95f85334cc0f417a7f1ee827373334e171bd86410d202a92362b5551f71c059294de593c266857d561a96f518
6
+ metadata.gz: 04f6922dee8e7a58d9be443203dc1812a8a5ec9c8bb599dd1db04fb42c5d6d669e27044535753e086f69d819202bb8192b65de1e8dfd002e7f206d53b713fe84
7
+ data.tar.gz: 886e58c0b7b136505f4cbf4f1b6b4a86ef62c88256957d75820c4380ca754b41de75b69a113847e73c35e4512ce223c082d75d8d01a62200461ce57ea2e00780
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.3
10
+ - Package version: 0.10.5
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.3.gem
27
+ gem install ./pulp_ansible_client-0.10.5.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ansible_client-0.10.3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ansible_client-0.10.5.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.3'
36
+ gem 'pulp_ansible_client', '~> 0.10.5'
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(repository: null,
19
- file: null,
18
+ instance = PulpAnsibleClient::AnsibleCollectionVersion.new(file: null,
19
+ repository: null,
20
20
  name: null,
21
21
  namespace: null,
22
22
  version: null)
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
7
8
  **artifact** | **String** | Artifact file representing the physical content |
8
9
  **pulp_href** | **String** | | [optional] [readonly]
9
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
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]
@@ -37,9 +37,9 @@ Name | Type | Description | Notes
37
37
  ```ruby
38
38
  require 'PulpAnsibleClient'
39
39
 
40
- instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(artifact: null,
40
+ instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_created: null,
41
+ artifact: null,
41
42
  pulp_href: null,
42
- pulp_created: null,
43
43
  md5: null,
44
44
  sha1: null,
45
45
  sha224: null,
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
7
8
  **artifact** | **String** | Artifact file representing the physical content |
8
9
  **pulp_href** | **String** | | [optional] [readonly]
9
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
10
  **version** | **String** | |
11
11
  **name** | **String** | |
12
12
  **namespace** | **String** | |
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
16
16
  ```ruby
17
17
  require 'PulpAnsibleClient'
18
18
 
19
- instance = PulpAnsibleClient::AnsibleRoleResponse.new(artifact: null,
19
+ instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_created: null,
20
+ artifact: null,
20
21
  pulp_href: null,
21
- pulp_created: 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
- repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
- file: File.new('/path/to/file') # File | An uploaded file that may be turned into the artifact of the content unit.
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]
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  case value
155
155
  when ::File, ::Tempfile
156
156
  # TODO hardcode to application/octet-stream, need better way to detect content type
157
- data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
157
+ data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
158
158
  when ::Array, nil
159
159
  # let Faraday handle Array and nil parameters
160
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, token, sync_dependencies].hash
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
- [repository, file, name, namespace, version].hash
203
+ [file, repository, name, namespace, version].hash
204
204
  end
205
205
 
206
206
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
21
24
  attr_accessor :pulp_href
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
25
-
26
26
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -97,9 +97,9 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_created' => :'pulp_created',
100
101
  :'artifact' => :'artifact',
101
102
  :'pulp_href' => :'pulp_href',
102
- :'pulp_created' => :'pulp_created',
103
103
  :'md5' => :'md5',
104
104
  :'sha1' => :'sha1',
105
105
  :'sha224' => :'sha224',
@@ -130,9 +130,9 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
+ :'pulp_created' => :'DateTime',
133
134
  :'artifact' => :'String',
134
135
  :'pulp_href' => :'String',
135
- :'pulp_created' => :'DateTime',
136
136
  :'md5' => :'String',
137
137
  :'sha1' => :'String',
138
138
  :'sha224' => :'String',
@@ -182,6 +182,10 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
+ if attributes.key?(:'pulp_created')
186
+ self.pulp_created = attributes[:'pulp_created']
187
+ end
188
+
185
189
  if attributes.key?(:'artifact')
186
190
  self.artifact = attributes[:'artifact']
187
191
  end
@@ -190,10 +194,6 @@ module PulpAnsibleClient
190
194
  self.pulp_href = attributes[:'pulp_href']
191
195
  end
192
196
 
193
- if attributes.key?(:'pulp_created')
194
- self.pulp_created = attributes[:'pulp_created']
195
- end
196
-
197
197
  if attributes.key?(:'md5')
198
198
  self.md5 = attributes[:'md5']
199
199
  end
@@ -548,9 +548,9 @@ module PulpAnsibleClient
548
548
  def ==(o)
549
549
  return true if self.equal?(o)
550
550
  self.class == o.class &&
551
+ pulp_created == o.pulp_created &&
551
552
  artifact == o.artifact &&
552
553
  pulp_href == o.pulp_href &&
553
- pulp_created == o.pulp_created &&
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
- [artifact, pulp_href, pulp_created, 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
589
+ [pulp_created, artifact, pulp_href, 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
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
21
24
  attr_accessor :pulp_href
22
25
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
25
-
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'pulp_created' => :'pulp_created',
35
36
  :'artifact' => :'artifact',
36
37
  :'pulp_href' => :'pulp_href',
37
- :'pulp_created' => :'pulp_created',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
+ :'pulp_created' => :'DateTime',
47
48
  :'artifact' => :'String',
48
49
  :'pulp_href' => :'String',
49
- :'pulp_created' => :'DateTime',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,6 +74,10 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
+ if attributes.key?(:'pulp_created')
78
+ self.pulp_created = attributes[:'pulp_created']
79
+ end
80
+
77
81
  if attributes.key?(:'artifact')
78
82
  self.artifact = attributes[:'artifact']
79
83
  end
@@ -82,10 +86,6 @@ module PulpAnsibleClient
82
86
  self.pulp_href = attributes[:'pulp_href']
83
87
  end
84
88
 
85
- if attributes.key?(:'pulp_created')
86
- self.pulp_created = attributes[:'pulp_created']
87
- end
88
-
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
+ pulp_created == o.pulp_created &&
140
141
  artifact == o.artifact &&
141
142
  pulp_href == o.pulp_href &&
142
- pulp_created == o.pulp_created &&
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
- [artifact, pulp_href, pulp_created, version, name, namespace].hash
157
+ [pulp_created, artifact, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.10.3'
14
+ VERSION = '0.10.5'
15
15
  end
@@ -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://openapi-generator.tech"
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 = 'GPL-2.0+'
27
+ s.license = 'GPLv2+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
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
@@ -32,19 +32,19 @@ describe 'AnsibleCollectionVersionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "pulp_created"' 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 "pulp_href"' do
41
+ describe 'test attribute "artifact"' 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 "pulp_created"' do
47
+ describe 'test attribute "pulp_href"' 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 "repository"' do
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 "file"' do
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
@@ -32,19 +32,19 @@ describe 'AnsibleRoleResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleRoleResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "pulp_created"' 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 "pulp_href"' do
41
+ describe 'test attribute "artifact"' 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 "pulp_created"' do
47
+ describe 'test attribute "pulp_href"' 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.3
4
+ version: 0.10.5
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-06-07 00:00:00.000000000 Z
11
+ date: 2023-02-03 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: '0.17'
19
+ version: 1.0.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 1.9.0
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: '0.17'
29
+ version: 1.0.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 1.9.0
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://openapi-generator.tech
353
+ homepage: https://github.com/pulp/pulp_ansible
355
354
  licenses:
356
- - GPL-2.0+
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:
377
+ - spec/api/remotes_role_api_spec.rb
378
+ - spec/api/galaxy_detail_api_spec.rb
379
+ - spec/api/content_collection_deprecations_api_spec.rb
380
+ - spec/api/repositories_ansible_versions_api_spec.rb
378
381
  - spec/api/versions_api_spec.rb
382
+ - spec/api/content_collection_versions_api_spec.rb
383
+ - spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb
379
384
  - spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb
380
- - spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb
381
- - spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb
382
- - spec/api/galaxy_detail_api_spec.rb
383
- - spec/api/remotes_role_api_spec.rb
384
- - spec/api/ansible_collections_api_spec.rb
385
- - spec/api/content_roles_api_spec.rb
386
- - spec/api/pulp_ansible_api_v3_collections_api_spec.rb
385
+ - spec/api/api_collections_api_spec.rb
386
+ - spec/api/pulp_ansible_tags_api_spec.rb
387
+ - spec/api/api_roles_api_spec.rb
388
+ - spec/api/repositories_ansible_api_spec.rb
389
+ - spec/api/distributions_ansible_api_spec.rb
390
+ - spec/api/remotes_collection_api_spec.rb
387
391
  - spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb
392
+ - spec/api/ansible_copy_api_spec.rb
393
+ - spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb
388
394
  - spec/api/pulp_ansible_api_v3_api_spec.rb
389
- - spec/api/repositories_ansible_api_spec.rb
395
+ - spec/api/pulp_ansible_api_v3_collections_api_spec.rb
396
+ - spec/api/content_roles_api_spec.rb
390
397
  - spec/api/collection_import_api_spec.rb
391
- - spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb
392
- - spec/api/repositories_ansible_versions_api_spec.rb
393
- - spec/api/ansible_copy_api_spec.rb
394
- - spec/api/api_roles_api_spec.rb
398
+ - spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb
395
399
  - spec/api/pulp_ansible_api_api_spec.rb
396
- - spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb
397
- - spec/api/content_collection_versions_api_spec.rb
398
- - spec/api/content_collection_deprecations_api_spec.rb
399
- - spec/api/remotes_collection_api_spec.rb
400
- - spec/api/pulp_ansible_tags_api_spec.rb
401
- - spec/api/api_collections_api_spec.rb
402
- - spec/api/distributions_ansible_api_spec.rb
400
+ - spec/api/ansible_collections_api_spec.rb
401
+ - spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb
403
402
  - spec/api_client_spec.rb
404
403
  - spec/configuration_spec.rb
405
- - spec/models/galaxy_collection_spec.rb
406
- - spec/models/paginatedansible_ansible_distribution_response_list_spec.rb
407
- - spec/models/paginated_collection_version_response_list_spec.rb
408
- - spec/models/paginated_repository_version_response_list_spec.rb
409
- - spec/models/paginatedansible_role_response_list_spec.rb
410
- - spec/models/content_summary_response_spec.rb
411
- - spec/models/patchedansible_role_remote_spec.rb
412
- - spec/models/artifact_ref_response_spec.rb
413
- - spec/models/paginated_collection_response_list_links_spec.rb
414
- - spec/models/paginated_collection_response_list_spec.rb
415
- - spec/models/collection_ref_response_spec.rb
416
- - spec/models/ansible_collection_response_spec.rb
417
- - spec/models/paginatedansible_collection_response_list_spec.rb
418
- - spec/models/copy_spec.rb
419
- - spec/models/paginatedansible_collection_version_response_list_spec.rb
420
- - spec/models/patchedansible_ansible_distribution_spec.rb
421
- - spec/models/paginated_galaxy_collection_version_response_list_spec.rb
422
- - spec/models/ansible_collection_version_response_spec.rb
423
- - spec/models/collection_import_detail_response_spec.rb
424
- - spec/models/ansible_collection_remote_spec.rb
425
- - spec/models/ansible_role_remote_spec.rb
426
- - spec/models/paginated_galaxy_role_version_response_list_spec.rb
427
- - spec/models/content_summary_spec.rb
428
- - spec/models/ansible_ansible_repository_response_spec.rb
429
- - spec/models/policy_enum_spec.rb
430
- - spec/models/ansible_role_remote_response_spec.rb
431
- - spec/models/paginatedansible_role_remote_response_list_spec.rb
432
- - spec/models/ansible_role_response_spec.rb
433
- - spec/models/ansible_tag_response_spec.rb
434
404
  - spec/models/tag_response_spec.rb
435
- - spec/models/patchedansible_ansible_repository_spec.rb
405
+ - spec/models/unpaginated_collection_version_response_spec.rb
406
+ - spec/models/collection_version_response_spec.rb
436
407
  - spec/models/ansible_ansible_repository_spec.rb
437
- - spec/models/collection_response_spec.rb
438
- - spec/models/ansible_collection_spec.rb
439
- - spec/models/galaxy_role_version_response_spec.rb
408
+ - spec/models/paginated_galaxy_role_response_list_spec.rb
409
+ - spec/models/collection_import_detail_response_spec.rb
410
+ - spec/models/paginated_repository_version_response_list_spec.rb
411
+ - spec/models/galaxy_collection_response_spec.rb
412
+ - spec/models/ansible_role_spec.rb
440
413
  - spec/models/ansible_collection_remote_response_spec.rb
414
+ - spec/models/collection_response_spec.rb
415
+ - spec/models/ansible_ansible_distribution_spec.rb
416
+ - spec/models/ansible_ansible_repository_response_spec.rb
441
417
  - spec/models/collection_version_docs_response_spec.rb
442
- - spec/models/async_operation_response_spec.rb
443
- - spec/models/collection_one_shot_spec.rb
444
- - spec/models/paginated_collection_response_list_meta_spec.rb
418
+ - spec/models/ansible_collection_remote_spec.rb
419
+ - spec/models/paginatedansible_collection_version_response_list_spec.rb
420
+ - spec/models/galaxy_collection_version_response_spec.rb
421
+ - spec/models/patchedansible_ansible_repository_spec.rb
422
+ - spec/models/paginated_galaxy_role_version_response_list_spec.rb
423
+ - spec/models/collection_ref_response_spec.rb
424
+ - spec/models/artifact_ref_response_spec.rb
425
+ - spec/models/galaxy_role_response_spec.rb
445
426
  - spec/models/ansible_ansible_distribution_response_spec.rb
427
+ - spec/models/patchedansible_role_remote_spec.rb
446
428
  - spec/models/repository_add_remove_content_spec.rb
447
- - spec/models/galaxy_collection_response_spec.rb
448
- - spec/models/collection_version_response_spec.rb
449
- - spec/models/paginated_tag_response_list_spec.rb
450
- - spec/models/paginated_galaxy_role_response_list_spec.rb
451
- - spec/models/paginatedansible_ansible_repository_response_list_spec.rb
452
429
  - spec/models/repository_version_response_spec.rb
453
- - spec/models/ansible_role_spec.rb
454
- - spec/models/patchedansible_collection_remote_spec.rb
430
+ - spec/models/paginated_tag_response_list_spec.rb
431
+ - spec/models/paginated_galaxy_collection_version_response_list_spec.rb
432
+ - spec/models/galaxy_role_version_response_spec.rb
433
+ - spec/models/ansible_collection_response_spec.rb
434
+ - spec/models/ansible_collection_spec.rb
455
435
  - spec/models/ansible_repository_sync_url_spec.rb
456
- - spec/models/collection_metadata_response_spec.rb
436
+ - spec/models/collection_one_shot_spec.rb
457
437
  - spec/models/paginated_galaxy_collection_response_list_spec.rb
458
- - spec/models/ansible_collection_version_spec.rb
459
- - spec/models/repository_version_spec.rb
460
- - spec/models/paginatedansible_collection_remote_response_list_spec.rb
461
- - spec/models/galaxy_role_response_spec.rb
462
- - spec/models/unpaginated_collection_version_response_spec.rb
438
+ - spec/models/async_operation_response_spec.rb
463
439
  - spec/models/collection_namespace_response_spec.rb
440
+ - spec/models/content_summary_response_spec.rb
441
+ - spec/models/paginatedansible_role_response_list_spec.rb
442
+ - spec/models/policy_enum_spec.rb
443
+ - spec/models/ansible_tag_response_spec.rb
444
+ - spec/models/paginatedansible_role_remote_response_list_spec.rb
445
+ - spec/models/patchedansible_collection_remote_spec.rb
446
+ - spec/models/ansible_role_remote_spec.rb
447
+ - spec/models/paginatedansible_collection_remote_response_list_spec.rb
448
+ - spec/models/collection_metadata_response_spec.rb
449
+ - spec/models/patchedansible_ansible_distribution_spec.rb
450
+ - spec/models/paginatedansible_collection_response_list_spec.rb
451
+ - spec/models/copy_spec.rb
452
+ - spec/models/paginated_collection_response_list_spec.rb
453
+ - spec/models/ansible_role_response_spec.rb
454
+ - spec/models/paginated_collection_version_response_list_spec.rb
455
+ - spec/models/content_summary_spec.rb
456
+ - spec/models/ansible_collection_version_response_spec.rb
457
+ - spec/models/galaxy_collection_spec.rb
458
+ - spec/models/paginated_collection_response_list_meta_spec.rb
459
+ - spec/models/ansible_role_remote_response_spec.rb
460
+ - spec/models/ansible_collection_version_spec.rb
461
+ - spec/models/paginatedansible_ansible_repository_response_list_spec.rb
464
462
  - spec/models/repo_metadata_response_spec.rb
465
- - spec/models/galaxy_collection_version_response_spec.rb
466
- - spec/models/ansible_ansible_distribution_spec.rb
463
+ - spec/models/paginatedansible_ansible_distribution_response_list_spec.rb
464
+ - spec/models/paginated_collection_response_list_links_spec.rb
465
+ - spec/models/repository_version_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
-