Class: ArgoWorkflows::InfoServiceApi
- Inherits:
-
Object
- Object
- ArgoWorkflows::InfoServiceApi
- Defined in:
- lib/argo_workflows/api/info_service_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
- #info_service_collect_event(body, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1CollectEventResponse
-
#info_service_collect_event_with_http_info(body, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1CollectEventResponse, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1CollectEventResponse data, response status code and response headers.
- #info_service_get_info(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1InfoResponse
-
#info_service_get_info_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1InfoResponse, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1InfoResponse data, response status code and response headers.
- #info_service_get_user_info(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1GetUserInfoResponse
-
#info_service_get_user_info_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1GetUserInfoResponse, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1GetUserInfoResponse data, response status code and response headers.
- #info_service_get_version(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1Version
-
#info_service_get_version_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1Version, Fixnum, Hash)>
IoArgoprojWorkflowV1alpha1Version data, response status code and response headers.
-
#initialize(api_client = ApiClient.default) ⇒ InfoServiceApi
constructor
A new instance of InfoServiceApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ InfoServiceApi
Returns a new instance of InfoServiceApi.
19 20 21 |
# File 'lib/argo_workflows/api/info_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/info_service_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#info_service_collect_event(body, opts = {}) ⇒ IoArgoprojWorkflowV1alpha1CollectEventResponse
25 26 27 28 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 25 def info_service_collect_event(body, opts = {}) data, _status_code, _headers = info_service_collect_event_with_http_info(body, opts) data end |
#info_service_collect_event_with_http_info(body, opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1CollectEventResponse, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1CollectEventResponse data, response status code and response headers.
33 34 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 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 33 def info_service_collect_event_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoServiceApi.info_service_collect_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 InfoServiceApi.info_service_collect_event" end # resource path local_var_path = '/api/v1/tracking/event' # 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 => 'IoArgoprojWorkflowV1alpha1CollectEventResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoServiceApi#info_service_collect_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#info_service_get_info(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1InfoResponse
74 75 76 77 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 74 def info_service_get_info(opts = {}) data, _status_code, _headers = info_service_get_info_with_http_info(opts) data end |
#info_service_get_info_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1InfoResponse, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1InfoResponse data, response status code and response headers.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 81 def info_service_get_info_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoServiceApi.info_service_get_info ...' end # resource path local_var_path = '/api/v1/info' # 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 => 'IoArgoprojWorkflowV1alpha1InfoResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoServiceApi#info_service_get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#info_service_get_user_info(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1GetUserInfoResponse
118 119 120 121 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 118 def info_service_get_user_info(opts = {}) data, _status_code, _headers = info_service_get_user_info_with_http_info(opts) data end |
#info_service_get_user_info_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1GetUserInfoResponse, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1GetUserInfoResponse data, response status code and response headers.
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 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 125 def info_service_get_user_info_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoServiceApi.info_service_get_user_info ...' end # resource path local_var_path = '/api/v1/userinfo' # 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 => 'IoArgoprojWorkflowV1alpha1GetUserInfoResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoServiceApi#info_service_get_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#info_service_get_version(opts = {}) ⇒ IoArgoprojWorkflowV1alpha1Version
162 163 164 165 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 162 def info_service_get_version(opts = {}) data, _status_code, _headers = info_service_get_version_with_http_info(opts) data end |
#info_service_get_version_with_http_info(opts = {}) ⇒ Array<(IoArgoprojWorkflowV1alpha1Version, Fixnum, Hash)>
Returns IoArgoprojWorkflowV1alpha1Version data, response status code and response headers.
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/argo_workflows/api/info_service_api.rb', line 169 def info_service_get_version_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InfoServiceApi.info_service_get_version ...' end # resource path local_var_path = '/api/v1/version' # 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 => 'IoArgoprojWorkflowV1alpha1Version') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoServiceApi#info_service_get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |