pulp_npm_client 0.1.0a3.dev01613618930 → 0.1.0a3.dev1615001339

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_npm_client might be problematic. Click here for more details.

@@ -148,19 +148,19 @@ module PulpNpmClient
148
148
  # List npm distributions
149
149
  # ViewSet for NPM Distributions.
150
150
  # @param [Hash] opts the optional parameters
151
- # @option opts [String] :base_path base_path
152
- # @option opts [String] :base_path__contains base_path__contains
153
- # @option opts [String] :base_path__icontains base_path__icontains
154
- # @option opts [String] :base_path__in base_path__in
151
+ # @option opts [String] :base_path
152
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
153
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
154
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
155
155
  # @option opts [Integer] :limit Number of results to return per page.
156
- # @option opts [String] :name name
157
- # @option opts [String] :name__contains name__contains
158
- # @option opts [String] :name__icontains name__icontains
159
- # @option opts [String] :name__in name__in
160
- # @option opts [String] :name__startswith name__startswith
156
+ # @option opts [String] :name
157
+ # @option opts [String] :name__contains Filter results where name contains value
158
+ # @option opts [String] :name__icontains Filter results where name contains value
159
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
+ # @option opts [String] :name__startswith Filter results where name starts with value
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
162
  # @option opts [String] :ordering Which field to use when ordering the results.
163
- # @option opts [String] :pulp_label_select pulp_label_select
163
+ # @option opts [String] :pulp_label_select Filter labels by search string
164
164
  # @option opts [String] :fields A list of fields to include in the response.
165
165
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
166
  # @return [PaginatednpmNpmDistributionResponseList]
@@ -172,19 +172,19 @@ module PulpNpmClient
172
172
  # List npm distributions
173
173
  # ViewSet for NPM Distributions.
174
174
  # @param [Hash] opts the optional parameters
175
- # @option opts [String] :base_path base_path
176
- # @option opts [String] :base_path__contains base_path__contains
177
- # @option opts [String] :base_path__icontains base_path__icontains
178
- # @option opts [String] :base_path__in base_path__in
175
+ # @option opts [String] :base_path
176
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
177
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
178
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
179
179
  # @option opts [Integer] :limit Number of results to return per page.
180
- # @option opts [String] :name name
181
- # @option opts [String] :name__contains name__contains
182
- # @option opts [String] :name__icontains name__icontains
183
- # @option opts [String] :name__in name__in
184
- # @option opts [String] :name__startswith name__startswith
180
+ # @option opts [String] :name
181
+ # @option opts [String] :name__contains Filter results where name contains value
182
+ # @option opts [String] :name__icontains Filter results where name contains value
183
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
+ # @option opts [String] :name__startswith Filter results where name starts with value
185
185
  # @option opts [Integer] :offset The initial index from which to return the results.
186
186
  # @option opts [String] :ordering Which field to use when ordering the results.
187
- # @option opts [String] :pulp_label_select pulp_label_select
187
+ # @option opts [String] :pulp_label_select Filter labels by search string
188
188
  # @option opts [String] :fields A list of fields to include in the response.
189
189
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
190
190
  # @return [Array<(PaginatednpmNpmDistributionResponseList, Integer, Hash)>] PaginatednpmNpmDistributionResponseList data, response status code and response headers
@@ -200,12 +200,12 @@ module PulpNpmClient
200
200
  query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
201
201
  query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
202
202
  query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
203
- query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
203
+ query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
204
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
205
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
206
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
207
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
208
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
208
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
209
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -149,20 +149,20 @@ module PulpNpmClient
149
149
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name name
153
- # @option opts [String] :name__contains name__contains
154
- # @option opts [String] :name__icontains name__icontains
155
- # @option opts [String] :name__in name__in
156
- # @option opts [String] :name__startswith name__startswith
152
+ # @option opts [String] :name
153
+ # @option opts [String] :name__contains Filter results where name contains value
154
+ # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
+ # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :pulp_label_select pulp_label_select
160
- # @option opts [String] :pulp_last_updated pulp_last_updated
161
- # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
162
- # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
163
- # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
164
- # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
165
- # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
159
+ # @option opts [String] :pulp_label_select Filter labels by search string
160
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
161
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
162
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
163
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
164
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
165
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
166
166
  # @option opts [String] :fields A list of fields to include in the response.
167
167
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
168
168
  # @return [PaginatednpmNpmRemoteResponseList]
@@ -175,20 +175,20 @@ module PulpNpmClient
175
175
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
176
176
  # @param [Hash] opts the optional parameters
177
177
  # @option opts [Integer] :limit Number of results to return per page.
178
- # @option opts [String] :name name
179
- # @option opts [String] :name__contains name__contains
180
- # @option opts [String] :name__icontains name__icontains
181
- # @option opts [String] :name__in name__in
182
- # @option opts [String] :name__startswith name__startswith
178
+ # @option opts [String] :name
179
+ # @option opts [String] :name__contains Filter results where name contains value
180
+ # @option opts [String] :name__icontains Filter results where name contains value
181
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
182
+ # @option opts [String] :name__startswith Filter results where name starts with value
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
184
  # @option opts [String] :ordering Which field to use when ordering the results.
185
- # @option opts [String] :pulp_label_select pulp_label_select
186
- # @option opts [String] :pulp_last_updated pulp_last_updated
187
- # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
188
- # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
189
- # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
190
- # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
191
- # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
185
+ # @option opts [String] :pulp_label_select Filter labels by search string
186
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
187
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
188
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
189
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
190
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
191
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
192
192
  # @option opts [String] :fields A list of fields to include in the response.
193
193
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
194
194
  # @return [Array<(PaginatednpmNpmRemoteResponseList, Integer, Hash)>] PaginatednpmNpmRemoteResponseList data, response status code and response headers
@@ -205,7 +205,7 @@ module PulpNpmClient
205
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
206
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
207
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
208
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
208
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
209
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -215,7 +215,7 @@ module PulpNpmClient
215
215
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
216
216
  query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
217
217
  query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
218
- query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil?
218
+ query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
219
219
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
220
220
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
221
221
 
@@ -149,14 +149,14 @@ module PulpNpmClient
149
149
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name name
153
- # @option opts [String] :name__contains name__contains
154
- # @option opts [String] :name__icontains name__icontains
155
- # @option opts [String] :name__in name__in
156
- # @option opts [String] :name__startswith name__startswith
152
+ # @option opts [String] :name
153
+ # @option opts [String] :name__contains Filter results where name contains value
154
+ # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
+ # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
- # @option opts [String] :pulp_label_select pulp_label_select
159
+ # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [String] :fields A list of fields to include in the response.
161
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
162
  # @return [PaginatednpmNpmRepositoryResponseList]
@@ -169,14 +169,14 @@ module PulpNpmClient
169
169
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Integer] :limit Number of results to return per page.
172
- # @option opts [String] :name name
173
- # @option opts [String] :name__contains name__contains
174
- # @option opts [String] :name__icontains name__icontains
175
- # @option opts [String] :name__in name__in
176
- # @option opts [String] :name__startswith name__startswith
172
+ # @option opts [String] :name
173
+ # @option opts [String] :name__contains Filter results where name contains value
174
+ # @option opts [String] :name__icontains Filter results where name contains value
175
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
176
+ # @option opts [String] :name__startswith Filter results where name starts with value
177
177
  # @option opts [Integer] :offset The initial index from which to return the results.
178
178
  # @option opts [String] :ordering Which field to use when ordering the results.
179
- # @option opts [String] :pulp_label_select pulp_label_select
179
+ # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :fields A list of fields to include in the response.
181
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
182
  # @return [Array<(PaginatednpmNpmRepositoryResponseList, Integer, Hash)>] PaginatednpmNpmRepositoryResponseList data, response status code and response headers
@@ -193,7 +193,7 @@ module PulpNpmClient
193
193
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
194
194
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
195
195
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
196
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
196
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
197
197
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
198
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
199
199
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
@@ -85,23 +85,23 @@ module PulpNpmClient
85
85
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
86
86
  # @param npm_npm_repository_href [String]
87
87
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :content content
89
- # @option opts [String] :content__in content__in
88
+ # @option opts [String] :content Content Unit referenced by HREF
89
+ # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [String] :number number
92
- # @option opts [String] :number__gt number__gt
93
- # @option opts [String] :number__gte number__gte
94
- # @option opts [String] :number__lt number__lt
95
- # @option opts [String] :number__lte number__lte
96
- # @option opts [String] :number__range number__range
91
+ # @option opts [Integer] :number
92
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
93
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
+ # @option opts [Integer] :number__lt Filter results where number is less than value
95
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
98
  # @option opts [String] :ordering Which field to use when ordering the results.
99
- # @option opts [String] :pulp_created pulp_created
100
- # @option opts [String] :pulp_created__gt pulp_created__gt
101
- # @option opts [String] :pulp_created__gte pulp_created__gte
102
- # @option opts [String] :pulp_created__lt pulp_created__lt
103
- # @option opts [String] :pulp_created__lte pulp_created__lte
104
- # @option opts [String] :pulp_created__range pulp_created__range
99
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
102
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [String] :fields A list of fields to include in the response.
106
106
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
@@ -114,23 +114,23 @@ module PulpNpmClient
114
114
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
115
115
  # @param npm_npm_repository_href [String]
116
116
  # @param [Hash] opts the optional parameters
117
- # @option opts [String] :content content
118
- # @option opts [String] :content__in content__in
117
+ # @option opts [String] :content Content Unit referenced by HREF
118
+ # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [String] :number number
121
- # @option opts [String] :number__gt number__gt
122
- # @option opts [String] :number__gte number__gte
123
- # @option opts [String] :number__lt number__lt
124
- # @option opts [String] :number__lte number__lte
125
- # @option opts [String] :number__range number__range
120
+ # @option opts [Integer] :number
121
+ # @option opts [Integer] :number__gt Filter results where number is greater than value
122
+ # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
+ # @option opts [Integer] :number__lt Filter results where number is less than value
124
+ # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
+ # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
127
  # @option opts [String] :ordering Which field to use when ordering the results.
128
- # @option opts [String] :pulp_created pulp_created
129
- # @option opts [String] :pulp_created__gt pulp_created__gt
130
- # @option opts [String] :pulp_created__gte pulp_created__gte
131
- # @option opts [String] :pulp_created__lt pulp_created__lt
132
- # @option opts [String] :pulp_created__lte pulp_created__lte
133
- # @option opts [String] :pulp_created__range pulp_created__range
128
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
131
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
134
  # @option opts [String] :fields A list of fields to include in the response.
135
135
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -142,6 +142,26 @@ module PulpNpmClient
142
142
  if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
144
144
  end
145
+ if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
146
+ fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesNpmVersionsApi.list, must be smaller than or equal to 2147483647.'
147
+ end
148
+
149
+ if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
150
+ fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesNpmVersionsApi.list, must be smaller than or equal to 2147483647.'
151
+ end
152
+
153
+ if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
154
+ fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesNpmVersionsApi.list, must be smaller than or equal to 2147483647.'
155
+ end
156
+
157
+ if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
158
+ fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesNpmVersionsApi.list, must be smaller than or equal to 2147483647.'
159
+ end
160
+
161
+ if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
162
+ fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesNpmVersionsApi.list, must be smaller than or equal to 2147483647.'
163
+ end
164
+
145
165
  # resource path
146
166
  local_var_path = '{npm_npm_repository_href}versions/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
147
167
 
@@ -155,7 +175,7 @@ module PulpNpmClient
155
175
  query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
156
176
  query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
157
177
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
- query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
178
+ query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
159
179
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
180
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
161
181
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
@@ -163,7 +183,7 @@ module PulpNpmClient
163
183
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
164
184
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
165
185
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
166
- query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
186
+ query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
167
187
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
168
188
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
169
189
 
@@ -33,9 +33,15 @@ module PulpNpmClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpNpmClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -75,6 +84,8 @@ module PulpNpmClient
75
84
  :'client_key' => :'client_key',
76
85
  :'tls_validation' => :'tls_validation',
77
86
  :'proxy_url' => :'proxy_url',
87
+ :'proxy_username' => :'proxy_username',
88
+ :'proxy_password' => :'proxy_password',
78
89
  :'username' => :'username',
79
90
  :'password' => :'password',
80
91
  :'pulp_labels' => :'pulp_labels',
@@ -84,6 +95,7 @@ module PulpNpmClient
84
95
  :'connect_timeout' => :'connect_timeout',
85
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
97
  :'sock_read_timeout' => :'sock_read_timeout',
98
+ :'headers' => :'headers',
87
99
  :'rate_limit' => :'rate_limit'
88
100
  }
89
101
  end
@@ -98,6 +110,8 @@ module PulpNpmClient
98
110
  :'client_key' => :'String',
99
111
  :'tls_validation' => :'Boolean',
100
112
  :'proxy_url' => :'String',
113
+ :'proxy_username' => :'String',
114
+ :'proxy_password' => :'String',
101
115
  :'username' => :'String',
102
116
  :'password' => :'String',
103
117
  :'pulp_labels' => :'Object',
@@ -107,6 +121,7 @@ module PulpNpmClient
107
121
  :'connect_timeout' => :'Float',
108
122
  :'sock_connect_timeout' => :'Float',
109
123
  :'sock_read_timeout' => :'Float',
124
+ :'headers' => :'Array<Object>',
110
125
  :'rate_limit' => :'Integer'
111
126
  }
112
127
  end
@@ -118,6 +133,8 @@ module PulpNpmClient
118
133
  :'client_cert',
119
134
  :'client_key',
120
135
  :'proxy_url',
136
+ :'proxy_username',
137
+ :'proxy_password',
121
138
  :'username',
122
139
  :'password',
123
140
  :'total_timeout',
@@ -171,6 +188,14 @@ module PulpNpmClient
171
188
  self.proxy_url = attributes[:'proxy_url']
172
189
  end
173
190
 
191
+ if attributes.key?(:'proxy_username')
192
+ self.proxy_username = attributes[:'proxy_username']
193
+ end
194
+
195
+ if attributes.key?(:'proxy_password')
196
+ self.proxy_password = attributes[:'proxy_password']
197
+ end
198
+
174
199
  if attributes.key?(:'username')
175
200
  self.username = attributes[:'username']
176
201
  end
@@ -207,6 +232,12 @@ module PulpNpmClient
207
232
  self.sock_read_timeout = attributes[:'sock_read_timeout']
208
233
  end
209
234
 
235
+ if attributes.key?(:'headers')
236
+ if (value = attributes[:'headers']).is_a?(Array)
237
+ self.headers = value
238
+ end
239
+ end
240
+
210
241
  if attributes.key?(:'rate_limit')
211
242
  self.rate_limit = attributes[:'rate_limit']
212
243
  end
@@ -322,6 +353,8 @@ module PulpNpmClient
322
353
  client_key == o.client_key &&
323
354
  tls_validation == o.tls_validation &&
324
355
  proxy_url == o.proxy_url &&
356
+ proxy_username == o.proxy_username &&
357
+ proxy_password == o.proxy_password &&
325
358
  username == o.username &&
326
359
  password == o.password &&
327
360
  pulp_labels == o.pulp_labels &&
@@ -331,6 +364,7 @@ module PulpNpmClient
331
364
  connect_timeout == o.connect_timeout &&
332
365
  sock_connect_timeout == o.sock_connect_timeout &&
333
366
  sock_read_timeout == o.sock_read_timeout &&
367
+ headers == o.headers &&
334
368
  rate_limit == o.rate_limit
335
369
  end
336
370
 
@@ -343,7 +377,7 @@ module PulpNpmClient
343
377
  # Calculates hash code according to all attributes.
344
378
  # @return [Integer] Hash code
345
379
  def hash
346
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
380
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
347
381
  end
348
382
 
349
383
  # Builds the object from hash
@@ -32,21 +32,12 @@ module PulpNpmClient
32
32
  # A PEM encoded client certificate used for authentication.
33
33
  attr_accessor :client_cert
34
34
 
35
- # A PEM encoded private key used for authentication.
36
- attr_accessor :client_key
37
-
38
35
  # If True, TLS peer validation must be performed.
39
36
  attr_accessor :tls_validation
40
37
 
41
- # The proxy URL. Format: scheme://user:password@host:port
38
+ # The proxy URL. Format: scheme://host:port
42
39
  attr_accessor :proxy_url
43
40
 
44
- # The username to be used for authentication when syncing.
45
- attr_accessor :username
46
-
47
- # The password to be used for authentication when syncing.
48
- attr_accessor :password
49
-
50
41
  attr_accessor :pulp_labels
51
42
 
52
43
  # Timestamp of the most recent update of the remote.
@@ -70,6 +61,9 @@ module PulpNpmClient
70
61
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
62
  attr_accessor :sock_read_timeout
72
63
 
64
+ # Headers for aiohttp.Clientsession
65
+ attr_accessor :headers
66
+
73
67
  # Limits total download rate in requests per second
74
68
  attr_accessor :rate_limit
75
69
 
@@ -82,11 +76,8 @@ module PulpNpmClient
82
76
  :'url' => :'url',
83
77
  :'ca_cert' => :'ca_cert',
84
78
  :'client_cert' => :'client_cert',
85
- :'client_key' => :'client_key',
86
79
  :'tls_validation' => :'tls_validation',
87
80
  :'proxy_url' => :'proxy_url',
88
- :'username' => :'username',
89
- :'password' => :'password',
90
81
  :'pulp_labels' => :'pulp_labels',
91
82
  :'pulp_last_updated' => :'pulp_last_updated',
92
83
  :'download_concurrency' => :'download_concurrency',
@@ -95,6 +86,7 @@ module PulpNpmClient
95
86
  :'connect_timeout' => :'connect_timeout',
96
87
  :'sock_connect_timeout' => :'sock_connect_timeout',
97
88
  :'sock_read_timeout' => :'sock_read_timeout',
89
+ :'headers' => :'headers',
98
90
  :'rate_limit' => :'rate_limit'
99
91
  }
100
92
  end
@@ -108,11 +100,8 @@ module PulpNpmClient
108
100
  :'url' => :'String',
109
101
  :'ca_cert' => :'String',
110
102
  :'client_cert' => :'String',
111
- :'client_key' => :'String',
112
103
  :'tls_validation' => :'Boolean',
113
104
  :'proxy_url' => :'String',
114
- :'username' => :'String',
115
- :'password' => :'String',
116
105
  :'pulp_labels' => :'Object',
117
106
  :'pulp_last_updated' => :'DateTime',
118
107
  :'download_concurrency' => :'Integer',
@@ -121,6 +110,7 @@ module PulpNpmClient
121
110
  :'connect_timeout' => :'Float',
122
111
  :'sock_connect_timeout' => :'Float',
123
112
  :'sock_read_timeout' => :'Float',
113
+ :'headers' => :'Array<Object>',
124
114
  :'rate_limit' => :'Integer'
125
115
  }
126
116
  end
@@ -130,10 +120,7 @@ module PulpNpmClient
130
120
  Set.new([
131
121
  :'ca_cert',
132
122
  :'client_cert',
133
- :'client_key',
134
123
  :'proxy_url',
135
- :'username',
136
- :'password',
137
124
  :'total_timeout',
138
125
  :'connect_timeout',
139
126
  :'sock_connect_timeout',
@@ -181,10 +168,6 @@ module PulpNpmClient
181
168
  self.client_cert = attributes[:'client_cert']
182
169
  end
183
170
 
184
- if attributes.key?(:'client_key')
185
- self.client_key = attributes[:'client_key']
186
- end
187
-
188
171
  if attributes.key?(:'tls_validation')
189
172
  self.tls_validation = attributes[:'tls_validation']
190
173
  end
@@ -193,14 +176,6 @@ module PulpNpmClient
193
176
  self.proxy_url = attributes[:'proxy_url']
194
177
  end
195
178
 
196
- if attributes.key?(:'username')
197
- self.username = attributes[:'username']
198
- end
199
-
200
- if attributes.key?(:'password')
201
- self.password = attributes[:'password']
202
- end
203
-
204
179
  if attributes.key?(:'pulp_labels')
205
180
  self.pulp_labels = attributes[:'pulp_labels']
206
181
  end
@@ -233,6 +208,12 @@ module PulpNpmClient
233
208
  self.sock_read_timeout = attributes[:'sock_read_timeout']
234
209
  end
235
210
 
211
+ if attributes.key?(:'headers')
212
+ if (value = attributes[:'headers']).is_a?(Array)
213
+ self.headers = value
214
+ end
215
+ end
216
+
236
217
  if attributes.key?(:'rate_limit')
237
218
  self.rate_limit = attributes[:'rate_limit']
238
219
  end
@@ -347,11 +328,8 @@ module PulpNpmClient
347
328
  url == o.url &&
348
329
  ca_cert == o.ca_cert &&
349
330
  client_cert == o.client_cert &&
350
- client_key == o.client_key &&
351
331
  tls_validation == o.tls_validation &&
352
332
  proxy_url == o.proxy_url &&
353
- username == o.username &&
354
- password == o.password &&
355
333
  pulp_labels == o.pulp_labels &&
356
334
  pulp_last_updated == o.pulp_last_updated &&
357
335
  download_concurrency == o.download_concurrency &&
@@ -360,6 +338,7 @@ module PulpNpmClient
360
338
  connect_timeout == o.connect_timeout &&
361
339
  sock_connect_timeout == o.sock_connect_timeout &&
362
340
  sock_read_timeout == o.sock_read_timeout &&
341
+ headers == o.headers &&
363
342
  rate_limit == o.rate_limit
364
343
  end
365
344
 
@@ -372,7 +351,7 @@ module PulpNpmClient
372
351
  # Calculates hash code according to all attributes.
373
352
  # @return [Integer] Hash code
374
353
  def hash
375
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
354
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
376
355
  end
377
356
 
378
357
  # Builds the object from hash