pulp_certguard_client 1.5.1 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentguardsRhsmApi.md +2 -2
- data/docs/ContentguardsX509Api.md +2 -2
- data/lib/pulp_certguard_client/api/contentguards_rhsm_api.rb +7 -3
- data/lib/pulp_certguard_client/api/contentguards_x509_api.rb +7 -3
- data/lib/pulp_certguard_client/api_client.rb +2 -5
- data/lib/pulp_certguard_client/configuration.rb +1 -0
- data/lib/pulp_certguard_client/models/certguard_rhsm_cert_guard.rb +53 -0
- data/lib/pulp_certguard_client/models/certguard_x509_cert_guard.rb +53 -0
- data/lib/pulp_certguard_client/models/patchedcertguard_rhsm_cert_guard.rb +45 -0
- data/lib/pulp_certguard_client/models/patchedcertguard_x509_cert_guard.rb +45 -0
- data/lib/pulp_certguard_client/version.rb +1 -1
- data/pulp_certguard_client.gemspec +3 -3
- data/spec/api/contentguards_rhsm_api_spec.rb +1 -1
- data/spec/api/contentguards_x509_api_spec.rb +1 -1
- metadata +18 -13
- 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: cd7034dc62dc391c504d9677cab6ff3010541687a47ca3db9aa540e860f83b79
|
4
|
+
data.tar.gz: cc24784acc221217083da30844823d75b74d1c75fe9d4f69e3904660734889b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28170dd5275c9126fc189d51fed82a5443d291e164690cacadf70df9619e50014ced068f479f18e44839d9fbcf2d6d4bc9da88b5864c5e15a1d30d17dc6e5841
|
7
|
+
data.tar.gz: '0485b3a8155fd585dbe6ef07e1282707326f22ed80fdaca2f334fc2eaf177e15a3a1316790497ea3d6fa56480dfba698b8ac82bfa6a683821edf2619e0b2d687'
|
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.
|
10
|
+
- Package version: 1.5.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_certguard_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_certguard_client-1.5.
|
27
|
+
gem install ./pulp_certguard_client-1.5.4.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_certguard_client-1.5.
|
30
|
+
(for development, run `gem install --dev ./pulp_certguard_client-1.5.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_certguard_client', '~> 1.5.
|
36
|
+
gem 'pulp_certguard_client', '~> 1.5.4'
|
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 |
|
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<String>**](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
|
176
|
+
**ordering** | [**Array<String>**](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 |
|
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<String>**](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
|
176
|
+
**ordering** | [**Array<String>**](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
|
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
|
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
|
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
|
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'
|
@@ -157,7 +154,7 @@ module PulpCertguardClient
|
|
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
|
@@ -85,10 +85,22 @@ module PulpCertguardClient
|
|
85
85
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
86
86
|
end
|
87
87
|
|
88
|
+
if @name.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if !@description.nil? && @description.to_s.length < 1
|
93
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
94
|
+
end
|
95
|
+
|
88
96
|
if @ca_certificate.nil?
|
89
97
|
invalid_properties.push('invalid value for "ca_certificate", ca_certificate cannot be nil.')
|
90
98
|
end
|
91
99
|
|
100
|
+
if @ca_certificate.to_s.length < 1
|
101
|
+
invalid_properties.push('invalid value for "ca_certificate", the character length must be great than or equal to 1.')
|
102
|
+
end
|
103
|
+
|
92
104
|
invalid_properties
|
93
105
|
end
|
94
106
|
|
@@ -96,10 +108,51 @@ module PulpCertguardClient
|
|
96
108
|
# @return true if the model is valid
|
97
109
|
def valid?
|
98
110
|
return false if @name.nil?
|
111
|
+
return false if @name.to_s.length < 1
|
112
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
99
113
|
return false if @ca_certificate.nil?
|
114
|
+
return false if @ca_certificate.to_s.length < 1
|
100
115
|
true
|
101
116
|
end
|
102
117
|
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] name Value to be assigned
|
120
|
+
def name=(name)
|
121
|
+
if name.nil?
|
122
|
+
fail ArgumentError, 'name cannot be nil'
|
123
|
+
end
|
124
|
+
|
125
|
+
if name.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@name = name
|
130
|
+
end
|
131
|
+
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] description Value to be assigned
|
134
|
+
def description=(description)
|
135
|
+
if !description.nil? && description.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@description = description
|
140
|
+
end
|
141
|
+
|
142
|
+
# Custom attribute writer method with validation
|
143
|
+
# @param [Object] ca_certificate Value to be assigned
|
144
|
+
def ca_certificate=(ca_certificate)
|
145
|
+
if ca_certificate.nil?
|
146
|
+
fail ArgumentError, 'ca_certificate cannot be nil'
|
147
|
+
end
|
148
|
+
|
149
|
+
if ca_certificate.to_s.length < 1
|
150
|
+
fail ArgumentError, 'invalid value for "ca_certificate", the character length must be great than or equal to 1.'
|
151
|
+
end
|
152
|
+
|
153
|
+
@ca_certificate = ca_certificate
|
154
|
+
end
|
155
|
+
|
103
156
|
# Checks equality by comparing each attribute.
|
104
157
|
# @param [Object] Object to be compared
|
105
158
|
def ==(o)
|
@@ -85,10 +85,22 @@ module PulpCertguardClient
|
|
85
85
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
86
86
|
end
|
87
87
|
|
88
|
+
if @name.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if !@description.nil? && @description.to_s.length < 1
|
93
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
94
|
+
end
|
95
|
+
|
88
96
|
if @ca_certificate.nil?
|
89
97
|
invalid_properties.push('invalid value for "ca_certificate", ca_certificate cannot be nil.')
|
90
98
|
end
|
91
99
|
|
100
|
+
if @ca_certificate.to_s.length < 1
|
101
|
+
invalid_properties.push('invalid value for "ca_certificate", the character length must be great than or equal to 1.')
|
102
|
+
end
|
103
|
+
|
92
104
|
invalid_properties
|
93
105
|
end
|
94
106
|
|
@@ -96,10 +108,51 @@ module PulpCertguardClient
|
|
96
108
|
# @return true if the model is valid
|
97
109
|
def valid?
|
98
110
|
return false if @name.nil?
|
111
|
+
return false if @name.to_s.length < 1
|
112
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
99
113
|
return false if @ca_certificate.nil?
|
114
|
+
return false if @ca_certificate.to_s.length < 1
|
100
115
|
true
|
101
116
|
end
|
102
117
|
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] name Value to be assigned
|
120
|
+
def name=(name)
|
121
|
+
if name.nil?
|
122
|
+
fail ArgumentError, 'name cannot be nil'
|
123
|
+
end
|
124
|
+
|
125
|
+
if name.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@name = name
|
130
|
+
end
|
131
|
+
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] description Value to be assigned
|
134
|
+
def description=(description)
|
135
|
+
if !description.nil? && description.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@description = description
|
140
|
+
end
|
141
|
+
|
142
|
+
# Custom attribute writer method with validation
|
143
|
+
# @param [Object] ca_certificate Value to be assigned
|
144
|
+
def ca_certificate=(ca_certificate)
|
145
|
+
if ca_certificate.nil?
|
146
|
+
fail ArgumentError, 'ca_certificate cannot be nil'
|
147
|
+
end
|
148
|
+
|
149
|
+
if ca_certificate.to_s.length < 1
|
150
|
+
fail ArgumentError, 'invalid value for "ca_certificate", the character length must be great than or equal to 1.'
|
151
|
+
end
|
152
|
+
|
153
|
+
@ca_certificate = ca_certificate
|
154
|
+
end
|
155
|
+
|
103
156
|
# Checks equality by comparing each attribute.
|
104
157
|
# @param [Object] Object to be compared
|
105
158
|
def ==(o)
|
@@ -81,15 +81,60 @@ module PulpCertguardClient
|
|
81
81
|
# @return Array for valid properties with the reasons
|
82
82
|
def list_invalid_properties
|
83
83
|
invalid_properties = Array.new
|
84
|
+
if !@name.nil? && @name.to_s.length < 1
|
85
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
86
|
+
end
|
87
|
+
|
88
|
+
if !@description.nil? && @description.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if !@ca_certificate.nil? && @ca_certificate.to_s.length < 1
|
93
|
+
invalid_properties.push('invalid value for "ca_certificate", the character length must be great than or equal to 1.')
|
94
|
+
end
|
95
|
+
|
84
96
|
invalid_properties
|
85
97
|
end
|
86
98
|
|
87
99
|
# Check to see if the all the properties in the model are valid
|
88
100
|
# @return true if the model is valid
|
89
101
|
def valid?
|
102
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
103
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
104
|
+
return false if !@ca_certificate.nil? && @ca_certificate.to_s.length < 1
|
90
105
|
true
|
91
106
|
end
|
92
107
|
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param [Object] name Value to be assigned
|
110
|
+
def name=(name)
|
111
|
+
if !name.nil? && name.to_s.length < 1
|
112
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
113
|
+
end
|
114
|
+
|
115
|
+
@name = name
|
116
|
+
end
|
117
|
+
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] description Value to be assigned
|
120
|
+
def description=(description)
|
121
|
+
if !description.nil? && description.to_s.length < 1
|
122
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
123
|
+
end
|
124
|
+
|
125
|
+
@description = description
|
126
|
+
end
|
127
|
+
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param [Object] ca_certificate Value to be assigned
|
130
|
+
def ca_certificate=(ca_certificate)
|
131
|
+
if !ca_certificate.nil? && ca_certificate.to_s.length < 1
|
132
|
+
fail ArgumentError, 'invalid value for "ca_certificate", the character length must be great than or equal to 1.'
|
133
|
+
end
|
134
|
+
|
135
|
+
@ca_certificate = ca_certificate
|
136
|
+
end
|
137
|
+
|
93
138
|
# Checks equality by comparing each attribute.
|
94
139
|
# @param [Object] Object to be compared
|
95
140
|
def ==(o)
|
@@ -81,15 +81,60 @@ module PulpCertguardClient
|
|
81
81
|
# @return Array for valid properties with the reasons
|
82
82
|
def list_invalid_properties
|
83
83
|
invalid_properties = Array.new
|
84
|
+
if !@name.nil? && @name.to_s.length < 1
|
85
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
86
|
+
end
|
87
|
+
|
88
|
+
if !@description.nil? && @description.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if !@ca_certificate.nil? && @ca_certificate.to_s.length < 1
|
93
|
+
invalid_properties.push('invalid value for "ca_certificate", the character length must be great than or equal to 1.')
|
94
|
+
end
|
95
|
+
|
84
96
|
invalid_properties
|
85
97
|
end
|
86
98
|
|
87
99
|
# Check to see if the all the properties in the model are valid
|
88
100
|
# @return true if the model is valid
|
89
101
|
def valid?
|
102
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
103
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
104
|
+
return false if !@ca_certificate.nil? && @ca_certificate.to_s.length < 1
|
90
105
|
true
|
91
106
|
end
|
92
107
|
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param [Object] name Value to be assigned
|
110
|
+
def name=(name)
|
111
|
+
if !name.nil? && name.to_s.length < 1
|
112
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
113
|
+
end
|
114
|
+
|
115
|
+
@name = name
|
116
|
+
end
|
117
|
+
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] description Value to be assigned
|
120
|
+
def description=(description)
|
121
|
+
if !description.nil? && description.to_s.length < 1
|
122
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
123
|
+
end
|
124
|
+
|
125
|
+
@description = description
|
126
|
+
end
|
127
|
+
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param [Object] ca_certificate Value to be assigned
|
130
|
+
def ca_certificate=(ca_certificate)
|
131
|
+
if !ca_certificate.nil? && ca_certificate.to_s.length < 1
|
132
|
+
fail ArgumentError, 'invalid value for "ca_certificate", the character length must be great than or equal to 1.'
|
133
|
+
end
|
134
|
+
|
135
|
+
@ca_certificate = ca_certificate
|
136
|
+
end
|
137
|
+
|
93
138
|
# Checks equality by comparing each attribute.
|
94
139
|
# @param [Object] Object to be compared
|
95
140
|
def ==(o)
|
@@ -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_certguard"
|
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', '>= 0.
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.17', '< 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'
|
@@ -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
|
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
|
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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_certguard_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.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:
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.17'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
29
|
+
version: '0.17'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: json
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +90,6 @@ files:
|
|
84
90
|
- docs/PaginatedcertguardX509CertGuardResponseList.md
|
85
91
|
- docs/PatchedcertguardRHSMCertGuard.md
|
86
92
|
- docs/PatchedcertguardX509CertGuard.md
|
87
|
-
- git_push.sh
|
88
93
|
- lib/pulp_certguard_client.rb
|
89
94
|
- lib/pulp_certguard_client/api/contentguards_rhsm_api.rb
|
90
95
|
- lib/pulp_certguard_client/api/contentguards_x509_api.rb
|
@@ -114,9 +119,9 @@ files:
|
|
114
119
|
- spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
|
115
120
|
- spec/models/patchedcertguard_x509_cert_guard_spec.rb
|
116
121
|
- spec/spec_helper.rb
|
117
|
-
homepage: https://
|
122
|
+
homepage: https://github.com/pulp/pulp_certguard
|
118
123
|
licenses:
|
119
|
-
-
|
124
|
+
- GPLv2+
|
120
125
|
metadata: {}
|
121
126
|
post_install_message:
|
122
127
|
rdoc_options: []
|
@@ -138,16 +143,16 @@ signing_key:
|
|
138
143
|
specification_version: 4
|
139
144
|
summary: Pulp 3 API Ruby Gem
|
140
145
|
test_files:
|
141
|
-
- spec/api/contentguards_rhsm_api_spec.rb
|
142
146
|
- spec/api/contentguards_x509_api_spec.rb
|
147
|
+
- spec/api/contentguards_rhsm_api_spec.rb
|
143
148
|
- spec/api_client_spec.rb
|
144
149
|
- spec/configuration_spec.rb
|
145
|
-
- spec/models/
|
150
|
+
- spec/models/certguard_rhsm_cert_guard_spec.rb
|
151
|
+
- spec/models/patchedcertguard_x509_cert_guard_spec.rb
|
152
|
+
- spec/models/certguard_x509_cert_guard_response_spec.rb
|
146
153
|
- spec/models/paginatedcertguard_x509_cert_guard_response_list_spec.rb
|
147
|
-
- spec/models/
|
154
|
+
- spec/models/patchedcertguard_rhsm_cert_guard_spec.rb
|
148
155
|
- spec/models/certguard_rhsm_cert_guard_response_spec.rb
|
149
156
|
- spec/models/certguard_x509_cert_guard_spec.rb
|
150
|
-
- spec/models/
|
151
|
-
- spec/models/certguard_rhsm_cert_guard_spec.rb
|
152
|
-
- spec/models/patchedcertguard_x509_cert_guard_spec.rb
|
157
|
+
- spec/models/paginatedcertguard_rhsm_cert_guard_response_list_spec.rb
|
153
158
|
- 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
|
-
|