Class: ArgoWorkflows::EventSourceServiceApi
- Inherits:
-
Object
- Object
- ArgoWorkflows::EventSourceServiceApi
- Defined in:
- lib/argo_workflows/api/event_source_service_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
- #event_source_service_create_event_source(namespace, body, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
-
#event_source_service_create_event_source_with_http_info(namespace, body, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
- #event_source_service_delete_event_source(namespace, name, opts = {}) ⇒ EventsourceEventSourceDeletedResponse
-
#event_source_service_delete_event_source_with_http_info(namespace, name, opts = {}) ⇒ Array<(EventsourceEventSourceDeletedResponse, Fixnum, Hash)>
EventsourceEventSourceDeletedResponse data, response status code and response headers.
- #event_source_service_event_sources_logs(namespace, opts = {}) ⇒ StreamResultOfEventsourceLogEntry
-
#event_source_service_event_sources_logs_with_http_info(namespace, opts = {}) ⇒ Array<(StreamResultOfEventsourceLogEntry, Fixnum, Hash)>
StreamResultOfEventsourceLogEntry data, response status code and response headers.
- #event_source_service_get_event_source(namespace, name, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
-
#event_source_service_get_event_source_with_http_info(namespace, name, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
- #event_source_service_list_event_sources(namespace, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSourceList
-
#event_source_service_list_event_sources_with_http_info(namespace, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSourceList, Fixnum, Hash)>
IoArgoprojEventsV1alpha1EventSourceList data, response status code and response headers.
- #event_source_service_update_event_source(namespace, name, body, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
-
#event_source_service_update_event_source_with_http_info(namespace, name, body, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
- #event_source_service_watch_event_sources(namespace, opts = {}) ⇒ StreamResultOfEventsourceEventSourceWatchEvent
-
#event_source_service_watch_event_sources_with_http_info(namespace, opts = {}) ⇒ Array<(StreamResultOfEventsourceEventSourceWatchEvent, Fixnum, Hash)>
StreamResultOfEventsourceEventSourceWatchEvent data, response status code and response headers.
-
#initialize(api_client = ApiClient.default) ⇒ EventSourceServiceApi
constructor
A new instance of EventSourceServiceApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ EventSourceServiceApi
Returns a new instance of EventSourceServiceApi.
19 20 21 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#event_source_service_create_event_source(namespace, body, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
26 27 28 29 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 26 def event_source_service_create_event_source(namespace, body, opts = {}) data, _status_code, _headers = event_source_service_create_event_source_with_http_info(namespace, body, opts) data end |
#event_source_service_create_event_source_with_http_info(namespace, body, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
Returns IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 35 def event_source_service_create_event_source_with_http_info(namespace, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_create_event_source ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_create_event_source" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling EventSourceServiceApi.event_source_service_create_event_source" end # resource path local_var_path = '/api/v1/event-sources/{namespace}'.sub('{' + 'namespace' + '}', namespace.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IoArgoprojEventsV1alpha1EventSource') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_create_event_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_delete_event_source(namespace, name, opts = {}) ⇒ EventsourceEventSourceDeletedResponse
88 89 90 91 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 88 def event_source_service_delete_event_source(namespace, name, opts = {}) data, _status_code, _headers = event_source_service_delete_event_source_with_http_info(namespace, name, opts) data end |
#event_source_service_delete_event_source_with_http_info(namespace, name, opts = {}) ⇒ Array<(EventsourceEventSourceDeletedResponse, Fixnum, Hash)>
Returns EventsourceEventSourceDeletedResponse data, response status code and response headers.
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 103 def event_source_service_delete_event_source_with_http_info(namespace, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_delete_event_source ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_delete_event_source" end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling EventSourceServiceApi.event_source_service_delete_event_source" end # resource path local_var_path = '/api/v1/event-sources/{namespace}/{name}'.sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} query_params[:'deleteOptions.gracePeriodSeconds'] = opts[:'delete_options_grace_period_seconds'] if !opts[:'delete_options_grace_period_seconds'].nil? query_params[:'deleteOptions.preconditions.uid'] = opts[:'delete_options_preconditions_uid'] if !opts[:'delete_options_preconditions_uid'].nil? query_params[:'deleteOptions.preconditions.resourceVersion'] = opts[:'delete_options_preconditions_resource_version'] if !opts[:'delete_options_preconditions_resource_version'].nil? query_params[:'deleteOptions.orphanDependents'] = opts[:'delete_options_orphan_dependents'] if !opts[:'delete_options_orphan_dependents'].nil? query_params[:'deleteOptions.propagationPolicy'] = opts[:'delete_options_propagation_policy'] if !opts[:'delete_options_propagation_policy'].nil? query_params[:'deleteOptions.dryRun'] = @api_client.build_collection_param(opts[:'delete_options_dry_run'], :multi) if !opts[:'delete_options_dry_run'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EventsourceEventSourceDeletedResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_delete_event_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_event_sources_logs(namespace, opts = {}) ⇒ StreamResultOfEventsourceLogEntry
169 170 171 172 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 169 def event_source_service_event_sources_logs(namespace, opts = {}) data, _status_code, _headers = event_source_service_event_sources_logs_with_http_info(namespace, opts) data end |
#event_source_service_event_sources_logs_with_http_info(namespace, opts = {}) ⇒ Array<(StreamResultOfEventsourceLogEntry, Fixnum, Hash)>
Returns StreamResultOfEventsourceLogEntry data, response status code and response headers.
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 191 def event_source_service_event_sources_logs_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_event_sources_logs ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_event_sources_logs" end # resource path local_var_path = '/api/v1/stream/event-sources/{namespace}/logs'.sub('{' + 'namespace' + '}', namespace.to_s) # query parameters query_params = {} query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'eventSourceType'] = opts[:'event_source_type'] if !opts[:'event_source_type'].nil? query_params[:'eventName'] = opts[:'event_name'] if !opts[:'event_name'].nil? query_params[:'grep'] = opts[:'grep'] if !opts[:'grep'].nil? query_params[:'podLogOptions.container'] = opts[:'pod_log_options_container'] if !opts[:'pod_log_options_container'].nil? query_params[:'podLogOptions.follow'] = opts[:'pod_log_options_follow'] if !opts[:'pod_log_options_follow'].nil? query_params[:'podLogOptions.previous'] = opts[:'pod_log_options_previous'] if !opts[:'pod_log_options_previous'].nil? query_params[:'podLogOptions.sinceSeconds'] = opts[:'pod_log_options_since_seconds'] if !opts[:'pod_log_options_since_seconds'].nil? query_params[:'podLogOptions.sinceTime.seconds'] = opts[:'pod_log_options_since_time_seconds'] if !opts[:'pod_log_options_since_time_seconds'].nil? query_params[:'podLogOptions.sinceTime.nanos'] = opts[:'pod_log_options_since_time_nanos'] if !opts[:'pod_log_options_since_time_nanos'].nil? query_params[:'podLogOptions.timestamps'] = opts[:'pod_log_options_timestamps'] if !opts[:'pod_log_options_timestamps'].nil? query_params[:'podLogOptions.tailLines'] = opts[:'pod_log_options_tail_lines'] if !opts[:'pod_log_options_tail_lines'].nil? query_params[:'podLogOptions.limitBytes'] = opts[:'pod_log_options_limit_bytes'] if !opts[:'pod_log_options_limit_bytes'].nil? query_params[:'podLogOptions.insecureSkipTLSVerifyBackend'] = opts[:'pod_log_options_insecure_skip_tls_verify_backend'] if !opts[:'pod_log_options_insecure_skip_tls_verify_backend'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StreamResultOfEventsourceLogEntry') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_event_sources_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_get_event_source(namespace, name, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
248 249 250 251 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 248 def event_source_service_get_event_source(namespace, name, opts = {}) data, _status_code, _headers = event_source_service_get_event_source_with_http_info(namespace, name, opts) data end |
#event_source_service_get_event_source_with_http_info(namespace, name, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
Returns IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 257 def event_source_service_get_event_source_with_http_info(namespace, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_get_event_source ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_get_event_source" end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling EventSourceServiceApi.event_source_service_get_event_source" end # resource path local_var_path = '/api/v1/event-sources/{namespace}/{name}'.sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IoArgoprojEventsV1alpha1EventSource') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_get_event_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_list_event_sources(namespace, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSourceList
313 314 315 316 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 313 def event_source_service_list_event_sources(namespace, opts = {}) data, _status_code, _headers = event_source_service_list_event_sources_with_http_info(namespace, opts) data end |
#event_source_service_list_event_sources_with_http_info(namespace, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSourceList, Fixnum, Hash)>
Returns IoArgoprojEventsV1alpha1EventSourceList data, response status code and response headers.
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 331 def event_source_service_list_event_sources_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_list_event_sources ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_list_event_sources" end # resource path local_var_path = '/api/v1/event-sources/{namespace}'.sub('{' + 'namespace' + '}', namespace.to_s) # query parameters query_params = {} query_params[:'listOptions.labelSelector'] = opts[:'list_options_label_selector'] if !opts[:'list_options_label_selector'].nil? query_params[:'listOptions.fieldSelector'] = opts[:'list_options_field_selector'] if !opts[:'list_options_field_selector'].nil? query_params[:'listOptions.watch'] = opts[:'list_options_watch'] if !opts[:'list_options_watch'].nil? query_params[:'listOptions.allowWatchBookmarks'] = opts[:'list_options_allow_watch_bookmarks'] if !opts[:'list_options_allow_watch_bookmarks'].nil? query_params[:'listOptions.resourceVersion'] = opts[:'list_options_resource_version'] if !opts[:'list_options_resource_version'].nil? query_params[:'listOptions.resourceVersionMatch'] = opts[:'list_options_resource_version_match'] if !opts[:'list_options_resource_version_match'].nil? query_params[:'listOptions.timeoutSeconds'] = opts[:'list_options_timeout_seconds'] if !opts[:'list_options_timeout_seconds'].nil? query_params[:'listOptions.limit'] = opts[:'list_options_limit'] if !opts[:'list_options_limit'].nil? query_params[:'listOptions.continue'] = opts[:'list_options_continue'] if !opts[:'list_options_continue'].nil? query_params[:'listOptions.sendInitialEvents'] = opts[:'list_options_send_initial_events'] if !opts[:'list_options_send_initial_events'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IoArgoprojEventsV1alpha1EventSourceList') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_list_event_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_update_event_source(namespace, name, body, opts = {}) ⇒ IoArgoprojEventsV1alpha1EventSource
385 386 387 388 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 385 def event_source_service_update_event_source(namespace, name, body, opts = {}) data, _status_code, _headers = event_source_service_update_event_source_with_http_info(namespace, name, body, opts) data end |
#event_source_service_update_event_source_with_http_info(namespace, name, body, opts = {}) ⇒ Array<(IoArgoprojEventsV1alpha1EventSource, Fixnum, Hash)>
Returns IoArgoprojEventsV1alpha1EventSource data, response status code and response headers.
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 395 def event_source_service_update_event_source_with_http_info(namespace, name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_update_event_source ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_update_event_source" end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? fail ArgumentError, "Missing the required parameter 'name' when calling EventSourceServiceApi.event_source_service_update_event_source" end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling EventSourceServiceApi.event_source_service_update_event_source" end # resource path local_var_path = '/api/v1/event-sources/{namespace}/{name}'.sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(body) auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IoArgoprojEventsV1alpha1EventSource') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_update_event_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_source_service_watch_event_sources(namespace, opts = {}) ⇒ StreamResultOfEventsourceEventSourceWatchEvent
455 456 457 458 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 455 def event_source_service_watch_event_sources(namespace, opts = {}) data, _status_code, _headers = event_source_service_watch_event_sources_with_http_info(namespace, opts) data end |
#event_source_service_watch_event_sources_with_http_info(namespace, opts = {}) ⇒ Array<(StreamResultOfEventsourceEventSourceWatchEvent, Fixnum, Hash)>
Returns StreamResultOfEventsourceEventSourceWatchEvent data, response status code and response headers.
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 |
# File 'lib/argo_workflows/api/event_source_service_api.rb', line 473 def event_source_service_watch_event_sources_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventSourceServiceApi.event_source_service_watch_event_sources ...' end # verify the required parameter 'namespace' is set if @api_client.config.client_side_validation && namespace.nil? fail ArgumentError, "Missing the required parameter 'namespace' when calling EventSourceServiceApi.event_source_service_watch_event_sources" end # resource path local_var_path = '/api/v1/stream/event-sources/{namespace}'.sub('{' + 'namespace' + '}', namespace.to_s) # query parameters query_params = {} query_params[:'listOptions.labelSelector'] = opts[:'list_options_label_selector'] if !opts[:'list_options_label_selector'].nil? query_params[:'listOptions.fieldSelector'] = opts[:'list_options_field_selector'] if !opts[:'list_options_field_selector'].nil? query_params[:'listOptions.watch'] = opts[:'list_options_watch'] if !opts[:'list_options_watch'].nil? query_params[:'listOptions.allowWatchBookmarks'] = opts[:'list_options_allow_watch_bookmarks'] if !opts[:'list_options_allow_watch_bookmarks'].nil? query_params[:'listOptions.resourceVersion'] = opts[:'list_options_resource_version'] if !opts[:'list_options_resource_version'].nil? query_params[:'listOptions.resourceVersionMatch'] = opts[:'list_options_resource_version_match'] if !opts[:'list_options_resource_version_match'].nil? query_params[:'listOptions.timeoutSeconds'] = opts[:'list_options_timeout_seconds'] if !opts[:'list_options_timeout_seconds'].nil? query_params[:'listOptions.limit'] = opts[:'list_options_limit'] if !opts[:'list_options_limit'].nil? query_params[:'listOptions.continue'] = opts[:'list_options_continue'] if !opts[:'list_options_continue'].nil? query_params[:'listOptions.sendInitialEvents'] = opts[:'list_options_send_initial_events'] if !opts[:'list_options_send_initial_events'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BearerToken'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StreamResultOfEventsourceEventSourceWatchEvent') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventSourceServiceApi#event_source_service_watch_event_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |