Class: ArgoWorkflows::EventServiceApi
- Inherits:
-
Object
- Object
- ArgoWorkflows::EventServiceApi
- Defined in:
- lib/argo_workflows/api/event_service_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
- #event_service_list_workflow_event_bindings(namespace, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1WorkflowEventBindingList
-
#event_service_list_workflow_event_bindings_with_http_info(namespace, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1WorkflowEventBindingList, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1WorkflowEventBindingList data, response status code and response headers.
- #event_service_receive_event(namespace, discriminator, body, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1EventResponse
-
#event_service_receive_event_with_http_info(namespace, discriminator, body, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1EventResponse, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1EventResponse data, response status code and response headers.
-
#initialize(api_client = ApiClient.default) ⇒ EventServiceApi
constructor
A new instance of EventServiceApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ EventServiceApi
Returns a new instance of EventServiceApi.
19 20 21 |
# File 'lib/argo_workflows/api/event_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_service_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#event_service_list_workflow_event_bindings(namespace, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1WorkflowEventBindingList
35 36 37 38 |
# File 'lib/argo_workflows/api/event_service_api.rb', line 35 def event_service_list_workflow_event_bindings(namespace, opts = {}) data, _status_code, _headers = event_service_list_workflow_event_bindings_with_http_info(namespace, opts) data end |
#event_service_list_workflow_event_bindings_with_http_info(namespace, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1WorkflowEventBindingList, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1WorkflowEventBindingList data, response status code and response headers.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/argo_workflows/api/event_service_api.rb', line 53 def event_service_list_workflow_event_bindings_with_http_info(namespace, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventServiceApi.event_service_list_workflow_event_bindings ...' 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 EventServiceApi.event_service_list_workflow_event_bindings" end # resource path local_var_path = '/api/v1/workflow-event-bindings/{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 => 'IoArgoprojWorkflowV1alpha1WorkflowEventBindingList') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventServiceApi#event_service_list_workflow_event_bindings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#event_service_receive_event(namespace, discriminator, body, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1EventResponse
107 108 109 110 |
# File 'lib/argo_workflows/api/event_service_api.rb', line 107 def event_service_receive_event(namespace, discriminator, body, opts = {}) data, _status_code, _headers = event_service_receive_event_with_http_info(namespace, discriminator, body, opts) data end |
#event_service_receive_event_with_http_info(namespace, discriminator, body, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1EventResponse, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1EventResponse data, response status code and response headers.
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 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/argo_workflows/api/event_service_api.rb', line 117 def event_service_receive_event_with_http_info(namespace, discriminator, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: EventServiceApi.event_service_receive_event ...' 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 EventServiceApi.event_service_receive_event" end # verify the required parameter 'discriminator' is set if @api_client.config.client_side_validation && discriminator.nil? fail ArgumentError, "Missing the required parameter 'discriminator' when calling EventServiceApi.event_service_receive_event" 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 EventServiceApi.event_service_receive_event" end # resource path local_var_path = '/api/v1/events/{namespace}/{discriminator}'.sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'discriminator' + '}', discriminator.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 => 'IoArgoprojWorkflowV1alpha1EventResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: EventServiceApi#event_service_receive_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |