pulp_certguard_client 1.5.2 → 1.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d4a7d09cf74c119e17e62fad1cfde816ddfb5b56a95354a88d0e2543180017f
4
- data.tar.gz: 39b8a50e39ba94948297a4aed268628afceedb844bf34f52a620f5d88c561907
3
+ metadata.gz: bd7036ef208fe1a83c17b64062865fc18b11a0e8e0ccb01f5ee45db9bb696de0
4
+ data.tar.gz: aef6547ef4caf59340d024f507ff664483ae37a6990e23330660db2b5eed5223
5
5
  SHA512:
6
- metadata.gz: edbf3908954ac33570f3f0a6ee136f72a830b49405c3f73ca45d24b011d08ad3053c1d6a77c36bce79471f206bae6f1d1ec567a719f1ab4ae8413a2c6e20d83f
7
- data.tar.gz: e91f4313f34dbb43c7faeec90f2bdbf7fad168eee4feb025d55a3bf52fa73d7c8f94dcc5335a874662997ca1ffcad655bd5fb959a42e3867092e092bbefc2917
6
+ metadata.gz: 4c855cbfa616bcecc7e3d46a9f5681a01f1b94f0e7d5f05ff8512747e1c8022f7919e1acf964af2ea02b43b20bc3768a1fa443d126877c03cbac1b4624792a65
7
+ data.tar.gz: 65d37927acdd4f9a1f7074e54c8aab1f1001d17461cf50d9a4f270a3179e5d55e7a3f3e697c7ec3499ce2b03fb43992cb2de4a2394ff6f57c6558930ba4e91e8
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: 1.5.2
10
+ - Package version: 1.5.3
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_certguard_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_certguard_client-1.5.2.gem
27
+ gem install ./pulp_certguard_client-1.5.3.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_certguard_client-1.5.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_certguard_client-1.5.3.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_certguard_client', '~> 1.5.2'
36
+ gem 'pulp_certguard_client', '~> 1.5.3'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -147,7 +147,7 @@ opts = {
147
147
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
148
148
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
149
149
  offset: 56, # Integer | The initial index from which to return the results.
150
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
150
+ ordering: ['ordering_example'], # Array<String> | Ordering
151
151
  fields: 'fields_example', # String | A list of fields to include in the response.
152
152
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
153
153
  }
@@ -173,7 +173,7 @@ Name | Type | Description | Notes
173
173
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
174
174
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
175
175
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
176
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
176
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
177
177
  **fields** | **String**| A list of fields to include in the response. | [optional]
178
178
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
179
179
 
@@ -147,7 +147,7 @@ opts = {
147
147
  name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
148
148
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
149
149
  offset: 56, # Integer | The initial index from which to return the results.
150
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
150
+ ordering: ['ordering_example'], # Array<String> | Ordering
151
151
  fields: 'fields_example', # String | A list of fields to include in the response.
152
152
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
153
153
  }
@@ -173,7 +173,7 @@ Name | Type | Description | Notes
173
173
  **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
174
174
  **name__startswith** | **String**| Filter results where name starts with value | [optional]
175
175
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
176
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
176
+ **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
177
177
  **fields** | **String**| A list of fields to include in the response. | [optional]
178
178
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
179
179
 
@@ -153,7 +153,7 @@ module PulpCertguardClient
153
153
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
154
154
  # @option opts [String] :name__startswith Filter results where name starts with value
155
155
  # @option opts [Integer] :offset The initial index from which to return the results.
156
- # @option opts [String] :ordering Which field to use when ordering the results.
156
+ # @option opts [Array<String>] :ordering Ordering
157
157
  # @option opts [String] :fields A list of fields to include in the response.
158
158
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
159
159
  # @return [PaginatedcertguardRHSMCertGuardResponseList]
@@ -172,7 +172,7 @@ module PulpCertguardClient
172
172
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
173
173
  # @option opts [String] :name__startswith Filter results where name starts with value
174
174
  # @option opts [Integer] :offset The initial index from which to return the results.
175
- # @option opts [String] :ordering Which field to use when ordering the results.
175
+ # @option opts [Array<String>] :ordering Ordering
176
176
  # @option opts [String] :fields A list of fields to include in the response.
177
177
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
178
178
  # @return [Array<(PaginatedcertguardRHSMCertGuardResponseList, Integer, Hash)>] PaginatedcertguardRHSMCertGuardResponseList data, response status code and response headers
@@ -180,6 +180,10 @@ module PulpCertguardClient
180
180
  if @api_client.config.debugging
181
181
  @api_client.config.logger.debug 'Calling API: ContentguardsRhsmApi.list ...'
182
182
  end
183
+ allowable_values = ["-basedistribution", "-certguard_rhsmcertguard", "-certguard_x509certguard", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "certguard_rhsmcertguard", "certguard_x509certguard", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
184
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
185
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
186
+ end
183
187
  # resource path
184
188
  local_var_path = '/pulp/api/v3/contentguards/certguard/rhsm/'
185
189
 
@@ -192,7 +196,7 @@ module PulpCertguardClient
192
196
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
193
197
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
194
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
195
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
199
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
196
200
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
197
201
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
198
202
 
@@ -153,7 +153,7 @@ module PulpCertguardClient
153
153
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
154
154
  # @option opts [String] :name__startswith Filter results where name starts with value
155
155
  # @option opts [Integer] :offset The initial index from which to return the results.
156
- # @option opts [String] :ordering Which field to use when ordering the results.
156
+ # @option opts [Array<String>] :ordering Ordering
157
157
  # @option opts [String] :fields A list of fields to include in the response.
158
158
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
159
159
  # @return [PaginatedcertguardX509CertGuardResponseList]
@@ -172,7 +172,7 @@ module PulpCertguardClient
172
172
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
173
173
  # @option opts [String] :name__startswith Filter results where name starts with value
174
174
  # @option opts [Integer] :offset The initial index from which to return the results.
175
- # @option opts [String] :ordering Which field to use when ordering the results.
175
+ # @option opts [Array<String>] :ordering Ordering
176
176
  # @option opts [String] :fields A list of fields to include in the response.
177
177
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
178
178
  # @return [Array<(PaginatedcertguardX509CertGuardResponseList, Integer, Hash)>] PaginatedcertguardX509CertGuardResponseList data, response status code and response headers
@@ -180,6 +180,10 @@ module PulpCertguardClient
180
180
  if @api_client.config.debugging
181
181
  @api_client.config.logger.debug 'Calling API: ContentguardsX509Api.list ...'
182
182
  end
183
+ allowable_values = ["-basedistribution", "-certguard_rhsmcertguard", "-certguard_x509certguard", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "certguard_rhsmcertguard", "certguard_x509certguard", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
184
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
185
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
186
+ end
183
187
  # resource path
184
188
  local_var_path = '/pulp/api/v3/contentguards/certguard/x509/'
185
189
 
@@ -192,7 +196,7 @@ module PulpCertguardClient
192
196
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
193
197
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
194
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
195
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
199
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
196
200
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
197
201
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
198
202
 
@@ -118,9 +118,6 @@ module PulpCertguardClient
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 PulpCertguardClient
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'
@@ -140,6 +140,7 @@ module PulpCertguardClient
140
140
  @ssl_client_cert = nil
141
141
  @ssl_client_key = nil
142
142
  @params_encoder = nil
143
+ @timeout = 60
143
144
  @debugging = false
144
145
  @inject_format = false
145
146
  @force_ending_format = false
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpCertguardClient
14
- VERSION = '1.5.2'
14
+ VERSION = '1.5.3'
15
15
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.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'
@@ -67,7 +67,7 @@ describe 'ContentguardsRhsmApi' do
67
67
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
68
  # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
- # @option opts [String] :ordering Which field to use when ordering the results.
70
+ # @option opts [Array<String>] :ordering Ordering
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
73
  # @return [PaginatedcertguardRHSMCertGuardResponseList]
@@ -67,7 +67,7 @@ describe 'ContentguardsX509Api' do
67
67
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
68
  # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
- # @option opts [String] :ordering Which field to use when ordering the results.
70
+ # @option opts [Array<String>] :ordering Ordering
71
71
  # @option opts [String] :fields A list of fields to include in the response.
72
72
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
73
73
  # @return [PaginatedcertguardX509CertGuardResponseList]
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_certguard_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2022-06-23 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.14.0
19
+ version: '0.17'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.9.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.17'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.14.0
32
+ version: 1.9.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: json
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -143,11 +149,11 @@ test_files:
143
149
  - spec/api_client_spec.rb
144
150
  - spec/configuration_spec.rb
145
151
  - spec/models/patchedcertguard_x509_cert_guard_spec.rb
146
- - spec/models/certguard_rhsm_cert_guard_spec.rb
147
- - spec/models/certguard_rhsm_cert_guard_response_spec.rb
152
+ - spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
148
153
  - spec/models/certguard_x509_cert_guard_response_spec.rb
149
154
  - spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb
150
- - spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
151
- - spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb
155
+ - spec/models/certguard_rhsm_cert_guard_response_spec.rb
156
+ - spec/models/certguard_rhsm_cert_guard_spec.rb
152
157
  - spec/models/certguard_x509_cert_guard_spec.rb
158
+ - spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb
153
159
  - spec/spec_helper.rb