lib/argo_workflows/api/workflow_service_api.rb
# DEPRECATED: Cannot work via HTTP if podName is an empty string. Use WorkflowLogs.
# @param namespace [String] 
# @param name [String] 
# @param pod_name [String] 
# @param [Hash] opts the optional parameters
# @option opts [String] :log_options_container The container for which to stream logs. Defaults to only container if there is one container in the pod. +optional.
# @option opts [Boolean] :log_options_follow Follow the log stream of the pod. Defaults to false. +optional.
# @option opts [Boolean] :log_options_previous Return previous terminated container logs. Defaults to false. +optional.
# @option opts [String] :log_options_since_seconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. +optional.
# @option opts [String] :log_options_since_time_seconds Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
# @option opts [Integer] :log_options_since_time_nanos Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. This field may be limited in precision depending on context.
# @option opts [Boolean] :log_options_timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. +optional.
# @option opts [String] :log_options_tail_lines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime +optional.
# @option opts [String] :log_options_limit_bytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. +optional.
# @option opts [Boolean] :log_options_insecure_skip_tls_verify_backend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to.  This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet.  If the kubelet is configured to verify the apiserver&#39;s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). +optional.
# @option opts [String] :grep 
# @option opts [String] :selector 
# @return [Array<(StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry, Integer, Hash)>] StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry data, response status code and response headers
Cannot work via HTTP if podName is an empty string.
Cannot work via HTTP if podName is an empty string .
def pod_logs_with_http_info(namespace, name, pod_name, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: WorkflowServiceApi.pod_logs ...'
      end
      if @api_client.config.client_side_validation && namespace.nil?
        fail ArgumentError, "Missing the required parameter 'namespace' when calling WorkflowServiceApi.pod_logs"
      end
      if @api_client.config.client_side_validation && name.nil?
        fail ArgumentError, "Missing the required parameter 'name' when calling WorkflowServiceApi.pod_logs"
      end
      if @api_client.config.client_side_validation && pod_name.nil?
        fail ArgumentError, "Missing the required parameter 'pod_name' when calling WorkflowServiceApi.pod_logs"
      end
      local_var_path = '/api/v1/workflows/{namespace}/{name}/{podName}/log'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'podName' + '}', CGI.escape(pod_name.to_s))
      query_params = opts[:query_params] || {}
      query_params[:'logOptions.container'] = opts[:'log_options_container'] if !opts[:'log_options_container'].nil?
      query_params[:'logOptions.follow'] = opts[:'log_options_follow'] if !opts[:'log_options_follow'].nil?
      query_params[:'logOptions.previous'] = opts[:'log_options_previous'] if !opts[:'log_options_previous'].nil?
      query_params[:'logOptions.sinceSeconds'] = opts[:'log_options_since_seconds'] if !opts[:'log_options_since_seconds'].nil?
      query_params[:'logOptions.sinceTime.seconds'] = opts[:'log_options_since_time_seconds'] if !opts[:'log_options_since_time_seconds'].nil?
      query_params[:'logOptions.sinceTime.nanos'] = opts[:'log_options_since_time_nanos'] if !opts[:'log_options_since_time_nanos'].nil?
      query_params[:'logOptions.timestamps'] = opts[:'log_options_timestamps'] if !opts[:'log_options_timestamps'].nil?
      query_params[:'logOptions.tailLines'] = opts[:'log_options_tail_lines'] if !opts[:'log_options_tail_lines'].nil?
      query_params[:'logOptions.limitBytes'] = opts[:'log_options_limit_bytes'] if !opts[:'log_options_limit_bytes'].nil?
      query_params[:'logOptions.insecureSkipTLSVerifyBackend'] = opts[:'log_options_insecure_skip_tls_verify_backend'] if !opts[:'log_options_insecure_skip_tls_verify_backend'].nil?
      query_params[:'grep'] = opts[:'grep'] if !opts[:'grep'].nil?
      query_params[:'selector'] = opts[:'selector'] if !opts[:'selector'].nil?
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"WorkflowServiceApi.pod_logs",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: WorkflowServiceApi#pod_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def pod_logs_with_http_info ( namespace , name , pod_name , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: WorkflowServiceApi.pod_logs ...' end if @api_client . config . client_side_validation && namespace . nil? fail ArgumentError , "Missing the required parameter 'namespace' when calling WorkflowServiceApi.pod_logs" end if @api_client . config . client_side_validation && name . nil? fail ArgumentError , "Missing the required parameter 'name' when calling WorkflowServiceApi.pod_logs" end if @api_client . config . client_side_validation && pod_name . nil? fail ArgumentError , "Missing the required parameter 'pod_name' when calling WorkflowServiceApi.pod_logs" end local_var_path = '/api/v1/workflows/{namespace}/{name}/{podName}/log' . sub ( '{' + 'namespace' + '}' , CGI . escape ( namespace . to_s ) ) . sub ( '{' + 'name' + '}' , CGI . escape ( name . to_s ) ) . sub ( '{' + 'podName' + '}' , CGI . escape ( pod_name . to_s ) ) query_params = opts [ :query_params ] || { } query_params [ :' logOptions.container ' ] = opts [ :' log_options_container ' ] if ! opts [ :' log_options_container ' ] . nil? query_params [ :' logOptions.follow ' ] = opts [ :' log_options_follow ' ] if ! opts [ :' log_options_follow ' ] . nil? query_params [ :' logOptions.previous ' ] = opts [ :' log_options_previous ' ] if ! opts [ :' log_options_previous ' ] . nil? query_params [ :' logOptions.sinceSeconds ' ] = opts [ :' log_options_since_seconds ' ] if ! opts [ :' log_options_since_seconds ' ] . nil? query_params [ :' logOptions.sinceTime.seconds ' ] = opts [ :' log_options_since_time_seconds ' ] if ! opts [ :' log_options_since_time_seconds ' ] . nil? query_params [ :' logOptions.sinceTime.nanos ' ] = opts [ :' log_options_since_time_nanos ' ] if ! opts [ :' log_options_since_time_nanos ' ] . nil? query_params [ :' logOptions.timestamps ' ] = opts [ :' log_options_timestamps ' ] if ! opts [ :' log_options_timestamps ' ] . nil? query_params [ :' logOptions.tailLines ' ] = opts [ :' log_options_tail_lines ' ] if ! opts [ :' log_options_tail_lines ' ] . nil? query_params [ :' logOptions.limitBytes ' ] = opts [ :' log_options_limit_bytes ' ] if ! opts [ :' log_options_limit_bytes ' ] . nil? query_params [ :' logOptions.insecureSkipTLSVerifyBackend ' ] = opts [ :' log_options_insecure_skip_tls_verify_backend ' ] if ! opts [ :' log_options_insecure_skip_tls_verify_backend ' ] . nil? query_params [ :' grep ' ] = opts [ :' grep ' ] if ! opts [ :' grep ' ] . nil? query_params [ :' selector ' ] = opts [ :' selector ' ] if ! opts [ :' selector ' ] . nil? header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" WorkflowServiceApi.pod_logs " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: WorkflowServiceApi#pod_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
DEPRECATED: Cannot work via HTTP if podName is an empty string.
DEPRECATED : Cannot work via HTTP if podName is an empty string .
# verify the required parameter 'namespace' is set # verify the required parameter 'name' is set # verify the required parameter 'pod_name' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry data, response status code and response headers
StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry data response status code and response headers
Array<(StreamResultOfIoArgoprojWorkflowV1alpha1LogEntry, Integer, Hash)>
namespace
name
pod_name
opts
None
None
opts the optional parameters
opts the optional parameters